]> Git Repo - binutils.git/blob - gold/configure
Automatic date update in version.in
[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 [email protected] 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 JANSSON_LIBS
635 JANSSON_CFLAGS
636 THREADS_FALSE
637 THREADS_TRUE
638 PTHREAD_CFLAGS
639 PTHREAD_LIBS
640 PTHREAD_CC
641 ax_pthread_config
642 SED
643 HAVE_ZSTD_FALSE
644 HAVE_ZSTD_TRUE
645 ZSTD_LIBS
646 ZSTD_CFLAGS
647 PKG_CONFIG_LIBDIR
648 PKG_CONFIG_PATH
649 PKG_CONFIG
650 zlibinc
651 zlibdir
652 LIBOBJS
653 LFS_CFLAGS
654 GOLD_LDADD
655 GOLD_LDFLAGS
656 WARN_CXXFLAGS
657 WARN_WRITE_STRINGS
658 NO_WERROR
659 WARN_CFLAGS_FOR_BUILD
660 WARN_CFLAGS
661 IFUNC_STATIC_FALSE
662 IFUNC_STATIC_TRUE
663 IFUNC_FALSE
664 IFUNC_TRUE
665 RANDOM_SEED_CFLAGS
666 TLS_DESCRIPTORS_FALSE
667 TLS_DESCRIPTORS_TRUE
668 TLS_GNU2_DIALECT_FALSE
669 TLS_GNU2_DIALECT_TRUE
670 OMP_SUPPORT_FALSE
671 OMP_SUPPORT_TRUE
672 STATIC_TLS_FALSE
673 STATIC_TLS_TRUE
674 TLS_FALSE
675 TLS_TRUE
676 MERGE_CONSTANTS_FLAG
677 CFLAGS_CF_PROTECTION_FALSE
678 CFLAGS_CF_PROTECTION_TRUE
679 GCC9_FALSE
680 GCC9_TRUE
681 MCMODEL_MEDIUM_FALSE
682 MCMODEL_MEDIUM_TRUE
683 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
684 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
685 HAVE_STATIC_FALSE
686 HAVE_STATIC_TRUE
687 NATIVE_OR_CROSS_LINKER_FALSE
688 NATIVE_OR_CROSS_LINKER_TRUE
689 GCC_FALSE
690 GCC_TRUE
691 NATIVE_LINKER_FALSE
692 NATIVE_LINKER_TRUE
693 MSGMERGE
694 MSGFMT
695 MKINSTALLDIRS
696 CATOBJEXT
697 GENCAT
698 INSTOBJEXT
699 DATADIRNAME
700 CATALOGS
701 POSUB
702 GMSGFMT
703 XGETTEXT
704 INCINTL
705 LIBINTL_DEP
706 LIBINTL
707 USE_NLS
708 LN_S
709 RANLIB
710 YFLAGS
711 YACC
712 am__fastdepCXX_FALSE
713 am__fastdepCXX_TRUE
714 CXXDEPMODE
715 ac_ct_CXX
716 CXXFLAGS
717 CXX
718 NM
719 TARGETOBJS
720 DEFAULT_TARGET
721 DEFAULT_TARGET_MIPS_FALSE
722 DEFAULT_TARGET_MIPS_TRUE
723 DEFAULT_TARGET_TILEGX_FALSE
724 DEFAULT_TARGET_TILEGX_TRUE
725 DEFAULT_TARGET_X86_64_OR_X32_FALSE
726 DEFAULT_TARGET_X86_64_OR_X32_TRUE
727 DEFAULT_TARGET_X32_FALSE
728 DEFAULT_TARGET_X32_TRUE
729 DEFAULT_TARGET_X86_64_FALSE
730 DEFAULT_TARGET_X86_64_TRUE
731 DEFAULT_TARGET_S390_FALSE
732 DEFAULT_TARGET_S390_TRUE
733 DEFAULT_TARGET_SPARC_FALSE
734 DEFAULT_TARGET_SPARC_TRUE
735 DEFAULT_TARGET_POWERPC_FALSE
736 DEFAULT_TARGET_POWERPC_TRUE
737 DEFAULT_TARGET_I386_FALSE
738 DEFAULT_TARGET_I386_TRUE
739 DEFAULT_TARGET_ARM_FALSE
740 DEFAULT_TARGET_ARM_TRUE
741 DEFAULT_TARGET_AARCH64_FALSE
742 DEFAULT_TARGET_AARCH64_TRUE
743 PLUGINS_FALSE
744 PLUGINS_TRUE
745 installed_linker
746 install_as_default
747 EGREP
748 GREP
749 CPP
750 am__fastdepCC_FALSE
751 am__fastdepCC_TRUE
752 CCDEPMODE
753 am__nodep
754 AMDEPBACKSLASH
755 AMDEP_FALSE
756 AMDEP_TRUE
757 am__quote
758 am__include
759 DEPDIR
760 OBJEXT
761 EXEEXT
762 ac_ct_CC
763 CPPFLAGS
764 LDFLAGS
765 CFLAGS
766 CC
767 AM_BACKSLASH
768 AM_DEFAULT_VERBOSITY
769 AM_DEFAULT_V
770 AM_V
771 am__untar
772 am__tar
773 AMTAR
774 am__leading_dot
775 SET_MAKE
776 AWK
777 mkdir_p
778 MKDIR_P
779 INSTALL_STRIP_PROGRAM
780 STRIP
781 install_sh
782 MAKEINFO
783 AUTOHEADER
784 AUTOMAKE
785 AUTOCONF
786 ACLOCAL
787 VERSION
788 PACKAGE
789 CYGPATH_W
790 am__isrc
791 INSTALL_DATA
792 INSTALL_SCRIPT
793 INSTALL_PROGRAM
794 target_os
795 target_vendor
796 target_cpu
797 target
798 host_os
799 host_vendor
800 host_cpu
801 host
802 build_os
803 build_vendor
804 build_cpu
805 build
806 target_alias
807 host_alias
808 build_alias
809 LIBS
810 ECHO_T
811 ECHO_N
812 ECHO_C
813 DEFS
814 mandir
815 localedir
816 libdir
817 psdir
818 pdfdir
819 dvidir
820 htmldir
821 infodir
822 docdir
823 oldincludedir
824 includedir
825 localstatedir
826 sharedstatedir
827 sysconfdir
828 datadir
829 datarootdir
830 libexecdir
831 sbindir
832 bindir
833 program_transform_name
834 prefix
835 exec_prefix
836 PACKAGE_URL
837 PACKAGE_BUGREPORT
838 PACKAGE_STRING
839 PACKAGE_VERSION
840 PACKAGE_TARNAME
841 PACKAGE_NAME
842 PATH_SEPARATOR
843 SHELL'
844 ac_subst_files=''
845 ac_user_opts='
846 enable_option_checking
847 enable_silent_rules
848 enable_dependency_tracking
849 with_sysroot
850 enable_gold
851 enable_plugins
852 enable_relro
853 enable_targets
854 enable_default_hash_style
855 with_lib_path
856 enable_nls
857 enable_werror
858 enable_build_warnings
859 with_gold_ldflags
860 with_gold_ldadd
861 with_system_zlib
862 with_zstd
863 enable_threads
864 enable_jansson
865 enable_maintainer_mode
866 '
867       ac_precious_vars='build_alias
868 host_alias
869 target_alias
870 CC
871 CFLAGS
872 LDFLAGS
873 LIBS
874 CPPFLAGS
875 CPP
876 CXX
877 CXXFLAGS
878 CCC
879 YACC
880 YFLAGS
881 PKG_CONFIG
882 PKG_CONFIG_PATH
883 PKG_CONFIG_LIBDIR
884 ZSTD_CFLAGS
885 ZSTD_LIBS
886 JANSSON_CFLAGS
887 JANSSON_LIBS
888 CXXCPP'
889
890
891 # Initialize some variables set by options.
892 ac_init_help=
893 ac_init_version=false
894 ac_unrecognized_opts=
895 ac_unrecognized_sep=
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
898 cache_file=/dev/null
899 exec_prefix=NONE
900 no_create=
901 no_recursion=
902 prefix=NONE
903 program_prefix=NONE
904 program_suffix=NONE
905 program_transform_name=s,x,x,
906 silent=
907 site=
908 srcdir=
909 verbose=
910 x_includes=NONE
911 x_libraries=NONE
912
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
930 infodir='${datarootdir}/info'
931 htmldir='${docdir}'
932 dvidir='${docdir}'
933 pdfdir='${docdir}'
934 psdir='${docdir}'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
938
939 ac_prev=
940 ac_dashdash=
941 for ac_option
942 do
943   # If the previous option needs an argument, assign it.
944   if test -n "$ac_prev"; then
945     eval $ac_prev=\$ac_option
946     ac_prev=
947     continue
948   fi
949
950   case $ac_option in
951   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952   *=)   ac_optarg= ;;
953   *)    ac_optarg=yes ;;
954   esac
955
956   # Accept the important Cygnus configure options, so we can diagnose typos.
957
958   case $ac_dashdash$ac_option in
959   --)
960     ac_dashdash=yes ;;
961
962   -bindir | --bindir | --bindi | --bind | --bin | --bi)
963     ac_prev=bindir ;;
964   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965     bindir=$ac_optarg ;;
966
967   -build | --build | --buil | --bui | --bu)
968     ac_prev=build_alias ;;
969   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970     build_alias=$ac_optarg ;;
971
972   -cache-file | --cache-file | --cache-fil | --cache-fi \
973   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974     ac_prev=cache_file ;;
975   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977     cache_file=$ac_optarg ;;
978
979   --config-cache | -C)
980     cache_file=config.cache ;;
981
982   -datadir | --datadir | --datadi | --datad)
983     ac_prev=datadir ;;
984   -datadir=* | --datadir=* | --datadi=* | --datad=*)
985     datadir=$ac_optarg ;;
986
987   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988   | --dataroo | --dataro | --datar)
989     ac_prev=datarootdir ;;
990   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992     datarootdir=$ac_optarg ;;
993
994   -disable-* | --disable-*)
995     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996     # Reject names that are not valid shell variable names.
997     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998       as_fn_error $? "invalid feature name: $ac_useropt"
999     ac_useropt_orig=$ac_useropt
1000     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001     case $ac_user_opts in
1002       *"
1003 "enable_$ac_useropt"
1004 "*) ;;
1005       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1006          ac_unrecognized_sep=', ';;
1007     esac
1008     eval enable_$ac_useropt=no ;;
1009
1010   -docdir | --docdir | --docdi | --doc | --do)
1011     ac_prev=docdir ;;
1012   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013     docdir=$ac_optarg ;;
1014
1015   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016     ac_prev=dvidir ;;
1017   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018     dvidir=$ac_optarg ;;
1019
1020   -enable-* | --enable-*)
1021     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022     # Reject names that are not valid shell variable names.
1023     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024       as_fn_error $? "invalid feature name: $ac_useropt"
1025     ac_useropt_orig=$ac_useropt
1026     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027     case $ac_user_opts in
1028       *"
1029 "enable_$ac_useropt"
1030 "*) ;;
1031       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1032          ac_unrecognized_sep=', ';;
1033     esac
1034     eval enable_$ac_useropt=\$ac_optarg ;;
1035
1036   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038   | --exec | --exe | --ex)
1039     ac_prev=exec_prefix ;;
1040   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042   | --exec=* | --exe=* | --ex=*)
1043     exec_prefix=$ac_optarg ;;
1044
1045   -gas | --gas | --ga | --g)
1046     # Obsolete; use --with-gas.
1047     with_gas=yes ;;
1048
1049   -help | --help | --hel | --he | -h)
1050     ac_init_help=long ;;
1051   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052     ac_init_help=recursive ;;
1053   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054     ac_init_help=short ;;
1055
1056   -host | --host | --hos | --ho)
1057     ac_prev=host_alias ;;
1058   -host=* | --host=* | --hos=* | --ho=*)
1059     host_alias=$ac_optarg ;;
1060
1061   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062     ac_prev=htmldir ;;
1063   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064   | --ht=*)
1065     htmldir=$ac_optarg ;;
1066
1067   -includedir | --includedir | --includedi | --included | --include \
1068   | --includ | --inclu | --incl | --inc)
1069     ac_prev=includedir ;;
1070   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071   | --includ=* | --inclu=* | --incl=* | --inc=*)
1072     includedir=$ac_optarg ;;
1073
1074   -infodir | --infodir | --infodi | --infod | --info | --inf)
1075     ac_prev=infodir ;;
1076   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077     infodir=$ac_optarg ;;
1078
1079   -libdir | --libdir | --libdi | --libd)
1080     ac_prev=libdir ;;
1081   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082     libdir=$ac_optarg ;;
1083
1084   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085   | --libexe | --libex | --libe)
1086     ac_prev=libexecdir ;;
1087   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088   | --libexe=* | --libex=* | --libe=*)
1089     libexecdir=$ac_optarg ;;
1090
1091   -localedir | --localedir | --localedi | --localed | --locale)
1092     ac_prev=localedir ;;
1093   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094     localedir=$ac_optarg ;;
1095
1096   -localstatedir | --localstatedir | --localstatedi | --localstated \
1097   | --localstate | --localstat | --localsta | --localst | --locals)
1098     ac_prev=localstatedir ;;
1099   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101     localstatedir=$ac_optarg ;;
1102
1103   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104     ac_prev=mandir ;;
1105   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106     mandir=$ac_optarg ;;
1107
1108   -nfp | --nfp | --nf)
1109     # Obsolete; use --without-fp.
1110     with_fp=no ;;
1111
1112   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113   | --no-cr | --no-c | -n)
1114     no_create=yes ;;
1115
1116   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118     no_recursion=yes ;;
1119
1120   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122   | --oldin | --oldi | --old | --ol | --o)
1123     ac_prev=oldincludedir ;;
1124   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127     oldincludedir=$ac_optarg ;;
1128
1129   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130     ac_prev=prefix ;;
1131   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132     prefix=$ac_optarg ;;
1133
1134   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135   | --program-pre | --program-pr | --program-p)
1136     ac_prev=program_prefix ;;
1137   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139     program_prefix=$ac_optarg ;;
1140
1141   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142   | --program-suf | --program-su | --program-s)
1143     ac_prev=program_suffix ;;
1144   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146     program_suffix=$ac_optarg ;;
1147
1148   -program-transform-name | --program-transform-name \
1149   | --program-transform-nam | --program-transform-na \
1150   | --program-transform-n | --program-transform- \
1151   | --program-transform | --program-transfor \
1152   | --program-transfo | --program-transf \
1153   | --program-trans | --program-tran \
1154   | --progr-tra | --program-tr | --program-t)
1155     ac_prev=program_transform_name ;;
1156   -program-transform-name=* | --program-transform-name=* \
1157   | --program-transform-nam=* | --program-transform-na=* \
1158   | --program-transform-n=* | --program-transform-=* \
1159   | --program-transform=* | --program-transfor=* \
1160   | --program-transfo=* | --program-transf=* \
1161   | --program-trans=* | --program-tran=* \
1162   | --progr-tra=* | --program-tr=* | --program-t=*)
1163     program_transform_name=$ac_optarg ;;
1164
1165   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166     ac_prev=pdfdir ;;
1167   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168     pdfdir=$ac_optarg ;;
1169
1170   -psdir | --psdir | --psdi | --psd | --ps)
1171     ac_prev=psdir ;;
1172   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173     psdir=$ac_optarg ;;
1174
1175   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176   | -silent | --silent | --silen | --sile | --sil)
1177     silent=yes ;;
1178
1179   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180     ac_prev=sbindir ;;
1181   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182   | --sbi=* | --sb=*)
1183     sbindir=$ac_optarg ;;
1184
1185   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187   | --sharedst | --shareds | --shared | --share | --shar \
1188   | --sha | --sh)
1189     ac_prev=sharedstatedir ;;
1190   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193   | --sha=* | --sh=*)
1194     sharedstatedir=$ac_optarg ;;
1195
1196   -site | --site | --sit)
1197     ac_prev=site ;;
1198   -site=* | --site=* | --sit=*)
1199     site=$ac_optarg ;;
1200
1201   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202     ac_prev=srcdir ;;
1203   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204     srcdir=$ac_optarg ;;
1205
1206   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207   | --syscon | --sysco | --sysc | --sys | --sy)
1208     ac_prev=sysconfdir ;;
1209   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211     sysconfdir=$ac_optarg ;;
1212
1213   -target | --target | --targe | --targ | --tar | --ta | --t)
1214     ac_prev=target_alias ;;
1215   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216     target_alias=$ac_optarg ;;
1217
1218   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219     verbose=yes ;;
1220
1221   -version | --version | --versio | --versi | --vers | -V)
1222     ac_init_version=: ;;
1223
1224   -with-* | --with-*)
1225     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226     # Reject names that are not valid shell variable names.
1227     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228       as_fn_error $? "invalid package name: $ac_useropt"
1229     ac_useropt_orig=$ac_useropt
1230     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231     case $ac_user_opts in
1232       *"
1233 "with_$ac_useropt"
1234 "*) ;;
1235       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1236          ac_unrecognized_sep=', ';;
1237     esac
1238     eval with_$ac_useropt=\$ac_optarg ;;
1239
1240   -without-* | --without-*)
1241     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242     # Reject names that are not valid shell variable names.
1243     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244       as_fn_error $? "invalid package name: $ac_useropt"
1245     ac_useropt_orig=$ac_useropt
1246     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247     case $ac_user_opts in
1248       *"
1249 "with_$ac_useropt"
1250 "*) ;;
1251       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252          ac_unrecognized_sep=', ';;
1253     esac
1254     eval with_$ac_useropt=no ;;
1255
1256   --x)
1257     # Obsolete; use --with-x.
1258     with_x=yes ;;
1259
1260   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261   | --x-incl | --x-inc | --x-in | --x-i)
1262     ac_prev=x_includes ;;
1263   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265     x_includes=$ac_optarg ;;
1266
1267   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269     ac_prev=x_libraries ;;
1270   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272     x_libraries=$ac_optarg ;;
1273
1274   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1275 Try \`$0 --help' for more information"
1276     ;;
1277
1278   *=*)
1279     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280     # Reject names that are not valid shell variable names.
1281     case $ac_envvar in #(
1282       '' | [0-9]* | *[!_$as_cr_alnum]* )
1283       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1284     esac
1285     eval $ac_envvar=\$ac_optarg
1286     export $ac_envvar ;;
1287
1288   *)
1289     # FIXME: should be removed in autoconf 3.0.
1290     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1294     ;;
1295
1296   esac
1297 done
1298
1299 if test -n "$ac_prev"; then
1300   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301   as_fn_error $? "missing argument to $ac_option"
1302 fi
1303
1304 if test -n "$ac_unrecognized_opts"; then
1305   case $enable_option_checking in
1306     no) ;;
1307     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1308     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309   esac
1310 fi
1311
1312 # Check all directory arguments for consistency.
1313 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314                 datadir sysconfdir sharedstatedir localstatedir includedir \
1315                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316                 libdir localedir mandir
1317 do
1318   eval ac_val=\$$ac_var
1319   # Remove trailing slashes.
1320   case $ac_val in
1321     */ )
1322       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323       eval $ac_var=\$ac_val;;
1324   esac
1325   # Be sure to have absolute directory names.
1326   case $ac_val in
1327     [\\/$]* | ?:[\\/]* )  continue;;
1328     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1329   esac
1330   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1331 done
1332
1333 # There might be people who depend on the old broken behavior: `$host'
1334 # used to hold the argument of --host etc.
1335 # FIXME: To remove some day.
1336 build=$build_alias
1337 host=$host_alias
1338 target=$target_alias
1339
1340 # FIXME: To remove some day.
1341 if test "x$host_alias" != x; then
1342   if test "x$build_alias" = x; then
1343     cross_compiling=maybe
1344   elif test "x$build_alias" != "x$host_alias"; then
1345     cross_compiling=yes
1346   fi
1347 fi
1348
1349 ac_tool_prefix=
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351
1352 test "$silent" = yes && exec 6>/dev/null
1353
1354
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358   as_fn_error $? "working directory cannot be determined"
1359 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1360   as_fn_error $? "pwd does not report name of working directory"
1361
1362
1363 # Find the source files, if location was not specified.
1364 if test -z "$srcdir"; then
1365   ac_srcdir_defaulted=yes
1366   # Try the directory containing this script, then the parent directory.
1367   ac_confdir=`$as_dirname -- "$as_myself" ||
1368 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1369          X"$as_myself" : 'X\(//\)[^/]' \| \
1370          X"$as_myself" : 'X\(//\)$' \| \
1371          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1372 $as_echo X"$as_myself" |
1373     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374             s//\1/
1375             q
1376           }
1377           /^X\(\/\/\)[^/].*/{
1378             s//\1/
1379             q
1380           }
1381           /^X\(\/\/\)$/{
1382             s//\1/
1383             q
1384           }
1385           /^X\(\/\).*/{
1386             s//\1/
1387             q
1388           }
1389           s/.*/./; q'`
1390   srcdir=$ac_confdir
1391   if test ! -r "$srcdir/$ac_unique_file"; then
1392     srcdir=..
1393   fi
1394 else
1395   ac_srcdir_defaulted=no
1396 fi
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1399   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1400 fi
1401 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 ac_abs_confdir=`(
1403         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1404         pwd)`
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1407   srcdir=.
1408 fi
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1412 case $srcdir in
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 esac
1415 for ac_var in $ac_precious_vars; do
1416   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1417   eval ac_env_${ac_var}_value=\$${ac_var}
1418   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1419   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1420 done
1421
1422 #
1423 # Report the --help message.
1424 #
1425 if test "$ac_init_help" = "long"; then
1426   # Omit some internal or obsolete options to make the list less imposing.
1427   # This message is too long to be a string in the A/UX 3.1 sh.
1428   cat <<_ACEOF
1429 \`configure' configures gold 0.1 to adapt to many kinds of systems.
1430
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1432
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE.  See below for descriptions of some of the useful variables.
1435
1436 Defaults for the options are specified in brackets.
1437
1438 Configuration:
1439   -h, --help              display this help and exit
1440       --help=short        display options specific to this package
1441       --help=recursive    display the short help of all the included packages
1442   -V, --version           display version information and exit
1443   -q, --quiet, --silent   do not print \`checking ...' messages
1444       --cache-file=FILE   cache test results in FILE [disabled]
1445   -C, --config-cache      alias for \`--cache-file=config.cache'
1446   -n, --no-create         do not create output files
1447       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1448
1449 Installation directories:
1450   --prefix=PREFIX         install architecture-independent files in PREFIX
1451                           [$ac_default_prefix]
1452   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1453                           [PREFIX]
1454
1455 By default, \`make install' will install all the files in
1456 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1457 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458 for instance \`--prefix=\$HOME'.
1459
1460 For better control, use the options below.
1461
1462 Fine tuning of the installation directories:
1463   --bindir=DIR            user executables [EPREFIX/bin]
1464   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1465   --libexecdir=DIR        program executables [EPREFIX/libexec]
1466   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1467   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1468   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1469   --libdir=DIR            object code libraries [EPREFIX/lib]
1470   --includedir=DIR        C header files [PREFIX/include]
1471   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1472   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1473   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1474   --infodir=DIR           info documentation [DATAROOTDIR/info]
1475   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1476   --mandir=DIR            man documentation [DATAROOTDIR/man]
1477   --docdir=DIR            documentation root [DATAROOTDIR/doc/gold]
1478   --htmldir=DIR           html documentation [DOCDIR]
1479   --dvidir=DIR            dvi documentation [DOCDIR]
1480   --pdfdir=DIR            pdf documentation [DOCDIR]
1481   --psdir=DIR             ps documentation [DOCDIR]
1482 _ACEOF
1483
1484   cat <<\_ACEOF
1485
1486 Program names:
1487   --program-prefix=PREFIX            prepend PREFIX to installed program names
1488   --program-suffix=SUFFIX            append SUFFIX to installed program names
1489   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1490
1491 System types:
1492   --build=BUILD     configure for building on BUILD [guessed]
1493   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1494   --target=TARGET   configure for building compilers for TARGET [HOST]
1495 _ACEOF
1496 fi
1497
1498 if test -n "$ac_init_help"; then
1499   case $ac_init_help in
1500      short | recursive ) echo "Configuration of gold 0.1:";;
1501    esac
1502   cat <<\_ACEOF
1503
1504 Optional Features:
1505   --disable-option-checking  ignore unrecognized --enable/--with options
1506   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1507   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1508   --enable-silent-rules   less verbose build output (undo: "make V=1")
1509   --disable-silent-rules  verbose build output (undo: "make V=0")
1510   --enable-dependency-tracking
1511                           do not reject slow dependency extractors
1512   --disable-dependency-tracking
1513                           speeds up one-time build
1514   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1515   --enable-plugins        Enable support for plugins
1516   --enable-relro          enable -z relro in ELF linker by default
1517   --enable-targets        alternative target configurations
1518   --enable-default-hash-style={sysv,gnu,both}
1519                           use this default hash style
1520   --disable-nls           do not use Native Language Support
1521   --enable-werror         treat compile warnings as errors
1522   --enable-build-warnings enable build-time compiler warnings
1523   --enable-threads[=ARG]  multi-threaded linking [ARG={auto,yes,no}]
1524   --enable-jansson        enable jansson [default=no]
1525   --enable-maintainer-mode
1526                           enable make rules and dependencies not useful (and
1527                           sometimes confusing) to the casual installer
1528
1529 Optional Packages:
1530   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1531   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1532   --with-sysroot=DIR    search for usr/lib et al within DIR
1533   --with-lib-path=dir1:dir2...  set default LIB_PATH
1534   --with-gold-ldflags=FLAGS  additional link flags for gold
1535   --with-gold-ldadd=LIBS     additional libraries for gold
1536   --with-system-zlib      use installed libz
1537   --with-zstd             support zstd compressed debug sections
1538                           (default=auto)
1539
1540 Some influential environment variables:
1541   CC          C compiler command
1542   CFLAGS      C compiler flags
1543   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1544               nonstandard directory <lib dir>
1545   LIBS        libraries to pass to the linker, e.g. -l<library>
1546   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1547               you have headers in a nonstandard directory <include dir>
1548   CPP         C preprocessor
1549   CXX         C++ compiler command
1550   CXXFLAGS    C++ compiler flags
1551   YACC        The `Yet Another Compiler Compiler' implementation to use.
1552               Defaults to the first program found out of: `bison -y', `byacc',
1553               `yacc'.
1554   YFLAGS      The list of arguments that will be passed by default to $YACC.
1555               This script will default YFLAGS to the empty string to avoid a
1556               default value of `-d' given by some make applications.
1557   PKG_CONFIG  path to pkg-config utility
1558   PKG_CONFIG_PATH
1559               directories to add to pkg-config's search path
1560   PKG_CONFIG_LIBDIR
1561               path overriding pkg-config's built-in search path
1562   ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1563   ZSTD_LIBS   linker flags for ZSTD, overriding pkg-config
1564   JANSSON_CFLAGS
1565               C compiler flags for JANSSON, overriding pkg-config
1566   JANSSON_LIBS
1567               linker flags for JANSSON, overriding pkg-config
1568   CXXCPP      C++ preprocessor
1569
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1572
1573 Report bugs to the package provider.
1574 _ACEOF
1575 ac_status=$?
1576 fi
1577
1578 if test "$ac_init_help" = "recursive"; then
1579   # If there are subdirs, report their specific --help.
1580   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581     test -d "$ac_dir" ||
1582       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583       continue
1584     ac_builddir=.
1585
1586 case "$ac_dir" in
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *)
1589   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590   # A ".." for each directory in $ac_dir_suffix.
1591   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592   case $ac_top_builddir_sub in
1593   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595   esac ;;
1596 esac
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1601
1602 case $srcdir in
1603   .)  # We are building in place.
1604     ac_srcdir=.
1605     ac_top_srcdir=$ac_top_builddir_sub
1606     ac_abs_top_srcdir=$ac_pwd ;;
1607   [\\/]* | ?:[\\/]* )  # Absolute name.
1608     ac_srcdir=$srcdir$ac_dir_suffix;
1609     ac_top_srcdir=$srcdir
1610     ac_abs_top_srcdir=$srcdir ;;
1611   *) # Relative name.
1612     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613     ac_top_srcdir=$ac_top_build_prefix$srcdir
1614     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 esac
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618     cd "$ac_dir" || { ac_status=$?; continue; }
1619     # Check for guested configure.
1620     if test -f "$ac_srcdir/configure.gnu"; then
1621       echo &&
1622       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623     elif test -f "$ac_srcdir/configure"; then
1624       echo &&
1625       $SHELL "$ac_srcdir/configure" --help=recursive
1626     else
1627       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628     fi || ac_status=$?
1629     cd "$ac_pwd" || { ac_status=$?; break; }
1630   done
1631 fi
1632
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1635   cat <<\_ACEOF
1636 gold configure 0.1
1637 generated by GNU Autoconf 2.69
1638
1639 Copyright (C) 2012 Free Software Foundation, Inc.
1640 This configure script is free software; the Free Software Foundation
1641 gives unlimited permission to copy, distribute and modify it.
1642 _ACEOF
1643   exit
1644 fi
1645
1646 ## ------------------------ ##
1647 ## Autoconf initialization. ##
1648 ## ------------------------ ##
1649
1650 # ac_fn_c_try_compile LINENO
1651 # --------------------------
1652 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_compile ()
1654 {
1655   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656   rm -f conftest.$ac_objext
1657   if { { ac_try="$ac_compile"
1658 case "(($ac_try" in
1659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660   *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664   (eval "$ac_compile") 2>conftest.err
1665   ac_status=$?
1666   if test -s conftest.err; then
1667     grep -v '^ *+' conftest.err >conftest.er1
1668     cat conftest.er1 >&5
1669     mv -f conftest.er1 conftest.err
1670   fi
1671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672   test $ac_status = 0; } && {
1673          test -z "$ac_c_werror_flag" ||
1674          test ! -s conftest.err
1675        } && test -s conftest.$ac_objext; then :
1676   ac_retval=0
1677 else
1678   $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681         ac_retval=1
1682 fi
1683   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684   as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_compile
1687
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_cpp ()
1692 {
1693   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694   if { { ac_try="$ac_cpp conftest.$ac_ext"
1695 case "(($ac_try" in
1696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697   *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702   ac_status=$?
1703   if test -s conftest.err; then
1704     grep -v '^ *+' conftest.err >conftest.er1
1705     cat conftest.er1 >&5
1706     mv -f conftest.er1 conftest.err
1707   fi
1708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709   test $ac_status = 0; } > conftest.i && {
1710          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711          test ! -s conftest.err
1712        }; then :
1713   ac_retval=0
1714 else
1715   $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718     ac_retval=1
1719 fi
1720   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721   as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_cpp
1724
1725 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1728 # the include files in INCLUDES and setting the cache variable VAR
1729 # accordingly.
1730 ac_fn_c_check_header_mongrel ()
1731 {
1732   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733   if eval \${$3+:} false; then :
1734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \${$3+:} false; then :
1737   $as_echo_n "(cached) " >&6
1738 fi
1739 eval ac_res=\$$3
1740                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742 else
1743   # Is the header compilable?
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1745 $as_echo_n "checking $2 usability... " >&6; }
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h.  */
1748 $4
1749 #include <$2>
1750 _ACEOF
1751 if ac_fn_c_try_compile "$LINENO"; then :
1752   ac_header_compiler=yes
1753 else
1754   ac_header_compiler=no
1755 fi
1756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1758 $as_echo "$ac_header_compiler" >&6; }
1759
1760 # Is the header present?
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1762 $as_echo_n "checking $2 presence... " >&6; }
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h.  */
1765 #include <$2>
1766 _ACEOF
1767 if ac_fn_c_try_cpp "$LINENO"; then :
1768   ac_header_preproc=yes
1769 else
1770   ac_header_preproc=no
1771 fi
1772 rm -f conftest.err conftest.i conftest.$ac_ext
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1774 $as_echo "$ac_header_preproc" >&6; }
1775
1776 # So?  What about this header?
1777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1778   yes:no: )
1779     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1780 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1781     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1782 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1783     ;;
1784   no:yes:* )
1785     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1786 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1787     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1788 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1789     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1790 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1791     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1792 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1793     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795     ;;
1796 esac
1797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800   $as_echo_n "(cached) " >&6
1801 else
1802   eval "$3=\$ac_header_compiler"
1803 fi
1804 eval ac_res=\$$3
1805                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806 $as_echo "$ac_res" >&6; }
1807 fi
1808   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809
1810 } # ac_fn_c_check_header_mongrel
1811
1812 # ac_fn_c_try_run LINENO
1813 # ----------------------
1814 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1815 # that executables *can* be run.
1816 ac_fn_c_try_run ()
1817 {
1818   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819   if { { ac_try="$ac_link"
1820 case "(($ac_try" in
1821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822   *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826   (eval "$ac_link") 2>&5
1827   ac_status=$?
1828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1830   { { case "(($ac_try" in
1831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832   *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836   (eval "$ac_try") 2>&5
1837   ac_status=$?
1838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839   test $ac_status = 0; }; }; then :
1840   ac_retval=0
1841 else
1842   $as_echo "$as_me: program exited with status $ac_status" >&5
1843        $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1845
1846        ac_retval=$ac_status
1847 fi
1848   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850   as_fn_set_status $ac_retval
1851
1852 } # ac_fn_c_try_run
1853
1854 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1855 # -------------------------------------------------------
1856 # Tests whether HEADER exists and can be compiled using the include files in
1857 # INCLUDES, setting the cache variable VAR accordingly.
1858 ac_fn_c_check_header_compile ()
1859 {
1860   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \${$3+:} false; then :
1864   $as_echo_n "(cached) " >&6
1865 else
1866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h.  */
1868 $4
1869 #include <$2>
1870 _ACEOF
1871 if ac_fn_c_try_compile "$LINENO"; then :
1872   eval "$3=yes"
1873 else
1874   eval "$3=no"
1875 fi
1876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 fi
1878 eval ac_res=\$$3
1879                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883 } # ac_fn_c_check_header_compile
1884
1885 # ac_fn_c_try_link LINENO
1886 # -----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded.
1888 ac_fn_c_try_link ()
1889 {
1890   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891   rm -f conftest.$ac_objext conftest$ac_exeext
1892   if { { ac_try="$ac_link"
1893 case "(($ac_try" in
1894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895   *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899   (eval "$ac_link") 2>conftest.err
1900   ac_status=$?
1901   if test -s conftest.err; then
1902     grep -v '^ *+' conftest.err >conftest.er1
1903     cat conftest.er1 >&5
1904     mv -f conftest.er1 conftest.err
1905   fi
1906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907   test $ac_status = 0; } && {
1908          test -z "$ac_c_werror_flag" ||
1909          test ! -s conftest.err
1910        } && test -s conftest$ac_exeext && {
1911          test "$cross_compiling" = yes ||
1912          test -x conftest$ac_exeext
1913        }; then :
1914   ac_retval=0
1915 else
1916   $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919         ac_retval=1
1920 fi
1921   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923   # interfere with the next link command; also delete a directory that is
1924   # left behind by Apple's compiler.  We do this before executing the actions.
1925   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927   as_fn_set_status $ac_retval
1928
1929 } # ac_fn_c_try_link
1930
1931 # ac_fn_cxx_try_compile LINENO
1932 # ----------------------------
1933 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_cxx_try_compile ()
1935 {
1936   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937   rm -f conftest.$ac_objext
1938   if { { ac_try="$ac_compile"
1939 case "(($ac_try" in
1940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941   *) ac_try_echo=$ac_try;;
1942 esac
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945   (eval "$ac_compile") 2>conftest.err
1946   ac_status=$?
1947   if test -s conftest.err; then
1948     grep -v '^ *+' conftest.err >conftest.er1
1949     cat conftest.er1 >&5
1950     mv -f conftest.er1 conftest.err
1951   fi
1952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953   test $ac_status = 0; } && {
1954          test -z "$ac_cxx_werror_flag" ||
1955          test ! -s conftest.err
1956        } && test -s conftest.$ac_objext; then :
1957   ac_retval=0
1958 else
1959   $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1961
1962         ac_retval=1
1963 fi
1964   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965   as_fn_set_status $ac_retval
1966
1967 } # ac_fn_cxx_try_compile
1968
1969 # ac_fn_c_check_func LINENO FUNC VAR
1970 # ----------------------------------
1971 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1972 ac_fn_c_check_func ()
1973 {
1974   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if eval \${$3+:} false; then :
1978   $as_echo_n "(cached) " >&6
1979 else
1980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h.  */
1982 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1984 #define $2 innocuous_$2
1985
1986 /* System header to define __stub macros and hopefully few prototypes,
1987     which can conflict with char $2 (); below.
1988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1989     <limits.h> exists even on freestanding compilers.  */
1990
1991 #ifdef __STDC__
1992 # include <limits.h>
1993 #else
1994 # include <assert.h>
1995 #endif
1996
1997 #undef $2
1998
1999 /* Override any GCC internal prototype to avoid an error.
2000    Use char because int might match the return type of a GCC
2001    builtin and then its argument prototype would still apply.  */
2002 #ifdef __cplusplus
2003 extern "C"
2004 #endif
2005 char $2 ();
2006 /* The GNU C library defines this for functions which it implements
2007     to always fail with ENOSYS.  Some functions are actually named
2008     something starting with __ and the normal name is an alias.  */
2009 #if defined __stub_$2 || defined __stub___$2
2010 choke me
2011 #endif
2012
2013 int
2014 main ()
2015 {
2016 return $2 ();
2017   ;
2018   return 0;
2019 }
2020 _ACEOF
2021 if ac_fn_c_try_link "$LINENO"; then :
2022   eval "$3=yes"
2023 else
2024   eval "$3=no"
2025 fi
2026 rm -f core conftest.err conftest.$ac_objext \
2027     conftest$ac_exeext conftest.$ac_ext
2028 fi
2029 eval ac_res=\$$3
2030                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2031 $as_echo "$ac_res" >&6; }
2032   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033
2034 } # ac_fn_c_check_func
2035
2036 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2037 # ---------------------------------------------
2038 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2039 # accordingly.
2040 ac_fn_c_check_decl ()
2041 {
2042   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043   as_decl_name=`echo $2|sed 's/ *(.*//'`
2044   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2046 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2047 if eval \${$3+:} false; then :
2048   $as_echo_n "(cached) " >&6
2049 else
2050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h.  */
2052 $4
2053 int
2054 main ()
2055 {
2056 #ifndef $as_decl_name
2057 #ifdef __cplusplus
2058   (void) $as_decl_use;
2059 #else
2060   (void) $as_decl_name;
2061 #endif
2062 #endif
2063
2064   ;
2065   return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069   eval "$3=yes"
2070 else
2071   eval "$3=no"
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 fi
2075 eval ac_res=\$$3
2076                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 $as_echo "$ac_res" >&6; }
2078   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079
2080 } # ac_fn_c_check_decl
2081
2082 # ac_fn_cxx_try_cpp LINENO
2083 # ------------------------
2084 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2085 ac_fn_cxx_try_cpp ()
2086 {
2087   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088   if { { ac_try="$ac_cpp conftest.$ac_ext"
2089 case "(($ac_try" in
2090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091   *) ac_try_echo=$ac_try;;
2092 esac
2093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2094 $as_echo "$ac_try_echo"; } >&5
2095   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2096   ac_status=$?
2097   if test -s conftest.err; then
2098     grep -v '^ *+' conftest.err >conftest.er1
2099     cat conftest.er1 >&5
2100     mv -f conftest.er1 conftest.err
2101   fi
2102   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2103   test $ac_status = 0; } > conftest.i && {
2104          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2105          test ! -s conftest.err
2106        }; then :
2107   ac_retval=0
2108 else
2109   $as_echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.$ac_ext >&5
2111
2112     ac_retval=1
2113 fi
2114   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115   as_fn_set_status $ac_retval
2116
2117 } # ac_fn_cxx_try_cpp
2118
2119 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2120 # ---------------------------------------------------------
2121 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2122 # the include files in INCLUDES and setting the cache variable VAR
2123 # accordingly.
2124 ac_fn_cxx_check_header_mongrel ()
2125 {
2126   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127   if eval \${$3+:} false; then :
2128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if eval \${$3+:} false; then :
2131   $as_echo_n "(cached) " >&6
2132 fi
2133 eval ac_res=\$$3
2134                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136 else
2137   # Is the header compilable?
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2139 $as_echo_n "checking $2 usability... " >&6; }
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h.  */
2142 $4
2143 #include <$2>
2144 _ACEOF
2145 if ac_fn_cxx_try_compile "$LINENO"; then :
2146   ac_header_compiler=yes
2147 else
2148   ac_header_compiler=no
2149 fi
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2152 $as_echo "$ac_header_compiler" >&6; }
2153
2154 # Is the header present?
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2156 $as_echo_n "checking $2 presence... " >&6; }
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h.  */
2159 #include <$2>
2160 _ACEOF
2161 if ac_fn_cxx_try_cpp "$LINENO"; then :
2162   ac_header_preproc=yes
2163 else
2164   ac_header_preproc=no
2165 fi
2166 rm -f conftest.err conftest.i conftest.$ac_ext
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2168 $as_echo "$ac_header_preproc" >&6; }
2169
2170 # So?  What about this header?
2171 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2172   yes:no: )
2173     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2174 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2175     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2176 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2177     ;;
2178   no:yes:* )
2179     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2180 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2181     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2182 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2183     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2184 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2185     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2186 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2187     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2188 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2189     ;;
2190 esac
2191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192 $as_echo_n "checking for $2... " >&6; }
2193 if eval \${$3+:} false; then :
2194   $as_echo_n "(cached) " >&6
2195 else
2196   eval "$3=\$ac_header_compiler"
2197 fi
2198 eval ac_res=\$$3
2199                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2201 fi
2202   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203
2204 } # ac_fn_cxx_check_header_mongrel
2205
2206 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2207 # -----------------------------------------------
2208 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2209 # accordingly.
2210 ac_fn_cxx_check_decl ()
2211 {
2212   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213   as_decl_name=`echo $2|sed 's/ *(.*//'`
2214   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2216 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2217 if eval \${$3+:} false; then :
2218   $as_echo_n "(cached) " >&6
2219 else
2220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h.  */
2222 $4
2223 int
2224 main ()
2225 {
2226 #ifndef $as_decl_name
2227 #ifdef __cplusplus
2228   (void) $as_decl_use;
2229 #else
2230   (void) $as_decl_name;
2231 #endif
2232 #endif
2233
2234   ;
2235   return 0;
2236 }
2237 _ACEOF
2238 if ac_fn_cxx_try_compile "$LINENO"; then :
2239   eval "$3=yes"
2240 else
2241   eval "$3=no"
2242 fi
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 fi
2245 eval ac_res=\$$3
2246                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249
2250 } # ac_fn_cxx_check_decl
2251
2252 # ac_fn_cxx_try_link LINENO
2253 # -------------------------
2254 # Try to link conftest.$ac_ext, and return whether this succeeded.
2255 ac_fn_cxx_try_link ()
2256 {
2257   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258   rm -f conftest.$ac_objext conftest$ac_exeext
2259   if { { ac_try="$ac_link"
2260 case "(($ac_try" in
2261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262   *) ac_try_echo=$ac_try;;
2263 esac
2264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265 $as_echo "$ac_try_echo"; } >&5
2266   (eval "$ac_link") 2>conftest.err
2267   ac_status=$?
2268   if test -s conftest.err; then
2269     grep -v '^ *+' conftest.err >conftest.er1
2270     cat conftest.er1 >&5
2271     mv -f conftest.er1 conftest.err
2272   fi
2273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2274   test $ac_status = 0; } && {
2275          test -z "$ac_cxx_werror_flag" ||
2276          test ! -s conftest.err
2277        } && test -s conftest$ac_exeext && {
2278          test "$cross_compiling" = yes ||
2279          test -x conftest$ac_exeext
2280        }; then :
2281   ac_retval=0
2282 else
2283   $as_echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2285
2286         ac_retval=1
2287 fi
2288   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2289   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2290   # interfere with the next link command; also delete a directory that is
2291   # left behind by Apple's compiler.  We do this before executing the actions.
2292   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2293   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294   as_fn_set_status $ac_retval
2295
2296 } # ac_fn_cxx_try_link
2297
2298 # ac_fn_cxx_check_func LINENO FUNC VAR
2299 # ------------------------------------
2300 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2301 ac_fn_cxx_check_func ()
2302 {
2303   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2305 $as_echo_n "checking for $2... " >&6; }
2306 if eval \${$3+:} false; then :
2307   $as_echo_n "(cached) " >&6
2308 else
2309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h.  */
2311 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2313 #define $2 innocuous_$2
2314
2315 /* System header to define __stub macros and hopefully few prototypes,
2316     which can conflict with char $2 (); below.
2317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2318     <limits.h> exists even on freestanding compilers.  */
2319
2320 #ifdef __STDC__
2321 # include <limits.h>
2322 #else
2323 # include <assert.h>
2324 #endif
2325
2326 #undef $2
2327
2328 /* Override any GCC internal prototype to avoid an error.
2329    Use char because int might match the return type of a GCC
2330    builtin and then its argument prototype would still apply.  */
2331 #ifdef __cplusplus
2332 extern "C"
2333 #endif
2334 char $2 ();
2335 /* The GNU C library defines this for functions which it implements
2336     to always fail with ENOSYS.  Some functions are actually named
2337     something starting with __ and the normal name is an alias.  */
2338 #if defined __stub_$2 || defined __stub___$2
2339 choke me
2340 #endif
2341
2342 int
2343 main ()
2344 {
2345 return $2 ();
2346   ;
2347   return 0;
2348 }
2349 _ACEOF
2350 if ac_fn_cxx_try_link "$LINENO"; then :
2351   eval "$3=yes"
2352 else
2353   eval "$3=no"
2354 fi
2355 rm -f core conftest.err conftest.$ac_objext \
2356     conftest$ac_exeext conftest.$ac_ext
2357 fi
2358 eval ac_res=\$$3
2359                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2360 $as_echo "$ac_res" >&6; }
2361   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2362
2363 } # ac_fn_cxx_check_func
2364 cat >config.log <<_ACEOF
2365 This file contains any messages produced by compilers while
2366 running configure, to aid debugging if configure makes a mistake.
2367
2368 It was created by gold $as_me 0.1, which was
2369 generated by GNU Autoconf 2.69.  Invocation command line was
2370
2371   $ $0 $@
2372
2373 _ACEOF
2374 exec 5>>config.log
2375 {
2376 cat <<_ASUNAME
2377 ## --------- ##
2378 ## Platform. ##
2379 ## --------- ##
2380
2381 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2382 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2383 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2384 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2385 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2386
2387 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2388 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2389
2390 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2391 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2392 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2393 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2394 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2395 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2396 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2397
2398 _ASUNAME
2399
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403   IFS=$as_save_IFS
2404   test -z "$as_dir" && as_dir=.
2405     $as_echo "PATH: $as_dir"
2406   done
2407 IFS=$as_save_IFS
2408
2409 } >&5
2410
2411 cat >&5 <<_ACEOF
2412
2413
2414 ## ----------- ##
2415 ## Core tests. ##
2416 ## ----------- ##
2417
2418 _ACEOF
2419
2420
2421 # Keep a trace of the command line.
2422 # Strip out --no-create and --no-recursion so they do not pile up.
2423 # Strip out --silent because we don't want to record it for future runs.
2424 # Also quote any args containing shell meta-characters.
2425 # Make two passes to allow for proper duplicate-argument suppression.
2426 ac_configure_args=
2427 ac_configure_args0=
2428 ac_configure_args1=
2429 ac_must_keep_next=false
2430 for ac_pass in 1 2
2431 do
2432   for ac_arg
2433   do
2434     case $ac_arg in
2435     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2436     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2437     | -silent | --silent | --silen | --sile | --sil)
2438       continue ;;
2439     *\'*)
2440       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2441     esac
2442     case $ac_pass in
2443     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2444     2)
2445       as_fn_append ac_configure_args1 " '$ac_arg'"
2446       if test $ac_must_keep_next = true; then
2447         ac_must_keep_next=false # Got value, back to normal.
2448       else
2449         case $ac_arg in
2450           *=* | --config-cache | -C | -disable-* | --disable-* \
2451           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2452           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2453           | -with-* | --with-* | -without-* | --without-* | --x)
2454             case "$ac_configure_args0 " in
2455               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2456             esac
2457             ;;
2458           -* ) ac_must_keep_next=true ;;
2459         esac
2460       fi
2461       as_fn_append ac_configure_args " '$ac_arg'"
2462       ;;
2463     esac
2464   done
2465 done
2466 { ac_configure_args0=; unset ac_configure_args0;}
2467 { ac_configure_args1=; unset ac_configure_args1;}
2468
2469 # When interrupted or exit'd, cleanup temporary files, and complete
2470 # config.log.  We remove comments because anyway the quotes in there
2471 # would cause problems or look ugly.
2472 # WARNING: Use '\'' to represent an apostrophe within the trap.
2473 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2474 trap 'exit_status=$?
2475   # Save into config.log some information that might help in debugging.
2476   {
2477     echo
2478
2479     $as_echo "## ---------------- ##
2480 ## Cache variables. ##
2481 ## ---------------- ##"
2482     echo
2483     # The following way of writing the cache mishandles newlines in values,
2484 (
2485   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2486     eval ac_val=\$$ac_var
2487     case $ac_val in #(
2488     *${as_nl}*)
2489       case $ac_var in #(
2490       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2491 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2492       esac
2493       case $ac_var in #(
2494       _ | IFS | as_nl) ;; #(
2495       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2496       *) { eval $ac_var=; unset $ac_var;} ;;
2497       esac ;;
2498     esac
2499   done
2500   (set) 2>&1 |
2501     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2502     *${as_nl}ac_space=\ *)
2503       sed -n \
2504         "s/'\''/'\''\\\\'\'''\''/g;
2505           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2506       ;; #(
2507     *)
2508       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2509       ;;
2510     esac |
2511     sort
2512 )
2513     echo
2514
2515     $as_echo "## ----------------- ##
2516 ## Output variables. ##
2517 ## ----------------- ##"
2518     echo
2519     for ac_var in $ac_subst_vars
2520     do
2521       eval ac_val=\$$ac_var
2522       case $ac_val in
2523       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2524       esac
2525       $as_echo "$ac_var='\''$ac_val'\''"
2526     done | sort
2527     echo
2528
2529     if test -n "$ac_subst_files"; then
2530       $as_echo "## ------------------- ##
2531 ## File substitutions. ##
2532 ## ------------------- ##"
2533       echo
2534       for ac_var in $ac_subst_files
2535       do
2536         eval ac_val=\$$ac_var
2537         case $ac_val in
2538         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2539         esac
2540         $as_echo "$ac_var='\''$ac_val'\''"
2541       done | sort
2542       echo
2543     fi
2544
2545     if test -s confdefs.h; then
2546       $as_echo "## ----------- ##
2547 ## confdefs.h. ##
2548 ## ----------- ##"
2549       echo
2550       cat confdefs.h
2551       echo
2552     fi
2553     test "$ac_signal" != 0 &&
2554       $as_echo "$as_me: caught signal $ac_signal"
2555     $as_echo "$as_me: exit $exit_status"
2556   } >&5
2557   rm -f core *.core core.conftest.* &&
2558     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2559     exit $exit_status
2560 ' 0
2561 for ac_signal in 1 2 13 15; do
2562   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2563 done
2564 ac_signal=0
2565
2566 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2567 rm -f -r conftest* confdefs.h
2568
2569 $as_echo "/* confdefs.h */" > confdefs.h
2570
2571 # Predefined preprocessor variables.
2572
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE_NAME "$PACKAGE_NAME"
2575 _ACEOF
2576
2577 cat >>confdefs.h <<_ACEOF
2578 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2579 _ACEOF
2580
2581 cat >>confdefs.h <<_ACEOF
2582 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2583 _ACEOF
2584
2585 cat >>confdefs.h <<_ACEOF
2586 #define PACKAGE_STRING "$PACKAGE_STRING"
2587 _ACEOF
2588
2589 cat >>confdefs.h <<_ACEOF
2590 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2591 _ACEOF
2592
2593 cat >>confdefs.h <<_ACEOF
2594 #define PACKAGE_URL "$PACKAGE_URL"
2595 _ACEOF
2596
2597
2598 # Let the site file select an alternate cache file if it wants to.
2599 # Prefer an explicitly selected file to automatically selected ones.
2600 ac_site_file1=NONE
2601 ac_site_file2=NONE
2602 if test -n "$CONFIG_SITE"; then
2603   # We do not want a PATH search for config.site.
2604   case $CONFIG_SITE in #((
2605     -*)  ac_site_file1=./$CONFIG_SITE;;
2606     */*) ac_site_file1=$CONFIG_SITE;;
2607     *)   ac_site_file1=./$CONFIG_SITE;;
2608   esac
2609 elif test "x$prefix" != xNONE; then
2610   ac_site_file1=$prefix/share/config.site
2611   ac_site_file2=$prefix/etc/config.site
2612 else
2613   ac_site_file1=$ac_default_prefix/share/config.site
2614   ac_site_file2=$ac_default_prefix/etc/config.site
2615 fi
2616 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2617 do
2618   test "x$ac_site_file" = xNONE && continue
2619   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2620     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2621 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2622     sed 's/^/| /' "$ac_site_file" >&5
2623     . "$ac_site_file" \
2624       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2626 as_fn_error $? "failed to load site script $ac_site_file
2627 See \`config.log' for more details" "$LINENO" 5; }
2628   fi
2629 done
2630
2631 if test -r "$cache_file"; then
2632   # Some versions of bash will fail to source /dev/null (special files
2633   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2634   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2635     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2636 $as_echo "$as_me: loading cache $cache_file" >&6;}
2637     case $cache_file in
2638       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2639       *)                      . "./$cache_file";;
2640     esac
2641   fi
2642 else
2643   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2644 $as_echo "$as_me: creating cache $cache_file" >&6;}
2645   >$cache_file
2646 fi
2647
2648 # Check that the precious variables saved in the cache have kept the same
2649 # value.
2650 ac_cache_corrupted=false
2651 for ac_var in $ac_precious_vars; do
2652   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2653   eval ac_new_set=\$ac_env_${ac_var}_set
2654   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2655   eval ac_new_val=\$ac_env_${ac_var}_value
2656   case $ac_old_set,$ac_new_set in
2657     set,)
2658       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2659 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2660       ac_cache_corrupted=: ;;
2661     ,set)
2662       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2663 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2664       ac_cache_corrupted=: ;;
2665     ,);;
2666     *)
2667       if test "x$ac_old_val" != "x$ac_new_val"; then
2668         # differences in whitespace do not lead to failure.
2669         ac_old_val_w=`echo x $ac_old_val`
2670         ac_new_val_w=`echo x $ac_new_val`
2671         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2672           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2673 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2674           ac_cache_corrupted=:
2675         else
2676           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2677 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2678           eval $ac_var=\$ac_old_val
2679         fi
2680         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2681 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2682         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2683 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2684       fi;;
2685   esac
2686   # Pass precious variables to config.status.
2687   if test "$ac_new_set" = set; then
2688     case $ac_new_val in
2689     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2690     *) ac_arg=$ac_var=$ac_new_val ;;
2691     esac
2692     case " $ac_configure_args " in
2693       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2694       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2695     esac
2696   fi
2697 done
2698 if $ac_cache_corrupted; then
2699   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2702 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2703   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2704 fi
2705 ## -------------------- ##
2706 ## Main body of script. ##
2707 ## -------------------- ##
2708
2709 ac_ext=c
2710 ac_cpp='$CPP $CPPFLAGS'
2711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714
2715
2716
2717
2718
2719
2720
2721 ac_aux_dir=
2722 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2723   if test -f "$ac_dir/install-sh"; then
2724     ac_aux_dir=$ac_dir
2725     ac_install_sh="$ac_aux_dir/install-sh -c"
2726     break
2727   elif test -f "$ac_dir/install.sh"; then
2728     ac_aux_dir=$ac_dir
2729     ac_install_sh="$ac_aux_dir/install.sh -c"
2730     break
2731   elif test -f "$ac_dir/shtool"; then
2732     ac_aux_dir=$ac_dir
2733     ac_install_sh="$ac_aux_dir/shtool install -c"
2734     break
2735   fi
2736 done
2737 if test -z "$ac_aux_dir"; then
2738   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2739 fi
2740
2741 # These three variables are undocumented and unsupported,
2742 # and are intended to be withdrawn in a future Autoconf release.
2743 # They can cause serious problems if a builder's source tree is in a directory
2744 # whose full name contains unusual characters.
2745 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2746 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2747 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2748
2749
2750 # Make sure we can run config.sub.
2751 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2752   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2753
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2755 $as_echo_n "checking build system type... " >&6; }
2756 if ${ac_cv_build+:} false; then :
2757   $as_echo_n "(cached) " >&6
2758 else
2759   ac_build_alias=$build_alias
2760 test "x$ac_build_alias" = x &&
2761   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2762 test "x$ac_build_alias" = x &&
2763   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2764 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2765   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2766
2767 fi
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2769 $as_echo "$ac_cv_build" >&6; }
2770 case $ac_cv_build in
2771 *-*-*) ;;
2772 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2773 esac
2774 build=$ac_cv_build
2775 ac_save_IFS=$IFS; IFS='-'
2776 set x $ac_cv_build
2777 shift
2778 build_cpu=$1
2779 build_vendor=$2
2780 shift; shift
2781 # Remember, the first character of IFS is used to create $*,
2782 # except with old shells:
2783 build_os=$*
2784 IFS=$ac_save_IFS
2785 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2786
2787
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2789 $as_echo_n "checking host system type... " >&6; }
2790 if ${ac_cv_host+:} false; then :
2791   $as_echo_n "(cached) " >&6
2792 else
2793   if test "x$host_alias" = x; then
2794   ac_cv_host=$ac_cv_build
2795 else
2796   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2797     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2798 fi
2799
2800 fi
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2802 $as_echo "$ac_cv_host" >&6; }
2803 case $ac_cv_host in
2804 *-*-*) ;;
2805 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2806 esac
2807 host=$ac_cv_host
2808 ac_save_IFS=$IFS; IFS='-'
2809 set x $ac_cv_host
2810 shift
2811 host_cpu=$1
2812 host_vendor=$2
2813 shift; shift
2814 # Remember, the first character of IFS is used to create $*,
2815 # except with old shells:
2816 host_os=$*
2817 IFS=$ac_save_IFS
2818 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2819
2820
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2822 $as_echo_n "checking target system type... " >&6; }
2823 if ${ac_cv_target+:} false; then :
2824   $as_echo_n "(cached) " >&6
2825 else
2826   if test "x$target_alias" = x; then
2827   ac_cv_target=$ac_cv_host
2828 else
2829   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2830     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2831 fi
2832
2833 fi
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2835 $as_echo "$ac_cv_target" >&6; }
2836 case $ac_cv_target in
2837 *-*-*) ;;
2838 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2839 esac
2840 target=$ac_cv_target
2841 ac_save_IFS=$IFS; IFS='-'
2842 set x $ac_cv_target
2843 shift
2844 target_cpu=$1
2845 target_vendor=$2
2846 shift; shift
2847 # Remember, the first character of IFS is used to create $*,
2848 # except with old shells:
2849 target_os=$*
2850 IFS=$ac_save_IFS
2851 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2852
2853
2854 # The aliases save the names the user supplied, while $host etc.
2855 # will get canonicalized.
2856 test -n "$target_alias" &&
2857   test "$program_prefix$program_suffix$program_transform_name" = \
2858     NONENONEs,x,x, &&
2859   program_prefix=${target_alias}-
2860
2861 am__api_version='1.15'
2862
2863 # Find a good install program.  We prefer a C program (faster),
2864 # so one script is as good as another.  But avoid the broken or
2865 # incompatible versions:
2866 # SysV /etc/install, /usr/sbin/install
2867 # SunOS /usr/etc/install
2868 # IRIX /sbin/install
2869 # AIX /bin/install
2870 # AmigaOS /C/install, which installs bootblocks on floppy discs
2871 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2872 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2873 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2874 # OS/2's system install, which has a completely different semantic
2875 # ./install, which can be erroneously created by make from ./install.sh.
2876 # Reject install programs that cannot install multiple files.
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2878 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2879 if test -z "$INSTALL"; then
2880 if ${ac_cv_path_install+:} false; then :
2881   $as_echo_n "(cached) " >&6
2882 else
2883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886   IFS=$as_save_IFS
2887   test -z "$as_dir" && as_dir=.
2888     # Account for people who put trailing slashes in PATH elements.
2889 case $as_dir/ in #((
2890   ./ | .// | /[cC]/* | \
2891   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2892   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2893   /usr/ucb/* ) ;;
2894   *)
2895     # OSF1 and SCO ODT 3.0 have their own names for install.
2896     # Don't use installbsd from OSF since it installs stuff as root
2897     # by default.
2898     for ac_prog in ginstall scoinst install; do
2899       for ac_exec_ext in '' $ac_executable_extensions; do
2900         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2901           if test $ac_prog = install &&
2902             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2903             # AIX install.  It has an incompatible calling convention.
2904             :
2905           elif test $ac_prog = install &&
2906             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2907             # program-specific install script used by HP pwplus--don't use.
2908             :
2909           else
2910             rm -rf conftest.one conftest.two conftest.dir
2911             echo one > conftest.one
2912             echo two > conftest.two
2913             mkdir conftest.dir
2914             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2915               test -s conftest.one && test -s conftest.two &&
2916               test -s conftest.dir/conftest.one &&
2917               test -s conftest.dir/conftest.two
2918             then
2919               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2920               break 3
2921             fi
2922           fi
2923         fi
2924       done
2925     done
2926     ;;
2927 esac
2928
2929   done
2930 IFS=$as_save_IFS
2931
2932 rm -rf conftest.one conftest.two conftest.dir
2933
2934 fi
2935   if test "${ac_cv_path_install+set}" = set; then
2936     INSTALL=$ac_cv_path_install
2937   else
2938     # As a last resort, use the slow shell script.  Don't cache a
2939     # value for INSTALL within a source directory, because that will
2940     # break other packages using the cache if that directory is
2941     # removed, or if the value is a relative name.
2942     INSTALL=$ac_install_sh
2943   fi
2944 fi
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2946 $as_echo "$INSTALL" >&6; }
2947
2948 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2949 # It thinks the first close brace ends the variable substitution.
2950 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2951
2952 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2953
2954 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2955
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2957 $as_echo_n "checking whether build environment is sane... " >&6; }
2958 # Reject unsafe characters in $srcdir or the absolute working directory
2959 # name.  Accept space and tab only in the latter.
2960 am_lf='
2961 '
2962 case `pwd` in
2963   *[\\\"\#\$\&\'\`$am_lf]*)
2964     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2965 esac
2966 case $srcdir in
2967   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2968     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2969 esac
2970
2971 # Do 'set' in a subshell so we don't clobber the current shell's
2972 # arguments.  Must try -L first in case configure is actually a
2973 # symlink; some systems play weird games with the mod time of symlinks
2974 # (eg FreeBSD returns the mod time of the symlink's containing
2975 # directory).
2976 if (
2977    am_has_slept=no
2978    for am_try in 1 2; do
2979      echo "timestamp, slept: $am_has_slept" > conftest.file
2980      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2981      if test "$*" = "X"; then
2982         # -L didn't work.
2983         set X `ls -t "$srcdir/configure" conftest.file`
2984      fi
2985      if test "$*" != "X $srcdir/configure conftest.file" \
2986         && test "$*" != "X conftest.file $srcdir/configure"; then
2987
2988         # If neither matched, then we have a broken ls.  This can happen
2989         # if, for instance, CONFIG_SHELL is bash and it inherits a
2990         # broken ls alias from the environment.  This has actually
2991         # happened.  Such a system could not be considered "sane".
2992         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2993   alias in your environment" "$LINENO" 5
2994      fi
2995      if test "$2" = conftest.file || test $am_try -eq 2; then
2996        break
2997      fi
2998      # Just in case.
2999      sleep 1
3000      am_has_slept=yes
3001    done
3002    test "$2" = conftest.file
3003    )
3004 then
3005    # Ok.
3006    :
3007 else
3008    as_fn_error $? "newly created file is older than distributed files!
3009 Check your system clock" "$LINENO" 5
3010 fi
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3012 $as_echo "yes" >&6; }
3013 # If we didn't sleep, we still need to ensure time stamps of config.status and
3014 # generated files are strictly newer.
3015 am_sleep_pid=
3016 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3017   ( sleep 1 ) &
3018   am_sleep_pid=$!
3019 fi
3020
3021 rm -f conftest.file
3022
3023 test "$program_prefix" != NONE &&
3024   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3025 # Use a double $ so make ignores it.
3026 test "$program_suffix" != NONE &&
3027   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3028 # Double any \ or $.
3029 # By default was `s,x,x', remove it if useless.
3030 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3031 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3032
3033 # Expand $ac_aux_dir to an absolute path.
3034 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3035
3036 if test x"${MISSING+set}" != xset; then
3037   case $am_aux_dir in
3038   *\ * | *\     *)
3039     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3040   *)
3041     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3042   esac
3043 fi
3044 # Use eval to expand $SHELL
3045 if eval "$MISSING --is-lightweight"; then
3046   am_missing_run="$MISSING "
3047 else
3048   am_missing_run=
3049   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3050 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3051 fi
3052
3053 if test x"${install_sh+set}" != xset; then
3054   case $am_aux_dir in
3055   *\ * | *\     *)
3056     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3057   *)
3058     install_sh="\${SHELL} $am_aux_dir/install-sh"
3059   esac
3060 fi
3061
3062 # Installed binaries are usually stripped using 'strip' when the user
3063 # run "make install-strip".  However 'strip' might not be the right
3064 # tool to use in cross-compilation environments, therefore Automake
3065 # will honor the 'STRIP' environment variable to overrule this program.
3066 if test "$cross_compiling" != no; then
3067   if test -n "$ac_tool_prefix"; then
3068   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3069 set dummy ${ac_tool_prefix}strip; ac_word=$2
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071 $as_echo_n "checking for $ac_word... " >&6; }
3072 if ${ac_cv_prog_STRIP+:} false; then :
3073   $as_echo_n "(cached) " >&6
3074 else
3075   if test -n "$STRIP"; then
3076   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3077 else
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3080 do
3081   IFS=$as_save_IFS
3082   test -z "$as_dir" && as_dir=.
3083     for ac_exec_ext in '' $ac_executable_extensions; do
3084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3085     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087     break 2
3088   fi
3089 done
3090   done
3091 IFS=$as_save_IFS
3092
3093 fi
3094 fi
3095 STRIP=$ac_cv_prog_STRIP
3096 if test -n "$STRIP"; then
3097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3098 $as_echo "$STRIP" >&6; }
3099 else
3100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101 $as_echo "no" >&6; }
3102 fi
3103
3104
3105 fi
3106 if test -z "$ac_cv_prog_STRIP"; then
3107   ac_ct_STRIP=$STRIP
3108   # Extract the first word of "strip", so it can be a program name with args.
3109 set dummy strip; ac_word=$2
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111 $as_echo_n "checking for $ac_word... " >&6; }
3112 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3113   $as_echo_n "(cached) " >&6
3114 else
3115   if test -n "$ac_ct_STRIP"; then
3116   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3120 do
3121   IFS=$as_save_IFS
3122   test -z "$as_dir" && as_dir=.
3123     for ac_exec_ext in '' $ac_executable_extensions; do
3124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125     ac_cv_prog_ac_ct_STRIP="strip"
3126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127     break 2
3128   fi
3129 done
3130   done
3131 IFS=$as_save_IFS
3132
3133 fi
3134 fi
3135 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3136 if test -n "$ac_ct_STRIP"; then
3137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3138 $as_echo "$ac_ct_STRIP" >&6; }
3139 else
3140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3142 fi
3143
3144   if test "x$ac_ct_STRIP" = x; then
3145     STRIP=":"
3146   else
3147     case $cross_compiling:$ac_tool_warned in
3148 yes:)
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3151 ac_tool_warned=yes ;;
3152 esac
3153     STRIP=$ac_ct_STRIP
3154   fi
3155 else
3156   STRIP="$ac_cv_prog_STRIP"
3157 fi
3158
3159 fi
3160 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3161
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3163 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3164 if test -z "$MKDIR_P"; then
3165   if ${ac_cv_path_mkdir+:} false; then :
3166   $as_echo_n "(cached) " >&6
3167 else
3168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3170 do
3171   IFS=$as_save_IFS
3172   test -z "$as_dir" && as_dir=.
3173     for ac_prog in mkdir gmkdir; do
3174          for ac_exec_ext in '' $ac_executable_extensions; do
3175            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3176            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3177              'mkdir (GNU coreutils) '* | \
3178              'mkdir (coreutils) '* | \
3179              'mkdir (fileutils) '4.1*)
3180                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3181                break 3;;
3182            esac
3183          done
3184        done
3185   done
3186 IFS=$as_save_IFS
3187
3188 fi
3189
3190   test -d ./--version && rmdir ./--version
3191   if test "${ac_cv_path_mkdir+set}" = set; then
3192     MKDIR_P="$ac_cv_path_mkdir -p"
3193   else
3194     # As a last resort, use the slow shell script.  Don't cache a
3195     # value for MKDIR_P within a source directory, because that will
3196     # break other packages using the cache if that directory is
3197     # removed, or if the value is a relative name.
3198     MKDIR_P="$ac_install_sh -d"
3199   fi
3200 fi
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3202 $as_echo "$MKDIR_P" >&6; }
3203
3204 for ac_prog in gawk mawk nawk awk
3205 do
3206   # Extract the first word of "$ac_prog", so it can be a program name with args.
3207 set dummy $ac_prog; ac_word=$2
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if ${ac_cv_prog_AWK+:} false; then :
3211   $as_echo_n "(cached) " >&6
3212 else
3213   if test -n "$AWK"; then
3214   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3218 do
3219   IFS=$as_save_IFS
3220   test -z "$as_dir" && as_dir=.
3221     for ac_exec_ext in '' $ac_executable_extensions; do
3222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223     ac_cv_prog_AWK="$ac_prog"
3224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225     break 2
3226   fi
3227 done
3228   done
3229 IFS=$as_save_IFS
3230
3231 fi
3232 fi
3233 AWK=$ac_cv_prog_AWK
3234 if test -n "$AWK"; then
3235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3236 $as_echo "$AWK" >&6; }
3237 else
3238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3240 fi
3241
3242
3243   test -n "$AWK" && break
3244 done
3245
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3247 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3248 set x ${MAKE-make}
3249 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3250 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3251   $as_echo_n "(cached) " >&6
3252 else
3253   cat >conftest.make <<\_ACEOF
3254 SHELL = /bin/sh
3255 all:
3256         @echo '@@@%%%=$(MAKE)=@@@%%%'
3257 _ACEOF
3258 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3259 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3260   *@@@%%%=?*=@@@%%%*)
3261     eval ac_cv_prog_make_${ac_make}_set=yes;;
3262   *)
3263     eval ac_cv_prog_make_${ac_make}_set=no;;
3264 esac
3265 rm -f conftest.make
3266 fi
3267 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3269 $as_echo "yes" >&6; }
3270   SET_MAKE=
3271 else
3272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274   SET_MAKE="MAKE=${MAKE-make}"
3275 fi
3276
3277 rm -rf .tst 2>/dev/null
3278 mkdir .tst 2>/dev/null
3279 if test -d .tst; then
3280   am__leading_dot=.
3281 else
3282   am__leading_dot=_
3283 fi
3284 rmdir .tst 2>/dev/null
3285
3286 # Check whether --enable-silent-rules was given.
3287 if test "${enable_silent_rules+set}" = set; then :
3288   enableval=$enable_silent_rules;
3289 fi
3290
3291 case $enable_silent_rules in # (((
3292   yes) AM_DEFAULT_VERBOSITY=0;;
3293    no) AM_DEFAULT_VERBOSITY=1;;
3294     *) AM_DEFAULT_VERBOSITY=1;;
3295 esac
3296 am_make=${MAKE-make}
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3298 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3299 if ${am_cv_make_support_nested_variables+:} false; then :
3300   $as_echo_n "(cached) " >&6
3301 else
3302   if $as_echo 'TRUE=$(BAR$(V))
3303 BAR0=false
3304 BAR1=true
3305 V=1
3306 am__doit:
3307         @$(TRUE)
3308 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3309   am_cv_make_support_nested_variables=yes
3310 else
3311   am_cv_make_support_nested_variables=no
3312 fi
3313 fi
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3315 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3316 if test $am_cv_make_support_nested_variables = yes; then
3317     AM_V='$(V)'
3318   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3319 else
3320   AM_V=$AM_DEFAULT_VERBOSITY
3321   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3322 fi
3323 AM_BACKSLASH='\'
3324
3325 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3326   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3327   # is not polluted with repeated "-I."
3328   am__isrc=' -I$(srcdir)'
3329   # test to see if srcdir already configured
3330   if test -f $srcdir/config.status; then
3331     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3332   fi
3333 fi
3334
3335 # test whether we have cygpath
3336 if test -z "$CYGPATH_W"; then
3337   if (cygpath --version) >/dev/null 2>/dev/null; then
3338     CYGPATH_W='cygpath -w'
3339   else
3340     CYGPATH_W=echo
3341   fi
3342 fi
3343
3344
3345 # Define the identity of the package.
3346  PACKAGE='gold'
3347  VERSION='0.1'
3348
3349
3350 cat >>confdefs.h <<_ACEOF
3351 #define PACKAGE "$PACKAGE"
3352 _ACEOF
3353
3354
3355 cat >>confdefs.h <<_ACEOF
3356 #define VERSION "$VERSION"
3357 _ACEOF
3358
3359 # Some tools Automake needs.
3360
3361 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3362
3363
3364 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3365
3366
3367 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3368
3369
3370 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3371
3372
3373 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3374
3375 # For better backward compatibility.  To be removed once Automake 1.9.x
3376 # dies out for good.  For more background, see:
3377 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3378 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3379 mkdir_p='$(MKDIR_P)'
3380
3381 # We need awk for the "check" target (and possibly the TAP driver).  The
3382 # system "awk" is bad on some platforms.
3383 # Always define AMTAR for backward compatibility.  Yes, it's still used
3384 # in the wild :-(  We should find a proper way to deprecate it ...
3385 AMTAR='$${TAR-tar}'
3386
3387
3388 # We'll loop over all known methods to create a tar archive until one works.
3389 _am_tools='gnutar  pax cpio none'
3390
3391 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3392
3393
3394
3395
3396
3397
3398 # POSIX will say in a future version that running "rm -f" with no argument
3399 # is OK; and we want to be able to make that assumption in our Makefile
3400 # recipes.  So use an aggressive probe to check that the usage we want is
3401 # actually supported "in the wild" to an acceptable degree.
3402 # See automake bug#10828.
3403 # To make any issue more visible, cause the running configure to be aborted
3404 # by default if the 'rm' program in use doesn't match our expectations; the
3405 # user can still override this though.
3406 if rm -f && rm -fr && rm -rf; then : OK; else
3407   cat >&2 <<'END'
3408 Oops!
3409
3410 Your 'rm' program seems unable to run without file operands specified
3411 on the command line, even when the '-f' option is present.  This is contrary
3412 to the behaviour of most rm programs out there, and not conforming with
3413 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3414
3415 Please tell [email protected] about your system, including the value
3416 of your $PATH and any error possibly output before this message.  This
3417 can help us improve future automake versions.
3418
3419 END
3420   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3421     echo 'Configuration will proceed anyway, since you have set the' >&2
3422     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3423     echo >&2
3424   else
3425     cat >&2 <<'END'
3426 Aborting the configuration process, to ensure you take notice of the issue.
3427
3428 You can download and install GNU coreutils to get an 'rm' implementation
3429 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3430
3431 If you want to complete the configuration process using your problematic
3432 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3433 to "yes", and re-run configure.
3434
3435 END
3436     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3437   fi
3438 fi
3439
3440 # Check whether --enable-silent-rules was given.
3441 if test "${enable_silent_rules+set}" = set; then :
3442   enableval=$enable_silent_rules;
3443 fi
3444
3445 case $enable_silent_rules in # (((
3446   yes) AM_DEFAULT_VERBOSITY=0;;
3447    no) AM_DEFAULT_VERBOSITY=1;;
3448     *) AM_DEFAULT_VERBOSITY=0;;
3449 esac
3450 am_make=${MAKE-make}
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3452 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3453 if ${am_cv_make_support_nested_variables+:} false; then :
3454   $as_echo_n "(cached) " >&6
3455 else
3456   if $as_echo 'TRUE=$(BAR$(V))
3457 BAR0=false
3458 BAR1=true
3459 V=1
3460 am__doit:
3461         @$(TRUE)
3462 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3463   am_cv_make_support_nested_variables=yes
3464 else
3465   am_cv_make_support_nested_variables=no
3466 fi
3467 fi
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3469 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3470 if test $am_cv_make_support_nested_variables = yes; then
3471     AM_V='$(V)'
3472   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3473 else
3474   AM_V=$AM_DEFAULT_VERBOSITY
3475   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3476 fi
3477 AM_BACKSLASH='\'
3478
3479
3480 ac_config_headers="$ac_config_headers config.h:config.in"
3481
3482
3483 DEPDIR="${am__leading_dot}deps"
3484
3485 ac_config_commands="$ac_config_commands depfiles"
3486
3487
3488 am_make=${MAKE-make}
3489 cat > confinc << 'END'
3490 am__doit:
3491         @echo this is the am__doit target
3492 .PHONY: am__doit
3493 END
3494 # If we don't find an include directive, just comment out the code.
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3496 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3497 am__include="#"
3498 am__quote=
3499 _am_result=none
3500 # First try GNU make style include.
3501 echo "include confinc" > confmf
3502 # Ignore all kinds of additional output from 'make'.
3503 case `$am_make -s -f confmf 2> /dev/null` in #(
3504 *the\ am__doit\ target*)
3505   am__include=include
3506   am__quote=
3507   _am_result=GNU
3508   ;;
3509 esac
3510 # Now try BSD make style include.
3511 if test "$am__include" = "#"; then
3512    echo '.include "confinc"' > confmf
3513    case `$am_make -s -f confmf 2> /dev/null` in #(
3514    *the\ am__doit\ target*)
3515      am__include=.include
3516      am__quote="\""
3517      _am_result=BSD
3518      ;;
3519    esac
3520 fi
3521
3522
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3524 $as_echo "$_am_result" >&6; }
3525 rm -f confinc confmf
3526
3527 # Check whether --enable-dependency-tracking was given.
3528 if test "${enable_dependency_tracking+set}" = set; then :
3529   enableval=$enable_dependency_tracking;
3530 fi
3531
3532 if test "x$enable_dependency_tracking" != xno; then
3533   am_depcomp="$ac_aux_dir/depcomp"
3534   AMDEPBACKSLASH='\'
3535   am__nodep='_no'
3536 fi
3537  if test "x$enable_dependency_tracking" != xno; then
3538   AMDEP_TRUE=
3539   AMDEP_FALSE='#'
3540 else
3541   AMDEP_TRUE='#'
3542   AMDEP_FALSE=
3543 fi
3544
3545
3546 ac_ext=c
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551 if test -n "$ac_tool_prefix"; then
3552   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3553 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if ${ac_cv_prog_CC+:} false; then :
3557   $as_echo_n "(cached) " >&6
3558 else
3559   if test -n "$CC"; then
3560   ac_cv_prog_CC="$CC" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3564 do
3565   IFS=$as_save_IFS
3566   test -z "$as_dir" && as_dir=.
3567     for ac_exec_ext in '' $ac_executable_extensions; do
3568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571     break 2
3572   fi
3573 done
3574   done
3575 IFS=$as_save_IFS
3576
3577 fi
3578 fi
3579 CC=$ac_cv_prog_CC
3580 if test -n "$CC"; then
3581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582 $as_echo "$CC" >&6; }
3583 else
3584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3586 fi
3587
3588
3589 fi
3590 if test -z "$ac_cv_prog_CC"; then
3591   ac_ct_CC=$CC
3592   # Extract the first word of "gcc", so it can be a program name with args.
3593 set dummy gcc; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3597   $as_echo_n "(cached) " >&6
3598 else
3599   if test -n "$ac_ct_CC"; then
3600   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3601 else
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3604 do
3605   IFS=$as_save_IFS
3606   test -z "$as_dir" && as_dir=.
3607     for ac_exec_ext in '' $ac_executable_extensions; do
3608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609     ac_cv_prog_ac_ct_CC="gcc"
3610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611     break 2
3612   fi
3613 done
3614   done
3615 IFS=$as_save_IFS
3616
3617 fi
3618 fi
3619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3620 if test -n "$ac_ct_CC"; then
3621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3622 $as_echo "$ac_ct_CC" >&6; }
3623 else
3624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3626 fi
3627
3628   if test "x$ac_ct_CC" = x; then
3629     CC=""
3630   else
3631     case $cross_compiling:$ac_tool_warned in
3632 yes:)
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3635 ac_tool_warned=yes ;;
3636 esac
3637     CC=$ac_ct_CC
3638   fi
3639 else
3640   CC="$ac_cv_prog_CC"
3641 fi
3642
3643 if test -z "$CC"; then
3644           if test -n "$ac_tool_prefix"; then
3645     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3646 set dummy ${ac_tool_prefix}cc; ac_word=$2
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 $as_echo_n "checking for $ac_word... " >&6; }
3649 if ${ac_cv_prog_CC+:} false; then :
3650   $as_echo_n "(cached) " >&6
3651 else
3652   if test -n "$CC"; then
3653   ac_cv_prog_CC="$CC" # Let the user override the test.
3654 else
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3657 do
3658   IFS=$as_save_IFS
3659   test -z "$as_dir" && as_dir=.
3660     for ac_exec_ext in '' $ac_executable_extensions; do
3661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3662     ac_cv_prog_CC="${ac_tool_prefix}cc"
3663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664     break 2
3665   fi
3666 done
3667   done
3668 IFS=$as_save_IFS
3669
3670 fi
3671 fi
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3676 else
3677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3679 fi
3680
3681
3682   fi
3683 fi
3684 if test -z "$CC"; then
3685   # Extract the first word of "cc", so it can be a program name with args.
3686 set dummy cc; ac_word=$2
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if ${ac_cv_prog_CC+:} false; then :
3690   $as_echo_n "(cached) " >&6
3691 else
3692   if test -n "$CC"; then
3693   ac_cv_prog_CC="$CC" # Let the user override the test.
3694 else
3695   ac_prog_rejected=no
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3698 do
3699   IFS=$as_save_IFS
3700   test -z "$as_dir" && as_dir=.
3701     for ac_exec_ext in '' $ac_executable_extensions; do
3702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3703     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3704        ac_prog_rejected=yes
3705        continue
3706      fi
3707     ac_cv_prog_CC="cc"
3708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709     break 2
3710   fi
3711 done
3712   done
3713 IFS=$as_save_IFS
3714
3715 if test $ac_prog_rejected = yes; then
3716   # We found a bogon in the path, so make sure we never use it.
3717   set dummy $ac_cv_prog_CC
3718   shift
3719   if test $# != 0; then
3720     # We chose a different compiler from the bogus one.
3721     # However, it has the same basename, so the bogon will be chosen
3722     # first if we set CC to just the basename; use the full file name.
3723     shift
3724     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3725   fi
3726 fi
3727 fi
3728 fi
3729 CC=$ac_cv_prog_CC
3730 if test -n "$CC"; then
3731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3732 $as_echo "$CC" >&6; }
3733 else
3734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735 $as_echo "no" >&6; }
3736 fi
3737
3738
3739 fi
3740 if test -z "$CC"; then
3741   if test -n "$ac_tool_prefix"; then
3742   for ac_prog in cl.exe
3743   do
3744     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if ${ac_cv_prog_CC+:} false; then :
3749   $as_echo_n "(cached) " >&6
3750 else
3751   if test -n "$CC"; then
3752   ac_cv_prog_CC="$CC" # Let the user override the test.
3753 else
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH
3756 do
3757   IFS=$as_save_IFS
3758   test -z "$as_dir" && as_dir=.
3759     for ac_exec_ext in '' $ac_executable_extensions; do
3760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3763     break 2
3764   fi
3765 done
3766   done
3767 IFS=$as_save_IFS
3768
3769 fi
3770 fi
3771 CC=$ac_cv_prog_CC
3772 if test -n "$CC"; then
3773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3774 $as_echo "$CC" >&6; }
3775 else
3776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777 $as_echo "no" >&6; }
3778 fi
3779
3780
3781     test -n "$CC" && break
3782   done
3783 fi
3784 if test -z "$CC"; then
3785   ac_ct_CC=$CC
3786   for ac_prog in cl.exe
3787 do
3788   # Extract the first word of "$ac_prog", so it can be a program name with args.
3789 set dummy $ac_prog; ac_word=$2
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 $as_echo_n "checking for $ac_word... " >&6; }
3792 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3793   $as_echo_n "(cached) " >&6
3794 else
3795   if test -n "$ac_ct_CC"; then
3796   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3797 else
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH
3800 do
3801   IFS=$as_save_IFS
3802   test -z "$as_dir" && as_dir=.
3803     for ac_exec_ext in '' $ac_executable_extensions; do
3804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3805     ac_cv_prog_ac_ct_CC="$ac_prog"
3806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807     break 2
3808   fi
3809 done
3810   done
3811 IFS=$as_save_IFS
3812
3813 fi
3814 fi
3815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3816 if test -n "$ac_ct_CC"; then
3817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3818 $as_echo "$ac_ct_CC" >&6; }
3819 else
3820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 $as_echo "no" >&6; }
3822 fi
3823
3824
3825   test -n "$ac_ct_CC" && break
3826 done
3827
3828   if test "x$ac_ct_CC" = x; then
3829     CC=""
3830   else
3831     case $cross_compiling:$ac_tool_warned in
3832 yes:)
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3835 ac_tool_warned=yes ;;
3836 esac
3837     CC=$ac_ct_CC
3838   fi
3839 fi
3840
3841 fi
3842
3843
3844 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3846 as_fn_error $? "no acceptable C compiler found in \$PATH
3847 See \`config.log' for more details" "$LINENO" 5; }
3848
3849 # Provide some information about the compiler.
3850 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3851 set X $ac_compile
3852 ac_compiler=$2
3853 for ac_option in --version -v -V -qversion; do
3854   { { ac_try="$ac_compiler $ac_option >&5"
3855 case "(($ac_try" in
3856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857   *) ac_try_echo=$ac_try;;
3858 esac
3859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3860 $as_echo "$ac_try_echo"; } >&5
3861   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3862   ac_status=$?
3863   if test -s conftest.err; then
3864     sed '10a\
3865 ... rest of stderr output deleted ...
3866          10q' conftest.err >conftest.er1
3867     cat conftest.er1 >&5
3868   fi
3869   rm -f conftest.er1 conftest.err
3870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871   test $ac_status = 0; }
3872 done
3873
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h.  */
3876
3877 int
3878 main ()
3879 {
3880
3881   ;
3882   return 0;
3883 }
3884 _ACEOF
3885 ac_clean_files_save=$ac_clean_files
3886 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3887 # Try to create an executable without -o first, disregard a.out.
3888 # It will help us diagnose broken compilers, and finding out an intuition
3889 # of exeext.
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3891 $as_echo_n "checking whether the C compiler works... " >&6; }
3892 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3893
3894 # The possible output files:
3895 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3896
3897 ac_rmfiles=
3898 for ac_file in $ac_files
3899 do
3900   case $ac_file in
3901     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3902     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3903   esac
3904 done
3905 rm -f $ac_rmfiles
3906
3907 if { { ac_try="$ac_link_default"
3908 case "(($ac_try" in
3909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910   *) ac_try_echo=$ac_try;;
3911 esac
3912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3913 $as_echo "$ac_try_echo"; } >&5
3914   (eval "$ac_link_default") 2>&5
3915   ac_status=$?
3916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917   test $ac_status = 0; }; then :
3918   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3919 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3920 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3921 # so that the user can short-circuit this test for compilers unknown to
3922 # Autoconf.
3923 for ac_file in $ac_files ''
3924 do
3925   test -f "$ac_file" || continue
3926   case $ac_file in
3927     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3928         ;;
3929     [ab].out )
3930         # We found the default executable, but exeext='' is most
3931         # certainly right.
3932         break;;
3933     *.* )
3934         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3935         then :; else
3936            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3937         fi
3938         # We set ac_cv_exeext here because the later test for it is not
3939         # safe: cross compilers may not add the suffix if given an `-o'
3940         # argument, so we may need to know it at that point already.
3941         # Even if this section looks crufty: it has the advantage of
3942         # actually working.
3943         break;;
3944     * )
3945         break;;
3946   esac
3947 done
3948 test "$ac_cv_exeext" = no && ac_cv_exeext=
3949
3950 else
3951   ac_file=''
3952 fi
3953 if test -z "$ac_file"; then :
3954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955 $as_echo "no" >&6; }
3956 $as_echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3958
3959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3961 as_fn_error 77 "C compiler cannot create executables
3962 See \`config.log' for more details" "$LINENO" 5; }
3963 else
3964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3965 $as_echo "yes" >&6; }
3966 fi
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3968 $as_echo_n "checking for C compiler default output file name... " >&6; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3970 $as_echo "$ac_file" >&6; }
3971 ac_exeext=$ac_cv_exeext
3972
3973 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3974 ac_clean_files=$ac_clean_files_save
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3976 $as_echo_n "checking for suffix of executables... " >&6; }
3977 if { { ac_try="$ac_link"
3978 case "(($ac_try" in
3979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980   *) ac_try_echo=$ac_try;;
3981 esac
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984   (eval "$ac_link") 2>&5
3985   ac_status=$?
3986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987   test $ac_status = 0; }; then :
3988   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3989 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3990 # work properly (i.e., refer to `conftest.exe'), while it won't with
3991 # `rm'.
3992 for ac_file in conftest.exe conftest conftest.*; do
3993   test -f "$ac_file" || continue
3994   case $ac_file in
3995     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3996     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3997           break;;
3998     * ) break;;
3999   esac
4000 done
4001 else
4002   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4004 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4005 See \`config.log' for more details" "$LINENO" 5; }
4006 fi
4007 rm -f conftest conftest$ac_cv_exeext
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4009 $as_echo "$ac_cv_exeext" >&6; }
4010
4011 rm -f conftest.$ac_ext
4012 EXEEXT=$ac_cv_exeext
4013 ac_exeext=$EXEEXT
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h.  */
4016 #include <stdio.h>
4017 int
4018 main ()
4019 {
4020 FILE *f = fopen ("conftest.out", "w");
4021  return ferror (f) || fclose (f) != 0;
4022
4023   ;
4024   return 0;
4025 }
4026 _ACEOF
4027 ac_clean_files="$ac_clean_files conftest.out"
4028 # Check that the compiler produces executables we can run.  If not, either
4029 # the compiler is broken, or we cross compile.
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4031 $as_echo_n "checking whether we are cross compiling... " >&6; }
4032 if test "$cross_compiling" != yes; then
4033   { { ac_try="$ac_link"
4034 case "(($ac_try" in
4035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036   *) ac_try_echo=$ac_try;;
4037 esac
4038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039 $as_echo "$ac_try_echo"; } >&5
4040   (eval "$ac_link") 2>&5
4041   ac_status=$?
4042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043   test $ac_status = 0; }
4044   if { ac_try='./conftest$ac_cv_exeext'
4045   { { case "(($ac_try" in
4046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047   *) ac_try_echo=$ac_try;;
4048 esac
4049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4050 $as_echo "$ac_try_echo"; } >&5
4051   (eval "$ac_try") 2>&5
4052   ac_status=$?
4053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4054   test $ac_status = 0; }; }; then
4055     cross_compiling=no
4056   else
4057     if test "$cross_compiling" = maybe; then
4058         cross_compiling=yes
4059     else
4060         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4062 as_fn_error $? "cannot run C compiled programs.
4063 If you meant to cross compile, use \`--host'.
4064 See \`config.log' for more details" "$LINENO" 5; }
4065     fi
4066   fi
4067 fi
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4069 $as_echo "$cross_compiling" >&6; }
4070
4071 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4072 ac_clean_files=$ac_clean_files_save
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4074 $as_echo_n "checking for suffix of object files... " >&6; }
4075 if ${ac_cv_objext+:} false; then :
4076   $as_echo_n "(cached) " >&6
4077 else
4078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h.  */
4080
4081 int
4082 main ()
4083 {
4084
4085   ;
4086   return 0;
4087 }
4088 _ACEOF
4089 rm -f conftest.o conftest.obj
4090 if { { ac_try="$ac_compile"
4091 case "(($ac_try" in
4092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093   *) ac_try_echo=$ac_try;;
4094 esac
4095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4096 $as_echo "$ac_try_echo"; } >&5
4097   (eval "$ac_compile") 2>&5
4098   ac_status=$?
4099   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4100   test $ac_status = 0; }; then :
4101   for ac_file in conftest.o conftest.obj conftest.*; do
4102   test -f "$ac_file" || continue;
4103   case $ac_file in
4104     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4105     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4106        break;;
4107   esac
4108 done
4109 else
4110   $as_echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4115 as_fn_error $? "cannot compute suffix of object files: cannot compile
4116 See \`config.log' for more details" "$LINENO" 5; }
4117 fi
4118 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4121 $as_echo "$ac_cv_objext" >&6; }
4122 OBJEXT=$ac_cv_objext
4123 ac_objext=$OBJEXT
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4125 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4126 if ${ac_cv_c_compiler_gnu+:} false; then :
4127   $as_echo_n "(cached) " >&6
4128 else
4129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h.  */
4131
4132 int
4133 main ()
4134 {
4135 #ifndef __GNUC__
4136        choke me
4137 #endif
4138
4139   ;
4140   return 0;
4141 }
4142 _ACEOF
4143 if ac_fn_c_try_compile "$LINENO"; then :
4144   ac_compiler_gnu=yes
4145 else
4146   ac_compiler_gnu=no
4147 fi
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4150
4151 fi
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4153 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4154 if test $ac_compiler_gnu = yes; then
4155   GCC=yes
4156 else
4157   GCC=
4158 fi
4159 ac_test_CFLAGS=${CFLAGS+set}
4160 ac_save_CFLAGS=$CFLAGS
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4162 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4163 if ${ac_cv_prog_cc_g+:} false; then :
4164   $as_echo_n "(cached) " >&6
4165 else
4166   ac_save_c_werror_flag=$ac_c_werror_flag
4167    ac_c_werror_flag=yes
4168    ac_cv_prog_cc_g=no
4169    CFLAGS="-g"
4170    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h.  */
4172
4173 int
4174 main ()
4175 {
4176
4177   ;
4178   return 0;
4179 }
4180 _ACEOF
4181 if ac_fn_c_try_compile "$LINENO"; then :
4182   ac_cv_prog_cc_g=yes
4183 else
4184   CFLAGS=""
4185       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h.  */
4187
4188 int
4189 main ()
4190 {
4191
4192   ;
4193   return 0;
4194 }
4195 _ACEOF
4196 if ac_fn_c_try_compile "$LINENO"; then :
4197
4198 else
4199   ac_c_werror_flag=$ac_save_c_werror_flag
4200          CFLAGS="-g"
4201          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h.  */
4203
4204 int
4205 main ()
4206 {
4207
4208   ;
4209   return 0;
4210 }
4211 _ACEOF
4212 if ac_fn_c_try_compile "$LINENO"; then :
4213   ac_cv_prog_cc_g=yes
4214 fi
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 fi
4217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218 fi
4219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220    ac_c_werror_flag=$ac_save_c_werror_flag
4221 fi
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4223 $as_echo "$ac_cv_prog_cc_g" >&6; }
4224 if test "$ac_test_CFLAGS" = set; then
4225   CFLAGS=$ac_save_CFLAGS
4226 elif test $ac_cv_prog_cc_g = yes; then
4227   if test "$GCC" = yes; then
4228     CFLAGS="-g -O2"
4229   else
4230     CFLAGS="-g"
4231   fi
4232 else
4233   if test "$GCC" = yes; then
4234     CFLAGS="-O2"
4235   else
4236     CFLAGS=
4237   fi
4238 fi
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4240 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4241 if ${ac_cv_prog_cc_c89+:} false; then :
4242   $as_echo_n "(cached) " >&6
4243 else
4244   ac_cv_prog_cc_c89=no
4245 ac_save_CC=$CC
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h.  */
4248 #include <stdarg.h>
4249 #include <stdio.h>
4250 struct stat;
4251 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4252 struct buf { int x; };
4253 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4254 static char *e (p, i)
4255      char **p;
4256      int i;
4257 {
4258   return p[i];
4259 }
4260 static char *f (char * (*g) (char **, int), char **p, ...)
4261 {
4262   char *s;
4263   va_list v;
4264   va_start (v,p);
4265   s = g (p, va_arg (v,int));
4266   va_end (v);
4267   return s;
4268 }
4269
4270 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4271    function prototypes and stuff, but not '\xHH' hex character constants.
4272    These don't provoke an error unfortunately, instead are silently treated
4273    as 'x'.  The following induces an error, until -std is added to get
4274    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4275    array size at least.  It's necessary to write '\x00'==0 to get something
4276    that's true only with -std.  */
4277 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4278
4279 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4280    inside strings and character constants.  */
4281 #define FOO(x) 'x'
4282 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4283
4284 int test (int i, double x);
4285 struct s1 {int (*f) (int a);};
4286 struct s2 {int (*f) (double a);};
4287 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4288 int argc;
4289 char **argv;
4290 int
4291 main ()
4292 {
4293 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4294   ;
4295   return 0;
4296 }
4297 _ACEOF
4298 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4299         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4300 do
4301   CC="$ac_save_CC $ac_arg"
4302   if ac_fn_c_try_compile "$LINENO"; then :
4303   ac_cv_prog_cc_c89=$ac_arg
4304 fi
4305 rm -f core conftest.err conftest.$ac_objext
4306   test "x$ac_cv_prog_cc_c89" != "xno" && break
4307 done
4308 rm -f conftest.$ac_ext
4309 CC=$ac_save_CC
4310
4311 fi
4312 # AC_CACHE_VAL
4313 case "x$ac_cv_prog_cc_c89" in
4314   x)
4315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4316 $as_echo "none needed" >&6; } ;;
4317   xno)
4318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4319 $as_echo "unsupported" >&6; } ;;
4320   *)
4321     CC="$CC $ac_cv_prog_cc_c89"
4322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4323 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4324 esac
4325 if test "x$ac_cv_prog_cc_c89" != xno; then :
4326
4327 fi
4328
4329 ac_ext=c
4330 ac_cpp='$CPP $CPPFLAGS'
4331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4334
4335 ac_ext=c
4336 ac_cpp='$CPP $CPPFLAGS'
4337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4341 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4342 if ${am_cv_prog_cc_c_o+:} false; then :
4343   $as_echo_n "(cached) " >&6
4344 else
4345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h.  */
4347
4348 int
4349 main ()
4350 {
4351
4352   ;
4353   return 0;
4354 }
4355 _ACEOF
4356   # Make sure it works both with $CC and with simple cc.
4357   # Following AC_PROG_CC_C_O, we do the test twice because some
4358   # compilers refuse to overwrite an existing .o file with -o,
4359   # though they will create one.
4360   am_cv_prog_cc_c_o=yes
4361   for am_i in 1 2; do
4362     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4363    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4364    ac_status=$?
4365    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366    (exit $ac_status); } \
4367          && test -f conftest2.$ac_objext; then
4368       : OK
4369     else
4370       am_cv_prog_cc_c_o=no
4371       break
4372     fi
4373   done
4374   rm -f core conftest*
4375   unset am_i
4376 fi
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4378 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4379 if test "$am_cv_prog_cc_c_o" != yes; then
4380    # Losing compiler, so override with the script.
4381    # FIXME: It is wrong to rewrite CC.
4382    # But if we don't then we get into trouble of one sort or another.
4383    # A longer-term fix would be to have automake use am__CC in this case,
4384    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4385    CC="$am_aux_dir/compile $CC"
4386 fi
4387 ac_ext=c
4388 ac_cpp='$CPP $CPPFLAGS'
4389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392
4393
4394 depcc="$CC"   am_compiler_list=
4395
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4397 $as_echo_n "checking dependency style of $depcc... " >&6; }
4398 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4399   $as_echo_n "(cached) " >&6
4400 else
4401   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4402   # We make a subdir and do the tests there.  Otherwise we can end up
4403   # making bogus files that we don't know about and never remove.  For
4404   # instance it was reported that on HP-UX the gcc test will end up
4405   # making a dummy file named 'D' -- because '-MD' means "put the output
4406   # in D".
4407   rm -rf conftest.dir
4408   mkdir conftest.dir
4409   # Copy depcomp to subdir because otherwise we won't find it if we're
4410   # using a relative directory.
4411   cp "$am_depcomp" conftest.dir
4412   cd conftest.dir
4413   # We will build objects and dependencies in a subdirectory because
4414   # it helps to detect inapplicable dependency modes.  For instance
4415   # both Tru64's cc and ICC support -MD to output dependencies as a
4416   # side effect of compilation, but ICC will put the dependencies in
4417   # the current directory while Tru64 will put them in the object
4418   # directory.
4419   mkdir sub
4420
4421   am_cv_CC_dependencies_compiler_type=none
4422   if test "$am_compiler_list" = ""; then
4423      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4424   fi
4425   am__universal=false
4426   case " $depcc " in #(
4427      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4428      esac
4429
4430   for depmode in $am_compiler_list; do
4431     # Setup a source with many dependencies, because some compilers
4432     # like to wrap large dependency lists on column 80 (with \), and
4433     # we should not choose a depcomp mode which is confused by this.
4434     #
4435     # We need to recreate these files for each test, as the compiler may
4436     # overwrite some of them when testing with obscure command lines.
4437     # This happens at least with the AIX C compiler.
4438     : > sub/conftest.c
4439     for i in 1 2 3 4 5 6; do
4440       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4441       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4442       # Solaris 10 /bin/sh.
4443       echo '/* dummy */' > sub/conftst$i.h
4444     done
4445     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4446
4447     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4448     # mode.  It turns out that the SunPro C++ compiler does not properly
4449     # handle '-M -o', and we need to detect this.  Also, some Intel
4450     # versions had trouble with output in subdirs.
4451     am__obj=sub/conftest.${OBJEXT-o}
4452     am__minus_obj="-o $am__obj"
4453     case $depmode in
4454     gcc)
4455       # This depmode causes a compiler race in universal mode.
4456       test "$am__universal" = false || continue
4457       ;;
4458     nosideeffect)
4459       # After this tag, mechanisms are not by side-effect, so they'll
4460       # only be used when explicitly requested.
4461       if test "x$enable_dependency_tracking" = xyes; then
4462         continue
4463       else
4464         break
4465       fi
4466       ;;
4467     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4468       # This compiler won't grok '-c -o', but also, the minuso test has
4469       # not run yet.  These depmodes are late enough in the game, and
4470       # so weak that their functioning should not be impacted.
4471       am__obj=conftest.${OBJEXT-o}
4472       am__minus_obj=
4473       ;;
4474     none) break ;;
4475     esac
4476     if depmode=$depmode \
4477        source=sub/conftest.c object=$am__obj \
4478        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4479        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4480          >/dev/null 2>conftest.err &&
4481        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4482        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4483        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4484        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4485       # icc doesn't choke on unknown options, it will just issue warnings
4486       # or remarks (even with -Werror).  So we grep stderr for any message
4487       # that says an option was ignored or not supported.
4488       # When given -MP, icc 7.0 and 7.1 complain thusly:
4489       #   icc: Command line warning: ignoring option '-M'; no argument required
4490       # The diagnosis changed in icc 8.0:
4491       #   icc: Command line remark: option '-MP' not supported
4492       if (grep 'ignoring option' conftest.err ||
4493           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4494         am_cv_CC_dependencies_compiler_type=$depmode
4495         break
4496       fi
4497     fi
4498   done
4499
4500   cd ..
4501   rm -rf conftest.dir
4502 else
4503   am_cv_CC_dependencies_compiler_type=none
4504 fi
4505
4506 fi
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4508 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4509 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4510
4511  if
4512   test "x$enable_dependency_tracking" != xno \
4513   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4514   am__fastdepCC_TRUE=
4515   am__fastdepCC_FALSE='#'
4516 else
4517   am__fastdepCC_TRUE='#'
4518   am__fastdepCC_FALSE=
4519 fi
4520
4521
4522
4523 ac_ext=c
4524 ac_cpp='$CPP $CPPFLAGS'
4525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4529 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4530 # On Suns, sometimes $CPP names a directory.
4531 if test -n "$CPP" && test -d "$CPP"; then
4532   CPP=
4533 fi
4534 if test -z "$CPP"; then
4535   if ${ac_cv_prog_CPP+:} false; then :
4536   $as_echo_n "(cached) " >&6
4537 else
4538       # Double quotes because CPP needs to be expanded
4539     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4540     do
4541       ac_preproc_ok=false
4542 for ac_c_preproc_warn_flag in '' yes
4543 do
4544   # Use a header file that comes with gcc, so configuring glibc
4545   # with a fresh cross-compiler works.
4546   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4547   # <limits.h> exists even on freestanding compilers.
4548   # On the NeXT, cc -E runs the code through the compiler's parser,
4549   # not just through cpp. "Syntax error" is here to catch this case.
4550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h.  */
4552 #ifdef __STDC__
4553 # include <limits.h>
4554 #else
4555 # include <assert.h>
4556 #endif
4557                      Syntax error
4558 _ACEOF
4559 if ac_fn_c_try_cpp "$LINENO"; then :
4560
4561 else
4562   # Broken: fails on valid input.
4563 continue
4564 fi
4565 rm -f conftest.err conftest.i conftest.$ac_ext
4566
4567   # OK, works on sane cases.  Now check whether nonexistent headers
4568   # can be detected and how.
4569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h.  */
4571 #include <ac_nonexistent.h>
4572 _ACEOF
4573 if ac_fn_c_try_cpp "$LINENO"; then :
4574   # Broken: success on invalid input.
4575 continue
4576 else
4577   # Passes both tests.
4578 ac_preproc_ok=:
4579 break
4580 fi
4581 rm -f conftest.err conftest.i conftest.$ac_ext
4582
4583 done
4584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4585 rm -f conftest.i conftest.err conftest.$ac_ext
4586 if $ac_preproc_ok; then :
4587   break
4588 fi
4589
4590     done
4591     ac_cv_prog_CPP=$CPP
4592
4593 fi
4594   CPP=$ac_cv_prog_CPP
4595 else
4596   ac_cv_prog_CPP=$CPP
4597 fi
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4599 $as_echo "$CPP" >&6; }
4600 ac_preproc_ok=false
4601 for ac_c_preproc_warn_flag in '' yes
4602 do
4603   # Use a header file that comes with gcc, so configuring glibc
4604   # with a fresh cross-compiler works.
4605   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4606   # <limits.h> exists even on freestanding compilers.
4607   # On the NeXT, cc -E runs the code through the compiler's parser,
4608   # not just through cpp. "Syntax error" is here to catch this case.
4609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h.  */
4611 #ifdef __STDC__
4612 # include <limits.h>
4613 #else
4614 # include <assert.h>
4615 #endif
4616                      Syntax error
4617 _ACEOF
4618 if ac_fn_c_try_cpp "$LINENO"; then :
4619
4620 else
4621   # Broken: fails on valid input.
4622 continue
4623 fi
4624 rm -f conftest.err conftest.i conftest.$ac_ext
4625
4626   # OK, works on sane cases.  Now check whether nonexistent headers
4627   # can be detected and how.
4628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h.  */
4630 #include <ac_nonexistent.h>
4631 _ACEOF
4632 if ac_fn_c_try_cpp "$LINENO"; then :
4633   # Broken: success on invalid input.
4634 continue
4635 else
4636   # Passes both tests.
4637 ac_preproc_ok=:
4638 break
4639 fi
4640 rm -f conftest.err conftest.i conftest.$ac_ext
4641
4642 done
4643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4644 rm -f conftest.i conftest.err conftest.$ac_ext
4645 if $ac_preproc_ok; then :
4646
4647 else
4648   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4650 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4651 See \`config.log' for more details" "$LINENO" 5; }
4652 fi
4653
4654 ac_ext=c
4655 ac_cpp='$CPP $CPPFLAGS'
4656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659
4660
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4662 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4663 if ${ac_cv_path_GREP+:} false; then :
4664   $as_echo_n "(cached) " >&6
4665 else
4666   if test -z "$GREP"; then
4667   ac_path_GREP_found=false
4668   # Loop through the user's path and test for each of PROGNAME-LIST
4669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4671 do
4672   IFS=$as_save_IFS
4673   test -z "$as_dir" && as_dir=.
4674     for ac_prog in grep ggrep; do
4675     for ac_exec_ext in '' $ac_executable_extensions; do
4676       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4677       as_fn_executable_p "$ac_path_GREP" || continue
4678 # Check for GNU ac_path_GREP and select it if it is found.
4679   # Check for GNU $ac_path_GREP
4680 case `"$ac_path_GREP" --version 2>&1` in
4681 *GNU*)
4682   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4683 *)
4684   ac_count=0
4685   $as_echo_n 0123456789 >"conftest.in"
4686   while :
4687   do
4688     cat "conftest.in" "conftest.in" >"conftest.tmp"
4689     mv "conftest.tmp" "conftest.in"
4690     cp "conftest.in" "conftest.nl"
4691     $as_echo 'GREP' >> "conftest.nl"
4692     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4693     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4694     as_fn_arith $ac_count + 1 && ac_count=$as_val
4695     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4696       # Best one so far, save it but keep looking for a better one
4697       ac_cv_path_GREP="$ac_path_GREP"
4698       ac_path_GREP_max=$ac_count
4699     fi
4700     # 10*(2^10) chars as input seems more than enough
4701     test $ac_count -gt 10 && break
4702   done
4703   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4704 esac
4705
4706       $ac_path_GREP_found && break 3
4707     done
4708   done
4709   done
4710 IFS=$as_save_IFS
4711   if test -z "$ac_cv_path_GREP"; then
4712     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4713   fi
4714 else
4715   ac_cv_path_GREP=$GREP
4716 fi
4717
4718 fi
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4720 $as_echo "$ac_cv_path_GREP" >&6; }
4721  GREP="$ac_cv_path_GREP"
4722
4723
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4725 $as_echo_n "checking for egrep... " >&6; }
4726 if ${ac_cv_path_EGREP+:} false; then :
4727   $as_echo_n "(cached) " >&6
4728 else
4729   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4730    then ac_cv_path_EGREP="$GREP -E"
4731    else
4732      if test -z "$EGREP"; then
4733   ac_path_EGREP_found=false
4734   # Loop through the user's path and test for each of PROGNAME-LIST
4735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4737 do
4738   IFS=$as_save_IFS
4739   test -z "$as_dir" && as_dir=.
4740     for ac_prog in egrep; do
4741     for ac_exec_ext in '' $ac_executable_extensions; do
4742       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4743       as_fn_executable_p "$ac_path_EGREP" || continue
4744 # Check for GNU ac_path_EGREP and select it if it is found.
4745   # Check for GNU $ac_path_EGREP
4746 case `"$ac_path_EGREP" --version 2>&1` in
4747 *GNU*)
4748   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4749 *)
4750   ac_count=0
4751   $as_echo_n 0123456789 >"conftest.in"
4752   while :
4753   do
4754     cat "conftest.in" "conftest.in" >"conftest.tmp"
4755     mv "conftest.tmp" "conftest.in"
4756     cp "conftest.in" "conftest.nl"
4757     $as_echo 'EGREP' >> "conftest.nl"
4758     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4759     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4760     as_fn_arith $ac_count + 1 && ac_count=$as_val
4761     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4762       # Best one so far, save it but keep looking for a better one
4763       ac_cv_path_EGREP="$ac_path_EGREP"
4764       ac_path_EGREP_max=$ac_count
4765     fi
4766     # 10*(2^10) chars as input seems more than enough
4767     test $ac_count -gt 10 && break
4768   done
4769   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4770 esac
4771
4772       $ac_path_EGREP_found && break 3
4773     done
4774   done
4775   done
4776 IFS=$as_save_IFS
4777   if test -z "$ac_cv_path_EGREP"; then
4778     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4779   fi
4780 else
4781   ac_cv_path_EGREP=$EGREP
4782 fi
4783
4784    fi
4785 fi
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4787 $as_echo "$ac_cv_path_EGREP" >&6; }
4788  EGREP="$ac_cv_path_EGREP"
4789
4790
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4792 $as_echo_n "checking for ANSI C header files... " >&6; }
4793 if ${ac_cv_header_stdc+:} false; then :
4794   $as_echo_n "(cached) " >&6
4795 else
4796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h.  */
4798 #include <stdlib.h>
4799 #include <stdarg.h>
4800 #include <string.h>
4801 #include <float.h>
4802
4803 int
4804 main ()
4805 {
4806
4807   ;
4808   return 0;
4809 }
4810 _ACEOF
4811 if ac_fn_c_try_compile "$LINENO"; then :
4812   ac_cv_header_stdc=yes
4813 else
4814   ac_cv_header_stdc=no
4815 fi
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817
4818 if test $ac_cv_header_stdc = yes; then
4819   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h.  */
4822 #include <string.h>
4823
4824 _ACEOF
4825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4826   $EGREP "memchr" >/dev/null 2>&1; then :
4827
4828 else
4829   ac_cv_header_stdc=no
4830 fi
4831 rm -f conftest*
4832
4833 fi
4834
4835 if test $ac_cv_header_stdc = yes; then
4836   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h.  */
4839 #include <stdlib.h>
4840
4841 _ACEOF
4842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4843   $EGREP "free" >/dev/null 2>&1; then :
4844
4845 else
4846   ac_cv_header_stdc=no
4847 fi
4848 rm -f conftest*
4849
4850 fi
4851
4852 if test $ac_cv_header_stdc = yes; then
4853   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4854   if test "$cross_compiling" = yes; then :
4855   :
4856 else
4857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h.  */
4859 #include <ctype.h>
4860 #include <stdlib.h>
4861 #if ((' ' & 0x0FF) == 0x020)
4862 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4863 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4864 #else
4865 # define ISLOWER(c) \
4866                    (('a' <= (c) && (c) <= 'i') \
4867                      || ('j' <= (c) && (c) <= 'r') \
4868                      || ('s' <= (c) && (c) <= 'z'))
4869 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4870 #endif
4871
4872 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4873 int
4874 main ()
4875 {
4876   int i;
4877   for (i = 0; i < 256; i++)
4878     if (XOR (islower (i), ISLOWER (i))
4879         || toupper (i) != TOUPPER (i))
4880       return 2;
4881   return 0;
4882 }
4883 _ACEOF
4884 if ac_fn_c_try_run "$LINENO"; then :
4885
4886 else
4887   ac_cv_header_stdc=no
4888 fi
4889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4890   conftest.$ac_objext conftest.beam conftest.$ac_ext
4891 fi
4892
4893 fi
4894 fi
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4896 $as_echo "$ac_cv_header_stdc" >&6; }
4897 if test $ac_cv_header_stdc = yes; then
4898
4899 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4900
4901 fi
4902
4903 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4904 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4905                   inttypes.h stdint.h unistd.h
4906 do :
4907   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4908 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4909 "
4910 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4911   cat >>confdefs.h <<_ACEOF
4912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4913 _ACEOF
4914
4915 fi
4916
4917 done
4918
4919
4920
4921   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4922 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4923   MINIX=yes
4924 else
4925   MINIX=
4926 fi
4927
4928
4929   if test "$MINIX" = yes; then
4930
4931 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4932
4933
4934 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4935
4936
4937 $as_echo "#define _MINIX 1" >>confdefs.h
4938
4939   fi
4940
4941
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4943 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4944 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4945   $as_echo_n "(cached) " >&6
4946 else
4947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h.  */
4949
4950 #         define __EXTENSIONS__ 1
4951           $ac_includes_default
4952 int
4953 main ()
4954 {
4955
4956   ;
4957   return 0;
4958 }
4959 _ACEOF
4960 if ac_fn_c_try_compile "$LINENO"; then :
4961   ac_cv_safe_to_define___extensions__=yes
4962 else
4963   ac_cv_safe_to_define___extensions__=no
4964 fi
4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966 fi
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4968 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4969   test $ac_cv_safe_to_define___extensions__ = yes &&
4970     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4971
4972   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4973
4974   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4975
4976   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4977
4978   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4979
4980
4981
4982 # PR 14072
4983
4984
4985
4986 # Check whether --with-sysroot was given.
4987 if test "${with_sysroot+set}" = set; then :
4988   withval=$with_sysroot; sysroot=$withval
4989 else
4990   sysroot=no
4991 fi
4992
4993
4994 if test "$sysroot" = "yes"; then
4995   sysroot='${exec_prefix}/${target_alias}/sys-root'
4996 elif test "$sysroot" = "no"; then
4997   sysroot=
4998 fi
4999
5000 sysroot_relocatable=0
5001 if test -n "$sysroot"; then
5002   case "$sysroot" in
5003     "${prefix}" | "${prefix}/"* | \
5004     "${exec_prefix}" | "${exec_prefix}/"* | \
5005     '${prefix}' | '${prefix}/'*| \
5006     '${exec_prefix}' | '${exec_prefix}/'*)
5007       sysroot_relocatable=1
5008       ;;
5009   esac
5010 fi
5011
5012
5013 cat >>confdefs.h <<_ACEOF
5014 #define TARGET_SYSTEM_ROOT "$sysroot"
5015 _ACEOF
5016
5017
5018 cat >>confdefs.h <<_ACEOF
5019 #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
5020 _ACEOF
5021
5022
5023
5024 installed_linker=ld.gold
5025 # Check whether --enable-gold was given.
5026 if test "${enable_gold+set}" = set; then :
5027   enableval=$enable_gold; case "${enableval}" in
5028  default)
5029    install_as_default=yes
5030    ;;
5031  yes)
5032    if test x${enable_ld} = xno; then
5033      install_as_default=yes
5034    fi
5035    ;;
5036  esac
5037 else
5038   install_as_default=no
5039 fi
5040
5041
5042
5043
5044
5045   maybe_plugins=no
5046   for ac_header in dlfcn.h
5047 do :
5048   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5049 "
5050 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5051   cat >>confdefs.h <<_ACEOF
5052 #define HAVE_DLFCN_H 1
5053 _ACEOF
5054  maybe_plugins=yes
5055 fi
5056
5057 done
5058
5059   for ac_header in windows.h
5060 do :
5061   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5062 "
5063 if test "x$ac_cv_header_windows_h" = xyes; then :
5064   cat >>confdefs.h <<_ACEOF
5065 #define HAVE_WINDOWS_H 1
5066 _ACEOF
5067  maybe_plugins=yes
5068 fi
5069
5070 done
5071
5072
5073   # Check whether --enable-plugins was given.
5074 if test "${enable_plugins+set}" = set; then :
5075   enableval=$enable_plugins; case "${enableval}" in
5076       no) plugins=no ;;
5077       *) plugins=yes
5078          if test "$maybe_plugins" != "yes" ; then
5079            as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5080          fi ;;
5081      esac
5082 else
5083   plugins=$maybe_plugins
5084
5085 fi
5086
5087   if test "$plugins" = "yes"; then
5088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5089 $as_echo_n "checking for library containing dlsym... " >&6; }
5090 if ${ac_cv_search_dlsym+:} false; then :
5091   $as_echo_n "(cached) " >&6
5092 else
5093   ac_func_search_save_LIBS=$LIBS
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h.  */
5096
5097 /* Override any GCC internal prototype to avoid an error.
5098    Use char because int might match the return type of a GCC
5099    builtin and then its argument prototype would still apply.  */
5100 #ifdef __cplusplus
5101 extern "C"
5102 #endif
5103 char dlsym ();
5104 int
5105 main ()
5106 {
5107 return dlsym ();
5108   ;
5109   return 0;
5110 }
5111 _ACEOF
5112 for ac_lib in '' dl; do
5113   if test -z "$ac_lib"; then
5114     ac_res="none required"
5115   else
5116     ac_res=-l$ac_lib
5117     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5118   fi
5119   if ac_fn_c_try_link "$LINENO"; then :
5120   ac_cv_search_dlsym=$ac_res
5121 fi
5122 rm -f core conftest.err conftest.$ac_objext \
5123     conftest$ac_exeext
5124   if ${ac_cv_search_dlsym+:} false; then :
5125   break
5126 fi
5127 done
5128 if ${ac_cv_search_dlsym+:} false; then :
5129
5130 else
5131   ac_cv_search_dlsym=no
5132 fi
5133 rm conftest.$ac_ext
5134 LIBS=$ac_func_search_save_LIBS
5135 fi
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5137 $as_echo "$ac_cv_search_dlsym" >&6; }
5138 ac_res=$ac_cv_search_dlsym
5139 if test "$ac_res" != no; then :
5140   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5141
5142 fi
5143
5144   fi
5145
5146 if test "$plugins" = "yes"; then
5147
5148 $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
5149
5150 fi
5151  if test "$plugins" = "yes"; then
5152   PLUGINS_TRUE=
5153   PLUGINS_FALSE='#'
5154 else
5155   PLUGINS_TRUE='#'
5156   PLUGINS_FALSE=
5157 fi
5158
5159
5160 # Decide if -z relro should be enabled in ELF linker by default.
5161 ac_default_ld_z_relro=unset
5162 # Provide a configure time option to override our default.
5163 # Check whether --enable-relro was given.
5164 if test "${enable_relro+set}" = set; then :
5165   enableval=$enable_relro; case "${enableval}" in
5166   yes)  ac_default_ld_z_relro=1 ;;
5167   no)  ac_default_ld_z_relro=0 ;;
5168 esac
5169 fi
5170 if test "${ac_default_ld_z_relro}" = unset; then
5171   ac_default_ld_z_relro=1
5172 fi
5173
5174 cat >>confdefs.h <<_ACEOF
5175 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
5176 _ACEOF
5177
5178
5179 # Check whether --enable-targets was given.
5180 if test "${enable_targets+set}" = set; then :
5181   enableval=$enable_targets; case "${enableval}" in
5182   yes | "")
5183     as_fn_error $? "--enable-targets option must specify target names or 'all'" "$LINENO" 5
5184     ;;
5185   no)
5186     enable_targets=
5187     ;;
5188   *)
5189     enable_targets=$enableval
5190     ;;
5191 esac
5192 else
5193   # For now, enable all targets by default
5194  enable_targets=all
5195
5196 fi
5197
5198
5199 # Canonicalize the enabled targets.
5200 if test -n "$enable_targets"; then
5201   for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
5202     result=`$ac_config_sub $targ 2>/dev/null`
5203     if test -n "$result"; then
5204       canon_targets="$canon_targets $result"
5205     else
5206       # Permit unrecognized target names, like "all".
5207       canon_targets="$canon_targets $targ"
5208     fi
5209   done
5210 fi
5211
5212 # Decide which "--hash-style" to use by default
5213 # Provide a configure time option to override our default.
5214 # Check whether --enable-default-hash-style was given.
5215 if test "${enable_default_hash_style+set}" = set; then :
5216   enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
5217   sysv | gnu | both) ;;
5218   *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
5219 esac
5220 else
5221   case "${target}" in
5222   # Enable gnu hash only on GNU targets, but not mips
5223   mips*-*-*) enable_default_hash_style=sysv ;;
5224   *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
5225   *) enable_default_hash_style=sysv ;;
5226 esac
5227 fi
5228
5229
5230
5231 cat >>confdefs.h <<_ACEOF
5232 #define DEFAULT_HASH_STYLE "${enable_default_hash_style}"
5233 _ACEOF
5234
5235
5236 # See which specific instantiations we need.
5237 targetobjs=
5238 all_targets=
5239 default_machine=
5240 default_size=
5241 default_big_endian=
5242 default_osabi=ELFOSABI_NONE
5243 targ_32_little=
5244 targ_32_big=
5245 targ_64_little=
5246 targ_64_big=
5247 for targ in $target $canon_targets; do
5248   if test "$targ" = "all"; then
5249     targ_32_little=yes
5250     targ_32_big=yes
5251     targ_64_little=yes
5252     targ_64_big=yes
5253     all_targets=yes
5254   else
5255     . ${srcdir}/configure.tgt
5256
5257     if test "$targ_obj" = "UNKNOWN"; then
5258       as_fn_error $? "\"unsupported target $targ\"" "$LINENO" 5
5259     else
5260       targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
5261       if test "$targ_extra_obj" != ""; then
5262         targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
5263       fi
5264       if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
5265           if test "$targ_big_endian" = "true" \
5266               -o "$targ_extra_big_endian" = "true"; then
5267               targ_32_big=yes
5268           fi
5269           if test "$targ_big_endian" = "false" \
5270               -o "$targ_extra_big_endian" = "false"; then
5271               targ_32_little=yes
5272           fi
5273       fi
5274       if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
5275           if test "$targ_big_endian" = "true" \
5276               -o "$targ_extra_big_endian" = "true"; then
5277               targ_64_big=yes
5278           fi
5279           if test "$targ_big_endian" = "false" \
5280               -o "$targ_extra_big_endian" = "false"; then
5281               targ_64_little=yes
5282           fi
5283       fi
5284
5285       if test "$target" = "$targ"; then
5286         default_machine=$targ_machine
5287         default_size=$targ_size
5288         default_big_endian=$targ_big_endian
5289         default_osabi=$targ_osabi
5290
5291          if test "$targ_obj" = "aarch64"; then
5292   DEFAULT_TARGET_AARCH64_TRUE=
5293   DEFAULT_TARGET_AARCH64_FALSE='#'
5294 else
5295   DEFAULT_TARGET_AARCH64_TRUE='#'
5296   DEFAULT_TARGET_AARCH64_FALSE=
5297 fi
5298
5299          if test "$targ_obj" = "arm"; then
5300   DEFAULT_TARGET_ARM_TRUE=
5301   DEFAULT_TARGET_ARM_FALSE='#'
5302 else
5303   DEFAULT_TARGET_ARM_TRUE='#'
5304   DEFAULT_TARGET_ARM_FALSE=
5305 fi
5306
5307          if test "$targ_obj" = "i386"; then
5308   DEFAULT_TARGET_I386_TRUE=
5309   DEFAULT_TARGET_I386_FALSE='#'
5310 else
5311   DEFAULT_TARGET_I386_TRUE='#'
5312   DEFAULT_TARGET_I386_FALSE=
5313 fi
5314
5315          if test "$targ_obj" = "powerpc"; then
5316   DEFAULT_TARGET_POWERPC_TRUE=
5317   DEFAULT_TARGET_POWERPC_FALSE='#'
5318 else
5319   DEFAULT_TARGET_POWERPC_TRUE='#'
5320   DEFAULT_TARGET_POWERPC_FALSE=
5321 fi
5322
5323          if test "$targ_obj" = "sparc"; then
5324   DEFAULT_TARGET_SPARC_TRUE=
5325   DEFAULT_TARGET_SPARC_FALSE='#'
5326 else
5327   DEFAULT_TARGET_SPARC_TRUE='#'
5328   DEFAULT_TARGET_SPARC_FALSE=
5329 fi
5330
5331          if test "$targ_obj" = "s390"; then
5332   DEFAULT_TARGET_S390_TRUE=
5333   DEFAULT_TARGET_S390_FALSE='#'
5334 else
5335   DEFAULT_TARGET_S390_TRUE='#'
5336   DEFAULT_TARGET_S390_FALSE=
5337 fi
5338
5339         target_x86_64=no
5340         target_x32=no
5341         if test "$targ_obj" = "x86_64"; then
5342           case "$target" in
5343           x86_64*-linux-gnux32)
5344             target_x32=yes
5345             default_size=32
5346             ;;
5347           *)
5348             target_x86_64=yes
5349             ;;
5350           esac
5351         fi
5352          if test "$target_x86_64" = "yes"; then
5353   DEFAULT_TARGET_X86_64_TRUE=
5354   DEFAULT_TARGET_X86_64_FALSE='#'
5355 else
5356   DEFAULT_TARGET_X86_64_TRUE='#'
5357   DEFAULT_TARGET_X86_64_FALSE=
5358 fi
5359
5360          if test "$target_x32" = "yes"; then
5361   DEFAULT_TARGET_X32_TRUE=
5362   DEFAULT_TARGET_X32_FALSE='#'
5363 else
5364   DEFAULT_TARGET_X32_TRUE='#'
5365   DEFAULT_TARGET_X32_FALSE=
5366 fi
5367
5368          if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then
5369   DEFAULT_TARGET_X86_64_OR_X32_TRUE=
5370   DEFAULT_TARGET_X86_64_OR_X32_FALSE='#'
5371 else
5372   DEFAULT_TARGET_X86_64_OR_X32_TRUE='#'
5373   DEFAULT_TARGET_X86_64_OR_X32_FALSE=
5374 fi
5375
5376          if test "$targ_obj" = "tilegx"; then
5377   DEFAULT_TARGET_TILEGX_TRUE=
5378   DEFAULT_TARGET_TILEGX_FALSE='#'
5379 else
5380   DEFAULT_TARGET_TILEGX_TRUE='#'
5381   DEFAULT_TARGET_TILEGX_FALSE=
5382 fi
5383
5384          if test "$targ_obj" = "mips"; then
5385   DEFAULT_TARGET_MIPS_TRUE=
5386   DEFAULT_TARGET_MIPS_FALSE='#'
5387 else
5388   DEFAULT_TARGET_MIPS_TRUE='#'
5389   DEFAULT_TARGET_MIPS_FALSE=
5390 fi
5391
5392         DEFAULT_TARGET=${targ_obj}
5393
5394       fi
5395     fi
5396   fi
5397 done
5398
5399 # Remove any duplicates.
5400 to=""
5401 for t in $targetobjs; do
5402   case " $to " in
5403   *" $t "*) ;;
5404   *) to="$to $t" ;;
5405   esac
5406 done
5407 targetobjs=$to
5408
5409 if test -n "$targ_32_little"; then
5410
5411 $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
5412
5413 fi
5414 if test -n "$targ_32_big"; then
5415
5416 $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
5417
5418 fi
5419 if test -n "$targ_64_little"; then
5420
5421 $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
5422
5423 fi
5424 if test -n "$targ_64_big"; then
5425
5426 $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
5427
5428 fi
5429
5430 if test -n "$all_targets"; then
5431   TARGETOBJS='$(ALL_TARGETOBJS)'
5432 else
5433   TARGETOBJS="$targetobjs"
5434 fi
5435
5436
5437
5438 cat >>confdefs.h <<_ACEOF
5439 #define GOLD_DEFAULT_MACHINE $default_machine
5440 _ACEOF
5441
5442
5443 cat >>confdefs.h <<_ACEOF
5444 #define GOLD_DEFAULT_SIZE $default_size
5445 _ACEOF
5446
5447
5448 cat >>confdefs.h <<_ACEOF
5449 #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
5450 _ACEOF
5451
5452
5453 cat >>confdefs.h <<_ACEOF
5454 #define GOLD_DEFAULT_OSABI $default_osabi
5455 _ACEOF
5456
5457
5458
5459 # Check whether --with-lib-path was given.
5460 if test "${with_lib_path+set}" = set; then :
5461   withval=$with_lib_path; case "$withval" in
5462  yes) LIB_PATH='"/lib:/usr/lib"' ;;
5463  no) LIB_PATH='""' ;;
5464  *) LIB_PATH='"'"$withval"'"' ;;
5465  esac
5466 else
5467   LIB_PATH='"::DEFAULT::"'
5468 fi
5469
5470
5471 cat >>confdefs.h <<_ACEOF
5472 #define LIB_PATH $LIB_PATH
5473 _ACEOF
5474
5475 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
5476
5477 $as_echo "#define NATIVE_LINKER 1" >>confdefs.h
5478
5479 fi
5480
5481 if test -n "$ac_tool_prefix"; then
5482   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5483 set dummy ${ac_tool_prefix}nm; ac_word=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if ${ac_cv_prog_NM+:} false; then :
5487   $as_echo_n "(cached) " >&6
5488 else
5489   if test -n "$NM"; then
5490   ac_cv_prog_NM="$NM" # Let the user override the test.
5491 else
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495   IFS=$as_save_IFS
5496   test -z "$as_dir" && as_dir=.
5497     for ac_exec_ext in '' $ac_executable_extensions; do
5498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499     ac_cv_prog_NM="${ac_tool_prefix}nm"
5500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501     break 2
5502   fi
5503 done
5504   done
5505 IFS=$as_save_IFS
5506
5507 fi
5508 fi
5509 NM=$ac_cv_prog_NM
5510 if test -n "$NM"; then
5511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5512 $as_echo "$NM" >&6; }
5513 else
5514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5516 fi
5517
5518
5519 fi
5520 if test -z "$ac_cv_prog_NM"; then
5521   ac_ct_NM=$NM
5522   # Extract the first word of "nm", so it can be a program name with args.
5523 set dummy nm; ac_word=$2
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5527   $as_echo_n "(cached) " >&6
5528 else
5529   if test -n "$ac_ct_NM"; then
5530   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5531 else
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5534 do
5535   IFS=$as_save_IFS
5536   test -z "$as_dir" && as_dir=.
5537     for ac_exec_ext in '' $ac_executable_extensions; do
5538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539     ac_cv_prog_ac_ct_NM="nm"
5540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5541     break 2
5542   fi
5543 done
5544   done
5545 IFS=$as_save_IFS
5546
5547 fi
5548 fi
5549 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5550 if test -n "$ac_ct_NM"; then
5551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5552 $as_echo "$ac_ct_NM" >&6; }
5553 else
5554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5556 fi
5557
5558   if test "x$ac_ct_NM" = x; then
5559     NM=""
5560   else
5561     case $cross_compiling:$ac_tool_warned in
5562 yes:)
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5565 ac_tool_warned=yes ;;
5566 esac
5567     NM=$ac_ct_NM
5568   fi
5569 else
5570   NM="$ac_cv_prog_NM"
5571 fi
5572
5573
5574 ac_ext=c
5575 ac_cpp='$CPP $CPPFLAGS'
5576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5579 if test -n "$ac_tool_prefix"; then
5580   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5581 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if ${ac_cv_prog_CC+:} false; then :
5585   $as_echo_n "(cached) " >&6
5586 else
5587   if test -n "$CC"; then
5588   ac_cv_prog_CC="$CC" # Let the user override the test.
5589 else
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5592 do
5593   IFS=$as_save_IFS
5594   test -z "$as_dir" && as_dir=.
5595     for ac_exec_ext in '' $ac_executable_extensions; do
5596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599     break 2
5600   fi
5601 done
5602   done
5603 IFS=$as_save_IFS
5604
5605 fi
5606 fi
5607 CC=$ac_cv_prog_CC
5608 if test -n "$CC"; then
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5610 $as_echo "$CC" >&6; }
5611 else
5612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5614 fi
5615
5616
5617 fi
5618 if test -z "$ac_cv_prog_CC"; then
5619   ac_ct_CC=$CC
5620   # Extract the first word of "gcc", so it can be a program name with args.
5621 set dummy gcc; ac_word=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5625   $as_echo_n "(cached) " >&6
5626 else
5627   if test -n "$ac_ct_CC"; then
5628   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5632 do
5633   IFS=$as_save_IFS
5634   test -z "$as_dir" && as_dir=.
5635     for ac_exec_ext in '' $ac_executable_extensions; do
5636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637     ac_cv_prog_ac_ct_CC="gcc"
5638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639     break 2
5640   fi
5641 done
5642   done
5643 IFS=$as_save_IFS
5644
5645 fi
5646 fi
5647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5648 if test -n "$ac_ct_CC"; then
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5650 $as_echo "$ac_ct_CC" >&6; }
5651 else
5652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5654 fi
5655
5656   if test "x$ac_ct_CC" = x; then
5657     CC=""
5658   else
5659     case $cross_compiling:$ac_tool_warned in
5660 yes:)
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5663 ac_tool_warned=yes ;;
5664 esac
5665     CC=$ac_ct_CC
5666   fi
5667 else
5668   CC="$ac_cv_prog_CC"
5669 fi
5670
5671 if test -z "$CC"; then
5672           if test -n "$ac_tool_prefix"; then
5673     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5674 set dummy ${ac_tool_prefix}cc; ac_word=$2
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676 $as_echo_n "checking for $ac_word... " >&6; }
5677 if ${ac_cv_prog_CC+:} false; then :
5678   $as_echo_n "(cached) " >&6
5679 else
5680   if test -n "$CC"; then
5681   ac_cv_prog_CC="$CC" # Let the user override the test.
5682 else
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH
5685 do
5686   IFS=$as_save_IFS
5687   test -z "$as_dir" && as_dir=.
5688     for ac_exec_ext in '' $ac_executable_extensions; do
5689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690     ac_cv_prog_CC="${ac_tool_prefix}cc"
5691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692     break 2
5693   fi
5694 done
5695   done
5696 IFS=$as_save_IFS
5697
5698 fi
5699 fi
5700 CC=$ac_cv_prog_CC
5701 if test -n "$CC"; then
5702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5703 $as_echo "$CC" >&6; }
5704 else
5705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5707 fi
5708
5709
5710   fi
5711 fi
5712 if test -z "$CC"; then
5713   # Extract the first word of "cc", so it can be a program name with args.
5714 set dummy cc; ac_word=$2
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716 $as_echo_n "checking for $ac_word... " >&6; }
5717 if ${ac_cv_prog_CC+:} false; then :
5718   $as_echo_n "(cached) " >&6
5719 else
5720   if test -n "$CC"; then
5721   ac_cv_prog_CC="$CC" # Let the user override the test.
5722 else
5723   ac_prog_rejected=no
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5726 do
5727   IFS=$as_save_IFS
5728   test -z "$as_dir" && as_dir=.
5729     for ac_exec_ext in '' $ac_executable_extensions; do
5730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5732        ac_prog_rejected=yes
5733        continue
5734      fi
5735     ac_cv_prog_CC="cc"
5736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737     break 2
5738   fi
5739 done
5740   done
5741 IFS=$as_save_IFS
5742
5743 if test $ac_prog_rejected = yes; then
5744   # We found a bogon in the path, so make sure we never use it.
5745   set dummy $ac_cv_prog_CC
5746   shift
5747   if test $# != 0; then
5748     # We chose a different compiler from the bogus one.
5749     # However, it has the same basename, so the bogon will be chosen
5750     # first if we set CC to just the basename; use the full file name.
5751     shift
5752     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5753   fi
5754 fi
5755 fi
5756 fi
5757 CC=$ac_cv_prog_CC
5758 if test -n "$CC"; then
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5760 $as_echo "$CC" >&6; }
5761 else
5762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5764 fi
5765
5766
5767 fi
5768 if test -z "$CC"; then
5769   if test -n "$ac_tool_prefix"; then
5770   for ac_prog in cl.exe
5771   do
5772     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5773 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775 $as_echo_n "checking for $ac_word... " >&6; }
5776 if ${ac_cv_prog_CC+:} false; then :
5777   $as_echo_n "(cached) " >&6
5778 else
5779   if test -n "$CC"; then
5780   ac_cv_prog_CC="$CC" # Let the user override the test.
5781 else
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 for as_dir in $PATH
5784 do
5785   IFS=$as_save_IFS
5786   test -z "$as_dir" && as_dir=.
5787     for ac_exec_ext in '' $ac_executable_extensions; do
5788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5789     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5791     break 2
5792   fi
5793 done
5794   done
5795 IFS=$as_save_IFS
5796
5797 fi
5798 fi
5799 CC=$ac_cv_prog_CC
5800 if test -n "$CC"; then
5801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5802 $as_echo "$CC" >&6; }
5803 else
5804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805 $as_echo "no" >&6; }
5806 fi
5807
5808
5809     test -n "$CC" && break
5810   done
5811 fi
5812 if test -z "$CC"; then
5813   ac_ct_CC=$CC
5814   for ac_prog in cl.exe
5815 do
5816   # Extract the first word of "$ac_prog", so it can be a program name with args.
5817 set dummy $ac_prog; ac_word=$2
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819 $as_echo_n "checking for $ac_word... " >&6; }
5820 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5821   $as_echo_n "(cached) " >&6
5822 else
5823   if test -n "$ac_ct_CC"; then
5824   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5825 else
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 for as_dir in $PATH
5828 do
5829   IFS=$as_save_IFS
5830   test -z "$as_dir" && as_dir=.
5831     for ac_exec_ext in '' $ac_executable_extensions; do
5832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5833     ac_cv_prog_ac_ct_CC="$ac_prog"
5834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5835     break 2
5836   fi
5837 done
5838   done
5839 IFS=$as_save_IFS
5840
5841 fi
5842 fi
5843 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5844 if test -n "$ac_ct_CC"; then
5845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5846 $as_echo "$ac_ct_CC" >&6; }
5847 else
5848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849 $as_echo "no" >&6; }
5850 fi
5851
5852
5853   test -n "$ac_ct_CC" && break
5854 done
5855
5856   if test "x$ac_ct_CC" = x; then
5857     CC=""
5858   else
5859     case $cross_compiling:$ac_tool_warned in
5860 yes:)
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5863 ac_tool_warned=yes ;;
5864 esac
5865     CC=$ac_ct_CC
5866   fi
5867 fi
5868
5869 fi
5870
5871
5872 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5874 as_fn_error $? "no acceptable C compiler found in \$PATH
5875 See \`config.log' for more details" "$LINENO" 5; }
5876
5877 # Provide some information about the compiler.
5878 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5879 set X $ac_compile
5880 ac_compiler=$2
5881 for ac_option in --version -v -V -qversion; do
5882   { { ac_try="$ac_compiler $ac_option >&5"
5883 case "(($ac_try" in
5884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885   *) ac_try_echo=$ac_try;;
5886 esac
5887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5888 $as_echo "$ac_try_echo"; } >&5
5889   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5890   ac_status=$?
5891   if test -s conftest.err; then
5892     sed '10a\
5893 ... rest of stderr output deleted ...
5894          10q' conftest.err >conftest.er1
5895     cat conftest.er1 >&5
5896   fi
5897   rm -f conftest.er1 conftest.err
5898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5899   test $ac_status = 0; }
5900 done
5901
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5903 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5904 if ${ac_cv_c_compiler_gnu+:} false; then :
5905   $as_echo_n "(cached) " >&6
5906 else
5907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h.  */
5909
5910 int
5911 main ()
5912 {
5913 #ifndef __GNUC__
5914        choke me
5915 #endif
5916
5917   ;
5918   return 0;
5919 }
5920 _ACEOF
5921 if ac_fn_c_try_compile "$LINENO"; then :
5922   ac_compiler_gnu=yes
5923 else
5924   ac_compiler_gnu=no
5925 fi
5926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5928
5929 fi
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5931 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5932 if test $ac_compiler_gnu = yes; then
5933   GCC=yes
5934 else
5935   GCC=
5936 fi
5937 ac_test_CFLAGS=${CFLAGS+set}
5938 ac_save_CFLAGS=$CFLAGS
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5940 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5941 if ${ac_cv_prog_cc_g+:} false; then :
5942   $as_echo_n "(cached) " >&6
5943 else
5944   ac_save_c_werror_flag=$ac_c_werror_flag
5945    ac_c_werror_flag=yes
5946    ac_cv_prog_cc_g=no
5947    CFLAGS="-g"
5948    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h.  */
5950
5951 int
5952 main ()
5953 {
5954
5955   ;
5956   return 0;
5957 }
5958 _ACEOF
5959 if ac_fn_c_try_compile "$LINENO"; then :
5960   ac_cv_prog_cc_g=yes
5961 else
5962   CFLAGS=""
5963       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h.  */
5965
5966 int
5967 main ()
5968 {
5969
5970   ;
5971   return 0;
5972 }
5973 _ACEOF
5974 if ac_fn_c_try_compile "$LINENO"; then :
5975
5976 else
5977   ac_c_werror_flag=$ac_save_c_werror_flag
5978          CFLAGS="-g"
5979          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h.  */
5981
5982 int
5983 main ()
5984 {
5985
5986   ;
5987   return 0;
5988 }
5989 _ACEOF
5990 if ac_fn_c_try_compile "$LINENO"; then :
5991   ac_cv_prog_cc_g=yes
5992 fi
5993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994 fi
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 fi
5997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998    ac_c_werror_flag=$ac_save_c_werror_flag
5999 fi
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6001 $as_echo "$ac_cv_prog_cc_g" >&6; }
6002 if test "$ac_test_CFLAGS" = set; then
6003   CFLAGS=$ac_save_CFLAGS
6004 elif test $ac_cv_prog_cc_g = yes; then
6005   if test "$GCC" = yes; then
6006     CFLAGS="-g -O2"
6007   else
6008     CFLAGS="-g"
6009   fi
6010 else
6011   if test "$GCC" = yes; then
6012     CFLAGS="-O2"
6013   else
6014     CFLAGS=
6015   fi
6016 fi
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6018 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6019 if ${ac_cv_prog_cc_c89+:} false; then :
6020   $as_echo_n "(cached) " >&6
6021 else
6022   ac_cv_prog_cc_c89=no
6023 ac_save_CC=$CC
6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h.  */
6026 #include <stdarg.h>
6027 #include <stdio.h>
6028 struct stat;
6029 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6030 struct buf { int x; };
6031 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6032 static char *e (p, i)
6033      char **p;
6034      int i;
6035 {
6036   return p[i];
6037 }
6038 static char *f (char * (*g) (char **, int), char **p, ...)
6039 {
6040   char *s;
6041   va_list v;
6042   va_start (v,p);
6043   s = g (p, va_arg (v,int));
6044   va_end (v);
6045   return s;
6046 }
6047
6048 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6049    function prototypes and stuff, but not '\xHH' hex character constants.
6050    These don't provoke an error unfortunately, instead are silently treated
6051    as 'x'.  The following induces an error, until -std is added to get
6052    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6053    array size at least.  It's necessary to write '\x00'==0 to get something
6054    that's true only with -std.  */
6055 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6056
6057 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6058    inside strings and character constants.  */
6059 #define FOO(x) 'x'
6060 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6061
6062 int test (int i, double x);
6063 struct s1 {int (*f) (int a);};
6064 struct s2 {int (*f) (double a);};
6065 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6066 int argc;
6067 char **argv;
6068 int
6069 main ()
6070 {
6071 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6072   ;
6073   return 0;
6074 }
6075 _ACEOF
6076 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6077         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6078 do
6079   CC="$ac_save_CC $ac_arg"
6080   if ac_fn_c_try_compile "$LINENO"; then :
6081   ac_cv_prog_cc_c89=$ac_arg
6082 fi
6083 rm -f core conftest.err conftest.$ac_objext
6084   test "x$ac_cv_prog_cc_c89" != "xno" && break
6085 done
6086 rm -f conftest.$ac_ext
6087 CC=$ac_save_CC
6088
6089 fi
6090 # AC_CACHE_VAL
6091 case "x$ac_cv_prog_cc_c89" in
6092   x)
6093     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6094 $as_echo "none needed" >&6; } ;;
6095   xno)
6096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6097 $as_echo "unsupported" >&6; } ;;
6098   *)
6099     CC="$CC $ac_cv_prog_cc_c89"
6100     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6101 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6102 esac
6103 if test "x$ac_cv_prog_cc_c89" != xno; then :
6104
6105 fi
6106
6107 ac_ext=c
6108 ac_cpp='$CPP $CPPFLAGS'
6109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6112
6113 ac_ext=c
6114 ac_cpp='$CPP $CPPFLAGS'
6115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6119 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6120 if ${am_cv_prog_cc_c_o+:} false; then :
6121   $as_echo_n "(cached) " >&6
6122 else
6123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h.  */
6125
6126 int
6127 main ()
6128 {
6129
6130   ;
6131   return 0;
6132 }
6133 _ACEOF
6134   # Make sure it works both with $CC and with simple cc.
6135   # Following AC_PROG_CC_C_O, we do the test twice because some
6136   # compilers refuse to overwrite an existing .o file with -o,
6137   # though they will create one.
6138   am_cv_prog_cc_c_o=yes
6139   for am_i in 1 2; do
6140     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6141    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6142    ac_status=$?
6143    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144    (exit $ac_status); } \
6145          && test -f conftest2.$ac_objext; then
6146       : OK
6147     else
6148       am_cv_prog_cc_c_o=no
6149       break
6150     fi
6151   done
6152   rm -f core conftest*
6153   unset am_i
6154 fi
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6156 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6157 if test "$am_cv_prog_cc_c_o" != yes; then
6158    # Losing compiler, so override with the script.
6159    # FIXME: It is wrong to rewrite CC.
6160    # But if we don't then we get into trouble of one sort or another.
6161    # A longer-term fix would be to have automake use am__CC in this case,
6162    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6163    CC="$am_aux_dir/compile $CC"
6164 fi
6165 ac_ext=c
6166 ac_cpp='$CPP $CPPFLAGS'
6167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6170
6171
6172 depcc="$CC"   am_compiler_list=
6173
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6175 $as_echo_n "checking dependency style of $depcc... " >&6; }
6176 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6177   $as_echo_n "(cached) " >&6
6178 else
6179   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6180   # We make a subdir and do the tests there.  Otherwise we can end up
6181   # making bogus files that we don't know about and never remove.  For
6182   # instance it was reported that on HP-UX the gcc test will end up
6183   # making a dummy file named 'D' -- because '-MD' means "put the output
6184   # in D".
6185   rm -rf conftest.dir
6186   mkdir conftest.dir
6187   # Copy depcomp to subdir because otherwise we won't find it if we're
6188   # using a relative directory.
6189   cp "$am_depcomp" conftest.dir
6190   cd conftest.dir
6191   # We will build objects and dependencies in a subdirectory because
6192   # it helps to detect inapplicable dependency modes.  For instance
6193   # both Tru64's cc and ICC support -MD to output dependencies as a
6194   # side effect of compilation, but ICC will put the dependencies in
6195   # the current directory while Tru64 will put them in the object
6196   # directory.
6197   mkdir sub
6198
6199   am_cv_CC_dependencies_compiler_type=none
6200   if test "$am_compiler_list" = ""; then
6201      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6202   fi
6203   am__universal=false
6204   case " $depcc " in #(
6205      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6206      esac
6207
6208   for depmode in $am_compiler_list; do
6209     # Setup a source with many dependencies, because some compilers
6210     # like to wrap large dependency lists on column 80 (with \), and
6211     # we should not choose a depcomp mode which is confused by this.
6212     #
6213     # We need to recreate these files for each test, as the compiler may
6214     # overwrite some of them when testing with obscure command lines.
6215     # This happens at least with the AIX C compiler.
6216     : > sub/conftest.c
6217     for i in 1 2 3 4 5 6; do
6218       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6219       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6220       # Solaris 10 /bin/sh.
6221       echo '/* dummy */' > sub/conftst$i.h
6222     done
6223     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6224
6225     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6226     # mode.  It turns out that the SunPro C++ compiler does not properly
6227     # handle '-M -o', and we need to detect this.  Also, some Intel
6228     # versions had trouble with output in subdirs.
6229     am__obj=sub/conftest.${OBJEXT-o}
6230     am__minus_obj="-o $am__obj"
6231     case $depmode in
6232     gcc)
6233       # This depmode causes a compiler race in universal mode.
6234       test "$am__universal" = false || continue
6235       ;;
6236     nosideeffect)
6237       # After this tag, mechanisms are not by side-effect, so they'll
6238       # only be used when explicitly requested.
6239       if test "x$enable_dependency_tracking" = xyes; then
6240         continue
6241       else
6242         break
6243       fi
6244       ;;
6245     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6246       # This compiler won't grok '-c -o', but also, the minuso test has
6247       # not run yet.  These depmodes are late enough in the game, and
6248       # so weak that their functioning should not be impacted.
6249       am__obj=conftest.${OBJEXT-o}
6250       am__minus_obj=
6251       ;;
6252     none) break ;;
6253     esac
6254     if depmode=$depmode \
6255        source=sub/conftest.c object=$am__obj \
6256        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6257        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6258          >/dev/null 2>conftest.err &&
6259        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6260        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6261        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6262        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6263       # icc doesn't choke on unknown options, it will just issue warnings
6264       # or remarks (even with -Werror).  So we grep stderr for any message
6265       # that says an option was ignored or not supported.
6266       # When given -MP, icc 7.0 and 7.1 complain thusly:
6267       #   icc: Command line warning: ignoring option '-M'; no argument required
6268       # The diagnosis changed in icc 8.0:
6269       #   icc: Command line remark: option '-MP' not supported
6270       if (grep 'ignoring option' conftest.err ||
6271           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6272         am_cv_CC_dependencies_compiler_type=$depmode
6273         break
6274       fi
6275     fi
6276   done
6277
6278   cd ..
6279   rm -rf conftest.dir
6280 else
6281   am_cv_CC_dependencies_compiler_type=none
6282 fi
6283
6284 fi
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6286 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6287 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6288
6289  if
6290   test "x$enable_dependency_tracking" != xno \
6291   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6292   am__fastdepCC_TRUE=
6293   am__fastdepCC_FALSE='#'
6294 else
6295   am__fastdepCC_TRUE='#'
6296   am__fastdepCC_FALSE=
6297 fi
6298
6299
6300 ac_ext=cpp
6301 ac_cpp='$CXXCPP $CPPFLAGS'
6302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6305 if test -z "$CXX"; then
6306   if test -n "$CCC"; then
6307     CXX=$CCC
6308   else
6309     if test -n "$ac_tool_prefix"; then
6310   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6311   do
6312     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6313 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315 $as_echo_n "checking for $ac_word... " >&6; }
6316 if ${ac_cv_prog_CXX+:} false; then :
6317   $as_echo_n "(cached) " >&6
6318 else
6319   if test -n "$CXX"; then
6320   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6324 do
6325   IFS=$as_save_IFS
6326   test -z "$as_dir" && as_dir=.
6327     for ac_exec_ext in '' $ac_executable_extensions; do
6328   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331     break 2
6332   fi
6333 done
6334   done
6335 IFS=$as_save_IFS
6336
6337 fi
6338 fi
6339 CXX=$ac_cv_prog_CXX
6340 if test -n "$CXX"; then
6341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6342 $as_echo "$CXX" >&6; }
6343 else
6344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6346 fi
6347
6348
6349     test -n "$CXX" && break
6350   done
6351 fi
6352 if test -z "$CXX"; then
6353   ac_ct_CXX=$CXX
6354   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6355 do
6356   # Extract the first word of "$ac_prog", so it can be a program name with args.
6357 set dummy $ac_prog; ac_word=$2
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359 $as_echo_n "checking for $ac_word... " >&6; }
6360 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6361   $as_echo_n "(cached) " >&6
6362 else
6363   if test -n "$ac_ct_CXX"; then
6364   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6365 else
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in $PATH
6368 do
6369   IFS=$as_save_IFS
6370   test -z "$as_dir" && as_dir=.
6371     for ac_exec_ext in '' $ac_executable_extensions; do
6372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6373     ac_cv_prog_ac_ct_CXX="$ac_prog"
6374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375     break 2
6376   fi
6377 done
6378   done
6379 IFS=$as_save_IFS
6380
6381 fi
6382 fi
6383 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6384 if test -n "$ac_ct_CXX"; then
6385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6386 $as_echo "$ac_ct_CXX" >&6; }
6387 else
6388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 $as_echo "no" >&6; }
6390 fi
6391
6392
6393   test -n "$ac_ct_CXX" && break
6394 done
6395
6396   if test "x$ac_ct_CXX" = x; then
6397     CXX="g++"
6398   else
6399     case $cross_compiling:$ac_tool_warned in
6400 yes:)
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6403 ac_tool_warned=yes ;;
6404 esac
6405     CXX=$ac_ct_CXX
6406   fi
6407 fi
6408
6409   fi
6410 fi
6411 # Provide some information about the compiler.
6412 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6413 set X $ac_compile
6414 ac_compiler=$2
6415 for ac_option in --version -v -V -qversion; do
6416   { { ac_try="$ac_compiler $ac_option >&5"
6417 case "(($ac_try" in
6418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6419   *) ac_try_echo=$ac_try;;
6420 esac
6421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6422 $as_echo "$ac_try_echo"; } >&5
6423   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6424   ac_status=$?
6425   if test -s conftest.err; then
6426     sed '10a\
6427 ... rest of stderr output deleted ...
6428          10q' conftest.err >conftest.er1
6429     cat conftest.er1 >&5
6430   fi
6431   rm -f conftest.er1 conftest.err
6432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6433   test $ac_status = 0; }
6434 done
6435
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6437 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6438 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6439   $as_echo_n "(cached) " >&6
6440 else
6441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h.  */
6443
6444 int
6445 main ()
6446 {
6447 #ifndef __GNUC__
6448        choke me
6449 #endif
6450
6451   ;
6452   return 0;
6453 }
6454 _ACEOF
6455 if ac_fn_cxx_try_compile "$LINENO"; then :
6456   ac_compiler_gnu=yes
6457 else
6458   ac_compiler_gnu=no
6459 fi
6460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6462
6463 fi
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6465 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6466 if test $ac_compiler_gnu = yes; then
6467   GXX=yes
6468 else
6469   GXX=
6470 fi
6471 ac_test_CXXFLAGS=${CXXFLAGS+set}
6472 ac_save_CXXFLAGS=$CXXFLAGS
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6474 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6475 if ${ac_cv_prog_cxx_g+:} false; then :
6476   $as_echo_n "(cached) " >&6
6477 else
6478   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6479    ac_cxx_werror_flag=yes
6480    ac_cv_prog_cxx_g=no
6481    CXXFLAGS="-g"
6482    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h.  */
6484
6485 int
6486 main ()
6487 {
6488
6489   ;
6490   return 0;
6491 }
6492 _ACEOF
6493 if ac_fn_cxx_try_compile "$LINENO"; then :
6494   ac_cv_prog_cxx_g=yes
6495 else
6496   CXXFLAGS=""
6497       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h.  */
6499
6500 int
6501 main ()
6502 {
6503
6504   ;
6505   return 0;
6506 }
6507 _ACEOF
6508 if ac_fn_cxx_try_compile "$LINENO"; then :
6509
6510 else
6511   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6512          CXXFLAGS="-g"
6513          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h.  */
6515
6516 int
6517 main ()
6518 {
6519
6520   ;
6521   return 0;
6522 }
6523 _ACEOF
6524 if ac_fn_cxx_try_compile "$LINENO"; then :
6525   ac_cv_prog_cxx_g=yes
6526 fi
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528 fi
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 fi
6531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6533 fi
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6535 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6536 if test "$ac_test_CXXFLAGS" = set; then
6537   CXXFLAGS=$ac_save_CXXFLAGS
6538 elif test $ac_cv_prog_cxx_g = yes; then
6539   if test "$GXX" = yes; then
6540     CXXFLAGS="-g -O2"
6541   else
6542     CXXFLAGS="-g"
6543   fi
6544 else
6545   if test "$GXX" = yes; then
6546     CXXFLAGS="-O2"
6547   else
6548     CXXFLAGS=
6549   fi
6550 fi
6551 ac_ext=c
6552 ac_cpp='$CPP $CPPFLAGS'
6553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6556
6557 depcc="$CXX"  am_compiler_list=
6558
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6560 $as_echo_n "checking dependency style of $depcc... " >&6; }
6561 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6562   $as_echo_n "(cached) " >&6
6563 else
6564   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6565   # We make a subdir and do the tests there.  Otherwise we can end up
6566   # making bogus files that we don't know about and never remove.  For
6567   # instance it was reported that on HP-UX the gcc test will end up
6568   # making a dummy file named 'D' -- because '-MD' means "put the output
6569   # in D".
6570   rm -rf conftest.dir
6571   mkdir conftest.dir
6572   # Copy depcomp to subdir because otherwise we won't find it if we're
6573   # using a relative directory.
6574   cp "$am_depcomp" conftest.dir
6575   cd conftest.dir
6576   # We will build objects and dependencies in a subdirectory because
6577   # it helps to detect inapplicable dependency modes.  For instance
6578   # both Tru64's cc and ICC support -MD to output dependencies as a
6579   # side effect of compilation, but ICC will put the dependencies in
6580   # the current directory while Tru64 will put them in the object
6581   # directory.
6582   mkdir sub
6583
6584   am_cv_CXX_dependencies_compiler_type=none
6585   if test "$am_compiler_list" = ""; then
6586      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6587   fi
6588   am__universal=false
6589   case " $depcc " in #(
6590      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6591      esac
6592
6593   for depmode in $am_compiler_list; do
6594     # Setup a source with many dependencies, because some compilers
6595     # like to wrap large dependency lists on column 80 (with \), and
6596     # we should not choose a depcomp mode which is confused by this.
6597     #
6598     # We need to recreate these files for each test, as the compiler may
6599     # overwrite some of them when testing with obscure command lines.
6600     # This happens at least with the AIX C compiler.
6601     : > sub/conftest.c
6602     for i in 1 2 3 4 5 6; do
6603       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6604       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6605       # Solaris 10 /bin/sh.
6606       echo '/* dummy */' > sub/conftst$i.h
6607     done
6608     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6609
6610     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6611     # mode.  It turns out that the SunPro C++ compiler does not properly
6612     # handle '-M -o', and we need to detect this.  Also, some Intel
6613     # versions had trouble with output in subdirs.
6614     am__obj=sub/conftest.${OBJEXT-o}
6615     am__minus_obj="-o $am__obj"
6616     case $depmode in
6617     gcc)
6618       # This depmode causes a compiler race in universal mode.
6619       test "$am__universal" = false || continue
6620       ;;
6621     nosideeffect)
6622       # After this tag, mechanisms are not by side-effect, so they'll
6623       # only be used when explicitly requested.
6624       if test "x$enable_dependency_tracking" = xyes; then
6625         continue
6626       else
6627         break
6628       fi
6629       ;;
6630     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6631       # This compiler won't grok '-c -o', but also, the minuso test has
6632       # not run yet.  These depmodes are late enough in the game, and
6633       # so weak that their functioning should not be impacted.
6634       am__obj=conftest.${OBJEXT-o}
6635       am__minus_obj=
6636       ;;
6637     none) break ;;
6638     esac
6639     if depmode=$depmode \
6640        source=sub/conftest.c object=$am__obj \
6641        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6642        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6643          >/dev/null 2>conftest.err &&
6644        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6645        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6646        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6647        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6648       # icc doesn't choke on unknown options, it will just issue warnings
6649       # or remarks (even with -Werror).  So we grep stderr for any message
6650       # that says an option was ignored or not supported.
6651       # When given -MP, icc 7.0 and 7.1 complain thusly:
6652       #   icc: Command line warning: ignoring option '-M'; no argument required
6653       # The diagnosis changed in icc 8.0:
6654       #   icc: Command line remark: option '-MP' not supported
6655       if (grep 'ignoring option' conftest.err ||
6656           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6657         am_cv_CXX_dependencies_compiler_type=$depmode
6658         break
6659       fi
6660     fi
6661   done
6662
6663   cd ..
6664   rm -rf conftest.dir
6665 else
6666   am_cv_CXX_dependencies_compiler_type=none
6667 fi
6668
6669 fi
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6671 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6672 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6673
6674  if
6675   test "x$enable_dependency_tracking" != xno \
6676   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6677   am__fastdepCXX_TRUE=
6678   am__fastdepCXX_FALSE='#'
6679 else
6680   am__fastdepCXX_TRUE='#'
6681   am__fastdepCXX_FALSE=
6682 fi
6683
6684
6685 for ac_prog in 'bison -y' byacc
6686 do
6687   # Extract the first word of "$ac_prog", so it can be a program name with args.
6688 set dummy $ac_prog; ac_word=$2
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if ${ac_cv_prog_YACC+:} false; then :
6692   $as_echo_n "(cached) " >&6
6693 else
6694   if test -n "$YACC"; then
6695   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6696 else
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 for as_dir in $PATH
6699 do
6700   IFS=$as_save_IFS
6701   test -z "$as_dir" && as_dir=.
6702     for ac_exec_ext in '' $ac_executable_extensions; do
6703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6704     ac_cv_prog_YACC="$ac_prog"
6705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706     break 2
6707   fi
6708 done
6709   done
6710 IFS=$as_save_IFS
6711
6712 fi
6713 fi
6714 YACC=$ac_cv_prog_YACC
6715 if test -n "$YACC"; then
6716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6717 $as_echo "$YACC" >&6; }
6718 else
6719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6721 fi
6722
6723
6724   test -n "$YACC" && break
6725 done
6726 test -n "$YACC" || YACC="yacc"
6727
6728 if test -n "$ac_tool_prefix"; then
6729   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6730 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if ${ac_cv_prog_RANLIB+:} false; then :
6734   $as_echo_n "(cached) " >&6
6735 else
6736   if test -n "$RANLIB"; then
6737   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6738 else
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744     for ac_exec_ext in '' $ac_executable_extensions; do
6745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751   done
6752 IFS=$as_save_IFS
6753
6754 fi
6755 fi
6756 RANLIB=$ac_cv_prog_RANLIB
6757 if test -n "$RANLIB"; then
6758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6759 $as_echo "$RANLIB" >&6; }
6760 else
6761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 $as_echo "no" >&6; }
6763 fi
6764
6765
6766 fi
6767 if test -z "$ac_cv_prog_RANLIB"; then
6768   ac_ct_RANLIB=$RANLIB
6769   # Extract the first word of "ranlib", so it can be a program name with args.
6770 set dummy ranlib; ac_word=$2
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772 $as_echo_n "checking for $ac_word... " >&6; }
6773 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6774   $as_echo_n "(cached) " >&6
6775 else
6776   if test -n "$ac_ct_RANLIB"; then
6777   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782   IFS=$as_save_IFS
6783   test -z "$as_dir" && as_dir=.
6784     for ac_exec_ext in '' $ac_executable_extensions; do
6785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6786     ac_cv_prog_ac_ct_RANLIB="ranlib"
6787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788     break 2
6789   fi
6790 done
6791   done
6792 IFS=$as_save_IFS
6793
6794 fi
6795 fi
6796 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6797 if test -n "$ac_ct_RANLIB"; then
6798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6799 $as_echo "$ac_ct_RANLIB" >&6; }
6800 else
6801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 $as_echo "no" >&6; }
6803 fi
6804
6805   if test "x$ac_ct_RANLIB" = x; then
6806     RANLIB=":"
6807   else
6808     case $cross_compiling:$ac_tool_warned in
6809 yes:)
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6812 ac_tool_warned=yes ;;
6813 esac
6814     RANLIB=$ac_ct_RANLIB
6815   fi
6816 else
6817   RANLIB="$ac_cv_prog_RANLIB"
6818 fi
6819
6820
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6822 $as_echo_n "checking whether ln -s works... " >&6; }
6823 LN_S=$as_ln_s
6824 if test "$LN_S" = "ln -s"; then
6825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6826 $as_echo "yes" >&6; }
6827 else
6828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6829 $as_echo "no, using $LN_S" >&6; }
6830 fi
6831
6832
6833
6834
6835 # If we haven't got the data from the intl directory,
6836 # assume NLS is disabled.
6837 USE_NLS=no
6838 LIBINTL=
6839 LIBINTL_DEP=
6840 INCINTL=
6841 XGETTEXT=
6842 GMSGFMT=
6843 POSUB=
6844
6845 if test -f  ../intl/config.intl; then
6846   .  ../intl/config.intl
6847 fi
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6849 $as_echo_n "checking whether NLS is requested... " >&6; }
6850 if test x"$USE_NLS" != xyes; then
6851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6853 else
6854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6855 $as_echo "yes" >&6; }
6856
6857 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6858
6859
6860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6861 $as_echo_n "checking for catalogs to be installed... " >&6; }
6862   # Look for .po and .gmo files in the source directory.
6863   CATALOGS=
6864   XLINGUAS=
6865   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6866     # If there aren't any .gmo files the shell will give us the
6867     # literal string "../path/to/srcdir/po/*.gmo" which has to be
6868     # weeded out.
6869     case "$cat" in *\**)
6870       continue;;
6871     esac
6872     # The quadruple backslash is collapsed to a double backslash
6873     # by the backticks, then collapsed again by the double quotes,
6874     # leaving us with one backslash in the sed expression (right
6875     # before the dot that mustn't act as a wildcard).
6876     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6877     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6878     # The user is allowed to set LINGUAS to a list of languages to
6879     # install catalogs for.  If it's empty that means "all of them."
6880     if test "x$LINGUAS" = x; then
6881       CATALOGS="$CATALOGS $cat"
6882       XLINGUAS="$XLINGUAS $lang"
6883     else
6884       case "$LINGUAS" in *$lang*)
6885         CATALOGS="$CATALOGS $cat"
6886         XLINGUAS="$XLINGUAS $lang"
6887         ;;
6888       esac
6889     fi
6890   done
6891   LINGUAS="$XLINGUAS"
6892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6893 $as_echo "$LINGUAS" >&6; }
6894
6895
6896     DATADIRNAME=share
6897
6898   INSTOBJEXT=.mo
6899
6900   GENCAT=gencat
6901
6902   CATOBJEXT=.gmo
6903
6904 fi
6905
6906         MKINSTALLDIRS=
6907   if test -n "$ac_aux_dir"; then
6908     case "$ac_aux_dir" in
6909       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6910       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6911     esac
6912   fi
6913   if test -z "$MKINSTALLDIRS"; then
6914     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6915   fi
6916
6917
6918
6919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6920 $as_echo_n "checking whether NLS is requested... " >&6; }
6921     # Check whether --enable-nls was given.
6922 if test "${enable_nls+set}" = set; then :
6923   enableval=$enable_nls; USE_NLS=$enableval
6924 else
6925   USE_NLS=yes
6926 fi
6927
6928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6929 $as_echo "$USE_NLS" >&6; }
6930
6931
6932
6933
6934
6935
6936 # Prepare PATH_SEPARATOR.
6937 # The user is always right.
6938 if test "${PATH_SEPARATOR+set}" != set; then
6939   echo "#! /bin/sh" >conf$$.sh
6940   echo  "exit 0"   >>conf$$.sh
6941   chmod +x conf$$.sh
6942   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6943     PATH_SEPARATOR=';'
6944   else
6945     PATH_SEPARATOR=:
6946   fi
6947   rm -f conf$$.sh
6948 fi
6949
6950 # Find out how to test for executable files. Don't use a zero-byte file,
6951 # as systems may use methods other than mode bits to determine executability.
6952 cat >conf$$.file <<_ASEOF
6953 #! /bin/sh
6954 exit 0
6955 _ASEOF
6956 chmod +x conf$$.file
6957 if test -x conf$$.file >/dev/null 2>&1; then
6958   ac_executable_p="test -x"
6959 else
6960   ac_executable_p="test -f"
6961 fi
6962 rm -f conf$$.file
6963
6964 # Extract the first word of "msgfmt", so it can be a program name with args.
6965 set dummy msgfmt; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if ${ac_cv_path_MSGFMT+:} false; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   case "$MSGFMT" in
6972   [\\/]* | ?:[\\/]*)
6973     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6974     ;;
6975   *)
6976     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6977     for ac_dir in $PATH; do
6978       IFS="$ac_save_IFS"
6979       test -z "$ac_dir" && ac_dir=.
6980       for ac_exec_ext in '' $ac_executable_extensions; do
6981         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6982           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6983      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6984             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6985             break 2
6986           fi
6987         fi
6988       done
6989     done
6990     IFS="$ac_save_IFS"
6991   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6992     ;;
6993 esac
6994 fi
6995 MSGFMT="$ac_cv_path_MSGFMT"
6996 if test "$MSGFMT" != ":"; then
6997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6998 $as_echo "$MSGFMT" >&6; }
6999 else
7000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7002 fi
7003
7004   # Extract the first word of "gmsgfmt", so it can be a program name with args.
7005 set dummy gmsgfmt; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if ${ac_cv_path_GMSGFMT+:} false; then :
7009   $as_echo_n "(cached) " >&6
7010 else
7011   case $GMSGFMT in
7012   [\\/]* | ?:[\\/]*)
7013   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7014   ;;
7015   *)
7016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019   IFS=$as_save_IFS
7020   test -z "$as_dir" && as_dir=.
7021     for ac_exec_ext in '' $ac_executable_extensions; do
7022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025     break 2
7026   fi
7027 done
7028   done
7029 IFS=$as_save_IFS
7030
7031   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7032   ;;
7033 esac
7034 fi
7035 GMSGFMT=$ac_cv_path_GMSGFMT
7036 if test -n "$GMSGFMT"; then
7037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7038 $as_echo "$GMSGFMT" >&6; }
7039 else
7040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 $as_echo "no" >&6; }
7042 fi
7043
7044
7045
7046
7047 # Prepare PATH_SEPARATOR.
7048 # The user is always right.
7049 if test "${PATH_SEPARATOR+set}" != set; then
7050   echo "#! /bin/sh" >conf$$.sh
7051   echo  "exit 0"   >>conf$$.sh
7052   chmod +x conf$$.sh
7053   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7054     PATH_SEPARATOR=';'
7055   else
7056     PATH_SEPARATOR=:
7057   fi
7058   rm -f conf$$.sh
7059 fi
7060
7061 # Find out how to test for executable files. Don't use a zero-byte file,
7062 # as systems may use methods other than mode bits to determine executability.
7063 cat >conf$$.file <<_ASEOF
7064 #! /bin/sh
7065 exit 0
7066 _ASEOF
7067 chmod +x conf$$.file
7068 if test -x conf$$.file >/dev/null 2>&1; then
7069   ac_executable_p="test -x"
7070 else
7071   ac_executable_p="test -f"
7072 fi
7073 rm -f conf$$.file
7074
7075 # Extract the first word of "xgettext", so it can be a program name with args.
7076 set dummy xgettext; ac_word=$2
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7078 $as_echo_n "checking for $ac_word... " >&6; }
7079 if ${ac_cv_path_XGETTEXT+:} false; then :
7080   $as_echo_n "(cached) " >&6
7081 else
7082   case "$XGETTEXT" in
7083   [\\/]* | ?:[\\/]*)
7084     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7085     ;;
7086   *)
7087     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7088     for ac_dir in $PATH; do
7089       IFS="$ac_save_IFS"
7090       test -z "$ac_dir" && ac_dir=.
7091       for ac_exec_ext in '' $ac_executable_extensions; do
7092         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7093           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7094      (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
7095             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7096             break 2
7097           fi
7098         fi
7099       done
7100     done
7101     IFS="$ac_save_IFS"
7102   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7103     ;;
7104 esac
7105 fi
7106 XGETTEXT="$ac_cv_path_XGETTEXT"
7107 if test "$XGETTEXT" != ":"; then
7108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7109 $as_echo "$XGETTEXT" >&6; }
7110 else
7111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7113 fi
7114
7115     rm -f messages.po
7116
7117
7118 # Prepare PATH_SEPARATOR.
7119 # The user is always right.
7120 if test "${PATH_SEPARATOR+set}" != set; then
7121   echo "#! /bin/sh" >conf$$.sh
7122   echo  "exit 0"   >>conf$$.sh
7123   chmod +x conf$$.sh
7124   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7125     PATH_SEPARATOR=';'
7126   else
7127     PATH_SEPARATOR=:
7128   fi
7129   rm -f conf$$.sh
7130 fi
7131
7132 # Find out how to test for executable files. Don't use a zero-byte file,
7133 # as systems may use methods other than mode bits to determine executability.
7134 cat >conf$$.file <<_ASEOF
7135 #! /bin/sh
7136 exit 0
7137 _ASEOF
7138 chmod +x conf$$.file
7139 if test -x conf$$.file >/dev/null 2>&1; then
7140   ac_executable_p="test -x"
7141 else
7142   ac_executable_p="test -f"
7143 fi
7144 rm -f conf$$.file
7145
7146 # Extract the first word of "msgmerge", so it can be a program name with args.
7147 set dummy msgmerge; ac_word=$2
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 $as_echo_n "checking for $ac_word... " >&6; }
7150 if ${ac_cv_path_MSGMERGE+:} false; then :
7151   $as_echo_n "(cached) " >&6
7152 else
7153   case "$MSGMERGE" in
7154   [\\/]* | ?:[\\/]*)
7155     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7156     ;;
7157   *)
7158     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7159     for ac_dir in $PATH; do
7160       IFS="$ac_save_IFS"
7161       test -z "$ac_dir" && ac_dir=.
7162       for ac_exec_ext in '' $ac_executable_extensions; do
7163         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7164           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7165             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7166             break 2
7167           fi
7168         fi
7169       done
7170     done
7171     IFS="$ac_save_IFS"
7172   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7173     ;;
7174 esac
7175 fi
7176 MSGMERGE="$ac_cv_path_MSGMERGE"
7177 if test "$MSGMERGE" != ":"; then
7178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7179 $as_echo "$MSGMERGE" >&6; }
7180 else
7181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182 $as_echo "no" >&6; }
7183 fi
7184
7185
7186       if test "$GMSGFMT" != ":"; then
7187             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7188        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7189       : ;
7190     else
7191       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7192       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7193 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7194       GMSGFMT=":"
7195     fi
7196   fi
7197
7198       if test "$XGETTEXT" != ":"; then
7199             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7200        (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
7201       : ;
7202     else
7203       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7204 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7205       XGETTEXT=":"
7206     fi
7207         rm -f messages.po
7208   fi
7209
7210   ac_config_commands="$ac_config_commands default-1"
7211
7212
7213
7214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7215 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7216 if ${ac_cv_c_bigendian+:} false; then :
7217   $as_echo_n "(cached) " >&6
7218 else
7219   ac_cv_c_bigendian=unknown
7220     # See if we're dealing with a universal compiler.
7221     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h.  */
7223 #ifndef __APPLE_CC__
7224                not a universal capable compiler
7225              #endif
7226              typedef int dummy;
7227
7228 _ACEOF
7229 if ac_fn_c_try_compile "$LINENO"; then :
7230
7231         # Check for potential -arch flags.  It is not universal unless
7232         # there are at least two -arch flags with different values.
7233         ac_arch=
7234         ac_prev=
7235         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7236          if test -n "$ac_prev"; then
7237            case $ac_word in
7238              i?86 | x86_64 | ppc | ppc64)
7239                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7240                  ac_arch=$ac_word
7241                else
7242                  ac_cv_c_bigendian=universal
7243                  break
7244                fi
7245                ;;
7246            esac
7247            ac_prev=
7248          elif test "x$ac_word" = "x-arch"; then
7249            ac_prev=arch
7250          fi
7251        done
7252 fi
7253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7254     if test $ac_cv_c_bigendian = unknown; then
7255       # See if sys/param.h defines the BYTE_ORDER macro.
7256       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h.  */
7258 #include <sys/types.h>
7259              #include <sys/param.h>
7260
7261 int
7262 main ()
7263 {
7264 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7265                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7266                      && LITTLE_ENDIAN)
7267               bogus endian macros
7268              #endif
7269
7270   ;
7271   return 0;
7272 }
7273 _ACEOF
7274 if ac_fn_c_try_compile "$LINENO"; then :
7275   # It does; now see whether it defined to BIG_ENDIAN or not.
7276          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h.  */
7278 #include <sys/types.h>
7279                 #include <sys/param.h>
7280
7281 int
7282 main ()
7283 {
7284 #if BYTE_ORDER != BIG_ENDIAN
7285                  not big endian
7286                 #endif
7287
7288   ;
7289   return 0;
7290 }
7291 _ACEOF
7292 if ac_fn_c_try_compile "$LINENO"; then :
7293   ac_cv_c_bigendian=yes
7294 else
7295   ac_cv_c_bigendian=no
7296 fi
7297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7298 fi
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300     fi
7301     if test $ac_cv_c_bigendian = unknown; then
7302       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7303       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h.  */
7305 #include <limits.h>
7306
7307 int
7308 main ()
7309 {
7310 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7311               bogus endian macros
7312              #endif
7313
7314   ;
7315   return 0;
7316 }
7317 _ACEOF
7318 if ac_fn_c_try_compile "$LINENO"; then :
7319   # It does; now see whether it defined to _BIG_ENDIAN or not.
7320          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h.  */
7322 #include <limits.h>
7323
7324 int
7325 main ()
7326 {
7327 #ifndef _BIG_ENDIAN
7328                  not big endian
7329                 #endif
7330
7331   ;
7332   return 0;
7333 }
7334 _ACEOF
7335 if ac_fn_c_try_compile "$LINENO"; then :
7336   ac_cv_c_bigendian=yes
7337 else
7338   ac_cv_c_bigendian=no
7339 fi
7340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341 fi
7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343     fi
7344     if test $ac_cv_c_bigendian = unknown; then
7345       # Compile a test program.
7346       if test "$cross_compiling" = yes; then :
7347   # Try to guess by grepping values from an object file.
7348          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h.  */
7350 short int ascii_mm[] =
7351                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7352                 short int ascii_ii[] =
7353                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7354                 int use_ascii (int i) {
7355                   return ascii_mm[i] + ascii_ii[i];
7356                 }
7357                 short int ebcdic_ii[] =
7358                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7359                 short int ebcdic_mm[] =
7360                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7361                 int use_ebcdic (int i) {
7362                   return ebcdic_mm[i] + ebcdic_ii[i];
7363                 }
7364                 extern int foo;
7365
7366 int
7367 main ()
7368 {
7369 return use_ascii (foo) == use_ebcdic (foo);
7370   ;
7371   return 0;
7372 }
7373 _ACEOF
7374 if ac_fn_c_try_compile "$LINENO"; then :
7375   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7376               ac_cv_c_bigendian=yes
7377             fi
7378             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7379               if test "$ac_cv_c_bigendian" = unknown; then
7380                 ac_cv_c_bigendian=no
7381               else
7382                 # finding both strings is unlikely to happen, but who knows?
7383                 ac_cv_c_bigendian=unknown
7384               fi
7385             fi
7386 fi
7387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7388 else
7389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390 /* end confdefs.h.  */
7391 $ac_includes_default
7392 int
7393 main ()
7394 {
7395
7396              /* Are we little or big endian?  From Harbison&Steele.  */
7397              union
7398              {
7399                long int l;
7400                char c[sizeof (long int)];
7401              } u;
7402              u.l = 1;
7403              return u.c[sizeof (long int) - 1] == 1;
7404
7405   ;
7406   return 0;
7407 }
7408 _ACEOF
7409 if ac_fn_c_try_run "$LINENO"; then :
7410   ac_cv_c_bigendian=no
7411 else
7412   ac_cv_c_bigendian=yes
7413 fi
7414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7415   conftest.$ac_objext conftest.beam conftest.$ac_ext
7416 fi
7417
7418     fi
7419 fi
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7421 $as_echo "$ac_cv_c_bigendian" >&6; }
7422  case $ac_cv_c_bigendian in #(
7423    yes)
7424      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7425 ;; #(
7426    no)
7427       ;; #(
7428    universal)
7429
7430 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7431
7432      ;; #(
7433    *)
7434      as_fn_error $? "unknown endianness
7435  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7436  esac
7437
7438
7439
7440
7441  if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
7442   NATIVE_LINKER_TRUE=
7443   NATIVE_LINKER_FALSE='#'
7444 else
7445   NATIVE_LINKER_TRUE='#'
7446   NATIVE_LINKER_FALSE=
7447 fi
7448
7449  if test "$GCC" = yes; then
7450   GCC_TRUE=
7451   GCC_FALSE='#'
7452 else
7453   GCC_TRUE='#'
7454   GCC_FALSE=
7455 fi
7456
7457
7458  if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
7459   NATIVE_OR_CROSS_LINKER_TRUE=
7460   NATIVE_OR_CROSS_LINKER_FALSE='#'
7461 else
7462   NATIVE_OR_CROSS_LINKER_TRUE='#'
7463   NATIVE_OR_CROSS_LINKER_FALSE=
7464 fi
7465
7466
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
7468 $as_echo_n "checking whether static linking works... " >&6; }
7469 if ${gold_cv_lib_static+:} false; then :
7470   $as_echo_n "(cached) " >&6
7471 else
7472   LDFLAGS_hold=$LDFLAGS
7473 LDFLAGS="$LDFLAGS -static"
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h.  */
7476
7477 void f() { }
7478 int
7479 main ()
7480 {
7481
7482   ;
7483   return 0;
7484 }
7485 _ACEOF
7486 if ac_fn_c_try_link "$LINENO"; then :
7487   gold_cv_lib_static=yes
7488 else
7489   gold_cv_lib_static=no
7490 fi
7491 rm -f core conftest.err conftest.$ac_objext \
7492     conftest$ac_exeext conftest.$ac_ext
7493 LDFLAGS=$LDFLAGS_hold
7494 fi
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
7496 $as_echo "$gold_cv_lib_static" >&6; }
7497  if test "$gold_cv_lib_static" = "yes"; then
7498   HAVE_STATIC_TRUE=
7499   HAVE_STATIC_FALSE='#'
7500 else
7501   HAVE_STATIC_TRUE='#'
7502   HAVE_STATIC_FALSE=
7503 fi
7504
7505
7506  if
7507   case $target_cpu in
7508     powerpc*) false;;
7509     x86_64) false;;
7510     sparc64) false;;
7511     s390x) false;;
7512     *) true;;
7513   esac; then
7514   FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
7515   FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
7516 else
7517   FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
7518   FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
7519 fi
7520
7521
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
7523 $as_echo_n "checking for gcc >= 4.1... " >&6; }
7524 if ${gold_cv_prog_gcc41+:} false; then :
7525   $as_echo_n "(cached) " >&6
7526 else
7527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h.  */
7529
7530 #if !defined __GNUC__
7531 error
7532 #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
7533 error
7534 #endif
7535
7536 _ACEOF
7537 if ac_fn_c_try_compile "$LINENO"; then :
7538   gold_cv_prog_gcc41=yes
7539 else
7540   gold_cv_prog_gcc41=no
7541 fi
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543 fi
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
7545 $as_echo "$gold_cv_prog_gcc41" >&6; }
7546
7547 save_CFLAGS="$CFLAGS"
7548 CFLAGS="$CFLAGS -mcmodel=medium"
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h.  */
7551 int i;
7552 _ACEOF
7553 if ac_fn_c_try_compile "$LINENO"; then :
7554   have_mcmodel_medium=yes
7555 else
7556   have_mcmodel_medium=no
7557 fi
7558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559 CFLAGS="$save_CFLAGS"
7560  if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
7561   MCMODEL_MEDIUM_TRUE=
7562   MCMODEL_MEDIUM_FALSE='#'
7563 else
7564   MCMODEL_MEDIUM_TRUE='#'
7565   MCMODEL_MEDIUM_FALSE=
7566 fi
7567
7568
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 9" >&5
7570 $as_echo_n "checking for gcc >= 9... " >&6; }
7571 if ${gold_cv_prog_gcc9+:} false; then :
7572   $as_echo_n "(cached) " >&6
7573 else
7574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h.  */
7576
7577 #if !defined __GNUC__ || __GNUC__ < 9
7578 error
7579 #endif
7580
7581 _ACEOF
7582 if ac_fn_c_try_compile "$LINENO"; then :
7583   gold_cv_prog_gcc9=yes
7584 else
7585   gold_cv_prog_gcc9=no
7586 fi
7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588 fi
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc9" >&5
7590 $as_echo "$gold_cv_prog_gcc9" >&6; }
7591  if test "$gold_cv_prog_gcc9" = "yes"; then
7592   GCC9_TRUE=
7593   GCC9_FALSE='#'
7594 else
7595   GCC9_TRUE='#'
7596   GCC9_FALSE=
7597 fi
7598
7599
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fcf-protection" >&5
7601 $as_echo_n "checking for -fcf-protection... " >&6; }
7602 if ${gold_cv_cflags_cf_protection+:} false; then :
7603   $as_echo_n "(cached) " >&6
7604 else
7605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h.  */
7607
7608 #if !defined __x86_64__ || !defined __CET__
7609 error
7610 #endif
7611
7612 _ACEOF
7613 if ac_fn_c_try_compile "$LINENO"; then :
7614   gold_cv_cflags_cf_protection=yes
7615 else
7616   gold_cv_cflags_cf_protection=no
7617 fi
7618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619 fi
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_cflags_cf_protection" >&5
7621 $as_echo "$gold_cv_cflags_cf_protection" >&6; }
7622  if test "$gold_cv_cflags_cf_protection" = "yes"; then
7623   CFLAGS_CF_PROTECTION_TRUE=
7624   CFLAGS_CF_PROTECTION_FALSE='#'
7625 else
7626   CFLAGS_CF_PROTECTION_TRUE='#'
7627   CFLAGS_CF_PROTECTION_FALSE=
7628 fi
7629
7630
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
7632 $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
7633 if ${gold_cv_merge_constants+:} false; then :
7634   $as_echo_n "(cached) " >&6
7635 else
7636
7637 save_CFLAGS="$CFLAGS"
7638 CFLAGS="$CFLAGS -fmerge-constants"
7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h.  */
7641 const char *s = "foo";
7642 _ACEOF
7643 if ac_fn_c_try_compile "$LINENO"; then :
7644   gold_cv_merge_constants=yes
7645 else
7646   gold_cv_merge_constants=no
7647 fi
7648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649 CFLAGS="$save_CFLAGS"
7650 fi
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
7652 $as_echo "$gold_cv_merge_constants" >&6; }
7653
7654 if test "$gold_cv_merge_constants" = yes; then :
7655   MERGE_CONSTANTS_FLAG=-fmerge-constants
7656 else
7657   MERGE_CONSTANTS_FLAG=
7658 fi
7659
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
7661 $as_echo_n "checking for thread support... " >&6; }
7662 if ${gold_cv_c_thread+:} false; then :
7663   $as_echo_n "(cached) " >&6
7664 else
7665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h.  */
7667 __thread int i = 1;
7668 _ACEOF
7669 if ac_fn_c_try_compile "$LINENO"; then :
7670   gold_cv_c_thread=yes
7671 else
7672   gold_cv_c_thread=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_c_thread" >&5
7677 $as_echo "$gold_cv_c_thread" >&6; }
7678
7679  if test "$gold_cv_c_thread" = "yes"; then
7680   TLS_TRUE=
7681   TLS_FALSE='#'
7682 else
7683   TLS_TRUE='#'
7684   TLS_FALSE=
7685 fi
7686
7687
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
7689 $as_echo_n "checking for glibc >= 2.4... " >&6; }
7690 if ${gold_cv_lib_glibc24+:} false; then :
7691   $as_echo_n "(cached) " >&6
7692 else
7693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h.  */
7695
7696 #include <features.h>
7697 #if !defined __GLIBC__
7698 error
7699 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
7700 error
7701 #endif
7702
7703 _ACEOF
7704 if ac_fn_c_try_compile "$LINENO"; then :
7705   gold_cv_lib_glibc24=yes
7706 else
7707   gold_cv_lib_glibc24=no
7708 fi
7709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7710 fi
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
7712 $as_echo "$gold_cv_lib_glibc24" >&6; }
7713
7714  if test "$gold_cv_lib_glibc24" = "yes"; then
7715   STATIC_TLS_TRUE=
7716   STATIC_TLS_FALSE='#'
7717 else
7718   STATIC_TLS_TRUE='#'
7719   STATIC_TLS_FALSE=
7720 fi
7721
7722
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
7724 $as_echo_n "checking for omp support... " >&6; }
7725 if ${gold_cv_c_threadprivate+:} false; then :
7726   $as_echo_n "(cached) " >&6
7727 else
7728   save_CFLAGS="$CFLAGS"
7729 CFLAGS="$CFLAGS -fopenmp"
7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h.  */
7732
7733 #include <omp.h>
7734 int i;
7735 #pragma omp threadprivate (i)
7736
7737 _ACEOF
7738 if ac_fn_c_try_compile "$LINENO"; then :
7739   gold_cv_c_threadprivate=yes
7740 else
7741   gold_cv_c_threadprivate=no
7742 fi
7743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7744 CFLAGS="$save_CFLAGS"
7745 fi
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
7747 $as_echo "$gold_cv_c_threadprivate" >&6; }
7748 if test "$gold_cv_c_threadprivate" = "yes"; then
7749
7750 $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
7751
7752 fi
7753  if test "$gold_cv_c_threadprivate" = "yes"; then
7754   OMP_SUPPORT_TRUE=
7755   OMP_SUPPORT_FALSE='#'
7756 else
7757   OMP_SUPPORT_TRUE='#'
7758   OMP_SUPPORT_FALSE=
7759 fi
7760
7761
7762 save_CFLAGS="$CFLAGS"
7763 CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h.  */
7766
7767 __thread int i;
7768 void foo (void)
7769 {
7770   i = 10;
7771 }
7772
7773 _ACEOF
7774 if ac_fn_c_try_compile "$LINENO"; then :
7775   have_tls_gnu2=yes
7776 else
7777   have_tls_gnu2=no
7778 fi
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780 CFLAGS="$save_CFLAGS"
7781  if test "$have_tls_gnu2" = "yes"; then
7782   TLS_GNU2_DIALECT_TRUE=
7783   TLS_GNU2_DIALECT_FALSE='#'
7784 else
7785   TLS_GNU2_DIALECT_TRUE='#'
7786   TLS_GNU2_DIALECT_FALSE=
7787 fi
7788
7789
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
7791 $as_echo_n "checking for glibc >= 2.9... " >&6; }
7792 if ${gold_cv_lib_glibc29+:} false; then :
7793   $as_echo_n "(cached) " >&6
7794 else
7795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h.  */
7797
7798 #include <features.h>
7799 #if !defined __GLIBC__
7800 error
7801 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
7802 error
7803 #endif
7804
7805 _ACEOF
7806 if ac_fn_c_try_compile "$LINENO"; then :
7807   gold_cv_lib_glibc29=yes
7808 else
7809   gold_cv_lib_glibc29=no
7810 fi
7811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7812 fi
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
7814 $as_echo "$gold_cv_lib_glibc29" >&6; }
7815
7816  if test "$gold_cv_lib_glibc29" = "yes"; then
7817   TLS_DESCRIPTORS_TRUE=
7818   TLS_DESCRIPTORS_FALSE='#'
7819 else
7820   TLS_DESCRIPTORS_TRUE='#'
7821   TLS_DESCRIPTORS_FALSE=
7822 fi
7823
7824
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
7826 $as_echo_n "checking for -frandom-seed support... " >&6; }
7827 if ${gold_cv_c_random_seed+:} false; then :
7828   $as_echo_n "(cached) " >&6
7829 else
7830   save_CFLAGS="$CFLAGS"
7831 CFLAGS="$CFLAGS -frandom-seed=foo"
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h.  */
7834 int i;
7835 _ACEOF
7836 if ac_fn_c_try_compile "$LINENO"; then :
7837   gold_cv_c_random_seed=yes
7838 else
7839   gold_cv_c_random_seed=no
7840 fi
7841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7842 CFLAGS="$save_CFLAGS"
7843 fi
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
7845 $as_echo "$gold_cv_c_random_seed" >&6; }
7846 if test "$gold_cv_c_random_seed" = "yes"; then
7847   # In Makefile, '$@' will be expanded to be the name of the file
7848   # being built, providing a unique seed for each file.
7849   RANDOM_SEED_CFLAGS=-frandom-seed=\$@
7850 fi
7851
7852
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
7854 $as_echo_n "checking for glibc ifunc support... " >&6; }
7855 if ${gold_cv_lib_glibc_ifunc+:} false; then :
7856   $as_echo_n "(cached) " >&6
7857 else
7858   save_LDFLAGS="$LDFLAGS"
7859 LDFLAGS="$LDFLAGS -static"
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h.  */
7862
7863 #include <features.h>
7864 #if !defined __GLIBC__
7865 error
7866 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
7867 error
7868 #endif
7869 void func (void) { }
7870 void invoke (void);
7871 __asm__(".type invoke, %gnu_indirect_function");
7872 typedef void (*funcptr) (void);
7873 funcptr dispatch (void) __asm__ ("invoke");
7874 funcptr dispatch (void) { return &func; }
7875 int
7876 main ()
7877 {
7878 invoke();
7879   ;
7880   return 0;
7881 }
7882
7883 _ACEOF
7884 if ac_fn_c_try_link "$LINENO"; then :
7885
7886 if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then
7887   gold_cv_lib_glibc_ifunc=both
7888 else
7889   gold_cv_lib_glibc_ifunc=dyn
7890 fi
7891 else
7892   gold_cv_lib_glibc_ifunc=no
7893 fi
7894 rm -f core conftest.err conftest.$ac_objext \
7895     conftest$ac_exeext conftest.$ac_ext
7896 LDFLAGS="$save_LDFLAGS"
7897 fi
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
7899 $as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
7900
7901  if test "$gold_cv_lib_glibc_ifunc" != "no"; then
7902   IFUNC_TRUE=
7903   IFUNC_FALSE='#'
7904 else
7905   IFUNC_TRUE='#'
7906   IFUNC_FALSE=
7907 fi
7908
7909  if test "$gold_cv_lib_glibc_ifunc" = "both"; then
7910   IFUNC_STATIC_TRUE=
7911   IFUNC_STATIC_FALSE='#'
7912 else
7913   IFUNC_STATIC_TRUE='#'
7914   IFUNC_STATIC_FALSE=
7915 fi
7916
7917
7918
7919 # Set the 'development' global.
7920 . $srcdir/../bfd/development.sh
7921
7922 # Set acp_cpp_for_build variable
7923 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
7924
7925 # Default set of GCC warnings to enable.
7926 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
7927 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
7928
7929 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
7930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h.  */
7932 __GNUC__
7933 _ACEOF
7934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7935   $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
7936
7937 else
7938   GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
7939 fi
7940 rm -f conftest*
7941
7942
7943 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h.  */
7946 __GNUC__
7947 _ACEOF
7948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7949   $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
7950
7951 else
7952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h.  */
7954 __clang__
7955 _ACEOF
7956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7957   $EGREP "^__clang__$" >/dev/null 2>&1; then :
7958   GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
7959 fi
7960 rm -f conftest*
7961
7962 fi
7963 rm -f conftest*
7964
7965
7966 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
7967 WARN_WRITE_STRINGS=""
7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h.  */
7970 __GNUC__
7971 _ACEOF
7972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7973   $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
7974
7975 else
7976   WARN_WRITE_STRINGS="-Wwrite-strings"
7977 fi
7978 rm -f conftest*
7979
7980
7981 # Verify CC_FOR_BUILD to be compatible with warning flags
7982
7983 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h.  */
7986 __GNUC__
7987 _ACEOF
7988 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
7989   $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
7990
7991 else
7992   GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
7993 fi
7994 rm -f conftest*
7995
7996
7997 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999 /* end confdefs.h.  */
8000 __GNUC__
8001 _ACEOF
8002 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
8003   $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
8004
8005 else
8006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h.  */
8008 __clang__
8009 _ACEOF
8010 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
8011   $EGREP "^__clang__$" >/dev/null 2>&1; then :
8012   GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
8013 fi
8014 rm -f conftest*
8015
8016 fi
8017 rm -f conftest*
8018
8019
8020 # Check whether --enable-werror was given.
8021 if test "${enable_werror+set}" = set; then :
8022   enableval=$enable_werror; case "${enableval}" in
8023      yes | y) ERROR_ON_WARNING="yes" ;;
8024      no | n)  ERROR_ON_WARNING="no" ;;
8025      *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
8026    esac
8027 fi
8028
8029
8030 # Disable -Wformat by default when using gcc on mingw
8031 case "${host}" in
8032   *-*-mingw32*)
8033     if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
8034       GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
8035       GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
8036     fi
8037     ;;
8038   *) ;;
8039 esac
8040
8041 # Enable -Werror by default when using gcc.  Turn it off for releases.
8042 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
8043     ERROR_ON_WARNING=yes
8044 fi
8045
8046 NO_WERROR=
8047 if test "${ERROR_ON_WARNING}" = yes ; then
8048     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
8049     GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
8050     NO_WERROR="-Wno-error"
8051 fi
8052
8053 if test "${GCC}" = yes ; then
8054   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
8055   WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
8056 fi
8057
8058 # Check whether --enable-build-warnings was given.
8059 if test "${enable_build_warnings+set}" = set; then :
8060   enableval=$enable_build_warnings; case "${enableval}" in
8061   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
8062         WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
8063   no)   if test "${GCC}" = yes ; then
8064           WARN_CFLAGS="-w"
8065       WARN_CFLAGS_FOR_BUILD="-w"
8066         fi;;
8067   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
8068         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
8069         WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
8070   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
8071         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
8072         WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
8073   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
8074         WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8075 esac
8076 fi
8077
8078
8079 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
8080   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
8081 fi
8082
8083
8084
8085
8086
8087
8088
8089 WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
8090
8091
8092
8093 # Check whether --with-gold-ldflags was given.
8094 if test "${with_gold_ldflags+set}" = set; then :
8095   withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8096    GOLD_LDFLAGS=
8097  else
8098    GOLD_LDFLAGS=$withval
8099  fi
8100 else
8101   GOLD_LDFLAGS=
8102 fi
8103
8104
8105
8106
8107 # Check whether --with-gold-ldadd was given.
8108 if test "${with_gold_ldadd+set}" = set; then :
8109   withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
8110    GOLD_LDADD=
8111  else
8112    GOLD_LDADD=$withval
8113  fi
8114 else
8115   GOLD_LDADD=
8116 fi
8117
8118
8119
8120 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8121
8122
8123 for ac_header in sys/mman.h
8124 do :
8125   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
8126 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
8127   cat >>confdefs.h <<_ACEOF
8128 #define HAVE_SYS_MMAN_H 1
8129 _ACEOF
8130
8131 fi
8132
8133 done
8134
8135 for ac_func in chsize mmap link
8136 do :
8137   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8138 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8139 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8140   cat >>confdefs.h <<_ACEOF
8141 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8142 _ACEOF
8143
8144 fi
8145 done
8146
8147 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
8148 if test "x$ac_cv_func_pread" = xyes; then :
8149   $as_echo "#define HAVE_PREAD 1" >>confdefs.h
8150
8151 else
8152   case " $LIBOBJS " in
8153   *" pread.$ac_objext "* ) ;;
8154   *) LIBOBJS="$LIBOBJS pread.$ac_objext"
8155  ;;
8156 esac
8157
8158 fi
8159
8160 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
8161 if test "x$ac_cv_func_ftruncate" = xyes; then :
8162   $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
8163
8164 else
8165   case " $LIBOBJS " in
8166   *" ftruncate.$ac_objext "* ) ;;
8167   *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
8168  ;;
8169 esac
8170
8171 fi
8172
8173 ac_fn_c_check_func "$LINENO" "ffsll" "ac_cv_func_ffsll"
8174 if test "x$ac_cv_func_ffsll" = xyes; then :
8175   $as_echo "#define HAVE_FFSLL 1" >>confdefs.h
8176
8177 else
8178   case " $LIBOBJS " in
8179   *" ffsll.$ac_objext "* ) ;;
8180   *) LIBOBJS="$LIBOBJS ffsll.$ac_objext"
8181  ;;
8182 esac
8183
8184 fi
8185
8186
8187
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
8189 $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
8190 if ${gold_cv_lib_mremap_maymove+:} false; then :
8191   $as_echo_n "(cached) " >&6
8192 else
8193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h.  */
8195
8196
8197 #include <sys/mman.h>
8198 void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
8199
8200 int
8201 main ()
8202 {
8203
8204   ;
8205   return 0;
8206 }
8207 _ACEOF
8208 if ac_fn_c_try_link "$LINENO"; then :
8209   gold_cv_lib_mremap_maymove=yes
8210 else
8211   gold_cv_lib_mremap_maymove=no
8212 fi
8213 rm -f core conftest.err conftest.$ac_objext \
8214     conftest$ac_exeext conftest.$ac_ext
8215 fi
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
8217 $as_echo "$gold_cv_lib_mremap_maymove" >&6; }
8218 if test "$gold_cv_lib_mremap_maymove" = "yes"; then
8219
8220 $as_echo "#define HAVE_MREMAP 1" >>confdefs.h
8221
8222 else
8223   case " $LIBOBJS " in
8224   *" mremap.$ac_objext "* ) ;;
8225   *) LIBOBJS="$LIBOBJS mremap.$ac_objext"
8226  ;;
8227 esac
8228
8229 fi
8230
8231 # Link in zlib/zstd if we can.  This allows us to write compressed sections.
8232
8233   # Use the system's zlib library.
8234   zlibdir="-L\$(top_builddir)/../zlib"
8235   zlibinc="-I\$(top_srcdir)/../zlib"
8236
8237 # Check whether --with-system-zlib was given.
8238 if test "${with_system_zlib+set}" = set; then :
8239   withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8240     zlibdir=
8241     zlibinc=
8242   fi
8243
8244 fi
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8257         if test -n "$ac_tool_prefix"; then
8258   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8259 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 $as_echo_n "checking for $ac_word... " >&6; }
8262 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265   case $PKG_CONFIG in
8266   [\\/]* | ?:[\\/]*)
8267   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8268   ;;
8269   *)
8270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8272 do
8273   IFS=$as_save_IFS
8274   test -z "$as_dir" && as_dir=.
8275     for ac_exec_ext in '' $ac_executable_extensions; do
8276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8277     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279     break 2
8280   fi
8281 done
8282   done
8283 IFS=$as_save_IFS
8284
8285   ;;
8286 esac
8287 fi
8288 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8289 if test -n "$PKG_CONFIG"; then
8290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8291 $as_echo "$PKG_CONFIG" >&6; }
8292 else
8293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8295 fi
8296
8297
8298 fi
8299 if test -z "$ac_cv_path_PKG_CONFIG"; then
8300   ac_pt_PKG_CONFIG=$PKG_CONFIG
8301   # Extract the first word of "pkg-config", so it can be a program name with args.
8302 set dummy pkg-config; ac_word=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 $as_echo_n "checking for $ac_word... " >&6; }
8305 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8306   $as_echo_n "(cached) " >&6
8307 else
8308   case $ac_pt_PKG_CONFIG in
8309   [\\/]* | ?:[\\/]*)
8310   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8311   ;;
8312   *)
8313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 for as_dir in $PATH
8315 do
8316   IFS=$as_save_IFS
8317   test -z "$as_dir" && as_dir=.
8318     for ac_exec_ext in '' $ac_executable_extensions; do
8319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8320     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8322     break 2
8323   fi
8324 done
8325   done
8326 IFS=$as_save_IFS
8327
8328   ;;
8329 esac
8330 fi
8331 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8332 if test -n "$ac_pt_PKG_CONFIG"; then
8333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8334 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8335 else
8336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 $as_echo "no" >&6; }
8338 fi
8339
8340   if test "x$ac_pt_PKG_CONFIG" = x; then
8341     PKG_CONFIG=""
8342   else
8343     case $cross_compiling:$ac_tool_warned in
8344 yes:)
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8347 ac_tool_warned=yes ;;
8348 esac
8349     PKG_CONFIG=$ac_pt_PKG_CONFIG
8350   fi
8351 else
8352   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8353 fi
8354
8355 fi
8356 if test -n "$PKG_CONFIG"; then
8357         _pkg_min_version=0.9.0
8358         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8359 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8360         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8361                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8362 $as_echo "yes" >&6; }
8363         else
8364                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365 $as_echo "no" >&6; }
8366                 PKG_CONFIG=""
8367         fi
8368 fi
8369
8370
8371 # Check whether --with-zstd was given.
8372 if test "${with_zstd+set}" = set; then :
8373   withval=$with_zstd;
8374 else
8375   with_zstd=auto
8376 fi
8377
8378
8379 if test "$with_zstd" != no; then :
8380
8381 pkg_failed=no
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
8383 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
8384
8385 if test -n "$ZSTD_CFLAGS"; then
8386     pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
8387  elif test -n "$PKG_CONFIG"; then
8388     if test -n "$PKG_CONFIG" && \
8389     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
8390   ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
8391   ac_status=$?
8392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8393   test $ac_status = 0; }; then
8394   pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
8395                       test "x$?" != "x0" && pkg_failed=yes
8396 else
8397   pkg_failed=yes
8398 fi
8399  else
8400     pkg_failed=untried
8401 fi
8402 if test -n "$ZSTD_LIBS"; then
8403     pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
8404  elif test -n "$PKG_CONFIG"; then
8405     if test -n "$PKG_CONFIG" && \
8406     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
8407   ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
8408   ac_status=$?
8409   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8410   test $ac_status = 0; }; then
8411   pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
8412                       test "x$?" != "x0" && pkg_failed=yes
8413 else
8414   pkg_failed=yes
8415 fi
8416  else
8417     pkg_failed=untried
8418 fi
8419
8420 if test $pkg_failed = no; then
8421   pkg_save_LDFLAGS="$LDFLAGS"
8422   LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
8423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424 /* end confdefs.h.  */
8425
8426 int
8427 main ()
8428 {
8429
8430   ;
8431   return 0;
8432 }
8433 _ACEOF
8434 if ac_fn_c_try_link "$LINENO"; then :
8435
8436 else
8437   pkg_failed=yes
8438 fi
8439 rm -f core conftest.err conftest.$ac_objext \
8440     conftest$ac_exeext conftest.$ac_ext
8441   LDFLAGS=$pkg_save_LDFLAGS
8442 fi
8443
8444
8445
8446 if test $pkg_failed = yes; then
8447         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448 $as_echo "no" >&6; }
8449
8450 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8451         _pkg_short_errors_supported=yes
8452 else
8453         _pkg_short_errors_supported=no
8454 fi
8455         if test $_pkg_short_errors_supported = yes; then
8456                 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
8457         else
8458                 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
8459         fi
8460         # Put the nasty error message in config.log where it belongs
8461         echo "$ZSTD_PKG_ERRORS" >&5
8462
8463
8464     if test "$with_zstd" = yes; then
8465       as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
8466     fi
8467
8468 elif test $pkg_failed = untried; then
8469         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8471
8472     if test "$with_zstd" = yes; then
8473       as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
8474     fi
8475
8476 else
8477         ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
8478         ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
8479         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8480 $as_echo "yes" >&6; }
8481
8482
8483 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
8484
8485
8486 fi
8487
8488 fi
8489
8490  if test "$pkg_cv_ZSTD_LIBS" != ""; then
8491   HAVE_ZSTD_TRUE=
8492   HAVE_ZSTD_FALSE='#'
8493 else
8494   HAVE_ZSTD_TRUE='#'
8495   HAVE_ZSTD_FALSE=
8496 fi
8497
8498
8499 # Check whether --enable-threads was given.
8500 if test "${enable_threads+set}" = set; then :
8501   enableval=$enable_threads; case "${enableval}" in
8502   yes | "") threads=yes ;;
8503   no) threads=no ;;
8504   auto) threads=auto ;;
8505   *) threads=yes ;;
8506  esac
8507 else
8508   threads=auto
8509 fi
8510
8511
8512 if test "$threads" = "yes"; then
8513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8514 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8515 if ${ac_cv_path_SED+:} false; then :
8516   $as_echo_n "(cached) " >&6
8517 else
8518             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8519      for ac_i in 1 2 3 4 5 6 7; do
8520        ac_script="$ac_script$as_nl$ac_script"
8521      done
8522      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8523      { ac_script=; unset ac_script;}
8524      if test -z "$SED"; then
8525   ac_path_SED_found=false
8526   # Loop through the user's path and test for each of PROGNAME-LIST
8527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 for as_dir in $PATH
8529 do
8530   IFS=$as_save_IFS
8531   test -z "$as_dir" && as_dir=.
8532     for ac_prog in sed gsed; do
8533     for ac_exec_ext in '' $ac_executable_extensions; do
8534       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8535       as_fn_executable_p "$ac_path_SED" || continue
8536 # Check for GNU ac_path_SED and select it if it is found.
8537   # Check for GNU $ac_path_SED
8538 case `"$ac_path_SED" --version 2>&1` in
8539 *GNU*)
8540   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8541 *)
8542   ac_count=0
8543   $as_echo_n 0123456789 >"conftest.in"
8544   while :
8545   do
8546     cat "conftest.in" "conftest.in" >"conftest.tmp"
8547     mv "conftest.tmp" "conftest.in"
8548     cp "conftest.in" "conftest.nl"
8549     $as_echo '' >> "conftest.nl"
8550     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8551     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8552     as_fn_arith $ac_count + 1 && ac_count=$as_val
8553     if test $ac_count -gt ${ac_path_SED_max-0}; then
8554       # Best one so far, save it but keep looking for a better one
8555       ac_cv_path_SED="$ac_path_SED"
8556       ac_path_SED_max=$ac_count
8557     fi
8558     # 10*(2^10) chars as input seems more than enough
8559     test $ac_count -gt 10 && break
8560   done
8561   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8562 esac
8563
8564       $ac_path_SED_found && break 3
8565     done
8566   done
8567   done
8568 IFS=$as_save_IFS
8569   if test -z "$ac_cv_path_SED"; then
8570     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8571   fi
8572 else
8573   ac_cv_path_SED=$SED
8574 fi
8575
8576 fi
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8578 $as_echo "$ac_cv_path_SED" >&6; }
8579  SED="$ac_cv_path_SED"
8580   rm -f conftest.sed
8581
8582
8583
8584
8585
8586 ac_ext=c
8587 ac_cpp='$CPP $CPPFLAGS'
8588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8591
8592 ax_pthread_ok=no
8593
8594 # We used to check for pthread.h first, but this fails if pthread.h
8595 # requires special compiler flags (e.g. on Tru64 or Sequent).
8596 # It gets checked for in the link test anyway.
8597
8598 # First of all, check if the user has set any of the PTHREAD_LIBS,
8599 # etcetera environment variables, and if threads linking works using
8600 # them:
8601 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8602         ax_pthread_save_CC="$CC"
8603         ax_pthread_save_CFLAGS="$CFLAGS"
8604         ax_pthread_save_LIBS="$LIBS"
8605         if test "x$PTHREAD_CC" != "x"; then :
8606   CC="$PTHREAD_CC"
8607 fi
8608         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8609         LIBS="$PTHREAD_LIBS $LIBS"
8610         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8611 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8612         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h.  */
8614
8615 /* Override any GCC internal prototype to avoid an error.
8616    Use char because int might match the return type of a GCC
8617    builtin and then its argument prototype would still apply.  */
8618 #ifdef __cplusplus
8619 extern "C"
8620 #endif
8621 char pthread_join ();
8622 int
8623 main ()
8624 {
8625 return pthread_join ();
8626   ;
8627   return 0;
8628 }
8629 _ACEOF
8630 if ac_fn_c_try_link "$LINENO"; then :
8631   ax_pthread_ok=yes
8632 fi
8633 rm -f core conftest.err conftest.$ac_objext \
8634     conftest$ac_exeext conftest.$ac_ext
8635         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8636 $as_echo "$ax_pthread_ok" >&6; }
8637         if test "x$ax_pthread_ok" = "xno"; then
8638                 PTHREAD_LIBS=""
8639                 PTHREAD_CFLAGS=""
8640         fi
8641         CC="$ax_pthread_save_CC"
8642         CFLAGS="$ax_pthread_save_CFLAGS"
8643         LIBS="$ax_pthread_save_LIBS"
8644 fi
8645
8646 # We must check for the threads library under a number of different
8647 # names; the ordering is very important because some systems
8648 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8649 # libraries is broken (non-POSIX).
8650
8651 # Create a list of thread flags to try.  Items starting with a "-" are
8652 # C compiler flags, and other items are library names, except for "none"
8653 # which indicates that we try without any flags at all, and "pthread-config"
8654 # which is a program returning the flags for the Pth emulation library.
8655
8656 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8657
8658 # The ordering *is* (sometimes) important.  Some notes on the
8659 # individual items follow:
8660
8661 # pthreads: AIX (must check this before -lpthread)
8662 # none: in case threads are in libc; should be tried before -Kthread and
8663 #       other compiler flags to prevent continual compiler warnings
8664 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8665 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8666 #           (Note: HP C rejects this with "bad form for `-t' option")
8667 # -pthreads: Solaris/gcc (Note: HP C also rejects)
8668 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8669 #      doesn't hurt to check since this sometimes defines pthreads and
8670 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
8671 #      is present but should not be used directly; and before -mthreads,
8672 #      because the compiler interprets this as "-mt" + "-hreads")
8673 # -mthreads: Mingw32/gcc, Lynx/gcc
8674 # pthread: Linux, etcetera
8675 # --thread-safe: KAI C++
8676 # pthread-config: use pthread-config program (for GNU Pth library)
8677
8678 case $host_os in
8679
8680         freebsd*)
8681
8682         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8683         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8684
8685         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
8686         ;;
8687
8688         hpux*)
8689
8690         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8691         # multi-threading and also sets -lpthread."
8692
8693         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
8694         ;;
8695
8696         openedition*)
8697
8698         # IBM z/OS requires a feature-test macro to be defined in order to
8699         # enable POSIX threads at all, so give the user a hint if this is
8700         # not set. (We don't define these ourselves, as they can affect
8701         # other portions of the system API in unpredictable ways.)
8702
8703         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h.  */
8705
8706 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8707              AX_PTHREAD_ZOS_MISSING
8708 #            endif
8709
8710 _ACEOF
8711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8712   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
8713   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8714 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8715 fi
8716 rm -f conftest*
8717
8718         ;;
8719
8720         solaris*)
8721
8722         # On Solaris (at least, for some versions), libc contains stubbed
8723         # (non-functional) versions of the pthreads routines, so link-based
8724         # tests will erroneously succeed. (N.B.: The stubs are missing
8725         # pthread_cleanup_push, or rather a function called by this macro,
8726         # so we could check for that, but who knows whether they'll stub
8727         # that too in a future libc.)  So we'll check first for the
8728         # standard Solaris way of linking pthreads (-mt -lpthread).
8729
8730         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
8731         ;;
8732 esac
8733
8734 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
8735
8736 if test "x$GCC" = "xyes"; then :
8737   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
8738 fi
8739
8740 # The presence of a feature test macro requesting re-entrant function
8741 # definitions is, on some systems, a strong hint that pthreads support is
8742 # correctly enabled
8743
8744 case $host_os in
8745         darwin* | hpux* | linux* | osf* | solaris*)
8746         ax_pthread_check_macro="_REENTRANT"
8747         ;;
8748
8749         aix*)
8750         ax_pthread_check_macro="_THREAD_SAFE"
8751         ;;
8752
8753         *)
8754         ax_pthread_check_macro="--"
8755         ;;
8756 esac
8757 if test "x$ax_pthread_check_macro" = "x--"; then :
8758   ax_pthread_check_cond=0
8759 else
8760   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
8761 fi
8762
8763 # Are we compiling with Clang?
8764
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
8766 $as_echo_n "checking whether $CC is Clang... " >&6; }
8767 if ${ax_cv_PTHREAD_CLANG+:} false; then :
8768   $as_echo_n "(cached) " >&6
8769 else
8770   ax_cv_PTHREAD_CLANG=no
8771      # Note that Autoconf sets GCC=yes for Clang as well as GCC
8772      if test "x$GCC" = "xyes"; then
8773         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h.  */
8775 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
8776 #            if defined(__clang__) && defined(__llvm__)
8777              AX_PTHREAD_CC_IS_CLANG
8778 #            endif
8779
8780 _ACEOF
8781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8782   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
8783   ax_cv_PTHREAD_CLANG=yes
8784 fi
8785 rm -f conftest*
8786
8787      fi
8788
8789 fi
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
8791 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
8792 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
8793
8794 ax_pthread_clang_warning=no
8795
8796 # Clang needs special handling, because older versions handle the -pthread
8797 # option in a rather... idiosyncratic way
8798
8799 if test "x$ax_pthread_clang" = "xyes"; then
8800
8801         # Clang takes -pthread; it has never supported any other flag
8802
8803         # (Note 1: This will need to be revisited if a system that Clang
8804         # supports has POSIX threads in a separate library.  This tends not
8805         # to be the way of modern systems, but it's conceivable.)
8806
8807         # (Note 2: On some systems, notably Darwin, -pthread is not needed
8808         # to get POSIX threads support; the API is always present and
8809         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
8810         # -pthread does define _REENTRANT, and while the Darwin headers
8811         # ignore this macro, third-party headers might not.)
8812
8813         PTHREAD_CFLAGS="-pthread"
8814         PTHREAD_LIBS=
8815
8816         ax_pthread_ok=yes
8817
8818         # However, older versions of Clang make a point of warning the user
8819         # that, in an invocation where only linking and no compilation is
8820         # taking place, the -pthread option has no effect ("argument unused
8821         # during compilation").  They expect -pthread to be passed in only
8822         # when source code is being compiled.
8823         #
8824         # Problem is, this is at odds with the way Automake and most other
8825         # C build frameworks function, which is that the same flags used in
8826         # compilation (CFLAGS) are also used in linking.  Many systems
8827         # supported by AX_PTHREAD require exactly this for POSIX threads
8828         # support, and in fact it is often not straightforward to specify a
8829         # flag that is used only in the compilation phase and not in
8830         # linking.  Such a scenario is extremely rare in practice.
8831         #
8832         # Even though use of the -pthread flag in linking would only print
8833         # a warning, this can be a nuisance for well-run software projects
8834         # that build with -Werror.  So if the active version of Clang has
8835         # this misfeature, we search for an option to squash it.
8836
8837         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
8838 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
8839 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
8840   $as_echo_n "(cached) " >&6
8841 else
8842   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
8843              # Create an alternate version of $ac_link that compiles and
8844              # links in two steps (.c -> .o, .o -> exe) instead of one
8845              # (.c -> exe), because the warning occurs only in the second
8846              # step
8847              ax_pthread_save_ac_link="$ac_link"
8848              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
8849              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
8850              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
8851              ax_pthread_save_CFLAGS="$CFLAGS"
8852              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
8853                 if test "x$ax_pthread_try" = "xunknown"; then :
8854   break
8855 fi
8856                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
8857                 ac_link="$ax_pthread_save_ac_link"
8858                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h.  */
8860 int main(void){return 0;}
8861 _ACEOF
8862 if ac_fn_c_try_link "$LINENO"; then :
8863   ac_link="$ax_pthread_2step_ac_link"
8864                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h.  */
8866 int main(void){return 0;}
8867 _ACEOF
8868 if ac_fn_c_try_link "$LINENO"; then :
8869   break
8870 fi
8871 rm -f core conftest.err conftest.$ac_objext \
8872     conftest$ac_exeext conftest.$ac_ext
8873
8874 fi
8875 rm -f core conftest.err conftest.$ac_objext \
8876     conftest$ac_exeext conftest.$ac_ext
8877              done
8878              ac_link="$ax_pthread_save_ac_link"
8879              CFLAGS="$ax_pthread_save_CFLAGS"
8880              if test "x$ax_pthread_try" = "x"; then :
8881   ax_pthread_try=no
8882 fi
8883              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
8884
8885 fi
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
8887 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
8888
8889         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
8890                 no | unknown) ;;
8891                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
8892         esac
8893
8894 fi # $ax_pthread_clang = yes
8895
8896 if test "x$ax_pthread_ok" = "xno"; then
8897 for ax_pthread_try_flag in $ax_pthread_flags; do
8898
8899         case $ax_pthread_try_flag in
8900                 none)
8901                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8902 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8903                 ;;
8904
8905                 -mt,pthread)
8906                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8907 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8908                 PTHREAD_CFLAGS="-mt"
8909                 PTHREAD_LIBS="-lpthread"
8910                 ;;
8911
8912                 -*)
8913                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
8914 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
8915                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
8916                 ;;
8917
8918                 pthread-config)
8919                 # Extract the first word of "pthread-config", so it can be a program name with args.
8920 set dummy pthread-config; ac_word=$2
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922 $as_echo_n "checking for $ac_word... " >&6; }
8923 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8924   $as_echo_n "(cached) " >&6
8925 else
8926   if test -n "$ax_pthread_config"; then
8927   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8928 else
8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 for as_dir in $PATH
8931 do
8932   IFS=$as_save_IFS
8933   test -z "$as_dir" && as_dir=.
8934     for ac_exec_ext in '' $ac_executable_extensions; do
8935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8936     ac_cv_prog_ax_pthread_config="yes"
8937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938     break 2
8939   fi
8940 done
8941   done
8942 IFS=$as_save_IFS
8943
8944   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8945 fi
8946 fi
8947 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8948 if test -n "$ax_pthread_config"; then
8949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8950 $as_echo "$ax_pthread_config" >&6; }
8951 else
8952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8954 fi
8955
8956
8957                 if test "x$ax_pthread_config" = "xno"; then :
8958   continue
8959 fi
8960                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8961                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8962                 ;;
8963
8964                 *)
8965                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
8966 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
8967                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
8968                 ;;
8969         esac
8970
8971         ax_pthread_save_CFLAGS="$CFLAGS"
8972         ax_pthread_save_LIBS="$LIBS"
8973         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8974         LIBS="$PTHREAD_LIBS $LIBS"
8975
8976         # Check for various functions.  We must include pthread.h,
8977         # since some functions may be macros.  (On the Sequent, we
8978         # need a special flag -Kthread to make this header compile.)
8979         # We check for pthread_join because it is in -lpthread on IRIX
8980         # while pthread_create is in libc.  We check for pthread_attr_init
8981         # due to DEC craziness with -lpthreads.  We check for
8982         # pthread_cleanup_push because it is one of the few pthread
8983         # functions on Solaris that doesn't have a non-functional libc stub.
8984         # We try pthread_create on general principles.
8985
8986         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h.  */
8988 #include <pthread.h>
8989 #                       if $ax_pthread_check_cond
8990 #                        error "$ax_pthread_check_macro must be defined"
8991 #                       endif
8992                         static void routine(void *a) { a = 0; }
8993                         static void *start_routine(void *a) { return a; }
8994 int
8995 main ()
8996 {
8997 pthread_t th; pthread_attr_t attr;
8998                         pthread_create(&th, 0, start_routine, 0);
8999                         pthread_join(th, 0);
9000                         pthread_attr_init(&attr);
9001                         pthread_cleanup_push(routine, 0);
9002                         pthread_cleanup_pop(0) /* ; */
9003   ;
9004   return 0;
9005 }
9006 _ACEOF
9007 if ac_fn_c_try_link "$LINENO"; then :
9008   ax_pthread_ok=yes
9009 fi
9010 rm -f core conftest.err conftest.$ac_objext \
9011     conftest$ac_exeext conftest.$ac_ext
9012
9013         CFLAGS="$ax_pthread_save_CFLAGS"
9014         LIBS="$ax_pthread_save_LIBS"
9015
9016         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9017 $as_echo "$ax_pthread_ok" >&6; }
9018         if test "x$ax_pthread_ok" = "xyes"; then :
9019   break
9020 fi
9021
9022         PTHREAD_LIBS=""
9023         PTHREAD_CFLAGS=""
9024 done
9025 fi
9026
9027 # Various other checks:
9028 if test "x$ax_pthread_ok" = "xyes"; then
9029         ax_pthread_save_CFLAGS="$CFLAGS"
9030         ax_pthread_save_LIBS="$LIBS"
9031         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9032         LIBS="$PTHREAD_LIBS $LIBS"
9033
9034         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9035         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9036 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9037 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
9038   $as_echo_n "(cached) " >&6
9039 else
9040   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
9041              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9042                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h.  */
9044 #include <pthread.h>
9045 int
9046 main ()
9047 {
9048 int attr = $ax_pthread_attr; return attr /* ; */
9049   ;
9050   return 0;
9051 }
9052 _ACEOF
9053 if ac_fn_c_try_link "$LINENO"; then :
9054   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
9055 fi
9056 rm -f core conftest.err conftest.$ac_objext \
9057     conftest$ac_exeext conftest.$ac_ext
9058              done
9059
9060 fi
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9062 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9063         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9064                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9065                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9066
9067 cat >>confdefs.h <<_ACEOF
9068 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9069 _ACEOF
9070
9071                ax_pthread_joinable_attr_defined=yes
9072
9073 fi
9074
9075         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9076 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9077 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
9078   $as_echo_n "(cached) " >&6
9079 else
9080   ax_cv_PTHREAD_SPECIAL_FLAGS=no
9081              case $host_os in
9082              solaris*)
9083              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
9084              ;;
9085              esac
9086
9087 fi
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9089 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9090         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9091                test "x$ax_pthread_special_flags_added" != "xyes"; then :
9092   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9093                ax_pthread_special_flags_added=yes
9094 fi
9095
9096         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9097 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9098 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9099   $as_echo_n "(cached) " >&6
9100 else
9101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102 /* end confdefs.h.  */
9103 #include <pthread.h>
9104 int
9105 main ()
9106 {
9107 int i = PTHREAD_PRIO_INHERIT;
9108   ;
9109   return 0;
9110 }
9111 _ACEOF
9112 if ac_fn_c_try_link "$LINENO"; then :
9113   ax_cv_PTHREAD_PRIO_INHERIT=yes
9114 else
9115   ax_cv_PTHREAD_PRIO_INHERIT=no
9116 fi
9117 rm -f core conftest.err conftest.$ac_objext \
9118     conftest$ac_exeext conftest.$ac_ext
9119
9120 fi
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9122 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9123         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9124                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9125
9126 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9127
9128                ax_pthread_prio_inherit_defined=yes
9129
9130 fi
9131
9132         CFLAGS="$ax_pthread_save_CFLAGS"
9133         LIBS="$ax_pthread_save_LIBS"
9134
9135         # More AIX lossage: compile with *_r variant
9136         if test "x$GCC" != "xyes"; then
9137             case $host_os in
9138                 aix*)
9139                 case "x/$CC" in #(
9140   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9141     #handle absolute path differently from PATH based program lookup
9142                      case "x$CC" in #(
9143   x/*) :
9144     if as_fn_executable_p ${CC}_r; then :
9145   PTHREAD_CC="${CC}_r"
9146 fi ;; #(
9147   *) :
9148     for ac_prog in ${CC}_r
9149 do
9150   # Extract the first word of "$ac_prog", so it can be a program name with args.
9151 set dummy $ac_prog; ac_word=$2
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9153 $as_echo_n "checking for $ac_word... " >&6; }
9154 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9155   $as_echo_n "(cached) " >&6
9156 else
9157   if test -n "$PTHREAD_CC"; then
9158   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9159 else
9160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161 for as_dir in $PATH
9162 do
9163   IFS=$as_save_IFS
9164   test -z "$as_dir" && as_dir=.
9165     for ac_exec_ext in '' $ac_executable_extensions; do
9166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9167     ac_cv_prog_PTHREAD_CC="$ac_prog"
9168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9169     break 2
9170   fi
9171 done
9172   done
9173 IFS=$as_save_IFS
9174
9175 fi
9176 fi
9177 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9178 if test -n "$PTHREAD_CC"; then
9179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9180 $as_echo "$PTHREAD_CC" >&6; }
9181 else
9182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9183 $as_echo "no" >&6; }
9184 fi
9185
9186
9187   test -n "$PTHREAD_CC" && break
9188 done
9189 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9190  ;;
9191 esac ;; #(
9192   *) :
9193      ;;
9194 esac
9195                 ;;
9196             esac
9197         fi
9198 fi
9199
9200 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9201
9202
9203
9204
9205
9206 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9207 if test "x$ax_pthread_ok" = "xyes"; then
9208         threads=yes
9209         :
9210 else
9211         ax_pthread_ok=no
9212         as_fn_error $? "pthread not found" "$LINENO" 5
9213 fi
9214 ac_ext=c
9215 ac_cpp='$CPP $CPPFLAGS'
9216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9219
9220
9221 elif test "$threads" = "auto"; then
9222
9223
9224
9225
9226 ac_ext=c
9227 ac_cpp='$CPP $CPPFLAGS'
9228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9231
9232 ax_pthread_ok=no
9233
9234 # We used to check for pthread.h first, but this fails if pthread.h
9235 # requires special compiler flags (e.g. on Tru64 or Sequent).
9236 # It gets checked for in the link test anyway.
9237
9238 # First of all, check if the user has set any of the PTHREAD_LIBS,
9239 # etcetera environment variables, and if threads linking works using
9240 # them:
9241 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
9242         ax_pthread_save_CC="$CC"
9243         ax_pthread_save_CFLAGS="$CFLAGS"
9244         ax_pthread_save_LIBS="$LIBS"
9245         if test "x$PTHREAD_CC" != "x"; then :
9246   CC="$PTHREAD_CC"
9247 fi
9248         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9249         LIBS="$PTHREAD_LIBS $LIBS"
9250         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
9251 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
9252         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h.  */
9254
9255 /* Override any GCC internal prototype to avoid an error.
9256    Use char because int might match the return type of a GCC
9257    builtin and then its argument prototype would still apply.  */
9258 #ifdef __cplusplus
9259 extern "C"
9260 #endif
9261 char pthread_join ();
9262 int
9263 main ()
9264 {
9265 return pthread_join ();
9266   ;
9267   return 0;
9268 }
9269 _ACEOF
9270 if ac_fn_c_try_link "$LINENO"; then :
9271   ax_pthread_ok=yes
9272 fi
9273 rm -f core conftest.err conftest.$ac_objext \
9274     conftest$ac_exeext conftest.$ac_ext
9275         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9276 $as_echo "$ax_pthread_ok" >&6; }
9277         if test "x$ax_pthread_ok" = "xno"; then
9278                 PTHREAD_LIBS=""
9279                 PTHREAD_CFLAGS=""
9280         fi
9281         CC="$ax_pthread_save_CC"
9282         CFLAGS="$ax_pthread_save_CFLAGS"
9283         LIBS="$ax_pthread_save_LIBS"
9284 fi
9285
9286 # We must check for the threads library under a number of different
9287 # names; the ordering is very important because some systems
9288 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9289 # libraries is broken (non-POSIX).
9290
9291 # Create a list of thread flags to try.  Items starting with a "-" are
9292 # C compiler flags, and other items are library names, except for "none"
9293 # which indicates that we try without any flags at all, and "pthread-config"
9294 # which is a program returning the flags for the Pth emulation library.
9295
9296 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9297
9298 # The ordering *is* (sometimes) important.  Some notes on the
9299 # individual items follow:
9300
9301 # pthreads: AIX (must check this before -lpthread)
9302 # none: in case threads are in libc; should be tried before -Kthread and
9303 #       other compiler flags to prevent continual compiler warnings
9304 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9305 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9306 #           (Note: HP C rejects this with "bad form for `-t' option")
9307 # -pthreads: Solaris/gcc (Note: HP C also rejects)
9308 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9309 #      doesn't hurt to check since this sometimes defines pthreads and
9310 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
9311 #      is present but should not be used directly; and before -mthreads,
9312 #      because the compiler interprets this as "-mt" + "-hreads")
9313 # -mthreads: Mingw32/gcc, Lynx/gcc
9314 # pthread: Linux, etcetera
9315 # --thread-safe: KAI C++
9316 # pthread-config: use pthread-config program (for GNU Pth library)
9317
9318 case $host_os in
9319
9320         freebsd*)
9321
9322         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9323         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9324
9325         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
9326         ;;
9327
9328         hpux*)
9329
9330         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9331         # multi-threading and also sets -lpthread."
9332
9333         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
9334         ;;
9335
9336         openedition*)
9337
9338         # IBM z/OS requires a feature-test macro to be defined in order to
9339         # enable POSIX threads at all, so give the user a hint if this is
9340         # not set. (We don't define these ourselves, as they can affect
9341         # other portions of the system API in unpredictable ways.)
9342
9343         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h.  */
9345
9346 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9347              AX_PTHREAD_ZOS_MISSING
9348 #            endif
9349
9350 _ACEOF
9351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9352   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
9353   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9354 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9355 fi
9356 rm -f conftest*
9357
9358         ;;
9359
9360         solaris*)
9361
9362         # On Solaris (at least, for some versions), libc contains stubbed
9363         # (non-functional) versions of the pthreads routines, so link-based
9364         # tests will erroneously succeed. (N.B.: The stubs are missing
9365         # pthread_cleanup_push, or rather a function called by this macro,
9366         # so we could check for that, but who knows whether they'll stub
9367         # that too in a future libc.)  So we'll check first for the
9368         # standard Solaris way of linking pthreads (-mt -lpthread).
9369
9370         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
9371         ;;
9372 esac
9373
9374 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9375
9376 if test "x$GCC" = "xyes"; then :
9377   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
9378 fi
9379
9380 # The presence of a feature test macro requesting re-entrant function
9381 # definitions is, on some systems, a strong hint that pthreads support is
9382 # correctly enabled
9383
9384 case $host_os in
9385         darwin* | hpux* | linux* | osf* | solaris*)
9386         ax_pthread_check_macro="_REENTRANT"
9387         ;;
9388
9389         aix*)
9390         ax_pthread_check_macro="_THREAD_SAFE"
9391         ;;
9392
9393         *)
9394         ax_pthread_check_macro="--"
9395         ;;
9396 esac
9397 if test "x$ax_pthread_check_macro" = "x--"; then :
9398   ax_pthread_check_cond=0
9399 else
9400   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
9401 fi
9402
9403 # Are we compiling with Clang?
9404
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9406 $as_echo_n "checking whether $CC is Clang... " >&6; }
9407 if ${ax_cv_PTHREAD_CLANG+:} false; then :
9408   $as_echo_n "(cached) " >&6
9409 else
9410   ax_cv_PTHREAD_CLANG=no
9411      # Note that Autoconf sets GCC=yes for Clang as well as GCC
9412      if test "x$GCC" = "xyes"; then
9413         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h.  */
9415 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9416 #            if defined(__clang__) && defined(__llvm__)
9417              AX_PTHREAD_CC_IS_CLANG
9418 #            endif
9419
9420 _ACEOF
9421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9422   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
9423   ax_cv_PTHREAD_CLANG=yes
9424 fi
9425 rm -f conftest*
9426
9427      fi
9428
9429 fi
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9431 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9432 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
9433
9434 ax_pthread_clang_warning=no
9435
9436 # Clang needs special handling, because older versions handle the -pthread
9437 # option in a rather... idiosyncratic way
9438
9439 if test "x$ax_pthread_clang" = "xyes"; then
9440
9441         # Clang takes -pthread; it has never supported any other flag
9442
9443         # (Note 1: This will need to be revisited if a system that Clang
9444         # supports has POSIX threads in a separate library.  This tends not
9445         # to be the way of modern systems, but it's conceivable.)
9446
9447         # (Note 2: On some systems, notably Darwin, -pthread is not needed
9448         # to get POSIX threads support; the API is always present and
9449         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
9450         # -pthread does define _REENTRANT, and while the Darwin headers
9451         # ignore this macro, third-party headers might not.)
9452
9453         PTHREAD_CFLAGS="-pthread"
9454         PTHREAD_LIBS=
9455
9456         ax_pthread_ok=yes
9457
9458         # However, older versions of Clang make a point of warning the user
9459         # that, in an invocation where only linking and no compilation is
9460         # taking place, the -pthread option has no effect ("argument unused
9461         # during compilation").  They expect -pthread to be passed in only
9462         # when source code is being compiled.
9463         #
9464         # Problem is, this is at odds with the way Automake and most other
9465         # C build frameworks function, which is that the same flags used in
9466         # compilation (CFLAGS) are also used in linking.  Many systems
9467         # supported by AX_PTHREAD require exactly this for POSIX threads
9468         # support, and in fact it is often not straightforward to specify a
9469         # flag that is used only in the compilation phase and not in
9470         # linking.  Such a scenario is extremely rare in practice.
9471         #
9472         # Even though use of the -pthread flag in linking would only print
9473         # a warning, this can be a nuisance for well-run software projects
9474         # that build with -Werror.  So if the active version of Clang has
9475         # this misfeature, we search for an option to squash it.
9476
9477         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9478 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9479 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
9480   $as_echo_n "(cached) " >&6
9481 else
9482   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
9483              # Create an alternate version of $ac_link that compiles and
9484              # links in two steps (.c -> .o, .o -> exe) instead of one
9485              # (.c -> exe), because the warning occurs only in the second
9486              # step
9487              ax_pthread_save_ac_link="$ac_link"
9488              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9489              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9490              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9491              ax_pthread_save_CFLAGS="$CFLAGS"
9492              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
9493                 if test "x$ax_pthread_try" = "xunknown"; then :
9494   break
9495 fi
9496                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9497                 ac_link="$ax_pthread_save_ac_link"
9498                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h.  */
9500 int main(void){return 0;}
9501 _ACEOF
9502 if ac_fn_c_try_link "$LINENO"; then :
9503   ac_link="$ax_pthread_2step_ac_link"
9504                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9505 /* end confdefs.h.  */
9506 int main(void){return 0;}
9507 _ACEOF
9508 if ac_fn_c_try_link "$LINENO"; then :
9509   break
9510 fi
9511 rm -f core conftest.err conftest.$ac_objext \
9512     conftest$ac_exeext conftest.$ac_ext
9513
9514 fi
9515 rm -f core conftest.err conftest.$ac_objext \
9516     conftest$ac_exeext conftest.$ac_ext
9517              done
9518              ac_link="$ax_pthread_save_ac_link"
9519              CFLAGS="$ax_pthread_save_CFLAGS"
9520              if test "x$ax_pthread_try" = "x"; then :
9521   ax_pthread_try=no
9522 fi
9523              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
9524
9525 fi
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9527 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9528
9529         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9530                 no | unknown) ;;
9531                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9532         esac
9533
9534 fi # $ax_pthread_clang = yes
9535
9536 if test "x$ax_pthread_ok" = "xno"; then
9537 for ax_pthread_try_flag in $ax_pthread_flags; do
9538
9539         case $ax_pthread_try_flag in
9540                 none)
9541                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9542 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
9543                 ;;
9544
9545                 -mt,pthread)
9546                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9547 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9548                 PTHREAD_CFLAGS="-mt"
9549                 PTHREAD_LIBS="-lpthread"
9550                 ;;
9551
9552                 -*)
9553                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9554 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9555                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
9556                 ;;
9557
9558                 pthread-config)
9559                 # Extract the first word of "pthread-config", so it can be a program name with args.
9560 set dummy pthread-config; ac_word=$2
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9562 $as_echo_n "checking for $ac_word... " >&6; }
9563 if ${ac_cv_prog_ax_pthread_config+:} false; then :
9564   $as_echo_n "(cached) " >&6
9565 else
9566   if test -n "$ax_pthread_config"; then
9567   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9568 else
9569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9570 for as_dir in $PATH
9571 do
9572   IFS=$as_save_IFS
9573   test -z "$as_dir" && as_dir=.
9574     for ac_exec_ext in '' $ac_executable_extensions; do
9575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9576     ac_cv_prog_ax_pthread_config="yes"
9577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9578     break 2
9579   fi
9580 done
9581   done
9582 IFS=$as_save_IFS
9583
9584   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9585 fi
9586 fi
9587 ax_pthread_config=$ac_cv_prog_ax_pthread_config
9588 if test -n "$ax_pthread_config"; then
9589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9590 $as_echo "$ax_pthread_config" >&6; }
9591 else
9592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9593 $as_echo "no" >&6; }
9594 fi
9595
9596
9597                 if test "x$ax_pthread_config" = "xno"; then :
9598   continue
9599 fi
9600                 PTHREAD_CFLAGS="`pthread-config --cflags`"
9601                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9602                 ;;
9603
9604                 *)
9605                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9606 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9607                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
9608                 ;;
9609         esac
9610
9611         ax_pthread_save_CFLAGS="$CFLAGS"
9612         ax_pthread_save_LIBS="$LIBS"
9613         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9614         LIBS="$PTHREAD_LIBS $LIBS"
9615
9616         # Check for various functions.  We must include pthread.h,
9617         # since some functions may be macros.  (On the Sequent, we
9618         # need a special flag -Kthread to make this header compile.)
9619         # We check for pthread_join because it is in -lpthread on IRIX
9620         # while pthread_create is in libc.  We check for pthread_attr_init
9621         # due to DEC craziness with -lpthreads.  We check for
9622         # pthread_cleanup_push because it is one of the few pthread
9623         # functions on Solaris that doesn't have a non-functional libc stub.
9624         # We try pthread_create on general principles.
9625
9626         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h.  */
9628 #include <pthread.h>
9629 #                       if $ax_pthread_check_cond
9630 #                        error "$ax_pthread_check_macro must be defined"
9631 #                       endif
9632                         static void routine(void *a) { a = 0; }
9633                         static void *start_routine(void *a) { return a; }
9634 int
9635 main ()
9636 {
9637 pthread_t th; pthread_attr_t attr;
9638                         pthread_create(&th, 0, start_routine, 0);
9639                         pthread_join(th, 0);
9640                         pthread_attr_init(&attr);
9641                         pthread_cleanup_push(routine, 0);
9642                         pthread_cleanup_pop(0) /* ; */
9643   ;
9644   return 0;
9645 }
9646 _ACEOF
9647 if ac_fn_c_try_link "$LINENO"; then :
9648   ax_pthread_ok=yes
9649 fi
9650 rm -f core conftest.err conftest.$ac_objext \
9651     conftest$ac_exeext conftest.$ac_ext
9652
9653         CFLAGS="$ax_pthread_save_CFLAGS"
9654         LIBS="$ax_pthread_save_LIBS"
9655
9656         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9657 $as_echo "$ax_pthread_ok" >&6; }
9658         if test "x$ax_pthread_ok" = "xyes"; then :
9659   break
9660 fi
9661
9662         PTHREAD_LIBS=""
9663         PTHREAD_CFLAGS=""
9664 done
9665 fi
9666
9667 # Various other checks:
9668 if test "x$ax_pthread_ok" = "xyes"; then
9669         ax_pthread_save_CFLAGS="$CFLAGS"
9670         ax_pthread_save_LIBS="$LIBS"
9671         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9672         LIBS="$PTHREAD_LIBS $LIBS"
9673
9674         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9675         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9676 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9677 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
9678   $as_echo_n "(cached) " >&6
9679 else
9680   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
9681              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9682                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9683 /* end confdefs.h.  */
9684 #include <pthread.h>
9685 int
9686 main ()
9687 {
9688 int attr = $ax_pthread_attr; return attr /* ; */
9689   ;
9690   return 0;
9691 }
9692 _ACEOF
9693 if ac_fn_c_try_link "$LINENO"; then :
9694   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
9695 fi
9696 rm -f core conftest.err conftest.$ac_objext \
9697     conftest$ac_exeext conftest.$ac_ext
9698              done
9699
9700 fi
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9702 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9703         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9704                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9705                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9706
9707 cat >>confdefs.h <<_ACEOF
9708 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9709 _ACEOF
9710
9711                ax_pthread_joinable_attr_defined=yes
9712
9713 fi
9714
9715         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9716 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9717 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
9718   $as_echo_n "(cached) " >&6
9719 else
9720   ax_cv_PTHREAD_SPECIAL_FLAGS=no
9721              case $host_os in
9722              solaris*)
9723              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
9724              ;;
9725              esac
9726
9727 fi
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9729 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9730         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9731                test "x$ax_pthread_special_flags_added" != "xyes"; then :
9732   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9733                ax_pthread_special_flags_added=yes
9734 fi
9735
9736         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9737 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9738 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9739   $as_echo_n "(cached) " >&6
9740 else
9741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h.  */
9743 #include <pthread.h>
9744 int
9745 main ()
9746 {
9747 int i = PTHREAD_PRIO_INHERIT;
9748   ;
9749   return 0;
9750 }
9751 _ACEOF
9752 if ac_fn_c_try_link "$LINENO"; then :
9753   ax_cv_PTHREAD_PRIO_INHERIT=yes
9754 else
9755   ax_cv_PTHREAD_PRIO_INHERIT=no
9756 fi
9757 rm -f core conftest.err conftest.$ac_objext \
9758     conftest$ac_exeext conftest.$ac_ext
9759
9760 fi
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9762 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9763         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9764                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9765
9766 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9767
9768                ax_pthread_prio_inherit_defined=yes
9769
9770 fi
9771
9772         CFLAGS="$ax_pthread_save_CFLAGS"
9773         LIBS="$ax_pthread_save_LIBS"
9774
9775         # More AIX lossage: compile with *_r variant
9776         if test "x$GCC" != "xyes"; then
9777             case $host_os in
9778                 aix*)
9779                 case "x/$CC" in #(
9780   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9781     #handle absolute path differently from PATH based program lookup
9782                      case "x$CC" in #(
9783   x/*) :
9784     if as_fn_executable_p ${CC}_r; then :
9785   PTHREAD_CC="${CC}_r"
9786 fi ;; #(
9787   *) :
9788     for ac_prog in ${CC}_r
9789 do
9790   # Extract the first word of "$ac_prog", so it can be a program name with args.
9791 set dummy $ac_prog; ac_word=$2
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9793 $as_echo_n "checking for $ac_word... " >&6; }
9794 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9795   $as_echo_n "(cached) " >&6
9796 else
9797   if test -n "$PTHREAD_CC"; then
9798   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9799 else
9800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9801 for as_dir in $PATH
9802 do
9803   IFS=$as_save_IFS
9804   test -z "$as_dir" && as_dir=.
9805     for ac_exec_ext in '' $ac_executable_extensions; do
9806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9807     ac_cv_prog_PTHREAD_CC="$ac_prog"
9808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9809     break 2
9810   fi
9811 done
9812   done
9813 IFS=$as_save_IFS
9814
9815 fi
9816 fi
9817 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9818 if test -n "$PTHREAD_CC"; then
9819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9820 $as_echo "$PTHREAD_CC" >&6; }
9821 else
9822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9823 $as_echo "no" >&6; }
9824 fi
9825
9826
9827   test -n "$PTHREAD_CC" && break
9828 done
9829 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9830  ;;
9831 esac ;; #(
9832   *) :
9833      ;;
9834 esac
9835                 ;;
9836             esac
9837         fi
9838 fi
9839
9840 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9841
9842
9843
9844
9845
9846 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9847 if test "x$ax_pthread_ok" = "xyes"; then
9848         threads=yes
9849         :
9850 else
9851         ax_pthread_ok=no
9852         threads=no
9853 fi
9854 ac_ext=c
9855 ac_cpp='$CPP $CPPFLAGS'
9856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9859
9860
9861 fi
9862
9863 if test "$threads" = "yes"; then
9864
9865 $as_echo "#define ENABLE_THREADS 1" >>confdefs.h
9866
9867 fi
9868  if test "$threads" = "yes"; then
9869   THREADS_TRUE=
9870   THREADS_FALSE='#'
9871 else
9872   THREADS_TRUE='#'
9873   THREADS_FALSE=
9874 fi
9875
9876
9877 # Used to validate --package-metadata= input. Disabled by default.
9878 # Check whether --enable-jansson was given.
9879 if test "${enable_jansson+set}" = set; then :
9880   enableval=$enable_jansson; enable_jansson=$enableval
9881 else
9882   enable_jansson="no"
9883 fi
9884
9885
9886 if test "x$enable_jansson" != "xno"; then
9887
9888
9889
9890
9891
9892
9893
9894 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9895         if test -n "$ac_tool_prefix"; then
9896   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9897 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9899 $as_echo_n "checking for $ac_word... " >&6; }
9900 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9901   $as_echo_n "(cached) " >&6
9902 else
9903   case $PKG_CONFIG in
9904   [\\/]* | ?:[\\/]*)
9905   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9906   ;;
9907   *)
9908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909 for as_dir in $PATH
9910 do
9911   IFS=$as_save_IFS
9912   test -z "$as_dir" && as_dir=.
9913     for ac_exec_ext in '' $ac_executable_extensions; do
9914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9915     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9917     break 2
9918   fi
9919 done
9920   done
9921 IFS=$as_save_IFS
9922
9923   ;;
9924 esac
9925 fi
9926 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9927 if test -n "$PKG_CONFIG"; then
9928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9929 $as_echo "$PKG_CONFIG" >&6; }
9930 else
9931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; }
9933 fi
9934
9935
9936 fi
9937 if test -z "$ac_cv_path_PKG_CONFIG"; then
9938   ac_pt_PKG_CONFIG=$PKG_CONFIG
9939   # Extract the first word of "pkg-config", so it can be a program name with args.
9940 set dummy pkg-config; ac_word=$2
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9942 $as_echo_n "checking for $ac_word... " >&6; }
9943 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9944   $as_echo_n "(cached) " >&6
9945 else
9946   case $ac_pt_PKG_CONFIG in
9947   [\\/]* | ?:[\\/]*)
9948   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9949   ;;
9950   *)
9951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952 for as_dir in $PATH
9953 do
9954   IFS=$as_save_IFS
9955   test -z "$as_dir" && as_dir=.
9956     for ac_exec_ext in '' $ac_executable_extensions; do
9957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9958     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9960     break 2
9961   fi
9962 done
9963   done
9964 IFS=$as_save_IFS
9965
9966   ;;
9967 esac
9968 fi
9969 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9970 if test -n "$ac_pt_PKG_CONFIG"; then
9971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9972 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9973 else
9974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9975 $as_echo "no" >&6; }
9976 fi
9977
9978   if test "x$ac_pt_PKG_CONFIG" = x; then
9979     PKG_CONFIG=""
9980   else
9981     case $cross_compiling:$ac_tool_warned in
9982 yes:)
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9985 ac_tool_warned=yes ;;
9986 esac
9987     PKG_CONFIG=$ac_pt_PKG_CONFIG
9988   fi
9989 else
9990   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9991 fi
9992
9993 fi
9994 if test -n "$PKG_CONFIG"; then
9995         _pkg_min_version=0.9.0
9996         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9997 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9998         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9999                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10000 $as_echo "yes" >&6; }
10001         else
10002                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10003 $as_echo "no" >&6; }
10004                 PKG_CONFIG=""
10005         fi
10006 fi
10007   if test -n "$PKG_CONFIG"; then :
10008
10009
10010 pkg_failed=no
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
10012 $as_echo_n "checking for jansson... " >&6; }
10013
10014 if test -n "$JANSSON_CFLAGS"; then
10015     pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
10016  elif test -n "$PKG_CONFIG"; then
10017     if test -n "$PKG_CONFIG" && \
10018     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
10019   ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
10020   ac_status=$?
10021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10022   test $ac_status = 0; }; then
10023   pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
10024                       test "x$?" != "x0" && pkg_failed=yes
10025 else
10026   pkg_failed=yes
10027 fi
10028  else
10029     pkg_failed=untried
10030 fi
10031 if test -n "$JANSSON_LIBS"; then
10032     pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
10033  elif test -n "$PKG_CONFIG"; then
10034     if test -n "$PKG_CONFIG" && \
10035     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
10036   ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
10037   ac_status=$?
10038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10039   test $ac_status = 0; }; then
10040   pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
10041                       test "x$?" != "x0" && pkg_failed=yes
10042 else
10043   pkg_failed=yes
10044 fi
10045  else
10046     pkg_failed=untried
10047 fi
10048
10049 if test $pkg_failed = no; then
10050   pkg_save_LDFLAGS="$LDFLAGS"
10051   LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS"
10052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053 /* end confdefs.h.  */
10054
10055 int
10056 main ()
10057 {
10058
10059   ;
10060   return 0;
10061 }
10062 _ACEOF
10063 if ac_fn_c_try_link "$LINENO"; then :
10064
10065 else
10066   pkg_failed=yes
10067 fi
10068 rm -f core conftest.err conftest.$ac_objext \
10069     conftest$ac_exeext conftest.$ac_ext
10070   LDFLAGS=$pkg_save_LDFLAGS
10071 fi
10072
10073
10074
10075 if test $pkg_failed = yes; then
10076         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 $as_echo "no" >&6; }
10078
10079 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10080         _pkg_short_errors_supported=yes
10081 else
10082         _pkg_short_errors_supported=no
10083 fi
10084         if test $_pkg_short_errors_supported = yes; then
10085                 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
10086         else
10087                 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
10088         fi
10089         # Put the nasty error message in config.log where it belongs
10090         echo "$JANSSON_PKG_ERRORS" >&5
10091
10092
10093           as_fn_error $? "Cannot find jansson library" "$LINENO" 5
10094
10095 elif test $pkg_failed = untried; then
10096         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097 $as_echo "no" >&6; }
10098
10099           as_fn_error $? "Cannot find jansson library" "$LINENO" 5
10100
10101 else
10102         JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
10103         JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
10104         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10105 $as_echo "yes" >&6; }
10106
10107
10108 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
10109
10110
10111
10112
10113 fi
10114
10115 else
10116
10117       as_fn_error $? "Cannot find pkg-config" "$LINENO" 5
10118
10119 fi
10120 fi
10121
10122 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
10123 if test "x$ac_cv_have_decl_basename" = xyes; then :
10124   ac_have_decl=1
10125 else
10126   ac_have_decl=0
10127 fi
10128
10129 cat >>confdefs.h <<_ACEOF
10130 #define HAVE_DECL_BASENAME $ac_have_decl
10131 _ACEOF
10132 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10133 if test "x$ac_cv_have_decl_ffs" = xyes; then :
10134   ac_have_decl=1
10135 else
10136   ac_have_decl=0
10137 fi
10138
10139 cat >>confdefs.h <<_ACEOF
10140 #define HAVE_DECL_FFS $ac_have_decl
10141 _ACEOF
10142 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10143 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
10144   ac_have_decl=1
10145 else
10146   ac_have_decl=0
10147 fi
10148
10149 cat >>confdefs.h <<_ACEOF
10150 #define HAVE_DECL_ASPRINTF $ac_have_decl
10151 _ACEOF
10152 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10153 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
10154   ac_have_decl=1
10155 else
10156   ac_have_decl=0
10157 fi
10158
10159 cat >>confdefs.h <<_ACEOF
10160 #define HAVE_DECL_VASPRINTF $ac_have_decl
10161 _ACEOF
10162 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10163 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
10164   ac_have_decl=1
10165 else
10166   ac_have_decl=0
10167 fi
10168
10169 cat >>confdefs.h <<_ACEOF
10170 #define HAVE_DECL_SNPRINTF $ac_have_decl
10171 _ACEOF
10172 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10173 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
10174   ac_have_decl=1
10175 else
10176   ac_have_decl=0
10177 fi
10178
10179 cat >>confdefs.h <<_ACEOF
10180 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10181 _ACEOF
10182 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10183 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
10184   ac_have_decl=1
10185 else
10186   ac_have_decl=0
10187 fi
10188
10189 cat >>confdefs.h <<_ACEOF
10190 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10191 _ACEOF
10192
10193
10194 save_CFLAGS="$CFLAGS"
10195 CFLAGS="$CFLAGS -Werror -gpubnames"
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h.  */
10198 int i;
10199 _ACEOF
10200 if ac_fn_c_try_compile "$LINENO"; then :
10201   have_pubnames=yes
10202 else
10203   have_pubnames=no
10204 fi
10205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10206 CFLAGS="$save_CFLAGS"
10207  if test "$have_pubnames" = "yes"; then
10208   HAVE_PUBNAMES_TRUE=
10209   HAVE_PUBNAMES_FALSE='#'
10210 else
10211   HAVE_PUBNAMES_TRUE='#'
10212   HAVE_PUBNAMES_FALSE=
10213 fi
10214
10215
10216 save_CFLAGS="$CFLAGS"
10217 CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin"
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h.  */
10220 int i;
10221 _ACEOF
10222 if ac_fn_c_try_compile "$LINENO"; then :
10223   have_no_use_linker_plugin=yes
10224 else
10225   have_no_use_linker_plugin=no
10226 fi
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228 CFLAGS="$save_CFLAGS"
10229  if test "$have_no_use_linker_plugin" = "yes"; then
10230   HAVE_NO_USE_LINKER_PLUGIN_TRUE=
10231   HAVE_NO_USE_LINKER_PLUGIN_FALSE='#'
10232 else
10233   HAVE_NO_USE_LINKER_PLUGIN_TRUE='#'
10234   HAVE_NO_USE_LINKER_PLUGIN_FALSE=
10235 fi
10236
10237
10238 ac_ext=cpp
10239 ac_cpp='$CXXCPP $CPPFLAGS'
10240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10243
10244
10245
10246 ac_ext=cpp
10247 ac_cpp='$CXXCPP $CPPFLAGS'
10248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10252 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10253 if test -z "$CXXCPP"; then
10254   if ${ac_cv_prog_CXXCPP+:} false; then :
10255   $as_echo_n "(cached) " >&6
10256 else
10257       # Double quotes because CXXCPP needs to be expanded
10258     for CXXCPP in "$CXX -E" "/lib/cpp"
10259     do
10260       ac_preproc_ok=false
10261 for ac_cxx_preproc_warn_flag in '' yes
10262 do
10263   # Use a header file that comes with gcc, so configuring glibc
10264   # with a fresh cross-compiler works.
10265   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10266   # <limits.h> exists even on freestanding compilers.
10267   # On the NeXT, cc -E runs the code through the compiler's parser,
10268   # not just through cpp. "Syntax error" is here to catch this case.
10269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h.  */
10271 #ifdef __STDC__
10272 # include <limits.h>
10273 #else
10274 # include <assert.h>
10275 #endif
10276                      Syntax error
10277 _ACEOF
10278 if ac_fn_cxx_try_cpp "$LINENO"; then :
10279
10280 else
10281   # Broken: fails on valid input.
10282 continue
10283 fi
10284 rm -f conftest.err conftest.i conftest.$ac_ext
10285
10286   # OK, works on sane cases.  Now check whether nonexistent headers
10287   # can be detected and how.
10288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289 /* end confdefs.h.  */
10290 #include <ac_nonexistent.h>
10291 _ACEOF
10292 if ac_fn_cxx_try_cpp "$LINENO"; then :
10293   # Broken: success on invalid input.
10294 continue
10295 else
10296   # Passes both tests.
10297 ac_preproc_ok=:
10298 break
10299 fi
10300 rm -f conftest.err conftest.i conftest.$ac_ext
10301
10302 done
10303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10304 rm -f conftest.i conftest.err conftest.$ac_ext
10305 if $ac_preproc_ok; then :
10306   break
10307 fi
10308
10309     done
10310     ac_cv_prog_CXXCPP=$CXXCPP
10311
10312 fi
10313   CXXCPP=$ac_cv_prog_CXXCPP
10314 else
10315   ac_cv_prog_CXXCPP=$CXXCPP
10316 fi
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10318 $as_echo "$CXXCPP" >&6; }
10319 ac_preproc_ok=false
10320 for ac_cxx_preproc_warn_flag in '' yes
10321 do
10322   # Use a header file that comes with gcc, so configuring glibc
10323   # with a fresh cross-compiler works.
10324   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10325   # <limits.h> exists even on freestanding compilers.
10326   # On the NeXT, cc -E runs the code through the compiler's parser,
10327   # not just through cpp. "Syntax error" is here to catch this case.
10328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h.  */
10330 #ifdef __STDC__
10331 # include <limits.h>
10332 #else
10333 # include <assert.h>
10334 #endif
10335                      Syntax error
10336 _ACEOF
10337 if ac_fn_cxx_try_cpp "$LINENO"; then :
10338
10339 else
10340   # Broken: fails on valid input.
10341 continue
10342 fi
10343 rm -f conftest.err conftest.i conftest.$ac_ext
10344
10345   # OK, works on sane cases.  Now check whether nonexistent headers
10346   # can be detected and how.
10347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h.  */
10349 #include <ac_nonexistent.h>
10350 _ACEOF
10351 if ac_fn_cxx_try_cpp "$LINENO"; then :
10352   # Broken: success on invalid input.
10353 continue
10354 else
10355   # Passes both tests.
10356 ac_preproc_ok=:
10357 break
10358 fi
10359 rm -f conftest.err conftest.i conftest.$ac_ext
10360
10361 done
10362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10363 rm -f conftest.i conftest.err conftest.$ac_ext
10364 if $ac_preproc_ok; then :
10365
10366 else
10367   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10369 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
10370 See \`config.log' for more details" "$LINENO" 5; }
10371 fi
10372
10373 ac_ext=cpp
10374 ac_cpp='$CXXCPP $CPPFLAGS'
10375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10378
10379
10380 for ac_header in unordered_set unordered_map
10381 do :
10382   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10383 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10384 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10385   cat >>confdefs.h <<_ACEOF
10386 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10387 _ACEOF
10388
10389 fi
10390
10391 done
10392
10393 for ac_header in tr1/unordered_set tr1/unordered_map
10394 do :
10395   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10396 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10397 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10398   cat >>confdefs.h <<_ACEOF
10399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10400 _ACEOF
10401
10402 fi
10403
10404 done
10405
10406 for ac_header in ext/hash_map ext/hash_set
10407 do :
10408   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10409 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10410 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10411   cat >>confdefs.h <<_ACEOF
10412 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10413 _ACEOF
10414
10415 fi
10416
10417 done
10418
10419 for ac_header in byteswap.h
10420 do :
10421   ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
10422 if test "x$ac_cv_header_byteswap_h" = xyes; then :
10423   cat >>confdefs.h <<_ACEOF
10424 #define HAVE_BYTESWAP_H 1
10425 _ACEOF
10426
10427 fi
10428
10429 done
10430
10431
10432 ac_fn_cxx_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
10433 "
10434 if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
10435   ac_have_decl=1
10436 else
10437   ac_have_decl=0
10438 fi
10439
10440 cat >>confdefs.h <<_ACEOF
10441 #define HAVE_DECL_BSWAP_16 $ac_have_decl
10442 _ACEOF
10443 ac_fn_cxx_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
10444 "
10445 if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
10446   ac_have_decl=1
10447 else
10448   ac_have_decl=0
10449 fi
10450
10451 cat >>confdefs.h <<_ACEOF
10452 #define HAVE_DECL_BSWAP_32 $ac_have_decl
10453 _ACEOF
10454 ac_fn_cxx_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
10455 "
10456 if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
10457   ac_have_decl=1
10458 else
10459   ac_have_decl=0
10460 fi
10461
10462 cat >>confdefs.h <<_ACEOF
10463 #define HAVE_DECL_BSWAP_64 $ac_have_decl
10464 _ACEOF
10465
10466
10467 for ac_header in windows.h
10468 do :
10469   ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10470 if test "x$ac_cv_header_windows_h" = xyes; then :
10471   cat >>confdefs.h <<_ACEOF
10472 #define HAVE_WINDOWS_H 1
10473 _ACEOF
10474
10475 fi
10476
10477 done
10478
10479 for ac_header in dlfcn.h
10480 do :
10481   ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10482 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10483   cat >>confdefs.h <<_ACEOF
10484 #define HAVE_DLFCN_H 1
10485 _ACEOF
10486
10487 fi
10488
10489 done
10490
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10492 $as_echo_n "checking for library containing dlopen... " >&6; }
10493 if ${ac_cv_search_dlopen+:} false; then :
10494   $as_echo_n "(cached) " >&6
10495 else
10496   ac_func_search_save_LIBS=$LIBS
10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h.  */
10499
10500 /* Override any GCC internal prototype to avoid an error.
10501    Use char because int might match the return type of a GCC
10502    builtin and then its argument prototype would still apply.  */
10503 #ifdef __cplusplus
10504 extern "C"
10505 #endif
10506 char dlopen ();
10507 int
10508 main ()
10509 {
10510 return dlopen ();
10511   ;
10512   return 0;
10513 }
10514 _ACEOF
10515 for ac_lib in '' dl dld; do
10516   if test -z "$ac_lib"; then
10517     ac_res="none required"
10518   else
10519     ac_res=-l$ac_lib
10520     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10521   fi
10522   if ac_fn_cxx_try_link "$LINENO"; then :
10523   ac_cv_search_dlopen=$ac_res
10524 fi
10525 rm -f core conftest.err conftest.$ac_objext \
10526     conftest$ac_exeext
10527   if ${ac_cv_search_dlopen+:} false; then :
10528   break
10529 fi
10530 done
10531 if ${ac_cv_search_dlopen+:} false; then :
10532
10533 else
10534   ac_cv_search_dlopen=no
10535 fi
10536 rm conftest.$ac_ext
10537 LIBS=$ac_func_search_save_LIBS
10538 fi
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10540 $as_echo "$ac_cv_search_dlopen" >&6; }
10541 ac_res=$ac_cv_search_dlopen
10542 if test "$ac_res" != no; then :
10543   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10544
10545 fi
10546
10547 case "$ac_cv_search_dlopen" in
10548   no*) DLOPEN_LIBS="";;
10549   *)   DLOPEN_LIBS="$ac_cv_search_dlopen";;
10550 esac
10551
10552
10553 for ac_func in mallinfo mallinfo2 posix_fallocate fallocate readv sysconf times mkdtemp
10554 do :
10555   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10556 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10557 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10558   cat >>confdefs.h <<_ACEOF
10559 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10560 _ACEOF
10561
10562 fi
10563 done
10564
10565 ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
10566 if test "x$ac_cv_have_decl_basename" = xyes; then :
10567   ac_have_decl=1
10568 else
10569   ac_have_decl=0
10570 fi
10571
10572 cat >>confdefs.h <<_ACEOF
10573 #define HAVE_DECL_BASENAME $ac_have_decl
10574 _ACEOF
10575 ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10576 if test "x$ac_cv_have_decl_ffs" = xyes; then :
10577   ac_have_decl=1
10578 else
10579   ac_have_decl=0
10580 fi
10581
10582 cat >>confdefs.h <<_ACEOF
10583 #define HAVE_DECL_FFS $ac_have_decl
10584 _ACEOF
10585 ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10586 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
10587   ac_have_decl=1
10588 else
10589   ac_have_decl=0
10590 fi
10591
10592 cat >>confdefs.h <<_ACEOF
10593 #define HAVE_DECL_ASPRINTF $ac_have_decl
10594 _ACEOF
10595 ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10596 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
10597   ac_have_decl=1
10598 else
10599   ac_have_decl=0
10600 fi
10601
10602 cat >>confdefs.h <<_ACEOF
10603 #define HAVE_DECL_VASPRINTF $ac_have_decl
10604 _ACEOF
10605 ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10606 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
10607   ac_have_decl=1
10608 else
10609   ac_have_decl=0
10610 fi
10611
10612 cat >>confdefs.h <<_ACEOF
10613 #define HAVE_DECL_SNPRINTF $ac_have_decl
10614 _ACEOF
10615 ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10616 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
10617   ac_have_decl=1
10618 else
10619   ac_have_decl=0
10620 fi
10621
10622 cat >>confdefs.h <<_ACEOF
10623 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10624 _ACEOF
10625 ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10626 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
10627   ac_have_decl=1
10628 else
10629   ac_have_decl=0
10630 fi
10631
10632 cat >>confdefs.h <<_ACEOF
10633 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10634 _ACEOF
10635 ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
10636 if test "x$ac_cv_have_decl_strndup" = xyes; then :
10637   ac_have_decl=1
10638 else
10639   ac_have_decl=0
10640 fi
10641
10642 cat >>confdefs.h <<_ACEOF
10643 #define HAVE_DECL_STRNDUP $ac_have_decl
10644 _ACEOF
10645 ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
10646 if test "x$ac_cv_have_decl_memmem" = xyes; then :
10647   ac_have_decl=1
10648 else
10649   ac_have_decl=0
10650 fi
10651
10652 cat >>confdefs.h <<_ACEOF
10653 #define HAVE_DECL_MEMMEM $ac_have_decl
10654 _ACEOF
10655
10656
10657 # Use of ::std::tr1::unordered_map::rehash causes undefined symbols
10658 # at link time with some versions of GCC.
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
10660 $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
10661 if ${gold_cv_unordered_map_rehash+:} false; then :
10662   $as_echo_n "(cached) " >&6
10663 else
10664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h.  */
10666
10667 #include <tr1/unordered_map>
10668 void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
10669
10670 int
10671 main ()
10672 {
10673
10674   ;
10675   return 0;
10676 }
10677 _ACEOF
10678 if ac_fn_cxx_try_link "$LINENO"; then :
10679   gold_cv_unordered_map_rehash=yes
10680 else
10681   gold_cv_unordered_map_rehash=no
10682 fi
10683 rm -f core conftest.err conftest.$ac_objext \
10684     conftest$ac_exeext conftest.$ac_ext
10685 fi
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
10687 $as_echo "$gold_cv_unordered_map_rehash" >&6; }
10688 if test "$gold_cv_unordered_map_rehash" = "yes"; then
10689
10690 $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
10691
10692 fi
10693
10694 # Use of tr1/unordered_map with off_t as a key is not supported on GCC
10695 # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
10697 $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
10698 if ${gold_cv_hash_off_t+:} false; then :
10699   $as_echo_n "(cached) " >&6
10700 else
10701   CXXFLAGS_hold=$CXXFLAGS
10702 CXXFLAGS="$CXXFLAGS $LFS_CFLAGS"
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h.  */
10705
10706 #include <sys/types.h>
10707 #include <tr1/unordered_map>
10708 std::tr1::hash<off_t> h;
10709
10710 _ACEOF
10711 if ac_fn_cxx_try_compile "$LINENO"; then :
10712   gold_cv_hash_off_t=yes
10713 else
10714   gold_cv_hash_off_t=no
10715 fi
10716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10717 CXXFLAGS=$CXXFLAGS_hold
10718 fi
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
10720 $as_echo "$gold_cv_hash_off_t" >&6; }
10721 if test "$gold_cv_hash_off_t" = "yes"; then
10722
10723 $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
10724
10725 fi
10726
10727 # gcc 4.3.0 doesn't recognize the printf attribute on a template
10728 # function.  Check for that.  This is gcc bug 35546.  This test can
10729 # probably be removed after the bug has been fixed for a while.
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
10731 $as_echo_n "checking whether we can use attributes with template functions... " >&6; }
10732 if ${gold_cv_template_attribute+:} false; then :
10733   $as_echo_n "(cached) " >&6
10734 else
10735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h.  */
10737
10738 template<typename T> extern void foo(const char*, ...)
10739   __attribute__ ((__format__ (__printf__, 1, 2)));
10740 template<typename T> void foo(const char* format, ...) {}
10741 void bar() { foo<int>("%s\n", "foo"); }
10742
10743 _ACEOF
10744 if ac_fn_cxx_try_compile "$LINENO"; then :
10745   gold_cv_template_attribute=yes
10746 else
10747   gold_cv_template_attribute=no
10748 fi
10749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750 fi
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
10752 $as_echo "$gold_cv_template_attribute" >&6; }
10753 if test "$gold_cv_template_attribute" = "yes"; then
10754
10755 $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
10756
10757 fi
10758
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
10760 $as_echo_n "checking for struct stat::st_mtim.... " >&6; }
10761 if ${gold_cv_stat_st_mtim+:} false; then :
10762   $as_echo_n "(cached) " >&6
10763 else
10764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h.  */
10766
10767 #include <sys/stat.h>
10768 long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
10769
10770 int
10771 main ()
10772 {
10773
10774   ;
10775   return 0;
10776 }
10777 _ACEOF
10778 if ac_fn_cxx_try_compile "$LINENO"; then :
10779   gold_cv_stat_st_mtim=yes
10780 else
10781   gold_cv_stat_st_mtim=no
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10784 fi
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
10786 $as_echo "$gold_cv_stat_st_mtim" >&6; }
10787 if test "$gold_cv_stat_st_mtim" = "yes"; then
10788
10789 $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
10790
10791 fi
10792
10793 ac_ext=c
10794 ac_cpp='$CPP $CPPFLAGS'
10795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10798
10799
10800 for ac_header in locale.h
10801 do :
10802   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
10803 if test "x$ac_cv_header_locale_h" = xyes; then :
10804   cat >>confdefs.h <<_ACEOF
10805 #define HAVE_LOCALE_H 1
10806 _ACEOF
10807
10808 fi
10809
10810 done
10811
10812 for ac_func in setlocale
10813 do :
10814   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
10815 if test "x$ac_cv_func_setlocale" = xyes; then :
10816   cat >>confdefs.h <<_ACEOF
10817 #define HAVE_SETLOCALE 1
10818 _ACEOF
10819
10820 fi
10821 done
10822
10823
10824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10825 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10826 if ${am_cv_val_LC_MESSAGES+:} false; then :
10827   $as_echo_n "(cached) " >&6
10828 else
10829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h.  */
10831 #include <locale.h>
10832 int
10833 main ()
10834 {
10835 return LC_MESSAGES
10836   ;
10837   return 0;
10838 }
10839 _ACEOF
10840 if ac_fn_c_try_link "$LINENO"; then :
10841   am_cv_val_LC_MESSAGES=yes
10842 else
10843   am_cv_val_LC_MESSAGES=no
10844 fi
10845 rm -f core conftest.err conftest.$ac_objext \
10846     conftest$ac_exeext conftest.$ac_ext
10847 fi
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10849 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10850   if test $am_cv_val_LC_MESSAGES = yes; then
10851
10852 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10853
10854   fi
10855
10856
10857
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10859 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10860     # Check whether --enable-maintainer-mode was given.
10861 if test "${enable_maintainer_mode+set}" = set; then :
10862   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10863 else
10864   USE_MAINTAINER_MODE=no
10865 fi
10866
10867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10868 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10869    if test $USE_MAINTAINER_MODE = yes; then
10870   MAINTAINER_MODE_TRUE=
10871   MAINTAINER_MODE_FALSE='#'
10872 else
10873   MAINTAINER_MODE_TRUE='#'
10874   MAINTAINER_MODE_FALSE=
10875 fi
10876
10877   MAINT=$MAINTAINER_MODE_TRUE
10878
10879
10880
10881 ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
10882
10883 cat >confcache <<\_ACEOF
10884 # This file is a shell script that caches the results of configure
10885 # tests run on this system so they can be shared between configure
10886 # scripts and configure runs, see configure's option --config-cache.
10887 # It is not useful on other systems.  If it contains results you don't
10888 # want to keep, you may remove or edit it.
10889 #
10890 # config.status only pays attention to the cache file if you give it
10891 # the --recheck option to rerun configure.
10892 #
10893 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10894 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10895 # following values.
10896
10897 _ACEOF
10898
10899 # The following way of writing the cache mishandles newlines in values,
10900 # but we know of no workaround that is simple, portable, and efficient.
10901 # So, we kill variables containing newlines.
10902 # Ultrix sh set writes to stderr and can't be redirected directly,
10903 # and sets the high bit in the cache file unless we assign to the vars.
10904 (
10905   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10906     eval ac_val=\$$ac_var
10907     case $ac_val in #(
10908     *${as_nl}*)
10909       case $ac_var in #(
10910       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10911 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10912       esac
10913       case $ac_var in #(
10914       _ | IFS | as_nl) ;; #(
10915       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10916       *) { eval $ac_var=; unset $ac_var;} ;;
10917       esac ;;
10918     esac
10919   done
10920
10921   (set) 2>&1 |
10922     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10923     *${as_nl}ac_space=\ *)
10924       # `set' does not quote correctly, so add quotes: double-quote
10925       # substitution turns \\\\ into \\, and sed turns \\ into \.
10926       sed -n \
10927         "s/'/'\\\\''/g;
10928           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10929       ;; #(
10930     *)
10931       # `set' quotes correctly as required by POSIX, so do not add quotes.
10932       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10933       ;;
10934     esac |
10935     sort
10936 ) |
10937   sed '
10938      /^ac_cv_env_/b end
10939      t clear
10940      :clear
10941      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10942      t end
10943      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10944      :end' >>confcache
10945 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10946   if test -w "$cache_file"; then
10947     if test "x$cache_file" != "x/dev/null"; then
10948       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10949 $as_echo "$as_me: updating cache $cache_file" >&6;}
10950       if test ! -f "$cache_file" || test -h "$cache_file"; then
10951         cat confcache >"$cache_file"
10952       else
10953         case $cache_file in #(
10954         */* | ?:*)
10955           mv -f confcache "$cache_file"$$ &&
10956           mv -f "$cache_file"$$ "$cache_file" ;; #(
10957         *)
10958           mv -f confcache "$cache_file" ;;
10959         esac
10960       fi
10961     fi
10962   else
10963     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10964 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10965   fi
10966 fi
10967 rm -f confcache
10968
10969 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10970 # Let make expand exec_prefix.
10971 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10972
10973 DEFS=-DHAVE_CONFIG_H
10974
10975 ac_libobjs=
10976 ac_ltlibobjs=
10977 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10978   # 1. Remove the extension, and $U if already installed.
10979   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10980   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10981   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10982   #    will be set to the directory where LIBOBJS objects are built.
10983   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10984   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10985 done
10986 LIBOBJS=$ac_libobjs
10987
10988 LTLIBOBJS=$ac_ltlibobjs
10989
10990
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10992 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10993    if test -n "$am_sleep_pid"; then
10994      # Hide warnings about reused PIDs.
10995      wait $am_sleep_pid 2>/dev/null
10996    fi
10997    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10998 $as_echo "done" >&6; }
10999  if test -n "$EXEEXT"; then
11000   am__EXEEXT_TRUE=
11001   am__EXEEXT_FALSE='#'
11002 else
11003   am__EXEEXT_TRUE='#'
11004   am__EXEEXT_FALSE=
11005 fi
11006
11007 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11008   as_fn_error $? "conditional \"AMDEP\" was never defined.
11009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11010 fi
11011 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11012   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11014 fi
11015 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
11016   as_fn_error $? "conditional \"PLUGINS\" was never defined.
11017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11018 fi
11019 if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
11020   as_fn_error $? "conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
11021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11022 fi
11023 if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
11024   as_fn_error $? "conditional \"DEFAULT_TARGET_ARM\" was never defined.
11025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11026 fi
11027 if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
11028   as_fn_error $? "conditional \"DEFAULT_TARGET_I386\" was never defined.
11029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11030 fi
11031 if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
11032   as_fn_error $? "conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
11033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11034 fi
11035 if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
11036   as_fn_error $? "conditional \"DEFAULT_TARGET_SPARC\" was never defined.
11037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11038 fi
11039 if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then
11040   as_fn_error $? "conditional \"DEFAULT_TARGET_S390\" was never defined.
11041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11042 fi
11043 if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
11044   as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
11045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11046 fi
11047 if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then
11048   as_fn_error $? "conditional \"DEFAULT_TARGET_X32\" was never defined.
11049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11050 fi
11051 if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then
11052   as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined.
11053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11054 fi
11055 if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
11056   as_fn_error $? "conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
11057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11058 fi
11059 if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
11060   as_fn_error $? "conditional \"DEFAULT_TARGET_MIPS\" was never defined.
11061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11062 fi
11063 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11064   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11066 fi
11067 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11068   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
11069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11070 fi
11071
11072 if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
11073   as_fn_error $? "conditional \"NATIVE_LINKER\" was never defined.
11074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11075 fi
11076 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
11077   as_fn_error $? "conditional \"GCC\" was never defined.
11078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11079 fi
11080 if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
11081   as_fn_error $? "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
11082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11083 fi
11084 if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
11085   as_fn_error $? "conditional \"HAVE_STATIC\" was never defined.
11086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11087 fi
11088 if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
11089   as_fn_error $? "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
11090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11091 fi
11092 if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
11093   as_fn_error $? "conditional \"MCMODEL_MEDIUM\" was never defined.
11094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11095 fi
11096 if test -z "${GCC9_TRUE}" && test -z "${GCC9_FALSE}"; then
11097   as_fn_error $? "conditional \"GCC9\" was never defined.
11098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11099 fi
11100 if test -z "${CFLAGS_CF_PROTECTION_TRUE}" && test -z "${CFLAGS_CF_PROTECTION_FALSE}"; then
11101   as_fn_error $? "conditional \"CFLAGS_CF_PROTECTION\" was never defined.
11102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11103 fi
11104 if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
11105   as_fn_error $? "conditional \"TLS\" was never defined.
11106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11107 fi
11108 if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
11109   as_fn_error $? "conditional \"STATIC_TLS\" was never defined.
11110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11111 fi
11112 if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
11113   as_fn_error $? "conditional \"OMP_SUPPORT\" was never defined.
11114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11115 fi
11116 if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
11117   as_fn_error $? "conditional \"TLS_GNU2_DIALECT\" was never defined.
11118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11119 fi
11120 if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
11121   as_fn_error $? "conditional \"TLS_DESCRIPTORS\" was never defined.
11122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11123 fi
11124 if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
11125   as_fn_error $? "conditional \"IFUNC\" was never defined.
11126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11127 fi
11128 if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
11129   as_fn_error $? "conditional \"IFUNC_STATIC\" was never defined.
11130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11131 fi
11132 if test -z "${HAVE_ZSTD_TRUE}" && test -z "${HAVE_ZSTD_FALSE}"; then
11133   as_fn_error $? "conditional \"HAVE_ZSTD\" was never defined.
11134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11135 fi
11136 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
11137   as_fn_error $? "conditional \"THREADS\" was never defined.
11138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11139 fi
11140 if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
11141   as_fn_error $? "conditional \"HAVE_PUBNAMES\" was never defined.
11142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11143 fi
11144 if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
11145   as_fn_error $? "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
11146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11147 fi
11148 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11149   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11151 fi
11152
11153 : "${CONFIG_STATUS=./config.status}"
11154 ac_write_fail=0
11155 ac_clean_files_save=$ac_clean_files
11156 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11158 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11159 as_write_fail=0
11160 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11161 #! $SHELL
11162 # Generated by $as_me.
11163 # Run this file to recreate the current configuration.
11164 # Compiler output produced by configure, useful for debugging
11165 # configure, is in config.log if it exists.
11166
11167 debug=false
11168 ac_cs_recheck=false
11169 ac_cs_silent=false
11170
11171 SHELL=\${CONFIG_SHELL-$SHELL}
11172 export SHELL
11173 _ASEOF
11174 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11175 ## -------------------- ##
11176 ## M4sh Initialization. ##
11177 ## -------------------- ##
11178
11179 # Be more Bourne compatible
11180 DUALCASE=1; export DUALCASE # for MKS sh
11181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11182   emulate sh
11183   NULLCMD=:
11184   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11185   # is contrary to our usage.  Disable this feature.
11186   alias -g '${1+"$@"}'='"$@"'
11187   setopt NO_GLOB_SUBST
11188 else
11189   case `(set -o) 2>/dev/null` in #(
11190   *posix*) :
11191     set -o posix ;; #(
11192   *) :
11193      ;;
11194 esac
11195 fi
11196
11197
11198 as_nl='
11199 '
11200 export as_nl
11201 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11202 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11203 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11204 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11205 # Prefer a ksh shell builtin over an external printf program on Solaris,
11206 # but without wasting forks for bash or zsh.
11207 if test -z "$BASH_VERSION$ZSH_VERSION" \
11208     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11209   as_echo='print -r --'
11210   as_echo_n='print -rn --'
11211 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11212   as_echo='printf %s\n'
11213   as_echo_n='printf %s'
11214 else
11215   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11216     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11217     as_echo_n='/usr/ucb/echo -n'
11218   else
11219     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11220     as_echo_n_body='eval
11221       arg=$1;
11222       case $arg in #(
11223       *"$as_nl"*)
11224         expr "X$arg" : "X\\(.*\\)$as_nl";
11225         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11226       esac;
11227       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11228     '
11229     export as_echo_n_body
11230     as_echo_n='sh -c $as_echo_n_body as_echo'
11231   fi
11232   export as_echo_body
11233   as_echo='sh -c $as_echo_body as_echo'
11234 fi
11235
11236 # The user is always right.
11237 if test "${PATH_SEPARATOR+set}" != set; then
11238   PATH_SEPARATOR=:
11239   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11240     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11241       PATH_SEPARATOR=';'
11242   }
11243 fi
11244
11245
11246 # IFS
11247 # We need space, tab and new line, in precisely that order.  Quoting is
11248 # there to prevent editors from complaining about space-tab.
11249 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11250 # splitting by setting IFS to empty value.)
11251 IFS=" ""        $as_nl"
11252
11253 # Find who we are.  Look in the path if we contain no directory separator.
11254 as_myself=
11255 case $0 in #((
11256   *[\\/]* ) as_myself=$0 ;;
11257   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11258 for as_dir in $PATH
11259 do
11260   IFS=$as_save_IFS
11261   test -z "$as_dir" && as_dir=.
11262     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11263   done
11264 IFS=$as_save_IFS
11265
11266      ;;
11267 esac
11268 # We did not find ourselves, most probably we were run as `sh COMMAND'
11269 # in which case we are not to be found in the path.
11270 if test "x$as_myself" = x; then
11271   as_myself=$0
11272 fi
11273 if test ! -f "$as_myself"; then
11274   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11275   exit 1
11276 fi
11277
11278 # Unset variables that we do not need and which cause bugs (e.g. in
11279 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11280 # suppresses any "Segmentation fault" message there.  '((' could
11281 # trigger a bug in pdksh 5.2.14.
11282 for as_var in BASH_ENV ENV MAIL MAILPATH
11283 do eval test x\${$as_var+set} = xset \
11284   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11285 done
11286 PS1='$ '
11287 PS2='> '
11288 PS4='+ '
11289
11290 # NLS nuisances.
11291 LC_ALL=C
11292 export LC_ALL
11293 LANGUAGE=C
11294 export LANGUAGE
11295
11296 # CDPATH.
11297 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11298
11299
11300 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11301 # ----------------------------------------
11302 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11303 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11304 # script with STATUS, using 1 if that was 0.
11305 as_fn_error ()
11306 {
11307   as_status=$1; test $as_status -eq 0 && as_status=1
11308   if test "$4"; then
11309     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11310     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11311   fi
11312   $as_echo "$as_me: error: $2" >&2
11313   as_fn_exit $as_status
11314 } # as_fn_error
11315
11316
11317 # as_fn_set_status STATUS
11318 # -----------------------
11319 # Set $? to STATUS, without forking.
11320 as_fn_set_status ()
11321 {
11322   return $1
11323 } # as_fn_set_status
11324
11325 # as_fn_exit STATUS
11326 # -----------------
11327 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11328 as_fn_exit ()
11329 {
11330   set +e
11331   as_fn_set_status $1
11332   exit $1
11333 } # as_fn_exit
11334
11335 # as_fn_unset VAR
11336 # ---------------
11337 # Portably unset VAR.
11338 as_fn_unset ()
11339 {
11340   { eval $1=; unset $1;}
11341 }
11342 as_unset=as_fn_unset
11343 # as_fn_append VAR VALUE
11344 # ----------------------
11345 # Append the text in VALUE to the end of the definition contained in VAR. Take
11346 # advantage of any shell optimizations that allow amortized linear growth over
11347 # repeated appends, instead of the typical quadratic growth present in naive
11348 # implementations.
11349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11350   eval 'as_fn_append ()
11351   {
11352     eval $1+=\$2
11353   }'
11354 else
11355   as_fn_append ()
11356   {
11357     eval $1=\$$1\$2
11358   }
11359 fi # as_fn_append
11360
11361 # as_fn_arith ARG...
11362 # ------------------
11363 # Perform arithmetic evaluation on the ARGs, and store the result in the
11364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11365 # must be portable across $(()) and expr.
11366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11367   eval 'as_fn_arith ()
11368   {
11369     as_val=$(( $* ))
11370   }'
11371 else
11372   as_fn_arith ()
11373   {
11374     as_val=`expr "$@" || test $? -eq 1`
11375   }
11376 fi # as_fn_arith
11377
11378
11379 if expr a : '\(a\)' >/dev/null 2>&1 &&
11380    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11381   as_expr=expr
11382 else
11383   as_expr=false
11384 fi
11385
11386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11387   as_basename=basename
11388 else
11389   as_basename=false
11390 fi
11391
11392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11393   as_dirname=dirname
11394 else
11395   as_dirname=false
11396 fi
11397
11398 as_me=`$as_basename -- "$0" ||
11399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11400          X"$0" : 'X\(//\)$' \| \
11401          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11402 $as_echo X/"$0" |
11403     sed '/^.*\/\([^/][^/]*\)\/*$/{
11404             s//\1/
11405             q
11406           }
11407           /^X\/\(\/\/\)$/{
11408             s//\1/
11409             q
11410           }
11411           /^X\/\(\/\).*/{
11412             s//\1/
11413             q
11414           }
11415           s/.*/./; q'`
11416
11417 # Avoid depending upon Character Ranges.
11418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11421 as_cr_digits='0123456789'
11422 as_cr_alnum=$as_cr_Letters$as_cr_digits
11423
11424 ECHO_C= ECHO_N= ECHO_T=
11425 case `echo -n x` in #(((((
11426 -n*)
11427   case `echo 'xy\c'` in
11428   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11429   xy)  ECHO_C='\c';;
11430   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11431        ECHO_T=' ';;
11432   esac;;
11433 *)
11434   ECHO_N='-n';;
11435 esac
11436
11437 rm -f conf$$ conf$$.exe conf$$.file
11438 if test -d conf$$.dir; then
11439   rm -f conf$$.dir/conf$$.file
11440 else
11441   rm -f conf$$.dir
11442   mkdir conf$$.dir 2>/dev/null
11443 fi
11444 if (echo >conf$$.file) 2>/dev/null; then
11445   if ln -s conf$$.file conf$$ 2>/dev/null; then
11446     as_ln_s='ln -s'
11447     # ... but there are two gotchas:
11448     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11449     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11450     # In both cases, we have to default to `cp -pR'.
11451     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11452       as_ln_s='cp -pR'
11453   elif ln conf$$.file conf$$ 2>/dev/null; then
11454     as_ln_s=ln
11455   else
11456     as_ln_s='cp -pR'
11457   fi
11458 else
11459   as_ln_s='cp -pR'
11460 fi
11461 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11462 rmdir conf$$.dir 2>/dev/null
11463
11464
11465 # as_fn_mkdir_p
11466 # -------------
11467 # Create "$as_dir" as a directory, including parents if necessary.
11468 as_fn_mkdir_p ()
11469 {
11470
11471   case $as_dir in #(
11472   -*) as_dir=./$as_dir;;
11473   esac
11474   test -d "$as_dir" || eval $as_mkdir_p || {
11475     as_dirs=
11476     while :; do
11477       case $as_dir in #(
11478       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11479       *) as_qdir=$as_dir;;
11480       esac
11481       as_dirs="'$as_qdir' $as_dirs"
11482       as_dir=`$as_dirname -- "$as_dir" ||
11483 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11484          X"$as_dir" : 'X\(//\)[^/]' \| \
11485          X"$as_dir" : 'X\(//\)$' \| \
11486          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11487 $as_echo X"$as_dir" |
11488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11489             s//\1/
11490             q
11491           }
11492           /^X\(\/\/\)[^/].*/{
11493             s//\1/
11494             q
11495           }
11496           /^X\(\/\/\)$/{
11497             s//\1/
11498             q
11499           }
11500           /^X\(\/\).*/{
11501             s//\1/
11502             q
11503           }
11504           s/.*/./; q'`
11505       test -d "$as_dir" && break
11506     done
11507     test -z "$as_dirs" || eval "mkdir $as_dirs"
11508   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11509
11510
11511 } # as_fn_mkdir_p
11512 if mkdir -p . 2>/dev/null; then
11513   as_mkdir_p='mkdir -p "$as_dir"'
11514 else
11515   test -d ./-p && rmdir ./-p
11516   as_mkdir_p=false
11517 fi
11518
11519
11520 # as_fn_executable_p FILE
11521 # -----------------------
11522 # Test if FILE is an executable regular file.
11523 as_fn_executable_p ()
11524 {
11525   test -f "$1" && test -x "$1"
11526 } # as_fn_executable_p
11527 as_test_x='test -x'
11528 as_executable_p=as_fn_executable_p
11529
11530 # Sed expression to map a string onto a valid CPP name.
11531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11532
11533 # Sed expression to map a string onto a valid variable name.
11534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11535
11536
11537 exec 6>&1
11538 ## ----------------------------------- ##
11539 ## Main body of $CONFIG_STATUS script. ##
11540 ## ----------------------------------- ##
11541 _ASEOF
11542 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11543
11544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11545 # Save the log message, to keep $0 and so on meaningful, and to
11546 # report actual input values of CONFIG_FILES etc. instead of their
11547 # values after options handling.
11548 ac_log="
11549 This file was extended by gold $as_me 0.1, which was
11550 generated by GNU Autoconf 2.69.  Invocation command line was
11551
11552   CONFIG_FILES    = $CONFIG_FILES
11553   CONFIG_HEADERS  = $CONFIG_HEADERS
11554   CONFIG_LINKS    = $CONFIG_LINKS
11555   CONFIG_COMMANDS = $CONFIG_COMMANDS
11556   $ $0 $@
11557
11558 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11559 "
11560
11561 _ACEOF
11562
11563 case $ac_config_files in *"
11564 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11565 esac
11566
11567 case $ac_config_headers in *"
11568 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11569 esac
11570
11571
11572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11573 # Files that config.status was made for.
11574 config_files="$ac_config_files"
11575 config_headers="$ac_config_headers"
11576 config_commands="$ac_config_commands"
11577
11578 _ACEOF
11579
11580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11581 ac_cs_usage="\
11582 \`$as_me' instantiates files and other configuration actions
11583 from templates according to the current configuration.  Unless the files
11584 and actions are specified as TAGs, all are instantiated by default.
11585
11586 Usage: $0 [OPTION]... [TAG]...
11587
11588   -h, --help       print this help, then exit
11589   -V, --version    print version number and configuration settings, then exit
11590       --config     print configuration, then exit
11591   -q, --quiet, --silent
11592                    do not print progress messages
11593   -d, --debug      don't remove temporary files
11594       --recheck    update $as_me by reconfiguring in the same conditions
11595       --file=FILE[:TEMPLATE]
11596                    instantiate the configuration file FILE
11597       --header=FILE[:TEMPLATE]
11598                    instantiate the configuration header FILE
11599
11600 Configuration files:
11601 $config_files
11602
11603 Configuration headers:
11604 $config_headers
11605
11606 Configuration commands:
11607 $config_commands
11608
11609 Report bugs to the package provider."
11610
11611 _ACEOF
11612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11613 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11614 ac_cs_version="\\
11615 gold config.status 0.1
11616 configured by $0, generated by GNU Autoconf 2.69,
11617   with options \\"\$ac_cs_config\\"
11618
11619 Copyright (C) 2012 Free Software Foundation, Inc.
11620 This config.status script is free software; the Free Software Foundation
11621 gives unlimited permission to copy, distribute and modify it."
11622
11623 ac_pwd='$ac_pwd'
11624 srcdir='$srcdir'
11625 INSTALL='$INSTALL'
11626 MKDIR_P='$MKDIR_P'
11627 AWK='$AWK'
11628 test -n "\$AWK" || AWK=awk
11629 _ACEOF
11630
11631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11632 # The default lists apply if the user does not specify any file.
11633 ac_need_defaults=:
11634 while test $# != 0
11635 do
11636   case $1 in
11637   --*=?*)
11638     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11639     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11640     ac_shift=:
11641     ;;
11642   --*=)
11643     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11644     ac_optarg=
11645     ac_shift=:
11646     ;;
11647   *)
11648     ac_option=$1
11649     ac_optarg=$2
11650     ac_shift=shift
11651     ;;
11652   esac
11653
11654   case $ac_option in
11655   # Handling of the options.
11656   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11657     ac_cs_recheck=: ;;
11658   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11659     $as_echo "$ac_cs_version"; exit ;;
11660   --config | --confi | --conf | --con | --co | --c )
11661     $as_echo "$ac_cs_config"; exit ;;
11662   --debug | --debu | --deb | --de | --d | -d )
11663     debug=: ;;
11664   --file | --fil | --fi | --f )
11665     $ac_shift
11666     case $ac_optarg in
11667     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11668     '') as_fn_error $? "missing file argument" ;;
11669     esac
11670     as_fn_append CONFIG_FILES " '$ac_optarg'"
11671     ac_need_defaults=false;;
11672   --header | --heade | --head | --hea )
11673     $ac_shift
11674     case $ac_optarg in
11675     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11676     esac
11677     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11678     ac_need_defaults=false;;
11679   --he | --h)
11680     # Conflict between --help and --header
11681     as_fn_error $? "ambiguous option: \`$1'
11682 Try \`$0 --help' for more information.";;
11683   --help | --hel | -h )
11684     $as_echo "$ac_cs_usage"; exit ;;
11685   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11686   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11687     ac_cs_silent=: ;;
11688
11689   # This is an error.
11690   -*) as_fn_error $? "unrecognized option: \`$1'
11691 Try \`$0 --help' for more information." ;;
11692
11693   *) as_fn_append ac_config_targets " $1"
11694      ac_need_defaults=false ;;
11695
11696   esac
11697   shift
11698 done
11699
11700 ac_configure_extra_args=
11701
11702 if $ac_cs_silent; then
11703   exec 6>/dev/null
11704   ac_configure_extra_args="$ac_configure_extra_args --silent"
11705 fi
11706
11707 _ACEOF
11708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11709 if \$ac_cs_recheck; then
11710   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11711   shift
11712   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11713   CONFIG_SHELL='$SHELL'
11714   export CONFIG_SHELL
11715   exec "\$@"
11716 fi
11717
11718 _ACEOF
11719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11720 exec 5>>config.log
11721 {
11722   echo
11723   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11724 ## Running $as_me. ##
11725 _ASBOX
11726   $as_echo "$ac_log"
11727 } >&5
11728
11729 _ACEOF
11730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11731 #
11732 # INIT-COMMANDS
11733 #
11734 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11735 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11736     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
11737     # from automake.
11738     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11739     # Capture the value of LINGUAS because we need it to compute CATALOGS.
11740     LINGUAS="${LINGUAS-%UNSET%}"
11741
11742
11743 _ACEOF
11744
11745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11746
11747 # Handling of arguments.
11748 for ac_config_target in $ac_config_targets
11749 do
11750   case $ac_config_target in
11751     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11752     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11753     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11754     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11755     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11756     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11757
11758   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11759   esac
11760 done
11761
11762
11763 # If the user did not use the arguments to specify the items to instantiate,
11764 # then the envvar interface is used.  Set only those that are not.
11765 # We use the long form for the default assignment because of an extremely
11766 # bizarre bug on SunOS 4.1.3.
11767 if $ac_need_defaults; then
11768   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11769   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11770   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11771 fi
11772
11773 # Have a temporary directory for convenience.  Make it in the build tree
11774 # simply because there is no reason against having it here, and in addition,
11775 # creating and moving files from /tmp can sometimes cause problems.
11776 # Hook for its removal unless debugging.
11777 # Note that there is a small window in which the directory will not be cleaned:
11778 # after its creation but before its name has been assigned to `$tmp'.
11779 $debug ||
11780 {
11781   tmp= ac_tmp=
11782   trap 'exit_status=$?
11783   : "${ac_tmp:=$tmp}"
11784   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11785 ' 0
11786   trap 'as_fn_exit 1' 1 2 13 15
11787 }
11788 # Create a (secure) tmp directory for tmp files.
11789
11790 {
11791   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11792   test -d "$tmp"
11793 }  ||
11794 {
11795   tmp=./conf$$-$RANDOM
11796   (umask 077 && mkdir "$tmp")
11797 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11798 ac_tmp=$tmp
11799
11800 # Set up the scripts for CONFIG_FILES section.
11801 # No need to generate them if there are no CONFIG_FILES.
11802 # This happens for instance with `./config.status config.h'.
11803 if test -n "$CONFIG_FILES"; then
11804
11805
11806 ac_cr=`echo X | tr X '\015'`
11807 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11808 # But we know of no other shell where ac_cr would be empty at this
11809 # point, so we can use a bashism as a fallback.
11810 if test "x$ac_cr" = x; then
11811   eval ac_cr=\$\'\\r\'
11812 fi
11813 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11814 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11815   ac_cs_awk_cr='\\r'
11816 else
11817   ac_cs_awk_cr=$ac_cr
11818 fi
11819
11820 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11821 _ACEOF
11822
11823
11824 {
11825   echo "cat >conf$$subs.awk <<_ACEOF" &&
11826   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11827   echo "_ACEOF"
11828 } >conf$$subs.sh ||
11829   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11830 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11831 ac_delim='%!_!# '
11832 for ac_last_try in false false false false false :; do
11833   . ./conf$$subs.sh ||
11834     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11835
11836   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11837   if test $ac_delim_n = $ac_delim_num; then
11838     break
11839   elif $ac_last_try; then
11840     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11841   else
11842     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11843   fi
11844 done
11845 rm -f conf$$subs.sh
11846
11847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11848 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11849 _ACEOF
11850 sed -n '
11851 h
11852 s/^/S["/; s/!.*/"]=/
11853 p
11854 g
11855 s/^[^!]*!//
11856 :repl
11857 t repl
11858 s/'"$ac_delim"'$//
11859 t delim
11860 :nl
11861 h
11862 s/\(.\{148\}\)..*/\1/
11863 t more1
11864 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11865 p
11866 n
11867 b repl
11868 :more1
11869 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11870 p
11871 g
11872 s/.\{148\}//
11873 t nl
11874 :delim
11875 h
11876 s/\(.\{148\}\)..*/\1/
11877 t more2
11878 s/["\\]/\\&/g; s/^/"/; s/$/"/
11879 p
11880 b
11881 :more2
11882 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11883 p
11884 g
11885 s/.\{148\}//
11886 t delim
11887 ' <conf$$subs.awk | sed '
11888 /^[^""]/{
11889   N
11890   s/\n//
11891 }
11892 ' >>$CONFIG_STATUS || ac_write_fail=1
11893 rm -f conf$$subs.awk
11894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11895 _ACAWK
11896 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11897   for (key in S) S_is_set[key] = 1
11898   FS = "\a"
11899
11900 }
11901 {
11902   line = $ 0
11903   nfields = split(line, field, "@")
11904   substed = 0
11905   len = length(field[1])
11906   for (i = 2; i < nfields; i++) {
11907     key = field[i]
11908     keylen = length(key)
11909     if (S_is_set[key]) {
11910       value = S[key]
11911       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11912       len += length(value) + length(field[++i])
11913       substed = 1
11914     } else
11915       len += 1 + keylen
11916   }
11917
11918   print line
11919 }
11920
11921 _ACAWK
11922 _ACEOF
11923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11924 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11925   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11926 else
11927   cat
11928 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11929   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11930 _ACEOF
11931
11932 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11933 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11934 # trailing colons and then remove the whole line if VPATH becomes empty
11935 # (actually we leave an empty line to preserve line numbers).
11936 if test "x$srcdir" = x.; then
11937   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
11938 h
11939 s///
11940 s/^/:/
11941 s/[      ]*$/:/
11942 s/:\$(srcdir):/:/g
11943 s/:\${srcdir}:/:/g
11944 s/:@srcdir@:/:/g
11945 s/^:*//
11946 s/:*$//
11947 x
11948 s/\(=[   ]*\).*/\1/
11949 G
11950 s/\n//
11951 s/^[^=]*=[       ]*$//
11952 }'
11953 fi
11954
11955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11956 fi # test -n "$CONFIG_FILES"
11957
11958 # Set up the scripts for CONFIG_HEADERS section.
11959 # No need to generate them if there are no CONFIG_HEADERS.
11960 # This happens for instance with `./config.status Makefile'.
11961 if test -n "$CONFIG_HEADERS"; then
11962 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11963 BEGIN {
11964 _ACEOF
11965
11966 # Transform confdefs.h into an awk script `defines.awk', embedded as
11967 # here-document in config.status, that substitutes the proper values into
11968 # config.h.in to produce config.h.
11969
11970 # Create a delimiter string that does not exist in confdefs.h, to ease
11971 # handling of long lines.
11972 ac_delim='%!_!# '
11973 for ac_last_try in false false :; do
11974   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11975   if test -z "$ac_tt"; then
11976     break
11977   elif $ac_last_try; then
11978     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11979   else
11980     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11981   fi
11982 done
11983
11984 # For the awk script, D is an array of macro values keyed by name,
11985 # likewise P contains macro parameters if any.  Preserve backslash
11986 # newline sequences.
11987
11988 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11989 sed -n '
11990 s/.\{148\}/&'"$ac_delim"'/g
11991 t rset
11992 :rset
11993 s/^[     ]*#[    ]*define[       ][      ]*/ /
11994 t def
11995 d
11996 :def
11997 s/\\$//
11998 t bsnl
11999 s/["\\]/\\&/g
12000 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12001 D["\1"]=" \3"/p
12002 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12003 d
12004 :bsnl
12005 s/["\\]/\\&/g
12006 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12007 D["\1"]=" \3\\\\\\n"\\/p
12008 t cont
12009 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12010 t cont
12011 d
12012 :cont
12013 n
12014 s/.\{148\}/&'"$ac_delim"'/g
12015 t clear
12016 :clear
12017 s/\\$//
12018 t bsnlc
12019 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12020 d
12021 :bsnlc
12022 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12023 b cont
12024 ' <confdefs.h | sed '
12025 s/'"$ac_delim"'/"\\\
12026 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12027
12028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12029   for (key in D) D_is_set[key] = 1
12030   FS = "\a"
12031 }
12032 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12033   line = \$ 0
12034   split(line, arg, " ")
12035   if (arg[1] == "#") {
12036     defundef = arg[2]
12037     mac1 = arg[3]
12038   } else {
12039     defundef = substr(arg[1], 2)
12040     mac1 = arg[2]
12041   }
12042   split(mac1, mac2, "(") #)
12043   macro = mac2[1]
12044   prefix = substr(line, 1, index(line, defundef) - 1)
12045   if (D_is_set[macro]) {
12046     # Preserve the white space surrounding the "#".
12047     print prefix "define", macro P[macro] D[macro]
12048     next
12049   } else {
12050     # Replace #undef with comments.  This is necessary, for example,
12051     # in the case of _POSIX_SOURCE, which is predefined and required
12052     # on some systems where configure will not decide to define it.
12053     if (defundef == "undef") {
12054       print "/*", prefix defundef, macro, "*/"
12055       next
12056     }
12057   }
12058 }
12059 { print }
12060 _ACAWK
12061 _ACEOF
12062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12063   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12064 fi # test -n "$CONFIG_HEADERS"
12065
12066
12067 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12068 shift
12069 for ac_tag
12070 do
12071   case $ac_tag in
12072   :[FHLC]) ac_mode=$ac_tag; continue;;
12073   esac
12074   case $ac_mode$ac_tag in
12075   :[FHL]*:*);;
12076   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12077   :[FH]-) ac_tag=-:-;;
12078   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12079   esac
12080   ac_save_IFS=$IFS
12081   IFS=:
12082   set x $ac_tag
12083   IFS=$ac_save_IFS
12084   shift
12085   ac_file=$1
12086   shift
12087
12088   case $ac_mode in
12089   :L) ac_source=$1;;
12090   :[FH])
12091     ac_file_inputs=
12092     for ac_f
12093     do
12094       case $ac_f in
12095       -) ac_f="$ac_tmp/stdin";;
12096       *) # Look for the file first in the build tree, then in the source tree
12097          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12098          # because $ac_f cannot contain `:'.
12099          test -f "$ac_f" ||
12100            case $ac_f in
12101            [\\/$]*) false;;
12102            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12103            esac ||
12104            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12105       esac
12106       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12107       as_fn_append ac_file_inputs " '$ac_f'"
12108     done
12109
12110     # Let's still pretend it is `configure' which instantiates (i.e., don't
12111     # use $as_me), people would be surprised to read:
12112     #    /* config.h.  Generated by config.status.  */
12113     configure_input='Generated from '`
12114           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12115         `' by configure.'
12116     if test x"$ac_file" != x-; then
12117       configure_input="$ac_file.  $configure_input"
12118       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12119 $as_echo "$as_me: creating $ac_file" >&6;}
12120     fi
12121     # Neutralize special characters interpreted by sed in replacement strings.
12122     case $configure_input in #(
12123     *\&* | *\|* | *\\* )
12124        ac_sed_conf_input=`$as_echo "$configure_input" |
12125        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12126     *) ac_sed_conf_input=$configure_input;;
12127     esac
12128
12129     case $ac_tag in
12130     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12131       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12132     esac
12133     ;;
12134   esac
12135
12136   ac_dir=`$as_dirname -- "$ac_file" ||
12137 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12138          X"$ac_file" : 'X\(//\)[^/]' \| \
12139          X"$ac_file" : 'X\(//\)$' \| \
12140          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12141 $as_echo X"$ac_file" |
12142     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12143             s//\1/
12144             q
12145           }
12146           /^X\(\/\/\)[^/].*/{
12147             s//\1/
12148             q
12149           }
12150           /^X\(\/\/\)$/{
12151             s//\1/
12152             q
12153           }
12154           /^X\(\/\).*/{
12155             s//\1/
12156             q
12157           }
12158           s/.*/./; q'`
12159   as_dir="$ac_dir"; as_fn_mkdir_p
12160   ac_builddir=.
12161
12162 case "$ac_dir" in
12163 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12164 *)
12165   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12166   # A ".." for each directory in $ac_dir_suffix.
12167   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12168   case $ac_top_builddir_sub in
12169   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12170   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12171   esac ;;
12172 esac
12173 ac_abs_top_builddir=$ac_pwd
12174 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12175 # for backward compatibility:
12176 ac_top_builddir=$ac_top_build_prefix
12177
12178 case $srcdir in
12179   .)  # We are building in place.
12180     ac_srcdir=.
12181     ac_top_srcdir=$ac_top_builddir_sub
12182     ac_abs_top_srcdir=$ac_pwd ;;
12183   [\\/]* | ?:[\\/]* )  # Absolute name.
12184     ac_srcdir=$srcdir$ac_dir_suffix;
12185     ac_top_srcdir=$srcdir
12186     ac_abs_top_srcdir=$srcdir ;;
12187   *) # Relative name.
12188     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12189     ac_top_srcdir=$ac_top_build_prefix$srcdir
12190     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12191 esac
12192 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12193
12194
12195   case $ac_mode in
12196   :F)
12197   #
12198   # CONFIG_FILE
12199   #
12200
12201   case $INSTALL in
12202   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12203   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12204   esac
12205   ac_MKDIR_P=$MKDIR_P
12206   case $MKDIR_P in
12207   [\\/$]* | ?:[\\/]* ) ;;
12208   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12209   esac
12210 _ACEOF
12211
12212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12213 # If the template does not know about datarootdir, expand it.
12214 # FIXME: This hack should be removed a few years after 2.60.
12215 ac_datarootdir_hack=; ac_datarootdir_seen=
12216 ac_sed_dataroot='
12217 /datarootdir/ {
12218   p
12219   q
12220 }
12221 /@datadir@/p
12222 /@docdir@/p
12223 /@infodir@/p
12224 /@localedir@/p
12225 /@mandir@/p'
12226 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12227 *datarootdir*) ac_datarootdir_seen=yes;;
12228 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12229   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12230 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12231 _ACEOF
12232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12233   ac_datarootdir_hack='
12234   s&@datadir@&$datadir&g
12235   s&@docdir@&$docdir&g
12236   s&@infodir@&$infodir&g
12237   s&@localedir@&$localedir&g
12238   s&@mandir@&$mandir&g
12239   s&\\\${datarootdir}&$datarootdir&g' ;;
12240 esac
12241 _ACEOF
12242
12243 # Neutralize VPATH when `$srcdir' = `.'.
12244 # Shell code in configure.ac might set extrasub.
12245 # FIXME: do we really want to maintain this feature?
12246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12247 ac_sed_extra="$ac_vpsub
12248 $extrasub
12249 _ACEOF
12250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12251 :t
12252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12253 s|@configure_input@|$ac_sed_conf_input|;t t
12254 s&@top_builddir@&$ac_top_builddir_sub&;t t
12255 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12256 s&@srcdir@&$ac_srcdir&;t t
12257 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12258 s&@top_srcdir@&$ac_top_srcdir&;t t
12259 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12260 s&@builddir@&$ac_builddir&;t t
12261 s&@abs_builddir@&$ac_abs_builddir&;t t
12262 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12263 s&@INSTALL@&$ac_INSTALL&;t t
12264 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12265 $ac_datarootdir_hack
12266 "
12267 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12268   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12269
12270 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12271   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12272   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12273       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12274   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12275 which seems to be undefined.  Please make sure it is defined" >&5
12276 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12277 which seems to be undefined.  Please make sure it is defined" >&2;}
12278
12279   rm -f "$ac_tmp/stdin"
12280   case $ac_file in
12281   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12282   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12283   esac \
12284   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12285  ;;
12286   :H)
12287   #
12288   # CONFIG_HEADER
12289   #
12290   if test x"$ac_file" != x-; then
12291     {
12292       $as_echo "/* $configure_input  */" \
12293       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12294     } >"$ac_tmp/config.h" \
12295       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12296     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12297       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12298 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12299     else
12300       rm -f "$ac_file"
12301       mv "$ac_tmp/config.h" "$ac_file" \
12302         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12303     fi
12304   else
12305     $as_echo "/* $configure_input  */" \
12306       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12307       || as_fn_error $? "could not create -" "$LINENO" 5
12308   fi
12309 # Compute "$ac_file"'s index in $config_headers.
12310 _am_arg="$ac_file"
12311 _am_stamp_count=1
12312 for _am_header in $config_headers :; do
12313   case $_am_header in
12314     $_am_arg | $_am_arg:* )
12315       break ;;
12316     * )
12317       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12318   esac
12319 done
12320 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12321 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12322          X"$_am_arg" : 'X\(//\)[^/]' \| \
12323          X"$_am_arg" : 'X\(//\)$' \| \
12324          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12325 $as_echo X"$_am_arg" |
12326     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12327             s//\1/
12328             q
12329           }
12330           /^X\(\/\/\)[^/].*/{
12331             s//\1/
12332             q
12333           }
12334           /^X\(\/\/\)$/{
12335             s//\1/
12336             q
12337           }
12338           /^X\(\/\).*/{
12339             s//\1/
12340             q
12341           }
12342           s/.*/./; q'`/stamp-h$_am_stamp_count
12343  ;;
12344
12345   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12346 $as_echo "$as_me: executing $ac_file commands" >&6;}
12347  ;;
12348   esac
12349
12350
12351   case $ac_file$ac_mode in
12352     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12353   # Older Autoconf quotes --file arguments for eval, but not when files
12354   # are listed without --file.  Let's play safe and only enable the eval
12355   # if we detect the quoting.
12356   case $CONFIG_FILES in
12357   *\'*) eval set x "$CONFIG_FILES" ;;
12358   *)   set x $CONFIG_FILES ;;
12359   esac
12360   shift
12361   for mf
12362   do
12363     # Strip MF so we end up with the name of the file.
12364     mf=`echo "$mf" | sed -e 's/:.*$//'`
12365     # Check whether this is an Automake generated Makefile or not.
12366     # We used to match only the files named 'Makefile.in', but
12367     # some people rename them; so instead we look at the file content.
12368     # Grep'ing the first line is not enough: some people post-process
12369     # each Makefile.in and add a new line on top of each file to say so.
12370     # Grep'ing the whole file is not good either: AIX grep has a line
12371     # limit of 2048, but all sed's we know have understand at least 4000.
12372     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12373       dirpart=`$as_dirname -- "$mf" ||
12374 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12375          X"$mf" : 'X\(//\)[^/]' \| \
12376          X"$mf" : 'X\(//\)$' \| \
12377          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12378 $as_echo X"$mf" |
12379     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12380             s//\1/
12381             q
12382           }
12383           /^X\(\/\/\)[^/].*/{
12384             s//\1/
12385             q
12386           }
12387           /^X\(\/\/\)$/{
12388             s//\1/
12389             q
12390           }
12391           /^X\(\/\).*/{
12392             s//\1/
12393             q
12394           }
12395           s/.*/./; q'`
12396     else
12397       continue
12398     fi
12399     # Extract the definition of DEPDIR, am__include, and am__quote
12400     # from the Makefile without running 'make'.
12401     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12402     test -z "$DEPDIR" && continue
12403     am__include=`sed -n 's/^am__include = //p' < "$mf"`
12404     test -z "$am__include" && continue
12405     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12406     # Find all dependency output files, they are included files with
12407     # $(DEPDIR) in their names.  We invoke sed twice because it is the
12408     # simplest approach to changing $(DEPDIR) to its actual value in the
12409     # expansion.
12410     for file in `sed -n "
12411       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12412          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12413       # Make sure the directory exists.
12414       test -f "$dirpart/$file" && continue
12415       fdir=`$as_dirname -- "$file" ||
12416 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12417          X"$file" : 'X\(//\)[^/]' \| \
12418          X"$file" : 'X\(//\)$' \| \
12419          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12420 $as_echo X"$file" |
12421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12422             s//\1/
12423             q
12424           }
12425           /^X\(\/\/\)[^/].*/{
12426             s//\1/
12427             q
12428           }
12429           /^X\(\/\/\)$/{
12430             s//\1/
12431             q
12432           }
12433           /^X\(\/\).*/{
12434             s//\1/
12435             q
12436           }
12437           s/.*/./; q'`
12438       as_dir=$dirpart/$fdir; as_fn_mkdir_p
12439       # echo "creating $dirpart/$file"
12440       echo '# dummy' > "$dirpart/$file"
12441     done
12442   done
12443 }
12444  ;;
12445     "default-1":C)
12446     for ac_file in $CONFIG_FILES; do
12447       # Support "outfile[:infile[:infile...]]"
12448       case "$ac_file" in
12449         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12450       esac
12451       # PO directories have a Makefile.in generated from Makefile.in.in.
12452       case "$ac_file" in */Makefile.in)
12453         # Adjust a relative srcdir.
12454         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12455         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
12456         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12457         # In autoconf-2.13 it is called $ac_given_srcdir.
12458         # In autoconf-2.50 it is called $srcdir.
12459         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12460         case "$ac_given_srcdir" in
12461           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12462           /*) top_srcdir="$ac_given_srcdir" ;;
12463           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12464         esac
12465         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12466           rm -f "$ac_dir/POTFILES"
12467           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12468           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12469           POMAKEFILEDEPS="POTFILES.in"
12470           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
12471           # on $ac_dir but don't depend on user-specified configuration
12472           # parameters.
12473           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12474             # The LINGUAS file contains the set of available languages.
12475             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12476               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
12477             fi
12478             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12479             # Hide the ALL_LINGUAS assigment from automake.
12480             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12481             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12482           else
12483             # The set of available languages was given in configure.ac.
12484             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12485           fi
12486           case "$ac_given_srcdir" in
12487             .) srcdirpre= ;;
12488             *) srcdirpre='$(srcdir)/' ;;
12489           esac
12490           POFILES=
12491           GMOFILES=
12492           UPDATEPOFILES=
12493           DUMMYPOFILES=
12494           for lang in $ALL_LINGUAS; do
12495             POFILES="$POFILES $srcdirpre$lang.po"
12496             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12497             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12498             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12499           done
12500           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12501           # environment variable.
12502           INST_LINGUAS=
12503           if test -n "$ALL_LINGUAS"; then
12504             for presentlang in $ALL_LINGUAS; do
12505               useit=no
12506               if test "%UNSET%" != "$LINGUAS"; then
12507                 desiredlanguages="$LINGUAS"
12508               else
12509                 desiredlanguages="$ALL_LINGUAS"
12510               fi
12511               for desiredlang in $desiredlanguages; do
12512                 # Use the presentlang catalog if desiredlang is
12513                 #   a. equal to presentlang, or
12514                 #   b. a variant of presentlang (because in this case,
12515                 #      presentlang can be used as a fallback for messages
12516                 #      which are not translated in the desiredlang catalog).
12517                 case "$desiredlang" in
12518                   "$presentlang"*) useit=yes;;
12519                 esac
12520               done
12521               if test $useit = yes; then
12522                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12523               fi
12524             done
12525           fi
12526           CATALOGS=
12527           if test -n "$INST_LINGUAS"; then
12528             for lang in $INST_LINGUAS; do
12529               CATALOGS="$CATALOGS $lang.gmo"
12530             done
12531           fi
12532           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12533           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"
12534           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12535             if test -f "$f"; then
12536               case "$f" in
12537                 *.orig | *.bak | *~) ;;
12538                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12539               esac
12540             fi
12541           done
12542         fi
12543         ;;
12544       esac
12545     done ;;
12546
12547   esac
12548 done # for ac_tag
12549
12550
12551 as_fn_exit 0
12552 _ACEOF
12553 ac_clean_files=$ac_clean_files_save
12554
12555 test $ac_write_fail = 0 ||
12556   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12557
12558
12559 # configure is writing to config.log, and then calls config.status.
12560 # config.status does its own redirection, appending to config.log.
12561 # Unfortunately, on DOS this fails, as config.log is still kept open
12562 # by configure, so config.status won't be able to write to it; its
12563 # output is simply discarded.  So we exec the FD to /dev/null,
12564 # effectively closing config.log, so it can be properly (re)opened and
12565 # appended to by config.status.  When coming back to configure, we
12566 # need to make the FD available again.
12567 if test "$no_create" != yes; then
12568   ac_cs_success=:
12569   ac_config_status_args=
12570   test "$silent" = yes &&
12571     ac_config_status_args="$ac_config_status_args --quiet"
12572   exec 5>/dev/null
12573   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12574   exec 5>>config.log
12575   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12576   # would make configure fail if this is the last instruction.
12577   $ac_cs_success || as_fn_exit 1
12578 fi
12579 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12580   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12581 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12582 fi
12583
This page took 0.699389 seconds and 4 git commands to generate.