GCN back-end config
[platform/upstream/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
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
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="tree.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 NO_PIE_FLAG
635 NO_PIE_CFLAGS
636 enable_default_pie
637 PICFLAG
638 enable_host_shared
639 enable_plugin
640 pluginlibs
641 ISLINC
642 ISLLIBS
643 GMPINC
644 GMPLIBS
645 target_cpu_default
646 d_target_objs
647 fortran_target_objs
648 cxx_target_objs
649 c_target_objs
650 use_gcc_stdint
651 xm_defines
652 xm_include_list
653 xm_file_list
654 tm_d_include_list
655 tm_d_file_list
656 tm_p_include_list
657 tm_p_file_list
658 tm_defines
659 tm_include_list
660 tm_file_list
661 common_out_object_file
662 common_out_file
663 out_object_file
664 out_file
665 objc_boehm_gc
666 md_file
667 local_prefix
668 lang_tree_files
669 lang_specs_files
670 lang_opt_files
671 install
672 out_host_hook_obj
673 host_xm_defines
674 host_xm_include_list
675 host_xm_file_list
676 host_exeext
677 gcc_gxx_include_dir_add_sysroot
678 gcc_gxx_include_dir
679 gcc_config_arguments
680 float_h_file
681 extra_programs
682 extra_objs
683 extra_headers_list
684 user_headers_inc_next_post
685 user_headers_inc_next_pre
686 extra_gcc_objs
687 TM_MULTILIB_EXCEPTIONS_CONFIG
688 TM_MULTILIB_CONFIG
689 TM_ENDIAN_CONFIG
690 tmake_file
691 xmake_file
692 cpp_install_dir
693 selftest_languages
694 check_languages
695 build_file_translate
696 build_xm_defines
697 build_xm_include_list
698 build_xm_file_list
699 build_install_headers_dir
700 build_exeext
701 all_selected_languages
702 all_languages
703 all_lang_makefrags
704 all_gtfiles
705 all_compilers
706 srcdir
707 subdirs
708 dollar
709 gcc_tooldir
710 enable_lto
711 DO_LINK_MUTEX
712 MAINT
713 zlibinc
714 zlibdir
715 HOST_LIBS
716 enable_default_ssp
717 thin_archive_support
718 ld_soname_option
719 ld_version_script_option
720 libgcc_visibility
721 gcc_cv_otool
722 gcc_cv_readelf
723 gcc_cv_objdump
724 ORIGINAL_NM_FOR_TARGET
725 gcc_cv_nm
726 ORIGINAL_LD_GOLD_FOR_TARGET
727 ORIGINAL_LD_BFD_FOR_TARGET
728 ORIGINAL_LD_FOR_TARGET
729 ORIGINAL_PLUGIN_LD_FOR_TARGET
730 gcc_cv_ld
731 ORIGINAL_AS_FOR_TARGET
732 gcc_cv_as
733 enable_fast_install
734 objdir
735 OTOOL64
736 OTOOL
737 LIPO
738 NMEDIT
739 DSYMUTIL
740 STRIP
741 OBJDUMP
742 ac_ct_DUMPBIN
743 DUMPBIN
744 LD
745 FGREP
746 SED
747 LIBTOOL
748 collect2
749 NO_PIE_FLAG_FOR_BUILD
750 NO_PIE_CFLAGS_FOR_BUILD
751 BUILD_NO_PIE_FLAG
752 BUILD_NO_PIE_CFLAGS
753 STMP_FIXINC
754 BUILD_LDFLAGS
755 BUILD_CXXFLAGS
756 BUILD_CFLAGS
757 CXX_FOR_BUILD
758 CC_FOR_BUILD
759 inhibit_libc
760 BUILD_SYSTEM_HEADER_DIR
761 SYSTEM_HEADER_DIR
762 ALL
763 CROSS
764 CATOBJEXT
765 GENCAT
766 INSTOBJEXT
767 DATADIRNAME
768 CATALOGS
769 POSUB
770 GMSGFMT
771 XGETTEXT
772 INCINTL
773 LIBINTL_DEP
774 LIBINTL
775 USE_NLS
776 get_gcc_base_ver
777 extra_opt_files
778 extra_modes_file
779 NATIVE_SYSTEM_HEADER_DIR
780 objext
781 manext
782 LIBICONV_DEP
783 LTLIBICONV
784 LIBICONV
785 DL_LIB
786 LDEXP_LIB
787 EXTRA_GCC_LIBS
788 GNAT_LIBEXC
789 COLLECT2_LIBS
790 CXXDEPMODE
791 DEPDIR
792 am__leading_dot
793 doc_build_sys
794 AR
795 NM
796 BISON
797 FLEX
798 GENERATED_MANPAGES
799 BUILD_INFO
800 MAKEINFO
801 have_mktemp_command
802 make_compare_target
803 INSTALL_DATA
804 INSTALL_PROGRAM
805 INSTALL
806 ranlib_flags
807 RANLIB
808 LN
809 LN_S
810 AWK
811 SET_MAKE
812 accel_dir_suffix
813 real_target_noncanonical
814 enable_as_accelerator
815 REPORT_BUGS_TEXI
816 REPORT_BUGS_TO
817 PKGVERSION
818 CONFIGURE_SPECS
819 enable_gcov
820 enable_shared
821 enable_fixed_point
822 enable_decimal_float
823 with_float
824 with_cpu
825 enable_multiarch
826 enable_multilib
827 coverage_flags
828 valgrind_command
829 valgrind_path_defines
830 valgrind_path
831 TREECHECKING
832 nocommon_flag
833 noexception_flags
834 warn_cxxflags
835 warn_cflags
836 c_strict_warn
837 strict_warn
838 c_loose_warn
839 loose_warn
840 aliasing_flags
841 CPP
842 EGREP
843 GREP
844 CXXCPP
845 PICFLAG_FOR_TARGET
846 GNATMAKE
847 GNATBIND
848 ac_ct_CXX
849 CXXFLAGS
850 CXX
851 OBJEXT
852 EXEEXT
853 ac_ct_CC
854 CPPFLAGS
855 LDFLAGS
856 CFLAGS
857 CC
858 GENINSRC
859 CROSS_SYSTEM_HEADER_DIR
860 TARGET_SYSTEM_ROOT_DEFINE
861 TARGET_SYSTEM_ROOT
862 SYSROOT_CFLAGS_FOR_TARGET
863 target_subdir
864 host_subdir
865 build_subdir
866 build_libsubdir
867 target_noncanonical
868 host_noncanonical
869 target_os
870 target_vendor
871 target_cpu
872 target
873 host_os
874 host_vendor
875 host_cpu
876 host
877 build_os
878 build_vendor
879 build_cpu
880 build
881 target_alias
882 host_alias
883 build_alias
884 LIBS
885 ECHO_T
886 ECHO_N
887 ECHO_C
888 DEFS
889 mandir
890 localedir
891 libdir
892 psdir
893 pdfdir
894 dvidir
895 htmldir
896 infodir
897 docdir
898 oldincludedir
899 includedir
900 localstatedir
901 sharedstatedir
902 sysconfdir
903 datadir
904 datarootdir
905 libexecdir
906 sbindir
907 bindir
908 program_transform_name
909 prefix
910 exec_prefix
911 PACKAGE_URL
912 PACKAGE_BUGREPORT
913 PACKAGE_STRING
914 PACKAGE_VERSION
915 PACKAGE_TARNAME
916 PACKAGE_NAME
917 PATH_SEPARATOR
918 SHELL'
919 ac_subst_files='option_includes
920 language_hooks'
921 ac_user_opts='
922 enable_option_checking
923 with_build_libsubdir
924 with_local_prefix
925 with_native_system_header_dir
926 with_build_sysroot
927 with_sysroot
928 with_gxx_include_dir
929 with_cpp_install_dir
930 enable_generated_files_in_srcdir
931 with_gnu_ld
932 with_ld
933 with_demangler_in_ld
934 with_gnu_as
935 with_as
936 enable_largefile
937 enable_build_format_warnings
938 enable_werror_always
939 enable_checking
940 enable_coverage
941 enable_gather_detailed_mem_stats
942 enable_valgrind_annotations
943 with_stabs
944 enable_multilib
945 enable_multiarch
946 with_stack_clash_protection_guard_size
947 enable___cxa_atexit
948 enable_decimal_float
949 enable_fixed_point
950 enable_threads
951 enable_tls
952 enable_vtable_verify
953 enable_objc_gc
954 with_dwarf2
955 enable_shared
956 enable_gcov
957 with_specs
958 with_pkgversion
959 with_bugurl
960 enable_languages
961 with_multilib_list
962 enable_rpath
963 with_libiconv_prefix
964 enable_sjlj_exceptions
965 with_gcc_major_version_only
966 enable_secureplt
967 enable_mingw_wildcard
968 enable_large_address_aware
969 enable_leading_mingw64_underscores
970 enable_cld
971 enable_frame_pointer
972 enable_win32_registry
973 enable_static
974 with_pic
975 enable_fast_install
976 enable_libtool_lock
977 enable_ld
978 enable_gold
979 with_plugin_ld
980 enable_gnu_indirect_function
981 enable_initfini_array
982 enable_comdat
983 enable_standard_branch_protection
984 enable_fix_cortex_a53_835769
985 enable_fix_cortex_a53_843419
986 with_glibc_version
987 enable_gnu_unique_object
988 enable_linker_build_id
989 enable_libssp
990 enable_default_ssp
991 with_long_double_128
992 with_long_double_format
993 with_gc
994 with_system_zlib
995 enable_maintainer_mode
996 enable_link_mutex
997 enable_version_specific_runtime_libs
998 enable_plugin
999 enable_host_shared
1000 enable_libquadmath_support
1001 with_linker_hash_style
1002 with_diagnostics_color
1003 enable_default_pie
1004 '
1005       ac_precious_vars='build_alias
1006 host_alias
1007 target_alias
1008 CC
1009 CFLAGS
1010 LDFLAGS
1011 LIBS
1012 CPPFLAGS
1013 CXX
1014 CXXFLAGS
1015 CCC
1016 CXXCPP
1017 CPP
1018 GMPLIBS
1019 GMPINC
1020 ISLLIBS
1021 ISLINC'
1022
1023
1024 # Initialize some variables set by options.
1025 ac_init_help=
1026 ac_init_version=false
1027 ac_unrecognized_opts=
1028 ac_unrecognized_sep=
1029 # The variables have the same names as the options, with
1030 # dashes changed to underlines.
1031 cache_file=/dev/null
1032 exec_prefix=NONE
1033 no_create=
1034 no_recursion=
1035 prefix=NONE
1036 program_prefix=NONE
1037 program_suffix=NONE
1038 program_transform_name=s,x,x,
1039 silent=
1040 site=
1041 srcdir=
1042 verbose=
1043 x_includes=NONE
1044 x_libraries=NONE
1045
1046 # Installation directory options.
1047 # These are left unexpanded so users can "make install exec_prefix=/foo"
1048 # and all the variables that are supposed to be based on exec_prefix
1049 # by default will actually change.
1050 # Use braces instead of parens because sh, perl, etc. also accept them.
1051 # (The list follows the same order as the GNU Coding Standards.)
1052 bindir='${exec_prefix}/bin'
1053 sbindir='${exec_prefix}/sbin'
1054 libexecdir='${exec_prefix}/libexec'
1055 datarootdir='${prefix}/share'
1056 datadir='${datarootdir}'
1057 sysconfdir='${prefix}/etc'
1058 sharedstatedir='${prefix}/com'
1059 localstatedir='${prefix}/var'
1060 includedir='${prefix}/include'
1061 oldincludedir='/usr/include'
1062 docdir='${datarootdir}/doc/${PACKAGE}'
1063 infodir='${datarootdir}/info'
1064 htmldir='${docdir}'
1065 dvidir='${docdir}'
1066 pdfdir='${docdir}'
1067 psdir='${docdir}'
1068 libdir='${exec_prefix}/lib'
1069 localedir='${datarootdir}/locale'
1070 mandir='${datarootdir}/man'
1071
1072 ac_prev=
1073 ac_dashdash=
1074 for ac_option
1075 do
1076   # If the previous option needs an argument, assign it.
1077   if test -n "$ac_prev"; then
1078     eval $ac_prev=\$ac_option
1079     ac_prev=
1080     continue
1081   fi
1082
1083   case $ac_option in
1084   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1085   *=)   ac_optarg= ;;
1086   *)    ac_optarg=yes ;;
1087   esac
1088
1089   # Accept the important Cygnus configure options, so we can diagnose typos.
1090
1091   case $ac_dashdash$ac_option in
1092   --)
1093     ac_dashdash=yes ;;
1094
1095   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1096     ac_prev=bindir ;;
1097   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1098     bindir=$ac_optarg ;;
1099
1100   -build | --build | --buil | --bui | --bu)
1101     ac_prev=build_alias ;;
1102   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1103     build_alias=$ac_optarg ;;
1104
1105   -cache-file | --cache-file | --cache-fil | --cache-fi \
1106   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1107     ac_prev=cache_file ;;
1108   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1109   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1110     cache_file=$ac_optarg ;;
1111
1112   --config-cache | -C)
1113     cache_file=config.cache ;;
1114
1115   -datadir | --datadir | --datadi | --datad)
1116     ac_prev=datadir ;;
1117   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1118     datadir=$ac_optarg ;;
1119
1120   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1121   | --dataroo | --dataro | --datar)
1122     ac_prev=datarootdir ;;
1123   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1124   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1125     datarootdir=$ac_optarg ;;
1126
1127   -disable-* | --disable-*)
1128     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1129     # Reject names that are not valid shell variable names.
1130     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131       as_fn_error $? "invalid feature name: $ac_useropt"
1132     ac_useropt_orig=$ac_useropt
1133     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134     case $ac_user_opts in
1135       *"
1136 "enable_$ac_useropt"
1137 "*) ;;
1138       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1139          ac_unrecognized_sep=', ';;
1140     esac
1141     eval enable_$ac_useropt=no ;;
1142
1143   -docdir | --docdir | --docdi | --doc | --do)
1144     ac_prev=docdir ;;
1145   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1146     docdir=$ac_optarg ;;
1147
1148   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1149     ac_prev=dvidir ;;
1150   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1151     dvidir=$ac_optarg ;;
1152
1153   -enable-* | --enable-*)
1154     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1155     # Reject names that are not valid shell variable names.
1156     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157       as_fn_error $? "invalid feature name: $ac_useropt"
1158     ac_useropt_orig=$ac_useropt
1159     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160     case $ac_user_opts in
1161       *"
1162 "enable_$ac_useropt"
1163 "*) ;;
1164       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1165          ac_unrecognized_sep=', ';;
1166     esac
1167     eval enable_$ac_useropt=\$ac_optarg ;;
1168
1169   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1170   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1171   | --exec | --exe | --ex)
1172     ac_prev=exec_prefix ;;
1173   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1174   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1175   | --exec=* | --exe=* | --ex=*)
1176     exec_prefix=$ac_optarg ;;
1177
1178   -gas | --gas | --ga | --g)
1179     # Obsolete; use --with-gas.
1180     with_gas=yes ;;
1181
1182   -help | --help | --hel | --he | -h)
1183     ac_init_help=long ;;
1184   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1185     ac_init_help=recursive ;;
1186   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1187     ac_init_help=short ;;
1188
1189   -host | --host | --hos | --ho)
1190     ac_prev=host_alias ;;
1191   -host=* | --host=* | --hos=* | --ho=*)
1192     host_alias=$ac_optarg ;;
1193
1194   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1195     ac_prev=htmldir ;;
1196   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1197   | --ht=*)
1198     htmldir=$ac_optarg ;;
1199
1200   -includedir | --includedir | --includedi | --included | --include \
1201   | --includ | --inclu | --incl | --inc)
1202     ac_prev=includedir ;;
1203   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1204   | --includ=* | --inclu=* | --incl=* | --inc=*)
1205     includedir=$ac_optarg ;;
1206
1207   -infodir | --infodir | --infodi | --infod | --info | --inf)
1208     ac_prev=infodir ;;
1209   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1210     infodir=$ac_optarg ;;
1211
1212   -libdir | --libdir | --libdi | --libd)
1213     ac_prev=libdir ;;
1214   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1215     libdir=$ac_optarg ;;
1216
1217   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1218   | --libexe | --libex | --libe)
1219     ac_prev=libexecdir ;;
1220   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1221   | --libexe=* | --libex=* | --libe=*)
1222     libexecdir=$ac_optarg ;;
1223
1224   -localedir | --localedir | --localedi | --localed | --locale)
1225     ac_prev=localedir ;;
1226   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1227     localedir=$ac_optarg ;;
1228
1229   -localstatedir | --localstatedir | --localstatedi | --localstated \
1230   | --localstate | --localstat | --localsta | --localst | --locals)
1231     ac_prev=localstatedir ;;
1232   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1233   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1234     localstatedir=$ac_optarg ;;
1235
1236   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1237     ac_prev=mandir ;;
1238   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1239     mandir=$ac_optarg ;;
1240
1241   -nfp | --nfp | --nf)
1242     # Obsolete; use --without-fp.
1243     with_fp=no ;;
1244
1245   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1246   | --no-cr | --no-c | -n)
1247     no_create=yes ;;
1248
1249   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1250   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1251     no_recursion=yes ;;
1252
1253   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1254   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1255   | --oldin | --oldi | --old | --ol | --o)
1256     ac_prev=oldincludedir ;;
1257   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1258   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1259   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1260     oldincludedir=$ac_optarg ;;
1261
1262   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1263     ac_prev=prefix ;;
1264   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1265     prefix=$ac_optarg ;;
1266
1267   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1268   | --program-pre | --program-pr | --program-p)
1269     ac_prev=program_prefix ;;
1270   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1271   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1272     program_prefix=$ac_optarg ;;
1273
1274   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1275   | --program-suf | --program-su | --program-s)
1276     ac_prev=program_suffix ;;
1277   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1278   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1279     program_suffix=$ac_optarg ;;
1280
1281   -program-transform-name | --program-transform-name \
1282   | --program-transform-nam | --program-transform-na \
1283   | --program-transform-n | --program-transform- \
1284   | --program-transform | --program-transfor \
1285   | --program-transfo | --program-transf \
1286   | --program-trans | --program-tran \
1287   | --progr-tra | --program-tr | --program-t)
1288     ac_prev=program_transform_name ;;
1289   -program-transform-name=* | --program-transform-name=* \
1290   | --program-transform-nam=* | --program-transform-na=* \
1291   | --program-transform-n=* | --program-transform-=* \
1292   | --program-transform=* | --program-transfor=* \
1293   | --program-transfo=* | --program-transf=* \
1294   | --program-trans=* | --program-tran=* \
1295   | --progr-tra=* | --program-tr=* | --program-t=*)
1296     program_transform_name=$ac_optarg ;;
1297
1298   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1299     ac_prev=pdfdir ;;
1300   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1301     pdfdir=$ac_optarg ;;
1302
1303   -psdir | --psdir | --psdi | --psd | --ps)
1304     ac_prev=psdir ;;
1305   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1306     psdir=$ac_optarg ;;
1307
1308   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1309   | -silent | --silent | --silen | --sile | --sil)
1310     silent=yes ;;
1311
1312   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1313     ac_prev=sbindir ;;
1314   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1315   | --sbi=* | --sb=*)
1316     sbindir=$ac_optarg ;;
1317
1318   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1319   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1320   | --sharedst | --shareds | --shared | --share | --shar \
1321   | --sha | --sh)
1322     ac_prev=sharedstatedir ;;
1323   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1324   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1325   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1326   | --sha=* | --sh=*)
1327     sharedstatedir=$ac_optarg ;;
1328
1329   -site | --site | --sit)
1330     ac_prev=site ;;
1331   -site=* | --site=* | --sit=*)
1332     site=$ac_optarg ;;
1333
1334   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1335     ac_prev=srcdir ;;
1336   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1337     srcdir=$ac_optarg ;;
1338
1339   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1340   | --syscon | --sysco | --sysc | --sys | --sy)
1341     ac_prev=sysconfdir ;;
1342   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1343   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1344     sysconfdir=$ac_optarg ;;
1345
1346   -target | --target | --targe | --targ | --tar | --ta | --t)
1347     ac_prev=target_alias ;;
1348   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1349     target_alias=$ac_optarg ;;
1350
1351   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1352     verbose=yes ;;
1353
1354   -version | --version | --versio | --versi | --vers | -V)
1355     ac_init_version=: ;;
1356
1357   -with-* | --with-*)
1358     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1359     # Reject names that are not valid shell variable names.
1360     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1361       as_fn_error $? "invalid package name: $ac_useropt"
1362     ac_useropt_orig=$ac_useropt
1363     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364     case $ac_user_opts in
1365       *"
1366 "with_$ac_useropt"
1367 "*) ;;
1368       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1369          ac_unrecognized_sep=', ';;
1370     esac
1371     eval with_$ac_useropt=\$ac_optarg ;;
1372
1373   -without-* | --without-*)
1374     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1375     # Reject names that are not valid shell variable names.
1376     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1377       as_fn_error $? "invalid package name: $ac_useropt"
1378     ac_useropt_orig=$ac_useropt
1379     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1380     case $ac_user_opts in
1381       *"
1382 "with_$ac_useropt"
1383 "*) ;;
1384       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1385          ac_unrecognized_sep=', ';;
1386     esac
1387     eval with_$ac_useropt=no ;;
1388
1389   --x)
1390     # Obsolete; use --with-x.
1391     with_x=yes ;;
1392
1393   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1394   | --x-incl | --x-inc | --x-in | --x-i)
1395     ac_prev=x_includes ;;
1396   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1397   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1398     x_includes=$ac_optarg ;;
1399
1400   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1401   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1402     ac_prev=x_libraries ;;
1403   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1404   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1405     x_libraries=$ac_optarg ;;
1406
1407   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1408 Try \`$0 --help' for more information"
1409     ;;
1410
1411   *=*)
1412     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1413     # Reject names that are not valid shell variable names.
1414     case $ac_envvar in #(
1415       '' | [0-9]* | *[!_$as_cr_alnum]* )
1416       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1417     esac
1418     eval $ac_envvar=\$ac_optarg
1419     export $ac_envvar ;;
1420
1421   *)
1422     # FIXME: should be removed in autoconf 3.0.
1423     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1424     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1425       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1426     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1427     ;;
1428
1429   esac
1430 done
1431
1432 if test -n "$ac_prev"; then
1433   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1434   as_fn_error $? "missing argument to $ac_option"
1435 fi
1436
1437 if test -n "$ac_unrecognized_opts"; then
1438   case $enable_option_checking in
1439     no) ;;
1440     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1441     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1442   esac
1443 fi
1444
1445 # Check all directory arguments for consistency.
1446 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1447                 datadir sysconfdir sharedstatedir localstatedir includedir \
1448                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1449                 libdir localedir mandir
1450 do
1451   eval ac_val=\$$ac_var
1452   # Remove trailing slashes.
1453   case $ac_val in
1454     */ )
1455       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1456       eval $ac_var=\$ac_val;;
1457   esac
1458   # Be sure to have absolute directory names.
1459   case $ac_val in
1460     [\\/$]* | ?:[\\/]* )  continue;;
1461     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1462   esac
1463   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1464 done
1465
1466 # There might be people who depend on the old broken behavior: `$host'
1467 # used to hold the argument of --host etc.
1468 # FIXME: To remove some day.
1469 build=$build_alias
1470 host=$host_alias
1471 target=$target_alias
1472
1473 # FIXME: To remove some day.
1474 if test "x$host_alias" != x; then
1475   if test "x$build_alias" = x; then
1476     cross_compiling=maybe
1477   elif test "x$build_alias" != "x$host_alias"; then
1478     cross_compiling=yes
1479   fi
1480 fi
1481
1482 ac_tool_prefix=
1483 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1484
1485 test "$silent" = yes && exec 6>/dev/null
1486
1487
1488 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1489 ac_ls_di=`ls -di .` &&
1490 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1491   as_fn_error $? "working directory cannot be determined"
1492 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1493   as_fn_error $? "pwd does not report name of working directory"
1494
1495
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498   ac_srcdir_defaulted=yes
1499   # Try the directory containing this script, then the parent directory.
1500   ac_confdir=`$as_dirname -- "$as_myself" ||
1501 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502          X"$as_myself" : 'X\(//\)[^/]' \| \
1503          X"$as_myself" : 'X\(//\)$' \| \
1504          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1505 $as_echo X"$as_myself" |
1506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1507             s//\1/
1508             q
1509           }
1510           /^X\(\/\/\)[^/].*/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\/\)$/{
1515             s//\1/
1516             q
1517           }
1518           /^X\(\/\).*/{
1519             s//\1/
1520             q
1521           }
1522           s/.*/./; q'`
1523   srcdir=$ac_confdir
1524   if test ! -r "$srcdir/$ac_unique_file"; then
1525     srcdir=..
1526   fi
1527 else
1528   ac_srcdir_defaulted=no
1529 fi
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1533 fi
1534 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1535 ac_abs_confdir=`(
1536         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1537         pwd)`
1538 # When building in place, set srcdir=.
1539 if test "$ac_abs_confdir" = "$ac_pwd"; then
1540   srcdir=.
1541 fi
1542 # Remove unnecessary trailing slashes from srcdir.
1543 # Double slashes in file names in object file debugging info
1544 # mess up M-x gdb in Emacs.
1545 case $srcdir in
1546 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1547 esac
1548 for ac_var in $ac_precious_vars; do
1549   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1550   eval ac_env_${ac_var}_value=\$${ac_var}
1551   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1552   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1553 done
1554
1555 #
1556 # Report the --help message.
1557 #
1558 if test "$ac_init_help" = "long"; then
1559   # Omit some internal or obsolete options to make the list less imposing.
1560   # This message is too long to be a string in the A/UX 3.1 sh.
1561   cat <<_ACEOF
1562 \`configure' configures this package to adapt to many kinds of systems.
1563
1564 Usage: $0 [OPTION]... [VAR=VALUE]...
1565
1566 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1567 VAR=VALUE.  See below for descriptions of some of the useful variables.
1568
1569 Defaults for the options are specified in brackets.
1570
1571 Configuration:
1572   -h, --help              display this help and exit
1573       --help=short        display options specific to this package
1574       --help=recursive    display the short help of all the included packages
1575   -V, --version           display version information and exit
1576   -q, --quiet, --silent   do not print \`checking ...' messages
1577       --cache-file=FILE   cache test results in FILE [disabled]
1578   -C, --config-cache      alias for \`--cache-file=config.cache'
1579   -n, --no-create         do not create output files
1580       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1581
1582 Installation directories:
1583   --prefix=PREFIX         install architecture-independent files in PREFIX
1584                           [$ac_default_prefix]
1585   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1586                           [PREFIX]
1587
1588 By default, \`make install' will install all the files in
1589 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1590 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1591 for instance \`--prefix=\$HOME'.
1592
1593 For better control, use the options below.
1594
1595 Fine tuning of the installation directories:
1596   --bindir=DIR            user executables [EPREFIX/bin]
1597   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1598   --libexecdir=DIR        program executables [EPREFIX/libexec]
1599   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1600   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1601   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1602   --libdir=DIR            object code libraries [EPREFIX/lib]
1603   --includedir=DIR        C header files [PREFIX/include]
1604   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1605   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1606   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1607   --infodir=DIR           info documentation [DATAROOTDIR/info]
1608   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1609   --mandir=DIR            man documentation [DATAROOTDIR/man]
1610   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1611   --htmldir=DIR           html documentation [DOCDIR]
1612   --dvidir=DIR            dvi documentation [DOCDIR]
1613   --pdfdir=DIR            pdf documentation [DOCDIR]
1614   --psdir=DIR             ps documentation [DOCDIR]
1615 _ACEOF
1616
1617   cat <<\_ACEOF
1618
1619 Program names:
1620   --program-prefix=PREFIX            prepend PREFIX to installed program names
1621   --program-suffix=SUFFIX            append SUFFIX to installed program names
1622   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1623
1624 System types:
1625   --build=BUILD     configure for building on BUILD [guessed]
1626   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1627   --target=TARGET   configure for building compilers for TARGET [HOST]
1628 _ACEOF
1629 fi
1630
1631 if test -n "$ac_init_help"; then
1632
1633   cat <<\_ACEOF
1634
1635 Optional Features:
1636   --disable-option-checking  ignore unrecognized --enable/--with options
1637   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1638   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1639   --enable-generated-files-in-srcdir
1640                           put copies of generated files in source dir intended
1641                           for creating source tarballs for users without
1642                           texinfo bison or flex
1643   --disable-largefile     omit support for large files
1644   --disable-build-format-warnings
1645                           don't use -Wformat while building GCC
1646   --enable-werror-always  enable -Werror despite compiler version
1647   --enable-checking[=LIST]
1648                           enable expensive run-time checks. With LIST, enable
1649                           only specific categories of checks. Categories are:
1650                           yes,no,all,none,release. Flags are:
1651                           assert,df,extra,fold,gc,gcac,gimple,misc,
1652                           rtlflag,rtl,runtime,tree,valgrind,types
1653   --enable-coverage[=LEVEL]
1654                           enable compiler's code coverage collection. Use to
1655                           measure compiler performance and locate unused parts
1656                           of the compiler. With LEVEL, specify optimization.
1657                           Values are opt, noopt, default is noopt
1658   --enable-gather-detailed-mem-stats
1659                           enable detailed memory allocation stats gathering
1660   --enable-valgrind-annotations
1661                           enable valgrind runtime interaction
1662   --enable-multilib       enable library support for multiple ABIs
1663   --enable-multiarch      enable support for multiarch paths
1664   --enable-__cxa_atexit   enable __cxa_atexit for C++
1665   --enable-decimal-float={no,yes,bid,dpd}
1666                         enable decimal float extension to C.  Selecting 'bid'
1667                         or 'dpd' choses which decimal floating point format
1668                         to use
1669   --enable-fixed-point    enable fixed-point arithmetic extension to C
1670   --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1671                           package
1672   --enable-tls            enable or disable generation of tls code overriding
1673                           the assembler check for tls support
1674   --enable-vtable-verify  enable vtable verification feature
1675   --enable-objc-gc        enable the use of Boehm's garbage collector with the
1676                           GNU Objective-C runtime
1677   --disable-shared        don't provide a shared libgcc
1678   --disable-gcov          don't provide libgcov and related host tools
1679   --enable-languages=LIST specify which front-ends to build
1680   --disable-rpath         do not hardcode runtime library paths
1681   --enable-sjlj-exceptions
1682                           arrange to use setjmp/longjmp exception handling
1683   --enable-secureplt      enable -msecure-plt by default for PowerPC
1684   --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1685                           Default to platform configuration
1686   --enable-large-address-aware
1687                           Link mingw executables with --large-address-aware
1688   --enable-leading-mingw64-underscores
1689                           enable leading underscores on 64 bit mingw targets
1690   --enable-cld            enable -mcld by default for 32bit x86
1691   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1692                           x86
1693   --disable-win32-registry
1694                           disable lookup of installation paths in the Registry
1695                           on Windows hosts
1696   --enable-win32-registry enable registry lookup (default)
1697   --enable-win32-registry=KEY
1698                           use KEY instead of GCC version as the last portion
1699                           of the registry key
1700   --enable-shared[=PKGS]  build shared libraries [default=yes]
1701   --enable-static[=PKGS]  build static libraries [default=yes]
1702   --enable-fast-install[=PKGS]
1703                           optimize for fast installation [default=yes]
1704   --disable-libtool-lock  avoid locking (might break parallel builds)
1705   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1706   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1707   --enable-gnu-indirect-function
1708                           enable the use of the @gnu_indirect_function to
1709                           glibc systems
1710   --enable-initfini-array       use .init_array/.fini_array sections
1711   --enable-comdat         enable COMDAT group support
1712
1713   --enable-standard-branch-protection
1714                           enable Branch Target Identification Mechanism and
1715                           Return Address Signing by default for AArch64
1716   --disable-standard-branch-protection
1717                           disable Branch Target Identification Mechanism and
1718                           Return Address Signing by default for AArch64
1719
1720
1721   --enable-fix-cortex-a53-835769
1722                           enable workaround for AArch64 Cortex-A53 erratum
1723                           835769 by default
1724   --disable-fix-cortex-a53-835769
1725                           disable workaround for AArch64 Cortex-A53 erratum
1726                           835769 by default
1727
1728
1729   --enable-fix-cortex-a53-843419
1730                           enable workaround for AArch64 Cortex-A53 erratum
1731                           843419 by default
1732   --disable-fix-cortex-a53-843419
1733                           disable workaround for AArch64 Cortex-A53 erratum
1734                           843419 by default
1735
1736   --enable-gnu-unique-object
1737                           enable the use of the @gnu_unique_object ELF
1738                           extension on glibc systems
1739   --enable-linker-build-id
1740                           compiler will always pass --build-id to linker
1741   --enable-libssp         enable linking against libssp
1742   --enable-default-ssp    enable Stack Smashing Protection as default
1743   --enable-maintainer-mode
1744                           enable make rules and dependencies not useful (and
1745                           sometimes confusing) to the casual installer
1746   --enable-link-mutex     avoid linking multiple front-ends at once to avoid
1747                           thrashing on the build machine
1748   --enable-version-specific-runtime-libs
1749                           specify that runtime libraries should be installed
1750                           in a compiler-specific directory
1751   --enable-plugin         enable plugin support
1752   --enable-host-shared    build host code as shared libraries
1753   --disable-libquadmath-support
1754                           disable libquadmath support for Fortran
1755   --enable-default-pie    enable Position Independent Executable as default
1756
1757 Optional Packages:
1758   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1759   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1760   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1761   --with-local-prefix=DIR specifies directory to put local include
1762   --with-native-system-header-dir=dir
1763                           use dir as the directory to look for standard
1764                           system header files in.  Defaults to /usr/include.
1765   --with-build-sysroot=sysroot
1766                           use sysroot as the system root during the build
1767   --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1768   --with-gxx-include-dir=DIR
1769                           specifies directory to put g++ header files
1770   --with-cpp-install-dir=DIR
1771                           install the user visible C preprocessor in DIR
1772                           (relative to PREFIX) as well as PREFIX/bin
1773   --with-gnu-ld           arrange to work with GNU ld
1774   --with-ld               arrange to use the specified ld (full pathname)
1775   --with-demangler-in-ld  try to use demangler in GNU ld
1776   --with-gnu-as           arrange to work with GNU as
1777   --with-as               arrange to use the specified as (full pathname)
1778   --with-stabs            arrange to use stabs instead of host debug format
1779   --with-stack-clash-protection-guard-size=size
1780                           Set the default stack clash protection guard size
1781                           for specific targets as a power of two in bytes.
1782   --with-dwarf2           force the default debug format to be DWARF 2
1783   --with-specs=SPECS      add SPECS to driver command-line processing
1784   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1785   --with-bugurl=URL       Direct users to URL to report a bug
1786   --with-multilib-list    select multilibs (AArch64, SH and x86-64 only)
1787   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1788   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1789   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1790   --with-gcc-major-version-only
1791                           use only GCC major number in filesystem paths
1792   --with-pic              try to use only PIC/non-PIC objects [default=use
1793                           both]
1794   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1795   --with-plugin-ld=[ARG]  specify the plugin linker
1796   --with-glibc-version=M.N
1797                           assume GCC used with glibc version M.N or later
1798   --with-long-double-128  use 128-bit long double by default
1799   --with-long-double-format={ieee,ibm}
1800                   Specify whether PowerPC long double uses IEEE or IBM format
1801
1802   --with-gc={page,zone}   this option is not supported anymore. It used to
1803                           choose the garbage collection mechanism to use with
1804                           the compiler
1805   --with-system-zlib      use installed libz
1806   --with-linker-hash-style={sysv,gnu,both}
1807                           specify the linker hash style
1808   --with-diagnostics-color={never,auto,auto-if-env,always}
1809                           specify the default of -fdiagnostics-color option
1810                           auto-if-env stands for -fdiagnostics-color=auto if
1811                           GCC_COLOR environment variable is present and
1812                           -fdiagnostics-color=never otherwise
1813
1814 Some influential environment variables:
1815   CC          C compiler command
1816   CFLAGS      C compiler flags
1817   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1818               nonstandard directory <lib dir>
1819   LIBS        libraries to pass to the linker, e.g. -l<library>
1820   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1821               you have headers in a nonstandard directory <include dir>
1822   CXX         C++ compiler command
1823   CXXFLAGS    C++ compiler flags
1824   CXXCPP      C++ preprocessor
1825   CPP         C preprocessor
1826   GMPLIBS     How to link GMP
1827   GMPINC      How to find GMP include files
1828   ISLLIBS     How to link isl
1829   ISLINC      How to find isl include files
1830
1831 Use these variables to override the choices made by `configure' or to help
1832 it to find libraries and programs with nonstandard names/locations.
1833
1834 Report bugs to the package provider.
1835 _ACEOF
1836 ac_status=$?
1837 fi
1838
1839 if test "$ac_init_help" = "recursive"; then
1840   # If there are subdirs, report their specific --help.
1841   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1842     test -d "$ac_dir" ||
1843       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1844       continue
1845     ac_builddir=.
1846
1847 case "$ac_dir" in
1848 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1849 *)
1850   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1851   # A ".." for each directory in $ac_dir_suffix.
1852   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1853   case $ac_top_builddir_sub in
1854   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1855   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1856   esac ;;
1857 esac
1858 ac_abs_top_builddir=$ac_pwd
1859 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1860 # for backward compatibility:
1861 ac_top_builddir=$ac_top_build_prefix
1862
1863 case $srcdir in
1864   .)  # We are building in place.
1865     ac_srcdir=.
1866     ac_top_srcdir=$ac_top_builddir_sub
1867     ac_abs_top_srcdir=$ac_pwd ;;
1868   [\\/]* | ?:[\\/]* )  # Absolute name.
1869     ac_srcdir=$srcdir$ac_dir_suffix;
1870     ac_top_srcdir=$srcdir
1871     ac_abs_top_srcdir=$srcdir ;;
1872   *) # Relative name.
1873     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1874     ac_top_srcdir=$ac_top_build_prefix$srcdir
1875     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1876 esac
1877 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1878
1879     cd "$ac_dir" || { ac_status=$?; continue; }
1880     # Check for guested configure.
1881     if test -f "$ac_srcdir/configure.gnu"; then
1882       echo &&
1883       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1884     elif test -f "$ac_srcdir/configure"; then
1885       echo &&
1886       $SHELL "$ac_srcdir/configure" --help=recursive
1887     else
1888       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1889     fi || ac_status=$?
1890     cd "$ac_pwd" || { ac_status=$?; break; }
1891   done
1892 fi
1893
1894 test -n "$ac_init_help" && exit $ac_status
1895 if $ac_init_version; then
1896   cat <<\_ACEOF
1897 configure
1898 generated by GNU Autoconf 2.69
1899
1900 Copyright (C) 2012 Free Software Foundation, Inc.
1901 This configure script is free software; the Free Software Foundation
1902 gives unlimited permission to copy, distribute and modify it.
1903 _ACEOF
1904   exit
1905 fi
1906
1907 ## ------------------------ ##
1908 ## Autoconf initialization. ##
1909 ## ------------------------ ##
1910
1911 # ac_fn_c_try_compile LINENO
1912 # --------------------------
1913 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1914 ac_fn_c_try_compile ()
1915 {
1916   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917   rm -f conftest.$ac_objext
1918   if { { ac_try="$ac_compile"
1919 case "(($ac_try" in
1920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921   *) ac_try_echo=$ac_try;;
1922 esac
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925   (eval "$ac_compile") 2>conftest.err
1926   ac_status=$?
1927   if test -s conftest.err; then
1928     grep -v '^ *+' conftest.err >conftest.er1
1929     cat conftest.er1 >&5
1930     mv -f conftest.er1 conftest.err
1931   fi
1932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933   test $ac_status = 0; } && {
1934          test -z "$ac_c_werror_flag" ||
1935          test ! -s conftest.err
1936        } && test -s conftest.$ac_objext; then :
1937   ac_retval=0
1938 else
1939   $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1941
1942         ac_retval=1
1943 fi
1944   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945   as_fn_set_status $ac_retval
1946
1947 } # ac_fn_c_try_compile
1948
1949 # ac_fn_cxx_try_compile LINENO
1950 # ----------------------------
1951 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1952 ac_fn_cxx_try_compile ()
1953 {
1954   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955   rm -f conftest.$ac_objext
1956   if { { ac_try="$ac_compile"
1957 case "(($ac_try" in
1958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959   *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963   (eval "$ac_compile") 2>conftest.err
1964   ac_status=$?
1965   if test -s conftest.err; then
1966     grep -v '^ *+' conftest.err >conftest.er1
1967     cat conftest.er1 >&5
1968     mv -f conftest.er1 conftest.err
1969   fi
1970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971   test $ac_status = 0; } && {
1972          test -z "$ac_cxx_werror_flag" ||
1973          test ! -s conftest.err
1974        } && test -s conftest.$ac_objext; then :
1975   ac_retval=0
1976 else
1977   $as_echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1979
1980         ac_retval=1
1981 fi
1982   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983   as_fn_set_status $ac_retval
1984
1985 } # ac_fn_cxx_try_compile
1986
1987 # ac_fn_cxx_try_cpp LINENO
1988 # ------------------------
1989 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1990 ac_fn_cxx_try_cpp ()
1991 {
1992   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993   if { { ac_try="$ac_cpp conftest.$ac_ext"
1994 case "(($ac_try" in
1995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996   *) ac_try_echo=$ac_try;;
1997 esac
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2001   ac_status=$?
2002   if test -s conftest.err; then
2003     grep -v '^ *+' conftest.err >conftest.er1
2004     cat conftest.er1 >&5
2005     mv -f conftest.er1 conftest.err
2006   fi
2007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008   test $ac_status = 0; } > conftest.i && {
2009          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2010          test ! -s conftest.err
2011        }; then :
2012   ac_retval=0
2013 else
2014   $as_echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2016
2017     ac_retval=1
2018 fi
2019   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020   as_fn_set_status $ac_retval
2021
2022 } # ac_fn_cxx_try_cpp
2023
2024 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2025 # ---------------------------------------------------------
2026 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2027 # the include files in INCLUDES and setting the cache variable VAR
2028 # accordingly.
2029 ac_fn_cxx_check_header_mongrel ()
2030 {
2031   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032   if eval \${$3+:} false; then :
2033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if eval \${$3+:} false; then :
2036   $as_echo_n "(cached) " >&6
2037 fi
2038 eval ac_res=\$$3
2039                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 else
2042   # Is the header compilable?
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2044 $as_echo_n "checking $2 usability... " >&6; }
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h.  */
2047 $4
2048 #include <$2>
2049 _ACEOF
2050 if ac_fn_cxx_try_compile "$LINENO"; then :
2051   ac_header_compiler=yes
2052 else
2053   ac_header_compiler=no
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2057 $as_echo "$ac_header_compiler" >&6; }
2058
2059 # Is the header present?
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2061 $as_echo_n "checking $2 presence... " >&6; }
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h.  */
2064 #include <$2>
2065 _ACEOF
2066 if ac_fn_cxx_try_cpp "$LINENO"; then :
2067   ac_header_preproc=yes
2068 else
2069   ac_header_preproc=no
2070 fi
2071 rm -f conftest.err conftest.i conftest.$ac_ext
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2073 $as_echo "$ac_header_preproc" >&6; }
2074
2075 # So?  What about this header?
2076 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2077   yes:no: )
2078     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2079 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2080     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2081 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2082     ;;
2083   no:yes:* )
2084     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2085 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2086     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2087 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2088     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2089 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2090     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2091 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2092     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2093 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2094     ;;
2095 esac
2096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval \${$3+:} false; then :
2099   $as_echo_n "(cached) " >&6
2100 else
2101   eval "$3=\$ac_header_compiler"
2102 fi
2103 eval ac_res=\$$3
2104                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 $as_echo "$ac_res" >&6; }
2106 fi
2107   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108
2109 } # ac_fn_cxx_check_header_mongrel
2110
2111 # ac_fn_cxx_try_run LINENO
2112 # ------------------------
2113 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2114 # that executables *can* be run.
2115 ac_fn_cxx_try_run ()
2116 {
2117   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118   if { { ac_try="$ac_link"
2119 case "(($ac_try" in
2120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121   *) ac_try_echo=$ac_try;;
2122 esac
2123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124 $as_echo "$ac_try_echo"; } >&5
2125   (eval "$ac_link") 2>&5
2126   ac_status=$?
2127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2128   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2129   { { case "(($ac_try" in
2130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131   *) ac_try_echo=$ac_try;;
2132 esac
2133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134 $as_echo "$ac_try_echo"; } >&5
2135   (eval "$ac_try") 2>&5
2136   ac_status=$?
2137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138   test $ac_status = 0; }; }; then :
2139   ac_retval=0
2140 else
2141   $as_echo "$as_me: program exited with status $ac_status" >&5
2142        $as_echo "$as_me: failed program was:" >&5
2143 sed 's/^/| /' conftest.$ac_ext >&5
2144
2145        ac_retval=$ac_status
2146 fi
2147   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2148   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149   as_fn_set_status $ac_retval
2150
2151 } # ac_fn_cxx_try_run
2152
2153 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2154 # ---------------------------------------------------------
2155 # Tests whether HEADER exists and can be compiled using the include files in
2156 # INCLUDES, setting the cache variable VAR accordingly.
2157 ac_fn_cxx_check_header_compile ()
2158 {
2159   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161 $as_echo_n "checking for $2... " >&6; }
2162 if eval \${$3+:} false; then :
2163   $as_echo_n "(cached) " >&6
2164 else
2165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h.  */
2167 $4
2168 #include <$2>
2169 _ACEOF
2170 if ac_fn_cxx_try_compile "$LINENO"; then :
2171   eval "$3=yes"
2172 else
2173   eval "$3=no"
2174 fi
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 fi
2177 eval ac_res=\$$3
2178                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2180   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181
2182 } # ac_fn_cxx_check_header_compile
2183
2184 # ac_fn_c_try_cpp LINENO
2185 # ----------------------
2186 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2187 ac_fn_c_try_cpp ()
2188 {
2189   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190   if { { ac_try="$ac_cpp conftest.$ac_ext"
2191 case "(($ac_try" in
2192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193   *) ac_try_echo=$ac_try;;
2194 esac
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2198   ac_status=$?
2199   if test -s conftest.err; then
2200     grep -v '^ *+' conftest.err >conftest.er1
2201     cat conftest.er1 >&5
2202     mv -f conftest.er1 conftest.err
2203   fi
2204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205   test $ac_status = 0; } > conftest.i && {
2206          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2207          test ! -s conftest.err
2208        }; then :
2209   ac_retval=0
2210 else
2211   $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2213
2214     ac_retval=1
2215 fi
2216   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217   as_fn_set_status $ac_retval
2218
2219 } # ac_fn_c_try_cpp
2220
2221 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2222 # ----------------------------------------------
2223 # Tries to find the compile-time value of EXPR in a program that includes
2224 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2225 # computed
2226 ac_fn_cxx_compute_int ()
2227 {
2228   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229   if test "$cross_compiling" = yes; then
2230     # Depending upon the size, compute the lo and hi bounds.
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h.  */
2233 $4
2234 int
2235 main ()
2236 {
2237 static int test_array [1 - 2 * !(($2) >= 0)];
2238 test_array [0] = 0;
2239 return test_array [0];
2240
2241   ;
2242   return 0;
2243 }
2244 _ACEOF
2245 if ac_fn_cxx_try_compile "$LINENO"; then :
2246   ac_lo=0 ac_mid=0
2247   while :; do
2248     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h.  */
2250 $4
2251 int
2252 main ()
2253 {
2254 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2255 test_array [0] = 0;
2256 return test_array [0];
2257
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_cxx_try_compile "$LINENO"; then :
2263   ac_hi=$ac_mid; break
2264 else
2265   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2266                         if test $ac_lo -le $ac_mid; then
2267                           ac_lo= ac_hi=
2268                           break
2269                         fi
2270                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2271 fi
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273   done
2274 else
2275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h.  */
2277 $4
2278 int
2279 main ()
2280 {
2281 static int test_array [1 - 2 * !(($2) < 0)];
2282 test_array [0] = 0;
2283 return test_array [0];
2284
2285   ;
2286   return 0;
2287 }
2288 _ACEOF
2289 if ac_fn_cxx_try_compile "$LINENO"; then :
2290   ac_hi=-1 ac_mid=-1
2291   while :; do
2292     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h.  */
2294 $4
2295 int
2296 main ()
2297 {
2298 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2299 test_array [0] = 0;
2300 return test_array [0];
2301
2302   ;
2303   return 0;
2304 }
2305 _ACEOF
2306 if ac_fn_cxx_try_compile "$LINENO"; then :
2307   ac_lo=$ac_mid; break
2308 else
2309   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2310                         if test $ac_mid -le $ac_hi; then
2311                           ac_lo= ac_hi=
2312                           break
2313                         fi
2314                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2315 fi
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317   done
2318 else
2319   ac_lo= ac_hi=
2320 fi
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 fi
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 # Binary search between lo and hi bounds.
2325 while test "x$ac_lo" != "x$ac_hi"; do
2326   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h.  */
2329 $4
2330 int
2331 main ()
2332 {
2333 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2334 test_array [0] = 0;
2335 return test_array [0];
2336
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 if ac_fn_cxx_try_compile "$LINENO"; then :
2342   ac_hi=$ac_mid
2343 else
2344   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2345 fi
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 done
2348 case $ac_lo in #((
2349 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2350 '') ac_retval=1 ;;
2351 esac
2352   else
2353     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h.  */
2355 $4
2356 static long int longval () { return $2; }
2357 static unsigned long int ulongval () { return $2; }
2358 #include <stdio.h>
2359 #include <stdlib.h>
2360 int
2361 main ()
2362 {
2363
2364   FILE *f = fopen ("conftest.val", "w");
2365   if (! f)
2366     return 1;
2367   if (($2) < 0)
2368     {
2369       long int i = longval ();
2370       if (i != ($2))
2371         return 1;
2372       fprintf (f, "%ld", i);
2373     }
2374   else
2375     {
2376       unsigned long int i = ulongval ();
2377       if (i != ($2))
2378         return 1;
2379       fprintf (f, "%lu", i);
2380     }
2381   /* Do not output a trailing newline, as this causes \r\n confusion
2382      on some platforms.  */
2383   return ferror (f) || fclose (f) != 0;
2384
2385   ;
2386   return 0;
2387 }
2388 _ACEOF
2389 if ac_fn_cxx_try_run "$LINENO"; then :
2390   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2391 else
2392   ac_retval=1
2393 fi
2394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2395   conftest.$ac_objext conftest.beam conftest.$ac_ext
2396 rm -f conftest.val
2397
2398   fi
2399   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2400   as_fn_set_status $ac_retval
2401
2402 } # ac_fn_cxx_compute_int
2403
2404 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2405 # ---------------------------------------------
2406 # Tests whether TYPE exists after having included INCLUDES, setting cache
2407 # variable VAR accordingly.
2408 ac_fn_cxx_check_type ()
2409 {
2410   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2412 $as_echo_n "checking for $2... " >&6; }
2413 if eval \${$3+:} false; then :
2414   $as_echo_n "(cached) " >&6
2415 else
2416   eval "$3=no"
2417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h.  */
2419 $4
2420 int
2421 main ()
2422 {
2423 if (sizeof ($2))
2424          return 0;
2425   ;
2426   return 0;
2427 }
2428 _ACEOF
2429 if ac_fn_cxx_try_compile "$LINENO"; then :
2430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h.  */
2432 $4
2433 int
2434 main ()
2435 {
2436 if (sizeof (($2)))
2437             return 0;
2438   ;
2439   return 0;
2440 }
2441 _ACEOF
2442 if ac_fn_cxx_try_compile "$LINENO"; then :
2443
2444 else
2445   eval "$3=yes"
2446 fi
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 fi
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 fi
2451 eval ac_res=\$$3
2452                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2453 $as_echo "$ac_res" >&6; }
2454   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2455
2456 } # ac_fn_cxx_check_type
2457
2458 # ac_fn_c_find_intX_t LINENO BITS VAR
2459 # -----------------------------------
2460 # Finds a signed integer type with width BITS, setting cache variable VAR
2461 # accordingly.
2462 ac_fn_c_find_intX_t ()
2463 {
2464   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2466 $as_echo_n "checking for int$2_t... " >&6; }
2467 if eval \${$3+:} false; then :
2468   $as_echo_n "(cached) " >&6
2469 else
2470   eval "$3=no"
2471      # Order is important - never check a type that is potentially smaller
2472      # than half of the expected target width.
2473      for ac_type in int$2_t 'int' 'long int' \
2474          'long long int' 'short int' 'signed char'; do
2475        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h.  */
2477 $ac_includes_default
2478              enum { N = $2 / 2 - 1 };
2479 int
2480 main ()
2481 {
2482 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2483 test_array [0] = 0;
2484 return test_array [0];
2485
2486   ;
2487   return 0;
2488 }
2489 _ACEOF
2490 if ac_fn_cxx_try_compile "$LINENO"; then :
2491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h.  */
2493 $ac_includes_default
2494                 enum { N = $2 / 2 - 1 };
2495 int
2496 main ()
2497 {
2498 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2499                  < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2500 test_array [0] = 0;
2501 return test_array [0];
2502
2503   ;
2504   return 0;
2505 }
2506 _ACEOF
2507 if ac_fn_cxx_try_compile "$LINENO"; then :
2508
2509 else
2510   case $ac_type in #(
2511   int$2_t) :
2512     eval "$3=yes" ;; #(
2513   *) :
2514     eval "$3=\$ac_type" ;;
2515 esac
2516 fi
2517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2518 fi
2519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520        if eval test \"x\$"$3"\" = x"no"; then :
2521
2522 else
2523   break
2524 fi
2525      done
2526 fi
2527 eval ac_res=\$$3
2528                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2529 $as_echo "$ac_res" >&6; }
2530   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2531
2532 } # ac_fn_c_find_intX_t
2533
2534 # ac_fn_cxx_try_link LINENO
2535 # -------------------------
2536 # Try to link conftest.$ac_ext, and return whether this succeeded.
2537 ac_fn_cxx_try_link ()
2538 {
2539   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2540   rm -f conftest.$ac_objext conftest$ac_exeext
2541   if { { ac_try="$ac_link"
2542 case "(($ac_try" in
2543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544   *) ac_try_echo=$ac_try;;
2545 esac
2546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2547 $as_echo "$ac_try_echo"; } >&5
2548   (eval "$ac_link") 2>conftest.err
2549   ac_status=$?
2550   if test -s conftest.err; then
2551     grep -v '^ *+' conftest.err >conftest.er1
2552     cat conftest.er1 >&5
2553     mv -f conftest.er1 conftest.err
2554   fi
2555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2556   test $ac_status = 0; } && {
2557          test -z "$ac_cxx_werror_flag" ||
2558          test ! -s conftest.err
2559        } && test -s conftest$ac_exeext && {
2560          test "$cross_compiling" = yes ||
2561          test -x conftest$ac_exeext
2562        }; then :
2563   ac_retval=0
2564 else
2565   $as_echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.$ac_ext >&5
2567
2568         ac_retval=1
2569 fi
2570   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2571   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2572   # interfere with the next link command; also delete a directory that is
2573   # left behind by Apple's compiler.  We do this before executing the actions.
2574   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2575   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2576   as_fn_set_status $ac_retval
2577
2578 } # ac_fn_cxx_try_link
2579
2580 # ac_fn_c_find_uintX_t LINENO BITS VAR
2581 # ------------------------------------
2582 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2583 # accordingly.
2584 ac_fn_c_find_uintX_t ()
2585 {
2586   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2588 $as_echo_n "checking for uint$2_t... " >&6; }
2589 if eval \${$3+:} false; then :
2590   $as_echo_n "(cached) " >&6
2591 else
2592   eval "$3=no"
2593      # Order is important - never check a type that is potentially smaller
2594      # than half of the expected target width.
2595      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2596          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2597        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h.  */
2599 $ac_includes_default
2600 int
2601 main ()
2602 {
2603 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2604 test_array [0] = 0;
2605 return test_array [0];
2606
2607   ;
2608   return 0;
2609 }
2610 _ACEOF
2611 if ac_fn_cxx_try_compile "$LINENO"; then :
2612   case $ac_type in #(
2613   uint$2_t) :
2614     eval "$3=yes" ;; #(
2615   *) :
2616     eval "$3=\$ac_type" ;;
2617 esac
2618 fi
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620        if eval test \"x\$"$3"\" = x"no"; then :
2621
2622 else
2623   break
2624 fi
2625      done
2626 fi
2627 eval ac_res=\$$3
2628                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2629 $as_echo "$ac_res" >&6; }
2630   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2631
2632 } # ac_fn_c_find_uintX_t
2633
2634 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2635 # ------------------------------------------------
2636 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2637 ac_fn_cxx_check_header_preproc ()
2638 {
2639   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2641 $as_echo_n "checking for $2... " >&6; }
2642 if eval \${$3+:} false; then :
2643   $as_echo_n "(cached) " >&6
2644 else
2645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646 /* end confdefs.h.  */
2647 #include <$2>
2648 _ACEOF
2649 if ac_fn_cxx_try_cpp "$LINENO"; then :
2650   eval "$3=yes"
2651 else
2652   eval "$3=no"
2653 fi
2654 rm -f conftest.err conftest.i conftest.$ac_ext
2655 fi
2656 eval ac_res=\$$3
2657                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2658 $as_echo "$ac_res" >&6; }
2659   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2660
2661 } # ac_fn_cxx_check_header_preproc
2662
2663 # ac_fn_cxx_check_func LINENO FUNC VAR
2664 # ------------------------------------
2665 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2666 ac_fn_cxx_check_func ()
2667 {
2668   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2670 $as_echo_n "checking for $2... " >&6; }
2671 if eval \${$3+:} false; then :
2672   $as_echo_n "(cached) " >&6
2673 else
2674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h.  */
2676 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2678 #define $2 innocuous_$2
2679
2680 /* System header to define __stub macros and hopefully few prototypes,
2681     which can conflict with char $2 (); below.
2682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2683     <limits.h> exists even on freestanding compilers.  */
2684
2685 #ifdef __STDC__
2686 # include <limits.h>
2687 #else
2688 # include <assert.h>
2689 #endif
2690
2691 #undef $2
2692
2693 /* Override any GCC internal prototype to avoid an error.
2694    Use char because int might match the return type of a GCC
2695    builtin and then its argument prototype would still apply.  */
2696 #ifdef __cplusplus
2697 extern "C"
2698 #endif
2699 char $2 ();
2700 /* The GNU C library defines this for functions which it implements
2701     to always fail with ENOSYS.  Some functions are actually named
2702     something starting with __ and the normal name is an alias.  */
2703 #if defined __stub_$2 || defined __stub___$2
2704 choke me
2705 #endif
2706
2707 int
2708 main ()
2709 {
2710 return $2 ();
2711   ;
2712   return 0;
2713 }
2714 _ACEOF
2715 if ac_fn_cxx_try_link "$LINENO"; then :
2716   eval "$3=yes"
2717 else
2718   eval "$3=no"
2719 fi
2720 rm -f core conftest.err conftest.$ac_objext \
2721     conftest$ac_exeext conftest.$ac_ext
2722 fi
2723 eval ac_res=\$$3
2724                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2725 $as_echo "$ac_res" >&6; }
2726   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2727
2728 } # ac_fn_cxx_check_func
2729
2730 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2731 # -----------------------------------------------
2732 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2733 # accordingly.
2734 ac_fn_cxx_check_decl ()
2735 {
2736   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2737   as_decl_name=`echo $2|sed 's/ *(.*//'`
2738   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2740 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2741 if eval \${$3+:} false; then :
2742   $as_echo_n "(cached) " >&6
2743 else
2744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h.  */
2746 $4
2747 int
2748 main ()
2749 {
2750 #ifndef $as_decl_name
2751 #ifdef __cplusplus
2752   (void) $as_decl_use;
2753 #else
2754   (void) $as_decl_name;
2755 #endif
2756 #endif
2757
2758   ;
2759   return 0;
2760 }
2761 _ACEOF
2762 if ac_fn_cxx_try_compile "$LINENO"; then :
2763   eval "$3=yes"
2764 else
2765   eval "$3=no"
2766 fi
2767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2768 fi
2769 eval ac_res=\$$3
2770                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2771 $as_echo "$ac_res" >&6; }
2772   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2773
2774 } # ac_fn_cxx_check_decl
2775
2776 # ac_fn_c_try_link LINENO
2777 # -----------------------
2778 # Try to link conftest.$ac_ext, and return whether this succeeded.
2779 ac_fn_c_try_link ()
2780 {
2781   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2782   rm -f conftest.$ac_objext conftest$ac_exeext
2783   if { { ac_try="$ac_link"
2784 case "(($ac_try" in
2785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786   *) ac_try_echo=$ac_try;;
2787 esac
2788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2789 $as_echo "$ac_try_echo"; } >&5
2790   (eval "$ac_link") 2>conftest.err
2791   ac_status=$?
2792   if test -s conftest.err; then
2793     grep -v '^ *+' conftest.err >conftest.er1
2794     cat conftest.er1 >&5
2795     mv -f conftest.er1 conftest.err
2796   fi
2797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2798   test $ac_status = 0; } && {
2799          test -z "$ac_c_werror_flag" ||
2800          test ! -s conftest.err
2801        } && test -s conftest$ac_exeext && {
2802          test "$cross_compiling" = yes ||
2803          test -x conftest$ac_exeext
2804        }; then :
2805   ac_retval=0
2806 else
2807   $as_echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810         ac_retval=1
2811 fi
2812   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2813   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2814   # interfere with the next link command; also delete a directory that is
2815   # left behind by Apple's compiler.  We do this before executing the actions.
2816   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2817   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2818   as_fn_set_status $ac_retval
2819
2820 } # ac_fn_c_try_link
2821
2822 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2823 # ----------------------------------------------
2824 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2825 ac_fn_c_check_header_preproc ()
2826 {
2827   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2829 $as_echo_n "checking for $2... " >&6; }
2830 if eval \${$3+:} false; then :
2831   $as_echo_n "(cached) " >&6
2832 else
2833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834 /* end confdefs.h.  */
2835 #include <$2>
2836 _ACEOF
2837 if ac_fn_c_try_cpp "$LINENO"; then :
2838   eval "$3=yes"
2839 else
2840   eval "$3=no"
2841 fi
2842 rm -f conftest.err conftest.i conftest.$ac_ext
2843 fi
2844 eval ac_res=\$$3
2845                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2846 $as_echo "$ac_res" >&6; }
2847   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2848
2849 } # ac_fn_c_check_header_preproc
2850
2851 # ac_fn_c_check_func LINENO FUNC VAR
2852 # ----------------------------------
2853 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2854 ac_fn_c_check_func ()
2855 {
2856   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2858 $as_echo_n "checking for $2... " >&6; }
2859 if eval \${$3+:} false; then :
2860   $as_echo_n "(cached) " >&6
2861 else
2862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863 /* end confdefs.h.  */
2864 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2866 #define $2 innocuous_$2
2867
2868 /* System header to define __stub macros and hopefully few prototypes,
2869     which can conflict with char $2 (); below.
2870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2871     <limits.h> exists even on freestanding compilers.  */
2872
2873 #ifdef __STDC__
2874 # include <limits.h>
2875 #else
2876 # include <assert.h>
2877 #endif
2878
2879 #undef $2
2880
2881 /* Override any GCC internal prototype to avoid an error.
2882    Use char because int might match the return type of a GCC
2883    builtin and then its argument prototype would still apply.  */
2884 #ifdef __cplusplus
2885 extern "C"
2886 #endif
2887 char $2 ();
2888 /* The GNU C library defines this for functions which it implements
2889     to always fail with ENOSYS.  Some functions are actually named
2890     something starting with __ and the normal name is an alias.  */
2891 #if defined __stub_$2 || defined __stub___$2
2892 choke me
2893 #endif
2894
2895 int
2896 main ()
2897 {
2898 return $2 ();
2899   ;
2900   return 0;
2901 }
2902 _ACEOF
2903 if ac_fn_c_try_link "$LINENO"; then :
2904   eval "$3=yes"
2905 else
2906   eval "$3=no"
2907 fi
2908 rm -f core conftest.err conftest.$ac_objext \
2909     conftest$ac_exeext conftest.$ac_ext
2910 fi
2911 eval ac_res=\$$3
2912                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2913 $as_echo "$ac_res" >&6; }
2914   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2915
2916 } # ac_fn_c_check_func
2917 cat >config.log <<_ACEOF
2918 This file contains any messages produced by compilers while
2919 running configure, to aid debugging if configure makes a mistake.
2920
2921 It was created by $as_me, which was
2922 generated by GNU Autoconf 2.69.  Invocation command line was
2923
2924   $ $0 $@
2925
2926 _ACEOF
2927 exec 5>>config.log
2928 {
2929 cat <<_ASUNAME
2930 ## --------- ##
2931 ## Platform. ##
2932 ## --------- ##
2933
2934 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2935 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2936 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2937 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2938 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2939
2940 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2941 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2942
2943 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2944 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2945 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2946 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2947 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2948 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2949 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2950
2951 _ASUNAME
2952
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956   IFS=$as_save_IFS
2957   test -z "$as_dir" && as_dir=.
2958     $as_echo "PATH: $as_dir"
2959   done
2960 IFS=$as_save_IFS
2961
2962 } >&5
2963
2964 cat >&5 <<_ACEOF
2965
2966
2967 ## ----------- ##
2968 ## Core tests. ##
2969 ## ----------- ##
2970
2971 _ACEOF
2972
2973
2974 # Keep a trace of the command line.
2975 # Strip out --no-create and --no-recursion so they do not pile up.
2976 # Strip out --silent because we don't want to record it for future runs.
2977 # Also quote any args containing shell meta-characters.
2978 # Make two passes to allow for proper duplicate-argument suppression.
2979 ac_configure_args=
2980 ac_configure_args0=
2981 ac_configure_args1=
2982 ac_must_keep_next=false
2983 for ac_pass in 1 2
2984 do
2985   for ac_arg
2986   do
2987     case $ac_arg in
2988     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2989     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2990     | -silent | --silent | --silen | --sile | --sil)
2991       continue ;;
2992     *\'*)
2993       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2994     esac
2995     case $ac_pass in
2996     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2997     2)
2998       as_fn_append ac_configure_args1 " '$ac_arg'"
2999       if test $ac_must_keep_next = true; then
3000         ac_must_keep_next=false # Got value, back to normal.
3001       else
3002         case $ac_arg in
3003           *=* | --config-cache | -C | -disable-* | --disable-* \
3004           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3005           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3006           | -with-* | --with-* | -without-* | --without-* | --x)
3007             case "$ac_configure_args0 " in
3008               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3009             esac
3010             ;;
3011           -* ) ac_must_keep_next=true ;;
3012         esac
3013       fi
3014       as_fn_append ac_configure_args " '$ac_arg'"
3015       ;;
3016     esac
3017   done
3018 done
3019 { ac_configure_args0=; unset ac_configure_args0;}
3020 { ac_configure_args1=; unset ac_configure_args1;}
3021
3022 # When interrupted or exit'd, cleanup temporary files, and complete
3023 # config.log.  We remove comments because anyway the quotes in there
3024 # would cause problems or look ugly.
3025 # WARNING: Use '\'' to represent an apostrophe within the trap.
3026 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3027 trap 'exit_status=$?
3028   # Save into config.log some information that might help in debugging.
3029   {
3030     echo
3031
3032     $as_echo "## ---------------- ##
3033 ## Cache variables. ##
3034 ## ---------------- ##"
3035     echo
3036     # The following way of writing the cache mishandles newlines in values,
3037 (
3038   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3039     eval ac_val=\$$ac_var
3040     case $ac_val in #(
3041     *${as_nl}*)
3042       case $ac_var in #(
3043       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3044 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3045       esac
3046       case $ac_var in #(
3047       _ | IFS | as_nl) ;; #(
3048       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3049       *) { eval $ac_var=; unset $ac_var;} ;;
3050       esac ;;
3051     esac
3052   done
3053   (set) 2>&1 |
3054     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3055     *${as_nl}ac_space=\ *)
3056       sed -n \
3057         "s/'\''/'\''\\\\'\'''\''/g;
3058           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3059       ;; #(
3060     *)
3061       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3062       ;;
3063     esac |
3064     sort
3065 )
3066     echo
3067
3068     $as_echo "## ----------------- ##
3069 ## Output variables. ##
3070 ## ----------------- ##"
3071     echo
3072     for ac_var in $ac_subst_vars
3073     do
3074       eval ac_val=\$$ac_var
3075       case $ac_val in
3076       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3077       esac
3078       $as_echo "$ac_var='\''$ac_val'\''"
3079     done | sort
3080     echo
3081
3082     if test -n "$ac_subst_files"; then
3083       $as_echo "## ------------------- ##
3084 ## File substitutions. ##
3085 ## ------------------- ##"
3086       echo
3087       for ac_var in $ac_subst_files
3088       do
3089         eval ac_val=\$$ac_var
3090         case $ac_val in
3091         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3092         esac
3093         $as_echo "$ac_var='\''$ac_val'\''"
3094       done | sort
3095       echo
3096     fi
3097
3098     if test -s confdefs.h; then
3099       $as_echo "## ----------- ##
3100 ## confdefs.h. ##
3101 ## ----------- ##"
3102       echo
3103       cat confdefs.h
3104       echo
3105     fi
3106     test "$ac_signal" != 0 &&
3107       $as_echo "$as_me: caught signal $ac_signal"
3108     $as_echo "$as_me: exit $exit_status"
3109   } >&5
3110   rm -f core *.core core.conftest.* &&
3111     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3112     exit $exit_status
3113 ' 0
3114 for ac_signal in 1 2 13 15; do
3115   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3116 done
3117 ac_signal=0
3118
3119 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3120 rm -f -r conftest* confdefs.h
3121
3122 $as_echo "/* confdefs.h */" > confdefs.h
3123
3124 # Predefined preprocessor variables.
3125
3126 cat >>confdefs.h <<_ACEOF
3127 #define PACKAGE_NAME "$PACKAGE_NAME"
3128 _ACEOF
3129
3130 cat >>confdefs.h <<_ACEOF
3131 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3132 _ACEOF
3133
3134 cat >>confdefs.h <<_ACEOF
3135 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3136 _ACEOF
3137
3138 cat >>confdefs.h <<_ACEOF
3139 #define PACKAGE_STRING "$PACKAGE_STRING"
3140 _ACEOF
3141
3142 cat >>confdefs.h <<_ACEOF
3143 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3144 _ACEOF
3145
3146 cat >>confdefs.h <<_ACEOF
3147 #define PACKAGE_URL "$PACKAGE_URL"
3148 _ACEOF
3149
3150
3151 # Let the site file select an alternate cache file if it wants to.
3152 # Prefer an explicitly selected file to automatically selected ones.
3153 ac_site_file1=NONE
3154 ac_site_file2=NONE
3155 if test -n "$CONFIG_SITE"; then
3156   # We do not want a PATH search for config.site.
3157   case $CONFIG_SITE in #((
3158     -*)  ac_site_file1=./$CONFIG_SITE;;
3159     */*) ac_site_file1=$CONFIG_SITE;;
3160     *)   ac_site_file1=./$CONFIG_SITE;;
3161   esac
3162 elif test "x$prefix" != xNONE; then
3163   ac_site_file1=$prefix/share/config.site
3164   ac_site_file2=$prefix/etc/config.site
3165 else
3166   ac_site_file1=$ac_default_prefix/share/config.site
3167   ac_site_file2=$ac_default_prefix/etc/config.site
3168 fi
3169 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3170 do
3171   test "x$ac_site_file" = xNONE && continue
3172   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3173     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3174 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3175     sed 's/^/| /' "$ac_site_file" >&5
3176     . "$ac_site_file" \
3177       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 as_fn_error $? "failed to load site script $ac_site_file
3180 See \`config.log' for more details" "$LINENO" 5; }
3181   fi
3182 done
3183
3184 if test -r "$cache_file"; then
3185   # Some versions of bash will fail to source /dev/null (special files
3186   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3187   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3188     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3189 $as_echo "$as_me: loading cache $cache_file" >&6;}
3190     case $cache_file in
3191       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3192       *)                      . "./$cache_file";;
3193     esac
3194   fi
3195 else
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3197 $as_echo "$as_me: creating cache $cache_file" >&6;}
3198   >$cache_file
3199 fi
3200
3201 # Check that the precious variables saved in the cache have kept the same
3202 # value.
3203 ac_cache_corrupted=false
3204 for ac_var in $ac_precious_vars; do
3205   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3206   eval ac_new_set=\$ac_env_${ac_var}_set
3207   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3208   eval ac_new_val=\$ac_env_${ac_var}_value
3209   case $ac_old_set,$ac_new_set in
3210     set,)
3211       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3212 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3213       ac_cache_corrupted=: ;;
3214     ,set)
3215       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3216 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3217       ac_cache_corrupted=: ;;
3218     ,);;
3219     *)
3220       if test "x$ac_old_val" != "x$ac_new_val"; then
3221         # differences in whitespace do not lead to failure.
3222         ac_old_val_w=`echo x $ac_old_val`
3223         ac_new_val_w=`echo x $ac_new_val`
3224         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3225           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3226 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3227           ac_cache_corrupted=:
3228         else
3229           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3230 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3231           eval $ac_var=\$ac_old_val
3232         fi
3233         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3234 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3235         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3236 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3237       fi;;
3238   esac
3239   # Pass precious variables to config.status.
3240   if test "$ac_new_set" = set; then
3241     case $ac_new_val in
3242     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3243     *) ac_arg=$ac_var=$ac_new_val ;;
3244     esac
3245     case " $ac_configure_args " in
3246       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3247       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3248     esac
3249   fi
3250 done
3251 if $ac_cache_corrupted; then
3252   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3255 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3256   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3257 fi
3258 ## -------------------- ##
3259 ## Main body of script. ##
3260 ## -------------------- ##
3261
3262 ac_ext=c
3263 ac_cpp='$CPP $CPPFLAGS'
3264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267
3268
3269
3270
3271
3272
3273 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3274
3275
3276 gcc_version=`cat $srcdir/BASE-VER`
3277
3278 # Determine the host, build, and target systems
3279 ac_aux_dir=
3280 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3281   if test -f "$ac_dir/install-sh"; then
3282     ac_aux_dir=$ac_dir
3283     ac_install_sh="$ac_aux_dir/install-sh -c"
3284     break
3285   elif test -f "$ac_dir/install.sh"; then
3286     ac_aux_dir=$ac_dir
3287     ac_install_sh="$ac_aux_dir/install.sh -c"
3288     break
3289   elif test -f "$ac_dir/shtool"; then
3290     ac_aux_dir=$ac_dir
3291     ac_install_sh="$ac_aux_dir/shtool install -c"
3292     break
3293   fi
3294 done
3295 if test -z "$ac_aux_dir"; then
3296   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3297 fi
3298
3299 # These three variables are undocumented and unsupported,
3300 # and are intended to be withdrawn in a future Autoconf release.
3301 # They can cause serious problems if a builder's source tree is in a directory
3302 # whose full name contains unusual characters.
3303 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3304 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3305 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3306
3307
3308 # Make sure we can run config.sub.
3309 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3310   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3311
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3313 $as_echo_n "checking build system type... " >&6; }
3314 if ${ac_cv_build+:} false; then :
3315   $as_echo_n "(cached) " >&6
3316 else
3317   ac_build_alias=$build_alias
3318 test "x$ac_build_alias" = x &&
3319   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3320 test "x$ac_build_alias" = x &&
3321   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3322 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3323   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3324
3325 fi
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3327 $as_echo "$ac_cv_build" >&6; }
3328 case $ac_cv_build in
3329 *-*-*) ;;
3330 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3331 esac
3332 build=$ac_cv_build
3333 ac_save_IFS=$IFS; IFS='-'
3334 set x $ac_cv_build
3335 shift
3336 build_cpu=$1
3337 build_vendor=$2
3338 shift; shift
3339 # Remember, the first character of IFS is used to create $*,
3340 # except with old shells:
3341 build_os=$*
3342 IFS=$ac_save_IFS
3343 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3344
3345
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3347 $as_echo_n "checking host system type... " >&6; }
3348 if ${ac_cv_host+:} false; then :
3349   $as_echo_n "(cached) " >&6
3350 else
3351   if test "x$host_alias" = x; then
3352   ac_cv_host=$ac_cv_build
3353 else
3354   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3355     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3356 fi
3357
3358 fi
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3360 $as_echo "$ac_cv_host" >&6; }
3361 case $ac_cv_host in
3362 *-*-*) ;;
3363 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3364 esac
3365 host=$ac_cv_host
3366 ac_save_IFS=$IFS; IFS='-'
3367 set x $ac_cv_host
3368 shift
3369 host_cpu=$1
3370 host_vendor=$2
3371 shift; shift
3372 # Remember, the first character of IFS is used to create $*,
3373 # except with old shells:
3374 host_os=$*
3375 IFS=$ac_save_IFS
3376 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3377
3378
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3380 $as_echo_n "checking target system type... " >&6; }
3381 if ${ac_cv_target+:} false; then :
3382   $as_echo_n "(cached) " >&6
3383 else
3384   if test "x$target_alias" = x; then
3385   ac_cv_target=$ac_cv_host
3386 else
3387   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3388     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3389 fi
3390
3391 fi
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3393 $as_echo "$ac_cv_target" >&6; }
3394 case $ac_cv_target in
3395 *-*-*) ;;
3396 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3397 esac
3398 target=$ac_cv_target
3399 ac_save_IFS=$IFS; IFS='-'
3400 set x $ac_cv_target
3401 shift
3402 target_cpu=$1
3403 target_vendor=$2
3404 shift; shift
3405 # Remember, the first character of IFS is used to create $*,
3406 # except with old shells:
3407 target_os=$*
3408 IFS=$ac_save_IFS
3409 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3410
3411
3412 # The aliases save the names the user supplied, while $host etc.
3413 # will get canonicalized.
3414 test -n "$target_alias" &&
3415   test "$program_prefix$program_suffix$program_transform_name" = \
3416     NONENONEs,x,x, &&
3417   program_prefix=${target_alias}-
3418
3419 # Determine the noncanonical host name, for Ada.
3420  case ${build_alias} in
3421   "") build_noncanonical=${build} ;;
3422   *) build_noncanonical=${build_alias} ;;
3423 esac
3424
3425  case ${host_alias} in
3426   "") host_noncanonical=${build_noncanonical} ;;
3427   *) host_noncanonical=${host_alias} ;;
3428 esac
3429
3430
3431
3432
3433 # Determine the noncanonical target name, for directory use.
3434  case ${target_alias} in
3435   "") target_noncanonical=${host_noncanonical} ;;
3436   *) target_noncanonical=${target_alias} ;;
3437 esac
3438
3439
3440
3441
3442 # Used for constructing correct paths for offload compilers.
3443 real_target_noncanonical=${target_noncanonical}
3444 accel_dir_suffix=
3445
3446 # Determine the target- and build-specific subdirectories
3447
3448 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3449 # have matching libraries, they should use host libraries: Makefile.tpl
3450 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3451 # However, they still use the build modules, because the corresponding
3452 # host modules (e.g. bison) are only built for the host when bootstrap
3453 # finishes. So:
3454 # - build_subdir is where we find build modules, and never changes.
3455 # - build_libsubdir is where we find build libraries, and can be overridden.
3456
3457 # Prefix 'build-' so this never conflicts with target_subdir.
3458 build_subdir="build-${build_noncanonical}"
3459
3460 # Check whether --with-build-libsubdir was given.
3461 if test "${with_build_libsubdir+set}" = set; then :
3462   withval=$with_build_libsubdir; build_libsubdir="$withval"
3463 else
3464   build_libsubdir="$build_subdir"
3465 fi
3466
3467 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3468 if ( test $srcdir = . && test -d gcc ) \
3469    || test -d $srcdir/../host-${host_noncanonical}; then
3470   host_subdir="host-${host_noncanonical}"
3471 else
3472   host_subdir=.
3473 fi
3474 # No prefix.
3475 target_subdir=${target_noncanonical}
3476
3477
3478 # Set program_transform_name
3479 test "$program_prefix" != NONE &&
3480   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3481 # Use a double $ so make ignores it.
3482 test "$program_suffix" != NONE &&
3483   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3484 # Double any \ or $.
3485 # By default was `s,x,x', remove it if useless.
3486 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3487 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3488
3489
3490 # Check for bogus environment variables.
3491 # Test if LIBRARY_PATH contains the notation for the current directory
3492 # since this would lead to problems installing/building glibc.
3493 # LIBRARY_PATH contains the current directory if one of the following
3494 # is true:
3495 # - one of the terminals (":" and ";") is the first or last sign
3496 # - two terminals occur directly after each other
3497 # - the path contains an element with a dot in it
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3499 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3500 case ${LIBRARY_PATH} in
3501   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3502     library_path_setting="contains current directory"
3503     ;;
3504   *)
3505     library_path_setting="ok"
3506     ;;
3507 esac
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3509 $as_echo "$library_path_setting" >&6; }
3510 if test "$library_path_setting" != "ok"; then
3511 as_fn_error $? "
3512 *** LIBRARY_PATH shouldn't contain the current directory when
3513 *** building gcc. Please change the environment variable
3514 *** and run configure again." "$LINENO" 5
3515 fi
3516
3517 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3518 # since this would lead to problems installing/building glibc.
3519 # GCC_EXEC_PREFIX contains the current directory if one of the following
3520 # is true:
3521 # - one of the terminals (":" and ";") is the first or last sign
3522 # - two terminals occur directly after each other
3523 # - the path contains an element with a dot in it
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3525 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3526 case ${GCC_EXEC_PREFIX} in
3527   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3528     gcc_exec_prefix_setting="contains current directory"
3529     ;;
3530   *)
3531     gcc_exec_prefix_setting="ok"
3532     ;;
3533 esac
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3535 $as_echo "$gcc_exec_prefix_setting" >&6; }
3536 if test "$gcc_exec_prefix_setting" != "ok"; then
3537 as_fn_error $? "
3538 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3539 *** building gcc. Please change the environment variable
3540 *** and run configure again." "$LINENO" 5
3541 fi
3542
3543 # -----------
3544 # Directories
3545 # -----------
3546
3547 # Specify the local prefix
3548 local_prefix=
3549
3550 # Check whether --with-local-prefix was given.
3551 if test "${with_local_prefix+set}" = set; then :
3552   withval=$with_local_prefix; case "${withval}" in
3553 yes)    as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3554 no)     ;;
3555 *)      local_prefix=$with_local_prefix ;;
3556 esac
3557 fi
3558
3559
3560 # Default local prefix if it is empty
3561 if test x$local_prefix = x; then
3562         local_prefix=/usr/local
3563 fi
3564
3565
3566 # Check whether --with-native-system-header-dir was given.
3567 if test "${with_native_system_header_dir+set}" = set; then :
3568   withval=$with_native_system_header_dir;
3569  case ${with_native_system_header_dir} in
3570  yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3571  /* | [A-Za-z]:[\\/]*) ;;
3572  *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3573  esac
3574  configured_native_system_header_dir="${withval}"
3575
3576 else
3577   configured_native_system_header_dir=
3578 fi
3579
3580
3581
3582 # Check whether --with-build-sysroot was given.
3583 if test "${with_build_sysroot+set}" = set; then :
3584   withval=$with_build_sysroot; if test x"$withval" != x ; then
3585      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3586    fi
3587 else
3588   SYSROOT_CFLAGS_FOR_TARGET=
3589 fi
3590
3591
3592
3593 if test "x$prefix" = xNONE; then
3594  test_prefix=/usr/local
3595 else
3596  test_prefix=$prefix
3597 fi
3598 if test "x$exec_prefix" = xNONE; then
3599  test_exec_prefix=$test_prefix
3600 else
3601  test_exec_prefix=$exec_prefix
3602 fi
3603
3604
3605 # Check whether --with-sysroot was given.
3606 if test "${with_sysroot+set}" = set; then :
3607   withval=$with_sysroot;
3608  case ${with_sysroot} in
3609  /) ;;
3610  */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3611  esac
3612  case ${with_sysroot} in
3613  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3614  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3615  esac
3616
3617  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3618  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3619
3620  case ${TARGET_SYSTEM_ROOT} in
3621  "${test_prefix}"|"${test_prefix}/"*|\
3622  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3623  '${prefix}'|'${prefix}/'*|\
3624  '${exec_prefix}'|'${exec_prefix}/'*)
3625    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3626    TARGET_SYSTEM_ROOT_DEFINE="$t"
3627    ;;
3628  esac
3629
3630 else
3631
3632  TARGET_SYSTEM_ROOT=
3633  TARGET_SYSTEM_ROOT_DEFINE=
3634  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3635
3636 fi
3637
3638
3639
3640
3641
3642 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3643 # passed in by the toplevel make and thus we'd get different behavior
3644 # depending on where we built the sources.
3645 gcc_gxx_include_dir=
3646 # Specify the g++ header file directory
3647
3648 # Check whether --with-gxx-include-dir was given.
3649 if test "${with_gxx_include_dir+set}" = set; then :
3650   withval=$with_gxx_include_dir; case "${withval}" in
3651 yes)    as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3652 no)     ;;
3653 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3654 esac
3655 fi
3656
3657
3658 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3659 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3660 # relative to the sysroot.
3661 gcc_gxx_include_dir_add_sysroot=0
3662
3663 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3664 if test x${gcc_gxx_include_dir} = x; then
3665   if test x${enable_version_specific_runtime_libs} = xyes; then
3666     gcc_gxx_include_dir='${libsubdir}/include/c++'
3667   else
3668     libstdcxx_incdir='include/c++/$(version)'
3669     if test x$host != x$target; then
3670        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3671     fi
3672     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3673   fi
3674 elif test "${with_sysroot+set}" = set; then
3675   gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3676   if test "${gcc_gxx_without_sysroot}"; then
3677     gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3678     gcc_gxx_include_dir_add_sysroot=1
3679   fi
3680 fi
3681
3682
3683 # Check whether --with-cpp_install_dir was given.
3684 if test "${with_cpp_install_dir+set}" = set; then :
3685   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3686   as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3687 elif test x$withval != xno; then
3688   cpp_install_dir=$withval
3689 fi
3690 fi
3691
3692
3693 # We would like to our source tree to be readonly.  However when releases or
3694 # pre-releases are generated, the flex/bison generated files as well as the
3695 # various formats of manuals need to be included along with the rest of the
3696 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3697 # just that.
3698
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3700 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3701     # Check whether --enable-generated-files-in-srcdir was given.
3702 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3703   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3704 else
3705   generated_files_in_srcdir=no
3706 fi
3707
3708
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3710 $as_echo "$generated_files_in_srcdir" >&6; }
3711
3712 if test "$generated_files_in_srcdir" = "yes"; then
3713   GENINSRC=''
3714 else
3715   GENINSRC='#'
3716 fi
3717
3718
3719 # -------------------
3720 # Find default linker
3721 # -------------------
3722
3723 # With GNU ld
3724
3725 # Check whether --with-gnu-ld was given.
3726 if test "${with_gnu_ld+set}" = set; then :
3727   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3728 else
3729   gnu_ld_flag=no
3730 fi
3731
3732
3733 case $target in
3734     *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3735     *) ld64_flag=no;;
3736 esac
3737
3738 # With pre-defined ld
3739
3740 # Check whether --with-ld was given.
3741 if test "${with_ld+set}" = set; then :
3742   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3743 fi
3744
3745 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3746   if test ! -x "$DEFAULT_LINKER"; then
3747     as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3748   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3749     gnu_ld_flag=yes
3750   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3751     ld64_flag=yes
3752   fi
3753
3754 cat >>confdefs.h <<_ACEOF
3755 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3756 _ACEOF
3757
3758 fi
3759
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3761 $as_echo_n "checking whether a default linker was specified... " >&6; }
3762 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3763   if test x"$gnu_ld_flag" = x"no"; then
3764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3765 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3766   else
3767     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3768 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3769   fi
3770 else
3771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3773 fi
3774
3775 # With demangler in GNU ld
3776
3777 # Check whether --with-demangler-in-ld was given.
3778 if test "${with_demangler_in_ld+set}" = set; then :
3779   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3780 else
3781   demangler_in_ld=yes
3782 fi
3783
3784
3785 # ----------------------
3786 # Find default assembler
3787 # ----------------------
3788
3789 # With GNU as
3790
3791 # Check whether --with-gnu-as was given.
3792 if test "${with_gnu_as+set}" = set; then :
3793   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3794 else
3795   gas_flag=no
3796 fi
3797
3798
3799
3800 # Check whether --with-as was given.
3801 if test "${with_as+set}" = set; then :
3802   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3803 fi
3804
3805 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3806   if test ! -x "$DEFAULT_ASSEMBLER"; then
3807     as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3808   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3809     gas_flag=yes
3810   fi
3811
3812 cat >>confdefs.h <<_ACEOF
3813 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3814 _ACEOF
3815
3816 fi
3817
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3819 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3820 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3821   if test x"$gas_flag" = x"no"; then
3822     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3823 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3824   else
3825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3826 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3827   fi
3828 else
3829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3831 fi
3832
3833 # ---------------
3834 # Find C compiler
3835 # ---------------
3836
3837 # If a non-executable a.out is present (e.g. created by GNU as above even if
3838 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3839 # file, even when creating an executable, so an execution test fails.
3840 # Remove possible default executable files to avoid this.
3841 #
3842 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3843 # Autoconf includes it.
3844 rm -f a.out a.exe b.out
3845
3846 # Find the native compiler
3847 ac_ext=c
3848 ac_cpp='$CPP $CPPFLAGS'
3849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3852 if test -n "$ac_tool_prefix"; then
3853   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3854 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if ${ac_cv_prog_CC+:} false; then :
3858   $as_echo_n "(cached) " >&6
3859 else
3860   if test -n "$CC"; then
3861   ac_cv_prog_CC="$CC" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3865 do
3866   IFS=$as_save_IFS
3867   test -z "$as_dir" && as_dir=.
3868     for ac_exec_ext in '' $ac_executable_extensions; do
3869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872     break 2
3873   fi
3874 done
3875   done
3876 IFS=$as_save_IFS
3877
3878 fi
3879 fi
3880 CC=$ac_cv_prog_CC
3881 if test -n "$CC"; then
3882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3883 $as_echo "$CC" >&6; }
3884 else
3885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3887 fi
3888
3889
3890 fi
3891 if test -z "$ac_cv_prog_CC"; then
3892   ac_ct_CC=$CC
3893   # Extract the first word of "gcc", so it can be a program name with args.
3894 set dummy gcc; ac_word=$2
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 $as_echo_n "checking for $ac_word... " >&6; }
3897 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3898   $as_echo_n "(cached) " >&6
3899 else
3900   if test -n "$ac_ct_CC"; then
3901   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3902 else
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3905 do
3906   IFS=$as_save_IFS
3907   test -z "$as_dir" && as_dir=.
3908     for ac_exec_ext in '' $ac_executable_extensions; do
3909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910     ac_cv_prog_ac_ct_CC="gcc"
3911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912     break 2
3913   fi
3914 done
3915   done
3916 IFS=$as_save_IFS
3917
3918 fi
3919 fi
3920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3921 if test -n "$ac_ct_CC"; then
3922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3923 $as_echo "$ac_ct_CC" >&6; }
3924 else
3925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3927 fi
3928
3929   if test "x$ac_ct_CC" = x; then
3930     CC=""
3931   else
3932     case $cross_compiling:$ac_tool_warned in
3933 yes:)
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3936 ac_tool_warned=yes ;;
3937 esac
3938     CC=$ac_ct_CC
3939   fi
3940 else
3941   CC="$ac_cv_prog_CC"
3942 fi
3943
3944 if test -z "$CC"; then
3945           if test -n "$ac_tool_prefix"; then
3946     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3947 set dummy ${ac_tool_prefix}cc; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if ${ac_cv_prog_CC+:} false; then :
3951   $as_echo_n "(cached) " >&6
3952 else
3953   if test -n "$CC"; then
3954   ac_cv_prog_CC="$CC" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3958 do
3959   IFS=$as_save_IFS
3960   test -z "$as_dir" && as_dir=.
3961     for ac_exec_ext in '' $ac_executable_extensions; do
3962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3963     ac_cv_prog_CC="${ac_tool_prefix}cc"
3964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965     break 2
3966   fi
3967 done
3968   done
3969 IFS=$as_save_IFS
3970
3971 fi
3972 fi
3973 CC=$ac_cv_prog_CC
3974 if test -n "$CC"; then
3975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976 $as_echo "$CC" >&6; }
3977 else
3978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3980 fi
3981
3982
3983   fi
3984 fi
3985 if test -z "$CC"; then
3986   # Extract the first word of "cc", so it can be a program name with args.
3987 set dummy cc; ac_word=$2
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3989 $as_echo_n "checking for $ac_word... " >&6; }
3990 if ${ac_cv_prog_CC+:} false; then :
3991   $as_echo_n "(cached) " >&6
3992 else
3993   if test -n "$CC"; then
3994   ac_cv_prog_CC="$CC" # Let the user override the test.
3995 else
3996   ac_prog_rejected=no
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
3999 do
4000   IFS=$as_save_IFS
4001   test -z "$as_dir" && as_dir=.
4002     for ac_exec_ext in '' $ac_executable_extensions; do
4003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4005        ac_prog_rejected=yes
4006        continue
4007      fi
4008     ac_cv_prog_CC="cc"
4009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4010     break 2
4011   fi
4012 done
4013   done
4014 IFS=$as_save_IFS
4015
4016 if test $ac_prog_rejected = yes; then
4017   # We found a bogon in the path, so make sure we never use it.
4018   set dummy $ac_cv_prog_CC
4019   shift
4020   if test $# != 0; then
4021     # We chose a different compiler from the bogus one.
4022     # However, it has the same basename, so the bogon will be chosen
4023     # first if we set CC to just the basename; use the full file name.
4024     shift
4025     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4026   fi
4027 fi
4028 fi
4029 fi
4030 CC=$ac_cv_prog_CC
4031 if test -n "$CC"; then
4032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4033 $as_echo "$CC" >&6; }
4034 else
4035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4037 fi
4038
4039
4040 fi
4041 if test -z "$CC"; then
4042   if test -n "$ac_tool_prefix"; then
4043   for ac_prog in cl.exe
4044   do
4045     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048 $as_echo_n "checking for $ac_word... " >&6; }
4049 if ${ac_cv_prog_CC+:} false; then :
4050   $as_echo_n "(cached) " >&6
4051 else
4052   if test -n "$CC"; then
4053   ac_cv_prog_CC="$CC" # Let the user override the test.
4054 else
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4057 do
4058   IFS=$as_save_IFS
4059   test -z "$as_dir" && as_dir=.
4060     for ac_exec_ext in '' $ac_executable_extensions; do
4061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4064     break 2
4065   fi
4066 done
4067   done
4068 IFS=$as_save_IFS
4069
4070 fi
4071 fi
4072 CC=$ac_cv_prog_CC
4073 if test -n "$CC"; then
4074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4075 $as_echo "$CC" >&6; }
4076 else
4077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 $as_echo "no" >&6; }
4079 fi
4080
4081
4082     test -n "$CC" && break
4083   done
4084 fi
4085 if test -z "$CC"; then
4086   ac_ct_CC=$CC
4087   for ac_prog in cl.exe
4088 do
4089   # Extract the first word of "$ac_prog", so it can be a program name with args.
4090 set dummy $ac_prog; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4094   $as_echo_n "(cached) " >&6
4095 else
4096   if test -n "$ac_ct_CC"; then
4097   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4101 do
4102   IFS=$as_save_IFS
4103   test -z "$as_dir" && as_dir=.
4104     for ac_exec_ext in '' $ac_executable_extensions; do
4105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106     ac_cv_prog_ac_ct_CC="$ac_prog"
4107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108     break 2
4109   fi
4110 done
4111   done
4112 IFS=$as_save_IFS
4113
4114 fi
4115 fi
4116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4117 if test -n "$ac_ct_CC"; then
4118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4119 $as_echo "$ac_ct_CC" >&6; }
4120 else
4121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4123 fi
4124
4125
4126   test -n "$ac_ct_CC" && break
4127 done
4128
4129   if test "x$ac_ct_CC" = x; then
4130     CC=""
4131   else
4132     case $cross_compiling:$ac_tool_warned in
4133 yes:)
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4136 ac_tool_warned=yes ;;
4137 esac
4138     CC=$ac_ct_CC
4139   fi
4140 fi
4141
4142 fi
4143
4144
4145 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4147 as_fn_error $? "no acceptable C compiler found in \$PATH
4148 See \`config.log' for more details" "$LINENO" 5; }
4149
4150 # Provide some information about the compiler.
4151 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4152 set X $ac_compile
4153 ac_compiler=$2
4154 for ac_option in --version -v -V -qversion; do
4155   { { ac_try="$ac_compiler $ac_option >&5"
4156 case "(($ac_try" in
4157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158   *) ac_try_echo=$ac_try;;
4159 esac
4160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4161 $as_echo "$ac_try_echo"; } >&5
4162   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4163   ac_status=$?
4164   if test -s conftest.err; then
4165     sed '10a\
4166 ... rest of stderr output deleted ...
4167          10q' conftest.err >conftest.er1
4168     cat conftest.er1 >&5
4169   fi
4170   rm -f conftest.er1 conftest.err
4171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4172   test $ac_status = 0; }
4173 done
4174
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h.  */
4177
4178 int
4179 main ()
4180 {
4181
4182   ;
4183   return 0;
4184 }
4185 _ACEOF
4186 ac_clean_files_save=$ac_clean_files
4187 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4188 # Try to create an executable without -o first, disregard a.out.
4189 # It will help us diagnose broken compilers, and finding out an intuition
4190 # of exeext.
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4192 $as_echo_n "checking whether the C compiler works... " >&6; }
4193 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4194
4195 # The possible output files:
4196 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4197
4198 ac_rmfiles=
4199 for ac_file in $ac_files
4200 do
4201   case $ac_file in
4202     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4203     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4204   esac
4205 done
4206 rm -f $ac_rmfiles
4207
4208 if { { ac_try="$ac_link_default"
4209 case "(($ac_try" in
4210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211   *) ac_try_echo=$ac_try;;
4212 esac
4213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4214 $as_echo "$ac_try_echo"; } >&5
4215   (eval "$ac_link_default") 2>&5
4216   ac_status=$?
4217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4218   test $ac_status = 0; }; then :
4219   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4220 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4221 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4222 # so that the user can short-circuit this test for compilers unknown to
4223 # Autoconf.
4224 for ac_file in $ac_files ''
4225 do
4226   test -f "$ac_file" || continue
4227   case $ac_file in
4228     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4229         ;;
4230     [ab].out )
4231         # We found the default executable, but exeext='' is most
4232         # certainly right.
4233         break;;
4234     *.* )
4235         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4236         then :; else
4237            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4238         fi
4239         # We set ac_cv_exeext here because the later test for it is not
4240         # safe: cross compilers may not add the suffix if given an `-o'
4241         # argument, so we may need to know it at that point already.
4242         # Even if this section looks crufty: it has the advantage of
4243         # actually working.
4244         break;;
4245     * )
4246         break;;
4247   esac
4248 done
4249 test "$ac_cv_exeext" = no && ac_cv_exeext=
4250
4251 else
4252   ac_file=''
4253 fi
4254 if test -z "$ac_file"; then :
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4257 $as_echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4259
4260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4262 as_fn_error 77 "C compiler cannot create executables
4263 See \`config.log' for more details" "$LINENO" 5; }
4264 else
4265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4266 $as_echo "yes" >&6; }
4267 fi
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4269 $as_echo_n "checking for C compiler default output file name... " >&6; }
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4271 $as_echo "$ac_file" >&6; }
4272 ac_exeext=$ac_cv_exeext
4273
4274 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4275 ac_clean_files=$ac_clean_files_save
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4277 $as_echo_n "checking for suffix of executables... " >&6; }
4278 if { { ac_try="$ac_link"
4279 case "(($ac_try" in
4280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281   *) ac_try_echo=$ac_try;;
4282 esac
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 $as_echo "$ac_try_echo"; } >&5
4285   (eval "$ac_link") 2>&5
4286   ac_status=$?
4287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288   test $ac_status = 0; }; then :
4289   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4290 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4291 # work properly (i.e., refer to `conftest.exe'), while it won't with
4292 # `rm'.
4293 for ac_file in conftest.exe conftest conftest.*; do
4294   test -f "$ac_file" || continue
4295   case $ac_file in
4296     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4297     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4298           break;;
4299     * ) break;;
4300   esac
4301 done
4302 else
4303   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4305 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4306 See \`config.log' for more details" "$LINENO" 5; }
4307 fi
4308 rm -f conftest conftest$ac_cv_exeext
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4310 $as_echo "$ac_cv_exeext" >&6; }
4311
4312 rm -f conftest.$ac_ext
4313 EXEEXT=$ac_cv_exeext
4314 ac_exeext=$EXEEXT
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h.  */
4317 #include <stdio.h>
4318 int
4319 main ()
4320 {
4321 FILE *f = fopen ("conftest.out", "w");
4322  return ferror (f) || fclose (f) != 0;
4323
4324   ;
4325   return 0;
4326 }
4327 _ACEOF
4328 ac_clean_files="$ac_clean_files conftest.out"
4329 # Check that the compiler produces executables we can run.  If not, either
4330 # the compiler is broken, or we cross compile.
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4332 $as_echo_n "checking whether we are cross compiling... " >&6; }
4333 if test "$cross_compiling" != yes; then
4334   { { ac_try="$ac_link"
4335 case "(($ac_try" in
4336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337   *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340 $as_echo "$ac_try_echo"; } >&5
4341   (eval "$ac_link") 2>&5
4342   ac_status=$?
4343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344   test $ac_status = 0; }
4345   if { ac_try='./conftest$ac_cv_exeext'
4346   { { case "(($ac_try" in
4347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348   *) ac_try_echo=$ac_try;;
4349 esac
4350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4351 $as_echo "$ac_try_echo"; } >&5
4352   (eval "$ac_try") 2>&5
4353   ac_status=$?
4354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4355   test $ac_status = 0; }; }; then
4356     cross_compiling=no
4357   else
4358     if test "$cross_compiling" = maybe; then
4359         cross_compiling=yes
4360     else
4361         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4363 as_fn_error $? "cannot run C compiled programs.
4364 If you meant to cross compile, use \`--host'.
4365 See \`config.log' for more details" "$LINENO" 5; }
4366     fi
4367   fi
4368 fi
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4370 $as_echo "$cross_compiling" >&6; }
4371
4372 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4373 ac_clean_files=$ac_clean_files_save
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4375 $as_echo_n "checking for suffix of object files... " >&6; }
4376 if ${ac_cv_objext+:} false; then :
4377   $as_echo_n "(cached) " >&6
4378 else
4379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h.  */
4381
4382 int
4383 main ()
4384 {
4385
4386   ;
4387   return 0;
4388 }
4389 _ACEOF
4390 rm -f conftest.o conftest.obj
4391 if { { ac_try="$ac_compile"
4392 case "(($ac_try" in
4393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394   *) ac_try_echo=$ac_try;;
4395 esac
4396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4397 $as_echo "$ac_try_echo"; } >&5
4398   (eval "$ac_compile") 2>&5
4399   ac_status=$?
4400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4401   test $ac_status = 0; }; then :
4402   for ac_file in conftest.o conftest.obj conftest.*; do
4403   test -f "$ac_file" || continue;
4404   case $ac_file in
4405     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4406     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4407        break;;
4408   esac
4409 done
4410 else
4411   $as_echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4413
4414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4416 as_fn_error $? "cannot compute suffix of object files: cannot compile
4417 See \`config.log' for more details" "$LINENO" 5; }
4418 fi
4419 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4420 fi
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4422 $as_echo "$ac_cv_objext" >&6; }
4423 OBJEXT=$ac_cv_objext
4424 ac_objext=$OBJEXT
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4426 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4427 if ${ac_cv_c_compiler_gnu+:} false; then :
4428   $as_echo_n "(cached) " >&6
4429 else
4430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h.  */
4432
4433 int
4434 main ()
4435 {
4436 #ifndef __GNUC__
4437        choke me
4438 #endif
4439
4440   ;
4441   return 0;
4442 }
4443 _ACEOF
4444 if ac_fn_c_try_compile "$LINENO"; then :
4445   ac_compiler_gnu=yes
4446 else
4447   ac_compiler_gnu=no
4448 fi
4449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4451
4452 fi
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4454 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4455 if test $ac_compiler_gnu = yes; then
4456   GCC=yes
4457 else
4458   GCC=
4459 fi
4460 ac_test_CFLAGS=${CFLAGS+set}
4461 ac_save_CFLAGS=$CFLAGS
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4463 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4464 if ${ac_cv_prog_cc_g+:} false; then :
4465   $as_echo_n "(cached) " >&6
4466 else
4467   ac_save_c_werror_flag=$ac_c_werror_flag
4468    ac_c_werror_flag=yes
4469    ac_cv_prog_cc_g=no
4470    CFLAGS="-g"
4471    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h.  */
4473
4474 int
4475 main ()
4476 {
4477
4478   ;
4479   return 0;
4480 }
4481 _ACEOF
4482 if ac_fn_c_try_compile "$LINENO"; then :
4483   ac_cv_prog_cc_g=yes
4484 else
4485   CFLAGS=""
4486       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h.  */
4488
4489 int
4490 main ()
4491 {
4492
4493   ;
4494   return 0;
4495 }
4496 _ACEOF
4497 if ac_fn_c_try_compile "$LINENO"; then :
4498
4499 else
4500   ac_c_werror_flag=$ac_save_c_werror_flag
4501          CFLAGS="-g"
4502          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h.  */
4504
4505 int
4506 main ()
4507 {
4508
4509   ;
4510   return 0;
4511 }
4512 _ACEOF
4513 if ac_fn_c_try_compile "$LINENO"; then :
4514   ac_cv_prog_cc_g=yes
4515 fi
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 fi
4518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4519 fi
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521    ac_c_werror_flag=$ac_save_c_werror_flag
4522 fi
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4524 $as_echo "$ac_cv_prog_cc_g" >&6; }
4525 if test "$ac_test_CFLAGS" = set; then
4526   CFLAGS=$ac_save_CFLAGS
4527 elif test $ac_cv_prog_cc_g = yes; then
4528   if test "$GCC" = yes; then
4529     CFLAGS="-g -O2"
4530   else
4531     CFLAGS="-g"
4532   fi
4533 else
4534   if test "$GCC" = yes; then
4535     CFLAGS="-O2"
4536   else
4537     CFLAGS=
4538   fi
4539 fi
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4541 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4542 if ${ac_cv_prog_cc_c89+:} false; then :
4543   $as_echo_n "(cached) " >&6
4544 else
4545   ac_cv_prog_cc_c89=no
4546 ac_save_CC=$CC
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h.  */
4549 #include <stdarg.h>
4550 #include <stdio.h>
4551 struct stat;
4552 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4553 struct buf { int x; };
4554 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4555 static char *e (p, i)
4556      char **p;
4557      int i;
4558 {
4559   return p[i];
4560 }
4561 static char *f (char * (*g) (char **, int), char **p, ...)
4562 {
4563   char *s;
4564   va_list v;
4565   va_start (v,p);
4566   s = g (p, va_arg (v,int));
4567   va_end (v);
4568   return s;
4569 }
4570
4571 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4572    function prototypes and stuff, but not '\xHH' hex character constants.
4573    These don't provoke an error unfortunately, instead are silently treated
4574    as 'x'.  The following induces an error, until -std is added to get
4575    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4576    array size at least.  It's necessary to write '\x00'==0 to get something
4577    that's true only with -std.  */
4578 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4579
4580 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4581    inside strings and character constants.  */
4582 #define FOO(x) 'x'
4583 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4584
4585 int test (int i, double x);
4586 struct s1 {int (*f) (int a);};
4587 struct s2 {int (*f) (double a);};
4588 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4589 int argc;
4590 char **argv;
4591 int
4592 main ()
4593 {
4594 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4595   ;
4596   return 0;
4597 }
4598 _ACEOF
4599 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4600         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4601 do
4602   CC="$ac_save_CC $ac_arg"
4603   if ac_fn_c_try_compile "$LINENO"; then :
4604   ac_cv_prog_cc_c89=$ac_arg
4605 fi
4606 rm -f core conftest.err conftest.$ac_objext
4607   test "x$ac_cv_prog_cc_c89" != "xno" && break
4608 done
4609 rm -f conftest.$ac_ext
4610 CC=$ac_save_CC
4611
4612 fi
4613 # AC_CACHE_VAL
4614 case "x$ac_cv_prog_cc_c89" in
4615   x)
4616     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4617 $as_echo "none needed" >&6; } ;;
4618   xno)
4619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4620 $as_echo "unsupported" >&6; } ;;
4621   *)
4622     CC="$CC $ac_cv_prog_cc_c89"
4623     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4624 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4625 esac
4626 if test "x$ac_cv_prog_cc_c89" != xno; then :
4627
4628 fi
4629
4630 ac_ext=c
4631 ac_cpp='$CPP $CPPFLAGS'
4632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4635
4636 ac_ext=cpp
4637 ac_cpp='$CXXCPP $CPPFLAGS'
4638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4641 if test -z "$CXX"; then
4642   if test -n "$CCC"; then
4643     CXX=$CCC
4644   else
4645     if test -n "$ac_tool_prefix"; then
4646   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4647   do
4648     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_prog_CXX+:} false; then :
4653   $as_echo_n "(cached) " >&6
4654 else
4655   if test -n "$CXX"; then
4656   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661   IFS=$as_save_IFS
4662   test -z "$as_dir" && as_dir=.
4663     for ac_exec_ext in '' $ac_executable_extensions; do
4664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667     break 2
4668   fi
4669 done
4670   done
4671 IFS=$as_save_IFS
4672
4673 fi
4674 fi
4675 CXX=$ac_cv_prog_CXX
4676 if test -n "$CXX"; then
4677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4678 $as_echo "$CXX" >&6; }
4679 else
4680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4682 fi
4683
4684
4685     test -n "$CXX" && break
4686   done
4687 fi
4688 if test -z "$CXX"; then
4689   ac_ct_CXX=$CXX
4690   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4691 do
4692   # Extract the first word of "$ac_prog", so it can be a program name with args.
4693 set dummy $ac_prog; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4697   $as_echo_n "(cached) " >&6
4698 else
4699   if test -n "$ac_ct_CXX"; then
4700   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4704 do
4705   IFS=$as_save_IFS
4706   test -z "$as_dir" && as_dir=.
4707     for ac_exec_ext in '' $ac_executable_extensions; do
4708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4709     ac_cv_prog_ac_ct_CXX="$ac_prog"
4710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711     break 2
4712   fi
4713 done
4714   done
4715 IFS=$as_save_IFS
4716
4717 fi
4718 fi
4719 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4720 if test -n "$ac_ct_CXX"; then
4721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4722 $as_echo "$ac_ct_CXX" >&6; }
4723 else
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4726 fi
4727
4728
4729   test -n "$ac_ct_CXX" && break
4730 done
4731
4732   if test "x$ac_ct_CXX" = x; then
4733     CXX="g++"
4734   else
4735     case $cross_compiling:$ac_tool_warned in
4736 yes:)
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739 ac_tool_warned=yes ;;
4740 esac
4741     CXX=$ac_ct_CXX
4742   fi
4743 fi
4744
4745   fi
4746 fi
4747 # Provide some information about the compiler.
4748 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4749 set X $ac_compile
4750 ac_compiler=$2
4751 for ac_option in --version -v -V -qversion; do
4752   { { ac_try="$ac_compiler $ac_option >&5"
4753 case "(($ac_try" in
4754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755   *) ac_try_echo=$ac_try;;
4756 esac
4757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4758 $as_echo "$ac_try_echo"; } >&5
4759   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4760   ac_status=$?
4761   if test -s conftest.err; then
4762     sed '10a\
4763 ... rest of stderr output deleted ...
4764          10q' conftest.err >conftest.er1
4765     cat conftest.er1 >&5
4766   fi
4767   rm -f conftest.er1 conftest.err
4768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4769   test $ac_status = 0; }
4770 done
4771
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4773 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4774 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4775   $as_echo_n "(cached) " >&6
4776 else
4777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h.  */
4779
4780 int
4781 main ()
4782 {
4783 #ifndef __GNUC__
4784        choke me
4785 #endif
4786
4787   ;
4788   return 0;
4789 }
4790 _ACEOF
4791 if ac_fn_cxx_try_compile "$LINENO"; then :
4792   ac_compiler_gnu=yes
4793 else
4794   ac_compiler_gnu=no
4795 fi
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4798
4799 fi
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4801 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4802 if test $ac_compiler_gnu = yes; then
4803   GXX=yes
4804 else
4805   GXX=
4806 fi
4807 ac_test_CXXFLAGS=${CXXFLAGS+set}
4808 ac_save_CXXFLAGS=$CXXFLAGS
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4810 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4811 if ${ac_cv_prog_cxx_g+:} false; then :
4812   $as_echo_n "(cached) " >&6
4813 else
4814   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4815    ac_cxx_werror_flag=yes
4816    ac_cv_prog_cxx_g=no
4817    CXXFLAGS="-g"
4818    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h.  */
4820
4821 int
4822 main ()
4823 {
4824
4825   ;
4826   return 0;
4827 }
4828 _ACEOF
4829 if ac_fn_cxx_try_compile "$LINENO"; then :
4830   ac_cv_prog_cxx_g=yes
4831 else
4832   CXXFLAGS=""
4833       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h.  */
4835
4836 int
4837 main ()
4838 {
4839
4840   ;
4841   return 0;
4842 }
4843 _ACEOF
4844 if ac_fn_cxx_try_compile "$LINENO"; then :
4845
4846 else
4847   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4848          CXXFLAGS="-g"
4849          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h.  */
4851
4852 int
4853 main ()
4854 {
4855
4856   ;
4857   return 0;
4858 }
4859 _ACEOF
4860 if ac_fn_cxx_try_compile "$LINENO"; then :
4861   ac_cv_prog_cxx_g=yes
4862 fi
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 fi
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 fi
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4869 fi
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4871 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4872 if test "$ac_test_CXXFLAGS" = set; then
4873   CXXFLAGS=$ac_save_CXXFLAGS
4874 elif test $ac_cv_prog_cxx_g = yes; then
4875   if test "$GXX" = yes; then
4876     CXXFLAGS="-g -O2"
4877   else
4878     CXXFLAGS="-g"
4879   fi
4880 else
4881   if test "$GXX" = yes; then
4882     CXXFLAGS="-O2"
4883   else
4884     CXXFLAGS=
4885   fi
4886 fi
4887 ac_ext=c
4888 ac_cpp='$CPP $CPPFLAGS'
4889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4892
4893
4894
4895
4896 if test -n "$ac_tool_prefix"; then
4897   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4898 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if ${ac_cv_prog_GNATBIND+:} false; then :
4902   $as_echo_n "(cached) " >&6
4903 else
4904   if test -n "$GNATBIND"; then
4905   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4906 else
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4909 do
4910   IFS=$as_save_IFS
4911   test -z "$as_dir" && as_dir=.
4912     for ac_exec_ext in '' $ac_executable_extensions; do
4913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4914     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916     break 2
4917   fi
4918 done
4919   done
4920 IFS=$as_save_IFS
4921
4922 fi
4923 fi
4924 GNATBIND=$ac_cv_prog_GNATBIND
4925 if test -n "$GNATBIND"; then
4926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4927 $as_echo "$GNATBIND" >&6; }
4928 else
4929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 $as_echo "no" >&6; }
4931 fi
4932
4933
4934 fi
4935 if test -z "$ac_cv_prog_GNATBIND"; then
4936   ac_ct_GNATBIND=$GNATBIND
4937   # Extract the first word of "gnatbind", so it can be a program name with args.
4938 set dummy gnatbind; ac_word=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4942   $as_echo_n "(cached) " >&6
4943 else
4944   if test -n "$ac_ct_GNATBIND"; then
4945   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4949 do
4950   IFS=$as_save_IFS
4951   test -z "$as_dir" && as_dir=.
4952     for ac_exec_ext in '' $ac_executable_extensions; do
4953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956     break 2
4957   fi
4958 done
4959   done
4960 IFS=$as_save_IFS
4961
4962 fi
4963 fi
4964 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4965 if test -n "$ac_ct_GNATBIND"; then
4966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4967 $as_echo "$ac_ct_GNATBIND" >&6; }
4968 else
4969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4971 fi
4972
4973   if test "x$ac_ct_GNATBIND" = x; then
4974     GNATBIND="no"
4975   else
4976     case $cross_compiling:$ac_tool_warned in
4977 yes:)
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4980 ac_tool_warned=yes ;;
4981 esac
4982     GNATBIND=$ac_ct_GNATBIND
4983   fi
4984 else
4985   GNATBIND="$ac_cv_prog_GNATBIND"
4986 fi
4987
4988 if test -n "$ac_tool_prefix"; then
4989   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4990 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992 $as_echo_n "checking for $ac_word... " >&6; }
4993 if ${ac_cv_prog_GNATMAKE+:} false; then :
4994   $as_echo_n "(cached) " >&6
4995 else
4996   if test -n "$GNATMAKE"; then
4997   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4998 else
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002   IFS=$as_save_IFS
5003   test -z "$as_dir" && as_dir=.
5004     for ac_exec_ext in '' $ac_executable_extensions; do
5005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008     break 2
5009   fi
5010 done
5011   done
5012 IFS=$as_save_IFS
5013
5014 fi
5015 fi
5016 GNATMAKE=$ac_cv_prog_GNATMAKE
5017 if test -n "$GNATMAKE"; then
5018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5019 $as_echo "$GNATMAKE" >&6; }
5020 else
5021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5023 fi
5024
5025
5026 fi
5027 if test -z "$ac_cv_prog_GNATMAKE"; then
5028   ac_ct_GNATMAKE=$GNATMAKE
5029   # Extract the first word of "gnatmake", so it can be a program name with args.
5030 set dummy gnatmake; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5034   $as_echo_n "(cached) " >&6
5035 else
5036   if test -n "$ac_ct_GNATMAKE"; then
5037   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042   IFS=$as_save_IFS
5043   test -z "$as_dir" && as_dir=.
5044     for ac_exec_ext in '' $ac_executable_extensions; do
5045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5046     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048     break 2
5049   fi
5050 done
5051   done
5052 IFS=$as_save_IFS
5053
5054 fi
5055 fi
5056 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5057 if test -n "$ac_ct_GNATMAKE"; then
5058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5059 $as_echo "$ac_ct_GNATMAKE" >&6; }
5060 else
5061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5063 fi
5064
5065   if test "x$ac_ct_GNATMAKE" = x; then
5066     GNATMAKE="no"
5067   else
5068     case $cross_compiling:$ac_tool_warned in
5069 yes:)
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5072 ac_tool_warned=yes ;;
5073 esac
5074     GNATMAKE=$ac_ct_GNATMAKE
5075   fi
5076 else
5077   GNATMAKE="$ac_cv_prog_GNATMAKE"
5078 fi
5079
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5081 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5082 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5083   $as_echo_n "(cached) " >&6
5084 else
5085   cat >conftest.adb <<EOF
5086 procedure conftest is begin null; end conftest;
5087 EOF
5088 acx_cv_cc_gcc_supports_ada=no
5089 # There is a bug in old released versions of GCC which causes the
5090 # driver to exit successfully when the appropriate language module
5091 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5092 # Therefore we must check for the error message as well as an
5093 # unsuccessful exit.
5094 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5095 # given a .adb file, but produce no object file.  So we must check
5096 # if an object file was really produced to guard against this.
5097 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5098 if test x"$errors" = x && test -f conftest.$ac_objext; then
5099   acx_cv_cc_gcc_supports_ada=yes
5100 fi
5101 rm -f conftest.*
5102 fi
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5104 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5105
5106 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5107   have_gnat=yes
5108 else
5109   have_gnat=no
5110 fi
5111
5112
5113 # Do configure tests with the C++ compiler, since that's what we build with.
5114 ac_ext=cpp
5115 ac_cpp='$CXXCPP $CPPFLAGS'
5116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5119
5120
5121 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5122 # optimizations to be activated explicitly by the toplevel.
5123 case "$CC" in
5124   */prev-gcc/xgcc*) ;;
5125   *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[        ]//" -e "s/-O[gs][      ]//" -e "s/-O[0-9]*[    ]//" `
5126      CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[    ]//" -e "s/-O[gs][      ]//" -e "s/-O[0-9]*[    ]//" ` ;;
5127 esac
5128
5129
5130
5131 # Determine PICFLAG for target gnatlib.
5132
5133
5134
5135
5136 case "${target}" in
5137     # PIC is the default on some targets or must not be used.
5138     *-*-darwin*)
5139         # For darwin, common symbols are not allowed in MH_DYLIB files
5140         case "${CFLAGS}" in
5141           # If we are using a compiler supporting mdynamic-no-pic
5142           # and the option has been tested as safe to add, then cancel
5143           # it here, since the code generated is incompatible with shared
5144           # libs.
5145           *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5146           *) PICFLAG_FOR_TARGET=-fno-common ;;
5147         esac
5148         ;;
5149     alpha*-dec-osf5*)
5150         # PIC is the default.
5151         ;;
5152     hppa*64*-*-hpux*)
5153         # PIC is the default for 64-bit PA HP-UX.
5154         ;;
5155     i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5156         ;;
5157     i[34567]86-*-mingw* | x86_64-*-mingw*)
5158         ;;
5159     i[34567]86-*-interix[3-9]*)
5160         # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5161         # Instead, we relocate shared libraries at runtime.
5162         ;;
5163     i[34567]86-*-nto-qnx*)
5164         # QNX uses GNU C++, but need to define -shared option too, otherwise
5165         # it will coredump.
5166         PICFLAG_FOR_TARGET='-fPIC -shared'
5167         ;;
5168     i[34567]86-pc-msdosdjgpp*)
5169         # DJGPP does not support shared libraries at all.
5170         ;;
5171     ia64*-*-hpux*)
5172         # On IA64 HP-UX, PIC is the default but the pic flag
5173         # sets the default TLS model and affects inlining.
5174         PICFLAG_FOR_TARGET=-fPIC
5175         ;;
5176     mips-sgi-irix6*)
5177         # PIC is the default.
5178         ;;
5179     rs6000-ibm-aix* | powerpc-ibm-aix*)
5180         # All AIX code is PIC.
5181         ;;
5182
5183     # Some targets support both -fPIC and -fpic, but prefer the latter.
5184     # FIXME: Why?
5185     i[34567]86-*-* | x86_64-*-*)
5186         PICFLAG_FOR_TARGET=-fpic
5187         ;;
5188     # FIXME: Override -fPIC default in libgcc only?
5189     sh-*-linux* | sh[2346lbe]*-*-linux*)
5190         PICFLAG_FOR_TARGET=-fpic
5191         ;;
5192     # FIXME: Simplify to sh*-*-netbsd*?
5193     sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5194       sh64-*-netbsd* | sh64l*-*-netbsd*)
5195         PICFLAG_FOR_TARGET=-fpic
5196         ;;
5197     # Default to -fPIC unless specified otherwise.
5198     *)
5199         PICFLAG_FOR_TARGET=-fPIC
5200         ;;
5201 esac
5202
5203 # If the user explicitly uses -fpic/-fPIC, keep that.
5204 case "${CFLAGS_FOR_TARGET}" in
5205     *-fpic*)
5206         PICFLAG_FOR_TARGET=-fpic
5207         ;;
5208     *-fPIC*)
5209         PICFLAG_FOR_TARGET=-fPIC
5210         ;;
5211 esac
5212
5213
5214
5215 # -------------------------
5216 # Check C compiler features
5217 # -------------------------
5218
5219
5220 ac_ext=cpp
5221 ac_cpp='$CXXCPP $CPPFLAGS'
5222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5226 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5227 if test -z "$CXXCPP"; then
5228   if ${ac_cv_prog_CXXCPP+:} false; then :
5229   $as_echo_n "(cached) " >&6
5230 else
5231       # Double quotes because CXXCPP needs to be expanded
5232     for CXXCPP in "$CXX -E" "/lib/cpp"
5233     do
5234       ac_preproc_ok=false
5235 for ac_cxx_preproc_warn_flag in '' yes
5236 do
5237   # Use a header file that comes with gcc, so configuring glibc
5238   # with a fresh cross-compiler works.
5239   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5240   # <limits.h> exists even on freestanding compilers.
5241   # On the NeXT, cc -E runs the code through the compiler's parser,
5242   # not just through cpp. "Syntax error" is here to catch this case.
5243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h.  */
5245 #ifdef __STDC__
5246 # include <limits.h>
5247 #else
5248 # include <assert.h>
5249 #endif
5250                      Syntax error
5251 _ACEOF
5252 if ac_fn_cxx_try_cpp "$LINENO"; then :
5253
5254 else
5255   # Broken: fails on valid input.
5256 continue
5257 fi
5258 rm -f conftest.err conftest.i conftest.$ac_ext
5259
5260   # OK, works on sane cases.  Now check whether nonexistent headers
5261   # can be detected and how.
5262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h.  */
5264 #include <ac_nonexistent.h>
5265 _ACEOF
5266 if ac_fn_cxx_try_cpp "$LINENO"; then :
5267   # Broken: success on invalid input.
5268 continue
5269 else
5270   # Passes both tests.
5271 ac_preproc_ok=:
5272 break
5273 fi
5274 rm -f conftest.err conftest.i conftest.$ac_ext
5275
5276 done
5277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5278 rm -f conftest.i conftest.err conftest.$ac_ext
5279 if $ac_preproc_ok; then :
5280   break
5281 fi
5282
5283     done
5284     ac_cv_prog_CXXCPP=$CXXCPP
5285
5286 fi
5287   CXXCPP=$ac_cv_prog_CXXCPP
5288 else
5289   ac_cv_prog_CXXCPP=$CXXCPP
5290 fi
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5292 $as_echo "$CXXCPP" >&6; }
5293 ac_preproc_ok=false
5294 for ac_cxx_preproc_warn_flag in '' yes
5295 do
5296   # Use a header file that comes with gcc, so configuring glibc
5297   # with a fresh cross-compiler works.
5298   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5299   # <limits.h> exists even on freestanding compilers.
5300   # On the NeXT, cc -E runs the code through the compiler's parser,
5301   # not just through cpp. "Syntax error" is here to catch this case.
5302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h.  */
5304 #ifdef __STDC__
5305 # include <limits.h>
5306 #else
5307 # include <assert.h>
5308 #endif
5309                      Syntax error
5310 _ACEOF
5311 if ac_fn_cxx_try_cpp "$LINENO"; then :
5312
5313 else
5314   # Broken: fails on valid input.
5315 continue
5316 fi
5317 rm -f conftest.err conftest.i conftest.$ac_ext
5318
5319   # OK, works on sane cases.  Now check whether nonexistent headers
5320   # can be detected and how.
5321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h.  */
5323 #include <ac_nonexistent.h>
5324 _ACEOF
5325 if ac_fn_cxx_try_cpp "$LINENO"; then :
5326   # Broken: success on invalid input.
5327 continue
5328 else
5329   # Passes both tests.
5330 ac_preproc_ok=:
5331 break
5332 fi
5333 rm -f conftest.err conftest.i conftest.$ac_ext
5334
5335 done
5336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5337 rm -f conftest.i conftest.err conftest.$ac_ext
5338 if $ac_preproc_ok; then :
5339
5340 else
5341   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5343 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5344 See \`config.log' for more details" "$LINENO" 5; }
5345 fi
5346
5347 ac_ext=cpp
5348 ac_cpp='$CXXCPP $CPPFLAGS'
5349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5352
5353
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5355 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5356 if ${ac_cv_path_GREP+:} false; then :
5357   $as_echo_n "(cached) " >&6
5358 else
5359   if test -z "$GREP"; then
5360   ac_path_GREP_found=false
5361   # Loop through the user's path and test for each of PROGNAME-LIST
5362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5364 do
5365   IFS=$as_save_IFS
5366   test -z "$as_dir" && as_dir=.
5367     for ac_prog in grep ggrep; do
5368     for ac_exec_ext in '' $ac_executable_extensions; do
5369       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5370       as_fn_executable_p "$ac_path_GREP" || continue
5371 # Check for GNU ac_path_GREP and select it if it is found.
5372   # Check for GNU $ac_path_GREP
5373 case `"$ac_path_GREP" --version 2>&1` in
5374 *GNU*)
5375   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5376 *)
5377   ac_count=0
5378   $as_echo_n 0123456789 >"conftest.in"
5379   while :
5380   do
5381     cat "conftest.in" "conftest.in" >"conftest.tmp"
5382     mv "conftest.tmp" "conftest.in"
5383     cp "conftest.in" "conftest.nl"
5384     $as_echo 'GREP' >> "conftest.nl"
5385     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5386     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5387     as_fn_arith $ac_count + 1 && ac_count=$as_val
5388     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5389       # Best one so far, save it but keep looking for a better one
5390       ac_cv_path_GREP="$ac_path_GREP"
5391       ac_path_GREP_max=$ac_count
5392     fi
5393     # 10*(2^10) chars as input seems more than enough
5394     test $ac_count -gt 10 && break
5395   done
5396   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5397 esac
5398
5399       $ac_path_GREP_found && break 3
5400     done
5401   done
5402   done
5403 IFS=$as_save_IFS
5404   if test -z "$ac_cv_path_GREP"; then
5405     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5406   fi
5407 else
5408   ac_cv_path_GREP=$GREP
5409 fi
5410
5411 fi
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5413 $as_echo "$ac_cv_path_GREP" >&6; }
5414  GREP="$ac_cv_path_GREP"
5415
5416
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5418 $as_echo_n "checking for egrep... " >&6; }
5419 if ${ac_cv_path_EGREP+:} false; then :
5420   $as_echo_n "(cached) " >&6
5421 else
5422   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5423    then ac_cv_path_EGREP="$GREP -E"
5424    else
5425      if test -z "$EGREP"; then
5426   ac_path_EGREP_found=false
5427   # Loop through the user's path and test for each of PROGNAME-LIST
5428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5430 do
5431   IFS=$as_save_IFS
5432   test -z "$as_dir" && as_dir=.
5433     for ac_prog in egrep; do
5434     for ac_exec_ext in '' $ac_executable_extensions; do
5435       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5436       as_fn_executable_p "$ac_path_EGREP" || continue
5437 # Check for GNU ac_path_EGREP and select it if it is found.
5438   # Check for GNU $ac_path_EGREP
5439 case `"$ac_path_EGREP" --version 2>&1` in
5440 *GNU*)
5441   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5442 *)
5443   ac_count=0
5444   $as_echo_n 0123456789 >"conftest.in"
5445   while :
5446   do
5447     cat "conftest.in" "conftest.in" >"conftest.tmp"
5448     mv "conftest.tmp" "conftest.in"
5449     cp "conftest.in" "conftest.nl"
5450     $as_echo 'EGREP' >> "conftest.nl"
5451     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5452     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5453     as_fn_arith $ac_count + 1 && ac_count=$as_val
5454     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5455       # Best one so far, save it but keep looking for a better one
5456       ac_cv_path_EGREP="$ac_path_EGREP"
5457       ac_path_EGREP_max=$ac_count
5458     fi
5459     # 10*(2^10) chars as input seems more than enough
5460     test $ac_count -gt 10 && break
5461   done
5462   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5463 esac
5464
5465       $ac_path_EGREP_found && break 3
5466     done
5467   done
5468   done
5469 IFS=$as_save_IFS
5470   if test -z "$ac_cv_path_EGREP"; then
5471     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5472   fi
5473 else
5474   ac_cv_path_EGREP=$EGREP
5475 fi
5476
5477    fi
5478 fi
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5480 $as_echo "$ac_cv_path_EGREP" >&6; }
5481  EGREP="$ac_cv_path_EGREP"
5482
5483
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5485 $as_echo_n "checking for ANSI C header files... " >&6; }
5486 if ${ac_cv_header_stdc+:} false; then :
5487   $as_echo_n "(cached) " >&6
5488 else
5489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490 /* end confdefs.h.  */
5491 #include <stdlib.h>
5492 #include <stdarg.h>
5493 #include <string.h>
5494 #include <float.h>
5495
5496 int
5497 main ()
5498 {
5499
5500   ;
5501   return 0;
5502 }
5503 _ACEOF
5504 if ac_fn_cxx_try_compile "$LINENO"; then :
5505   ac_cv_header_stdc=yes
5506 else
5507   ac_cv_header_stdc=no
5508 fi
5509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510
5511 if test $ac_cv_header_stdc = yes; then
5512   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h.  */
5515 #include <string.h>
5516
5517 _ACEOF
5518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5519   $EGREP "memchr" >/dev/null 2>&1; then :
5520
5521 else
5522   ac_cv_header_stdc=no
5523 fi
5524 rm -f conftest*
5525
5526 fi
5527
5528 if test $ac_cv_header_stdc = yes; then
5529   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h.  */
5532 #include <stdlib.h>
5533
5534 _ACEOF
5535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5536   $EGREP "free" >/dev/null 2>&1; then :
5537
5538 else
5539   ac_cv_header_stdc=no
5540 fi
5541 rm -f conftest*
5542
5543 fi
5544
5545 if test $ac_cv_header_stdc = yes; then
5546   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5547   if test "$cross_compiling" = yes; then :
5548   :
5549 else
5550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h.  */
5552 #include <ctype.h>
5553 #include <stdlib.h>
5554 #if ((' ' & 0x0FF) == 0x020)
5555 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5556 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5557 #else
5558 # define ISLOWER(c) \
5559                    (('a' <= (c) && (c) <= 'i') \
5560                      || ('j' <= (c) && (c) <= 'r') \
5561                      || ('s' <= (c) && (c) <= 'z'))
5562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5563 #endif
5564
5565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5566 int
5567 main ()
5568 {
5569   int i;
5570   for (i = 0; i < 256; i++)
5571     if (XOR (islower (i), ISLOWER (i))
5572         || toupper (i) != TOUPPER (i))
5573       return 2;
5574   return 0;
5575 }
5576 _ACEOF
5577 if ac_fn_cxx_try_run "$LINENO"; then :
5578
5579 else
5580   ac_cv_header_stdc=no
5581 fi
5582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5583   conftest.$ac_objext conftest.beam conftest.$ac_ext
5584 fi
5585
5586 fi
5587 fi
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5589 $as_echo "$ac_cv_header_stdc" >&6; }
5590 if test $ac_cv_header_stdc = yes; then
5591
5592 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5593
5594 fi
5595
5596 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5597 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5598                   inttypes.h stdint.h unistd.h
5599 do :
5600   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5601 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5602 "
5603 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5604   cat >>confdefs.h <<_ACEOF
5605 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5606 _ACEOF
5607
5608 fi
5609
5610 done
5611
5612
5613
5614   ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5615 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5616   MINIX=yes
5617 else
5618   MINIX=
5619 fi
5620
5621
5622   if test "$MINIX" = yes; then
5623
5624 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5625
5626
5627 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5628
5629
5630 $as_echo "#define _MINIX 1" >>confdefs.h
5631
5632   fi
5633
5634
5635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5636 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5637 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5638   $as_echo_n "(cached) " >&6
5639 else
5640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h.  */
5642
5643 #         define __EXTENSIONS__ 1
5644           $ac_includes_default
5645 int
5646 main ()
5647 {
5648
5649   ;
5650   return 0;
5651 }
5652 _ACEOF
5653 if ac_fn_cxx_try_compile "$LINENO"; then :
5654   ac_cv_safe_to_define___extensions__=yes
5655 else
5656   ac_cv_safe_to_define___extensions__=no
5657 fi
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 fi
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5661 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5662   test $ac_cv_safe_to_define___extensions__ = yes &&
5663     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5664
5665   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5666
5667   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5668
5669   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5670
5671   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5672
5673
5674 ac_ext=c
5675 ac_cpp='$CPP $CPPFLAGS'
5676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5680 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5681 # On Suns, sometimes $CPP names a directory.
5682 if test -n "$CPP" && test -d "$CPP"; then
5683   CPP=
5684 fi
5685 if test -z "$CPP"; then
5686   if ${ac_cv_prog_CPP+:} false; then :
5687   $as_echo_n "(cached) " >&6
5688 else
5689       # Double quotes because CPP needs to be expanded
5690     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5691     do
5692       ac_preproc_ok=false
5693 for ac_c_preproc_warn_flag in '' yes
5694 do
5695   # Use a header file that comes with gcc, so configuring glibc
5696   # with a fresh cross-compiler works.
5697   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5698   # <limits.h> exists even on freestanding compilers.
5699   # On the NeXT, cc -E runs the code through the compiler's parser,
5700   # not just through cpp. "Syntax error" is here to catch this case.
5701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h.  */
5703 #ifdef __STDC__
5704 # include <limits.h>
5705 #else
5706 # include <assert.h>
5707 #endif
5708                      Syntax error
5709 _ACEOF
5710 if ac_fn_c_try_cpp "$LINENO"; then :
5711
5712 else
5713   # Broken: fails on valid input.
5714 continue
5715 fi
5716 rm -f conftest.err conftest.i conftest.$ac_ext
5717
5718   # OK, works on sane cases.  Now check whether nonexistent headers
5719   # can be detected and how.
5720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h.  */
5722 #include <ac_nonexistent.h>
5723 _ACEOF
5724 if ac_fn_c_try_cpp "$LINENO"; then :
5725   # Broken: success on invalid input.
5726 continue
5727 else
5728   # Passes both tests.
5729 ac_preproc_ok=:
5730 break
5731 fi
5732 rm -f conftest.err conftest.i conftest.$ac_ext
5733
5734 done
5735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5736 rm -f conftest.i conftest.err conftest.$ac_ext
5737 if $ac_preproc_ok; then :
5738   break
5739 fi
5740
5741     done
5742     ac_cv_prog_CPP=$CPP
5743
5744 fi
5745   CPP=$ac_cv_prog_CPP
5746 else
5747   ac_cv_prog_CPP=$CPP
5748 fi
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5750 $as_echo "$CPP" >&6; }
5751 ac_preproc_ok=false
5752 for ac_c_preproc_warn_flag in '' yes
5753 do
5754   # Use a header file that comes with gcc, so configuring glibc
5755   # with a fresh cross-compiler works.
5756   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5757   # <limits.h> exists even on freestanding compilers.
5758   # On the NeXT, cc -E runs the code through the compiler's parser,
5759   # not just through cpp. "Syntax error" is here to catch this case.
5760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h.  */
5762 #ifdef __STDC__
5763 # include <limits.h>
5764 #else
5765 # include <assert.h>
5766 #endif
5767                      Syntax error
5768 _ACEOF
5769 if ac_fn_c_try_cpp "$LINENO"; then :
5770
5771 else
5772   # Broken: fails on valid input.
5773 continue
5774 fi
5775 rm -f conftest.err conftest.i conftest.$ac_ext
5776
5777   # OK, works on sane cases.  Now check whether nonexistent headers
5778   # can be detected and how.
5779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h.  */
5781 #include <ac_nonexistent.h>
5782 _ACEOF
5783 if ac_fn_c_try_cpp "$LINENO"; then :
5784   # Broken: success on invalid input.
5785 continue
5786 else
5787   # Passes both tests.
5788 ac_preproc_ok=:
5789 break
5790 fi
5791 rm -f conftest.err conftest.i conftest.$ac_ext
5792
5793 done
5794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5795 rm -f conftest.i conftest.err conftest.$ac_ext
5796 if $ac_preproc_ok; then :
5797
5798 else
5799   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5801 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5802 See \`config.log' for more details" "$LINENO" 5; }
5803 fi
5804
5805 ac_ext=cpp
5806 ac_cpp='$CXXCPP $CPPFLAGS'
5807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5810
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5812 $as_echo_n "checking for inline... " >&6; }
5813 if ${ac_cv_c_inline+:} false; then :
5814   $as_echo_n "(cached) " >&6
5815 else
5816   ac_cv_c_inline=no
5817 for ac_kw in inline __inline__ __inline; do
5818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h.  */
5820 #ifndef __cplusplus
5821 typedef int foo_t;
5822 static $ac_kw foo_t static_foo () {return 0; }
5823 $ac_kw foo_t foo () {return 0; }
5824 #endif
5825
5826 _ACEOF
5827 if ac_fn_cxx_try_compile "$LINENO"; then :
5828   ac_cv_c_inline=$ac_kw
5829 fi
5830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5831   test "$ac_cv_c_inline" != no && break
5832 done
5833
5834 fi
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5836 $as_echo "$ac_cv_c_inline" >&6; }
5837
5838 case $ac_cv_c_inline in
5839   inline | yes) ;;
5840   *)
5841     case $ac_cv_c_inline in
5842       no) ac_val=;;
5843       *) ac_val=$ac_cv_c_inline;;
5844     esac
5845     cat >>confdefs.h <<_ACEOF
5846 #ifndef __cplusplus
5847 #define inline $ac_val
5848 #endif
5849 _ACEOF
5850     ;;
5851 esac
5852
5853
5854 # Check whether --enable-largefile was given.
5855 if test "${enable_largefile+set}" = set; then :
5856   enableval=$enable_largefile;
5857 fi
5858
5859 if test "$enable_largefile" != no; then
5860
5861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5862 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5863 if ${ac_cv_sys_largefile_CC+:} false; then :
5864   $as_echo_n "(cached) " >&6
5865 else
5866   ac_cv_sys_largefile_CC=no
5867      if test "$GCC" != yes; then
5868        ac_save_CC=$CC
5869        while :; do
5870          # IRIX 6.2 and later do not support large files by default,
5871          # so use the C compiler's -n32 option if that helps.
5872          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h.  */
5874 #include <sys/types.h>
5875  /* Check that off_t can represent 2**63 - 1 correctly.
5876     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5877     since some C++ compilers masquerading as C compilers
5878     incorrectly reject 9223372036854775807.  */
5879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5880   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5881                        && LARGE_OFF_T % 2147483647 == 1)
5882                       ? 1 : -1];
5883 int
5884 main ()
5885 {
5886
5887   ;
5888   return 0;
5889 }
5890 _ACEOF
5891          if ac_fn_cxx_try_compile "$LINENO"; then :
5892   break
5893 fi
5894 rm -f core conftest.err conftest.$ac_objext
5895          CC="$CC -n32"
5896          if ac_fn_cxx_try_compile "$LINENO"; then :
5897   ac_cv_sys_largefile_CC=' -n32'; break
5898 fi
5899 rm -f core conftest.err conftest.$ac_objext
5900          break
5901        done
5902        CC=$ac_save_CC
5903        rm -f conftest.$ac_ext
5904     fi
5905 fi
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5907 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5908   if test "$ac_cv_sys_largefile_CC" != no; then
5909     CC=$CC$ac_cv_sys_largefile_CC
5910   fi
5911
5912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5913 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5914 if ${ac_cv_sys_file_offset_bits+:} false; then :
5915   $as_echo_n "(cached) " >&6
5916 else
5917   while :; do
5918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h.  */
5920 #include <sys/types.h>
5921  /* Check that off_t can represent 2**63 - 1 correctly.
5922     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5923     since some C++ compilers masquerading as C compilers
5924     incorrectly reject 9223372036854775807.  */
5925 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5926   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5927                        && LARGE_OFF_T % 2147483647 == 1)
5928                       ? 1 : -1];
5929 int
5930 main ()
5931 {
5932
5933   ;
5934   return 0;
5935 }
5936 _ACEOF
5937 if ac_fn_cxx_try_compile "$LINENO"; then :
5938   ac_cv_sys_file_offset_bits=no; break
5939 fi
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942 /* end confdefs.h.  */
5943 #define _FILE_OFFSET_BITS 64
5944 #include <sys/types.h>
5945  /* Check that off_t can represent 2**63 - 1 correctly.
5946     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5947     since some C++ compilers masquerading as C compilers
5948     incorrectly reject 9223372036854775807.  */
5949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5950   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5951                        && LARGE_OFF_T % 2147483647 == 1)
5952                       ? 1 : -1];
5953 int
5954 main ()
5955 {
5956
5957   ;
5958   return 0;
5959 }
5960 _ACEOF
5961 if ac_fn_cxx_try_compile "$LINENO"; then :
5962   ac_cv_sys_file_offset_bits=64; break
5963 fi
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965   ac_cv_sys_file_offset_bits=unknown
5966   break
5967 done
5968 fi
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5970 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5971 case $ac_cv_sys_file_offset_bits in #(
5972   no | unknown) ;;
5973   *)
5974 cat >>confdefs.h <<_ACEOF
5975 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5976 _ACEOF
5977 ;;
5978 esac
5979 rm -rf conftest*
5980   if test $ac_cv_sys_file_offset_bits = unknown; then
5981     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5982 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5983 if ${ac_cv_sys_large_files+:} false; then :
5984   $as_echo_n "(cached) " >&6
5985 else
5986   while :; do
5987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h.  */
5989 #include <sys/types.h>
5990  /* Check that off_t can represent 2**63 - 1 correctly.
5991     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5992     since some C++ compilers masquerading as C compilers
5993     incorrectly reject 9223372036854775807.  */
5994 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5995   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5996                        && LARGE_OFF_T % 2147483647 == 1)
5997                       ? 1 : -1];
5998 int
5999 main ()
6000 {
6001
6002   ;
6003   return 0;
6004 }
6005 _ACEOF
6006 if ac_fn_cxx_try_compile "$LINENO"; then :
6007   ac_cv_sys_large_files=no; break
6008 fi
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h.  */
6012 #define _LARGE_FILES 1
6013 #include <sys/types.h>
6014  /* Check that off_t can represent 2**63 - 1 correctly.
6015     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6016     since some C++ compilers masquerading as C compilers
6017     incorrectly reject 9223372036854775807.  */
6018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6019   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6020                        && LARGE_OFF_T % 2147483647 == 1)
6021                       ? 1 : -1];
6022 int
6023 main ()
6024 {
6025
6026   ;
6027   return 0;
6028 }
6029 _ACEOF
6030 if ac_fn_cxx_try_compile "$LINENO"; then :
6031   ac_cv_sys_large_files=1; break
6032 fi
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034   ac_cv_sys_large_files=unknown
6035   break
6036 done
6037 fi
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6039 $as_echo "$ac_cv_sys_large_files" >&6; }
6040 case $ac_cv_sys_large_files in #(
6041   no | unknown) ;;
6042   *)
6043 cat >>confdefs.h <<_ACEOF
6044 #define _LARGE_FILES $ac_cv_sys_large_files
6045 _ACEOF
6046 ;;
6047 esac
6048 rm -rf conftest*
6049   fi
6050
6051
6052 fi
6053
6054
6055 # sizeof(char) is 1 by definition.
6056 # The cast to long int works around a bug in the HP C Compiler
6057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6059 # This bug is HP SR number 8606223364.
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6061 $as_echo_n "checking size of void *... " >&6; }
6062 if ${ac_cv_sizeof_void_p+:} false; then :
6063   $as_echo_n "(cached) " >&6
6064 else
6065   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
6066
6067 else
6068   if test "$ac_cv_type_void_p" = yes; then
6069      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6071 as_fn_error 77 "cannot compute sizeof (void *)
6072 See \`config.log' for more details" "$LINENO" 5; }
6073    else
6074      ac_cv_sizeof_void_p=0
6075    fi
6076 fi
6077
6078 fi
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6080 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6081
6082
6083
6084 cat >>confdefs.h <<_ACEOF
6085 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6086 _ACEOF
6087
6088
6089 # The cast to long int works around a bug in the HP C Compiler
6090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6092 # This bug is HP SR number 8606223364.
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6094 $as_echo_n "checking size of short... " >&6; }
6095 if ${ac_cv_sizeof_short+:} false; then :
6096   $as_echo_n "(cached) " >&6
6097 else
6098   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
6099
6100 else
6101   if test "$ac_cv_type_short" = yes; then
6102      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6104 as_fn_error 77 "cannot compute sizeof (short)
6105 See \`config.log' for more details" "$LINENO" 5; }
6106    else
6107      ac_cv_sizeof_short=0
6108    fi
6109 fi
6110
6111 fi
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6113 $as_echo "$ac_cv_sizeof_short" >&6; }
6114
6115
6116
6117 cat >>confdefs.h <<_ACEOF
6118 #define SIZEOF_SHORT $ac_cv_sizeof_short
6119 _ACEOF
6120
6121
6122 # The cast to long int works around a bug in the HP C Compiler
6123 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6124 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6125 # This bug is HP SR number 8606223364.
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6127 $as_echo_n "checking size of int... " >&6; }
6128 if ${ac_cv_sizeof_int+:} false; then :
6129   $as_echo_n "(cached) " >&6
6130 else
6131   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
6132
6133 else
6134   if test "$ac_cv_type_int" = yes; then
6135      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6137 as_fn_error 77 "cannot compute sizeof (int)
6138 See \`config.log' for more details" "$LINENO" 5; }
6139    else
6140      ac_cv_sizeof_int=0
6141    fi
6142 fi
6143
6144 fi
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6146 $as_echo "$ac_cv_sizeof_int" >&6; }
6147
6148
6149
6150 cat >>confdefs.h <<_ACEOF
6151 #define SIZEOF_INT $ac_cv_sizeof_int
6152 _ACEOF
6153
6154
6155 # The cast to long int works around a bug in the HP C Compiler
6156 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6157 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6158 # This bug is HP SR number 8606223364.
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6160 $as_echo_n "checking size of long... " >&6; }
6161 if ${ac_cv_sizeof_long+:} false; then :
6162   $as_echo_n "(cached) " >&6
6163 else
6164   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6165
6166 else
6167   if test "$ac_cv_type_long" = yes; then
6168      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6170 as_fn_error 77 "cannot compute sizeof (long)
6171 See \`config.log' for more details" "$LINENO" 5; }
6172    else
6173      ac_cv_sizeof_long=0
6174    fi
6175 fi
6176
6177 fi
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6179 $as_echo "$ac_cv_sizeof_long" >&6; }
6180
6181
6182
6183 cat >>confdefs.h <<_ACEOF
6184 #define SIZEOF_LONG $ac_cv_sizeof_long
6185 _ACEOF
6186
6187
6188 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6189 if test "x$ac_cv_type_long_long" = xyes; then :
6190
6191 cat >>confdefs.h <<_ACEOF
6192 #define HAVE_LONG_LONG 1
6193 _ACEOF
6194
6195 # The cast to long int works around a bug in the HP C Compiler
6196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6198 # This bug is HP SR number 8606223364.
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6200 $as_echo_n "checking size of long long... " >&6; }
6201 if ${ac_cv_sizeof_long_long+:} false; then :
6202   $as_echo_n "(cached) " >&6
6203 else
6204   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
6205
6206 else
6207   if test "$ac_cv_type_long_long" = yes; then
6208      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6210 as_fn_error 77 "cannot compute sizeof (long long)
6211 See \`config.log' for more details" "$LINENO" 5; }
6212    else
6213      ac_cv_sizeof_long_long=0
6214    fi
6215 fi
6216
6217 fi
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6219 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6220
6221
6222
6223 cat >>confdefs.h <<_ACEOF
6224 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6225 _ACEOF
6226
6227
6228 fi
6229
6230 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6231 case $ac_cv_c_int8_t in #(
6232   no|yes) ;; #(
6233   *)
6234
6235 cat >>confdefs.h <<_ACEOF
6236 #define int8_t $ac_cv_c_int8_t
6237 _ACEOF
6238 ;;
6239 esac
6240
6241 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6242 case $ac_cv_c_int16_t in #(
6243   no|yes) ;; #(
6244   *)
6245
6246 cat >>confdefs.h <<_ACEOF
6247 #define int16_t $ac_cv_c_int16_t
6248 _ACEOF
6249 ;;
6250 esac
6251
6252 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6253 case $ac_cv_c_int32_t in #(
6254   no|yes) ;; #(
6255   *)
6256
6257 cat >>confdefs.h <<_ACEOF
6258 #define int32_t $ac_cv_c_int32_t
6259 _ACEOF
6260 ;;
6261 esac
6262
6263 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6264 case $ac_cv_c_int64_t in #(
6265   no|yes) ;; #(
6266   *)
6267
6268 cat >>confdefs.h <<_ACEOF
6269 #define int64_t $ac_cv_c_int64_t
6270 _ACEOF
6271 ;;
6272 esac
6273
6274
6275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6276 $as_echo_n "checking for unsigned long long int... " >&6; }
6277 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6278   $as_echo_n "(cached) " >&6
6279 else
6280   ac_cv_type_unsigned_long_long_int=yes
6281      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6282        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h.  */
6284
6285   /* For now, do not test the preprocessor; as of 2007 there are too many
6286          implementations with broken preprocessors.  Perhaps this can
6287          be revisited in 2012.  In the meantime, code should not expect
6288          #if to work with literals wider than 32 bits.  */
6289       /* Test literals.  */
6290       long long int ll = 9223372036854775807ll;
6291       long long int nll = -9223372036854775807LL;
6292       unsigned long long int ull = 18446744073709551615ULL;
6293       /* Test constant expressions.   */
6294       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6295                      ? 1 : -1)];
6296       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6297                      ? 1 : -1)];
6298       int i = 63;
6299 int
6300 main ()
6301 {
6302 /* Test availability of runtime routines for shift and division.  */
6303       long long int llmax = 9223372036854775807ll;
6304       unsigned long long int ullmax = 18446744073709551615ull;
6305       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6306               | (llmax / ll) | (llmax % ll)
6307               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6308               | (ullmax / ull) | (ullmax % ull));
6309   ;
6310   return 0;
6311 }
6312
6313 _ACEOF
6314 if ac_fn_cxx_try_link "$LINENO"; then :
6315
6316 else
6317   ac_cv_type_unsigned_long_long_int=no
6318 fi
6319 rm -f core conftest.err conftest.$ac_objext \
6320     conftest$ac_exeext conftest.$ac_ext
6321      fi
6322 fi
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6324 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6325   if test $ac_cv_type_unsigned_long_long_int = yes; then
6326
6327 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6328
6329   fi
6330
6331
6332
6333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6334 $as_echo_n "checking for long long int... " >&6; }
6335 if ${ac_cv_type_long_long_int+:} false; then :
6336   $as_echo_n "(cached) " >&6
6337 else
6338   ac_cv_type_long_long_int=yes
6339       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6340         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6341         if test $ac_cv_type_long_long_int = yes; then
6342                                   if test "$cross_compiling" = yes; then :
6343   :
6344 else
6345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h.  */
6347 #include <limits.h>
6348                  #ifndef LLONG_MAX
6349                  # define HALF \
6350                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6351                  # define LLONG_MAX (HALF - 1 + HALF)
6352                  #endif
6353 int
6354 main ()
6355 {
6356 long long int n = 1;
6357                  int i;
6358                  for (i = 0; ; i++)
6359                    {
6360                      long long int m = n << i;
6361                      if (m >> i != n)
6362                        return 1;
6363                      if (LLONG_MAX / 2 < m)
6364                        break;
6365                    }
6366                  return 0;
6367   ;
6368   return 0;
6369 }
6370 _ACEOF
6371 if ac_fn_cxx_try_run "$LINENO"; then :
6372
6373 else
6374   ac_cv_type_long_long_int=no
6375 fi
6376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6377   conftest.$ac_objext conftest.beam conftest.$ac_ext
6378 fi
6379
6380         fi
6381       fi
6382 fi
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6384 $as_echo "$ac_cv_type_long_long_int" >&6; }
6385   if test $ac_cv_type_long_long_int = yes; then
6386
6387 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6388
6389   fi
6390
6391
6392
6393   ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6394 if test "x$ac_cv_type_intmax_t" = xyes; then :
6395
6396 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6397
6398 else
6399   test $ac_cv_type_long_long_int = yes \
6400        && ac_type='long long int' \
6401        || ac_type='long int'
6402
6403 cat >>confdefs.h <<_ACEOF
6404 #define intmax_t $ac_type
6405 _ACEOF
6406
6407 fi
6408
6409
6410
6411   ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6412 if test "x$ac_cv_type_intptr_t" = xyes; then :
6413
6414 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6415
6416 else
6417   for ac_type in 'int' 'long int' 'long long int'; do
6418        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h.  */
6420 $ac_includes_default
6421 int
6422 main ()
6423 {
6424 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6425 test_array [0] = 0;
6426 return test_array [0];
6427
6428   ;
6429   return 0;
6430 }
6431 _ACEOF
6432 if ac_fn_cxx_try_compile "$LINENO"; then :
6433
6434 cat >>confdefs.h <<_ACEOF
6435 #define intptr_t $ac_type
6436 _ACEOF
6437
6438           ac_type=
6439 fi
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441        test -z "$ac_type" && break
6442      done
6443 fi
6444
6445
6446 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6447 case $ac_cv_c_uint8_t in #(
6448   no|yes) ;; #(
6449   *)
6450
6451 $as_echo "#define _UINT8_T 1" >>confdefs.h
6452
6453
6454 cat >>confdefs.h <<_ACEOF
6455 #define uint8_t $ac_cv_c_uint8_t
6456 _ACEOF
6457 ;;
6458   esac
6459
6460 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6461 case $ac_cv_c_uint16_t in #(
6462   no|yes) ;; #(
6463   *)
6464
6465
6466 cat >>confdefs.h <<_ACEOF
6467 #define uint16_t $ac_cv_c_uint16_t
6468 _ACEOF
6469 ;;
6470   esac
6471
6472 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6473 case $ac_cv_c_uint32_t in #(
6474   no|yes) ;; #(
6475   *)
6476
6477 $as_echo "#define _UINT32_T 1" >>confdefs.h
6478
6479
6480 cat >>confdefs.h <<_ACEOF
6481 #define uint32_t $ac_cv_c_uint32_t
6482 _ACEOF
6483 ;;
6484   esac
6485
6486 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6487 case $ac_cv_c_uint64_t in #(
6488   no|yes) ;; #(
6489   *)
6490
6491 $as_echo "#define _UINT64_T 1" >>confdefs.h
6492
6493
6494 cat >>confdefs.h <<_ACEOF
6495 #define uint64_t $ac_cv_c_uint64_t
6496 _ACEOF
6497 ;;
6498   esac
6499
6500
6501
6502   ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6503 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6504
6505 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6506
6507 else
6508   test $ac_cv_type_unsigned_long_long_int = yes \
6509        && ac_type='unsigned long long int' \
6510        || ac_type='unsigned long int'
6511
6512 cat >>confdefs.h <<_ACEOF
6513 #define uintmax_t $ac_type
6514 _ACEOF
6515
6516 fi
6517
6518
6519
6520   ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6521 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6522
6523 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6524
6525 else
6526   for ac_type in 'unsigned int' 'unsigned long int' \
6527         'unsigned long long int'; do
6528        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h.  */
6530 $ac_includes_default
6531 int
6532 main ()
6533 {
6534 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6535 test_array [0] = 0;
6536 return test_array [0];
6537
6538   ;
6539   return 0;
6540 }
6541 _ACEOF
6542 if ac_fn_cxx_try_compile "$LINENO"; then :
6543
6544 cat >>confdefs.h <<_ACEOF
6545 #define uintptr_t $ac_type
6546 _ACEOF
6547
6548           ac_type=
6549 fi
6550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551        test -z "$ac_type" && break
6552      done
6553 fi
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6569   as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6570 fi
6571
6572 # check what underlying integer type int64_t uses
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6574 $as_echo_n "checking for int64_t underlying type... " >&6; }
6575 if ${ac_cv_int64_t_type+:} false; then :
6576   $as_echo_n "(cached) " >&6
6577 else
6578
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h.  */
6581
6582 #ifdef HAVE_STDINT_H
6583 #include <stdint.h>
6584 #endif
6585 template <typename T> struct X { };
6586 template <>
6587 struct X<long> { typedef long t; };
6588
6589 int
6590 main ()
6591 {
6592 X<int64_t>::t x;
6593   ;
6594   return 0;
6595 }
6596 _ACEOF
6597 if ac_fn_cxx_try_compile "$LINENO"; then :
6598   ac_cv_int64_t_type=long
6599 else
6600   ac_cv_int64_t_type="long long"
6601 fi
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 fi
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6605 $as_echo "$ac_cv_int64_t_type" >&6; }
6606 if test "$ac_cv_int64_t_type" = "long"; then
6607
6608 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6609
6610 else
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h.  */
6613
6614 #ifdef HAVE_STDINT_H
6615 #include <stdint.h>
6616 #endif
6617 template <typename T> struct X { };
6618 template <>
6619 struct X<long long> { typedef long long t; };
6620
6621 int
6622 main ()
6623 {
6624 X<int64_t>::t x;
6625   ;
6626   return 0;
6627 }
6628 _ACEOF
6629 if ac_fn_cxx_try_compile "$LINENO"; then :
6630
6631 else
6632   as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6633 fi
6634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635 fi
6636
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6638 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6639 if ${ac_cv_std_swap_in_utility+:} false; then :
6640   $as_echo_n "(cached) " >&6
6641 else
6642
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h.  */
6645
6646 #include <utility>
6647
6648 int
6649 main ()
6650 {
6651 int a, b; std::swap(a,b);
6652   ;
6653   return 0;
6654 }
6655 _ACEOF
6656 if ac_fn_cxx_try_compile "$LINENO"; then :
6657   ac_cv_std_swap_in_utility=yes
6658 else
6659   ac_cv_std_swap_in_utility=no
6660 fi
6661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 fi
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6664 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6665 if test $ac_cv_std_swap_in_utility = yes; then
6666
6667 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6668
6669 fi
6670
6671 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6672 # If the host compiler is affected by the bug, and we build with optimization
6673 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6674 # get miscompiled.  Use -fno-strict-aliasing to work around this problem.
6675 # Since there is no reliable feature check for the presence of this bug,
6676 # we simply use a GCC version number check.  (This should never trigger for
6677 # stages 2 or 3 of a native bootstrap.)
6678 aliasing_flags=
6679 if test "$GCC" = yes; then
6680   saved_CXXFLAGS="$CXXFLAGS"
6681
6682   # The following test compilation will succeed if and only if $CXX accepts
6683   # -fno-strict-aliasing *and* is older than GCC 4.3.
6684   CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6686 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h.  */
6689
6690 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6691 #error compiler not affected by placement new aliasing bug
6692 #endif
6693
6694 _ACEOF
6695 if ac_fn_cxx_try_compile "$LINENO"; then :
6696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6697 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6698 else
6699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6701 fi
6702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6703
6704   CXXFLAGS="$saved_CXXFLAGS"
6705 fi
6706
6707
6708
6709
6710 # ---------------------
6711 # Warnings and checking
6712 # ---------------------
6713
6714 # Check $CC warning features (if it's GCC).
6715 # We want to use -pedantic, but we don't want warnings about
6716 # * 'long long'
6717 # * variadic macros
6718 # * overlong strings
6719 # * C++11 narrowing conversions in { }
6720 # So, we only use -pedantic if we can disable those warnings.
6721
6722 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6723 # Check whether --enable-build-format-warnings was given.
6724 if test "${enable_build_format_warnings+set}" = set; then :
6725   enableval=$enable_build_format_warnings;
6726 else
6727   enable_build_format_warnings=yes
6728 fi
6729
6730 if test $enable_build_format_warnings = no; then :
6731   wf_opt=-Wno-format
6732 else
6733   wf_opt=
6734 fi
6735 ac_ext=cpp
6736 ac_cpp='$CXXCPP $CPPFLAGS'
6737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6740
6741 loose_warn=
6742 save_CXXFLAGS="$CXXFLAGS"
6743 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6744   # Do the check with the no- prefix removed since gcc silently
6745   # accepts any -Wno-* option on purpose
6746   case $real_option in
6747     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6748     *) option=$real_option ;;
6749   esac
6750   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6751
6752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6753 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6754 if eval \${$as_acx_Woption+:} false; then :
6755   $as_echo_n "(cached) " >&6
6756 else
6757   CXXFLAGS="$option"
6758     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h.  */
6760
6761 int
6762 main ()
6763 {
6764
6765   ;
6766   return 0;
6767 }
6768 _ACEOF
6769 if ac_fn_cxx_try_compile "$LINENO"; then :
6770   eval "$as_acx_Woption=yes"
6771 else
6772   eval "$as_acx_Woption=no"
6773 fi
6774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775
6776 fi
6777 eval ac_res=\$$as_acx_Woption
6778                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6779 $as_echo "$ac_res" >&6; }
6780   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6781   loose_warn="$loose_warn${loose_warn:+ }$real_option"
6782 fi
6783   done
6784 CXXFLAGS="$save_CXXFLAGS"
6785 ac_ext=cpp
6786 ac_cpp='$CXXCPP $CPPFLAGS'
6787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6790
6791
6792
6793 ac_ext=c
6794 ac_cpp='$CPP $CPPFLAGS'
6795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6798
6799 c_loose_warn=
6800 save_CFLAGS="$CFLAGS"
6801 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6802   # Do the check with the no- prefix removed since gcc silently
6803   # accepts any -Wno-* option on purpose
6804   case $real_option in
6805     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6806     *) option=$real_option ;;
6807   esac
6808   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6809
6810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6811 $as_echo_n "checking whether $CC supports $option... " >&6; }
6812 if eval \${$as_acx_Woption+:} false; then :
6813   $as_echo_n "(cached) " >&6
6814 else
6815   CFLAGS="$option"
6816     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h.  */
6818
6819 int
6820 main ()
6821 {
6822
6823   ;
6824   return 0;
6825 }
6826 _ACEOF
6827 if ac_fn_c_try_compile "$LINENO"; then :
6828   eval "$as_acx_Woption=yes"
6829 else
6830   eval "$as_acx_Woption=no"
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833
6834 fi
6835 eval ac_res=\$$as_acx_Woption
6836                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6837 $as_echo "$ac_res" >&6; }
6838   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6839   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6840 fi
6841   done
6842 CFLAGS="$save_CFLAGS"
6843 ac_ext=cpp
6844 ac_cpp='$CXXCPP $CPPFLAGS'
6845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6848
6849
6850 ac_ext=cpp
6851 ac_cpp='$CXXCPP $CPPFLAGS'
6852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6855
6856 strict_warn=
6857 save_CXXFLAGS="$CXXFLAGS"
6858 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6859   # Do the check with the no- prefix removed since gcc silently
6860   # accepts any -Wno-* option on purpose
6861   case $real_option in
6862     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6863     *) option=$real_option ;;
6864   esac
6865   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6866
6867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6868 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6869 if eval \${$as_acx_Woption+:} false; then :
6870   $as_echo_n "(cached) " >&6
6871 else
6872   CXXFLAGS="$option"
6873     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h.  */
6875
6876 int
6877 main ()
6878 {
6879
6880   ;
6881   return 0;
6882 }
6883 _ACEOF
6884 if ac_fn_cxx_try_compile "$LINENO"; then :
6885   eval "$as_acx_Woption=yes"
6886 else
6887   eval "$as_acx_Woption=no"
6888 fi
6889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6890
6891 fi
6892 eval ac_res=\$$as_acx_Woption
6893                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6894 $as_echo "$ac_res" >&6; }
6895   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6896   strict_warn="$strict_warn${strict_warn:+ }$real_option"
6897 fi
6898   done
6899 CXXFLAGS="$save_CXXFLAGS"
6900 ac_ext=cpp
6901 ac_cpp='$CXXCPP $CPPFLAGS'
6902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6905
6906
6907 ac_ext=c
6908 ac_cpp='$CPP $CPPFLAGS'
6909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6912
6913 c_strict_warn=
6914 save_CFLAGS="$CFLAGS"
6915 for real_option in -Wold-style-definition -Wc++-compat; do
6916   # Do the check with the no- prefix removed since gcc silently
6917   # accepts any -Wno-* option on purpose
6918   case $real_option in
6919     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6920     *) option=$real_option ;;
6921   esac
6922   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6923
6924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6925 $as_echo_n "checking whether $CC supports $option... " >&6; }
6926 if eval \${$as_acx_Woption+:} false; then :
6927   $as_echo_n "(cached) " >&6
6928 else
6929   CFLAGS="$option"
6930     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h.  */
6932
6933 int
6934 main ()
6935 {
6936
6937   ;
6938   return 0;
6939 }
6940 _ACEOF
6941 if ac_fn_c_try_compile "$LINENO"; then :
6942   eval "$as_acx_Woption=yes"
6943 else
6944   eval "$as_acx_Woption=no"
6945 fi
6946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6947
6948 fi
6949 eval ac_res=\$$as_acx_Woption
6950                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6951 $as_echo "$ac_res" >&6; }
6952   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6953   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6954 fi
6955   done
6956 CFLAGS="$save_CFLAGS"
6957 ac_ext=cpp
6958 ac_cpp='$CXXCPP $CPPFLAGS'
6959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6962
6963
6964 ac_ext=cpp
6965 ac_cpp='$CXXCPP $CPPFLAGS'
6966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6969
6970 # Do the check with the no- prefix removed from the warning options
6971 # since gcc silently accepts any -Wno-* option on purpose
6972 if test "$GXX" = yes; then :
6973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6974 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6975 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
6976   $as_echo_n "(cached) " >&6
6977 else
6978   save_CXXFLAGS="$CXXFLAGS"
6979 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h.  */
6982
6983 int
6984 main ()
6985 {
6986
6987   ;
6988   return 0;
6989 }
6990 _ACEOF
6991 if ac_fn_cxx_try_compile "$LINENO"; then :
6992   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6993 else
6994   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6995 fi
6996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997 CXXFLAGS="$save_CXXFLAGS"
6998 fi
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7000 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7001 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7002   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7003 fi
7004
7005 fi
7006 ac_ext=cpp
7007 ac_cpp='$CXXCPP $CPPFLAGS'
7008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7011
7012
7013 ac_ext=cpp
7014 ac_cpp='$CXXCPP $CPPFLAGS'
7015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7018
7019 # Check whether --enable-werror-always was given.
7020 if test "${enable_werror_always+set}" = set; then :
7021   enableval=$enable_werror_always;
7022 else
7023   enable_werror_always=no
7024 fi
7025
7026 if test $enable_werror_always = yes; then :
7027   strict_warn="$strict_warn${strict_warn:+ }-Werror"
7028 fi
7029
7030 ac_ext=cpp
7031 ac_cpp='$CXXCPP $CPPFLAGS'
7032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7035
7036
7037
7038 # The above macros do nothing if the compiler is not GCC.  However, the
7039 # Makefile has more goo to add other flags, so these variables are used
7040 # to enable warnings only for GCC.
7041 warn_cflags=
7042 warn_cxxflags=
7043 if test "x$GCC" = "xyes"; then
7044   warn_cflags='$(GCC_WARN_CFLAGS)'
7045   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7046 fi
7047
7048
7049
7050 # Disable exceptions and RTTI if building with g++
7051 ac_ext=c
7052 ac_cpp='$CPP $CPPFLAGS'
7053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7056
7057 noexception_flags=
7058 save_CFLAGS="$CFLAGS"
7059 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7060   # Do the check with the no- prefix removed since gcc silently
7061   # accepts any -Wno-* option on purpose
7062   case $real_option in
7063     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7064     *) option=$real_option ;;
7065   esac
7066   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7067
7068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7069 $as_echo_n "checking whether $CC supports $option... " >&6; }
7070 if eval \${$as_acx_Woption+:} false; then :
7071   $as_echo_n "(cached) " >&6
7072 else
7073   CFLAGS="$option"
7074     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h.  */
7076
7077 int
7078 main ()
7079 {
7080
7081   ;
7082   return 0;
7083 }
7084 _ACEOF
7085 if ac_fn_c_try_compile "$LINENO"; then :
7086   eval "$as_acx_Woption=yes"
7087 else
7088   eval "$as_acx_Woption=no"
7089 fi
7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091
7092 fi
7093 eval ac_res=\$$as_acx_Woption
7094                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7095 $as_echo "$ac_res" >&6; }
7096   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7097   noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7098 fi
7099   done
7100 CFLAGS="$save_CFLAGS"
7101 ac_ext=cpp
7102 ac_cpp='$CXXCPP $CPPFLAGS'
7103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7106
7107
7108
7109 # Enable expensive internal checks
7110 is_release=
7111 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7112   is_release=yes
7113 fi
7114
7115 # Check whether --enable-checking was given.
7116 if test "${enable_checking+set}" = set; then :
7117   enableval=$enable_checking; ac_checking_flags="${enableval}"
7118 else
7119
7120 # Determine the default checks.
7121 if test x$is_release = x ; then
7122   ac_checking_flags=yes,extra
7123 else
7124   ac_checking_flags=release
7125 fi
7126 fi
7127
7128 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7129 for check in release $ac_checking_flags
7130 do
7131         case $check in
7132         # these set all the flags to specific states
7133         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7134                         ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7135                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7136                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7137                         ac_tree_checking=1 ; ac_valgrind_checking= ;
7138                         ac_types_checking=1 ;;
7139         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7140                         ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7141                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7142                         ac_rtlflag_checking= ; ac_runtime_checking= ;
7143                         ac_tree_checking= ; ac_valgrind_checking= ;
7144                         ac_types_checking= ;;
7145         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7146                         ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7147                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7148                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7149                         ac_tree_checking=1 ; ac_valgrind_checking= ;
7150                         ac_types_checking=1 ;;
7151         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7152                         ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7153                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7154                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7155                         ac_tree_checking= ; ac_valgrind_checking= ;
7156                         ac_types_checking= ;;
7157         # these enable particular checks
7158         assert)         ac_assert_checking=1 ;;
7159         df)             ac_df_checking=1 ;;
7160         extra)          ac_extra_checking=1 ;;
7161         fold)           ac_fold_checking=1 ;;
7162         gc)             ac_gc_checking=1 ;;
7163         gcac)           ac_gc_always_collect=1 ;;
7164         gimple)         ac_gimple_checking=1 ;;
7165         misc)           ac_checking=1 ;;
7166         rtl)            ac_rtl_checking=1 ;;
7167         rtlflag)        ac_rtlflag_checking=1 ;;
7168         runtime)        ac_runtime_checking=1 ;;
7169         tree)           ac_tree_checking=1 ;;
7170         types)          ac_types_checking=1 ;;
7171         valgrind)       ac_valgrind_checking=1 ;;
7172         *)      as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7173         esac
7174 done
7175 IFS="$ac_save_IFS"
7176
7177 nocommon_flag=""
7178 if test x$ac_checking != x ; then
7179
7180 $as_echo "#define CHECKING_P 1" >>confdefs.h
7181
7182   nocommon_flag=-fno-common
7183 else
7184   $as_echo "#define CHECKING_P 0" >>confdefs.h
7185
7186 fi
7187
7188 if test x$ac_extra_checking != x ; then
7189
7190 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7191
7192 else
7193   $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7194
7195 fi
7196 if test x$ac_df_checking != x ; then
7197
7198 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7199
7200 fi
7201 if test x$ac_assert_checking != x ; then
7202
7203 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7204
7205 fi
7206 if test x$ac_gimple_checking != x ; then
7207
7208 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7209
7210 fi
7211
7212 if test x$ac_runtime_checking != x ; then
7213
7214 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7215
7216 fi
7217 if test x$ac_tree_checking != x ; then
7218
7219 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7220
7221   TREECHECKING=yes
7222 fi
7223 if test x$ac_types_checking != x ; then
7224
7225 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7226
7227 fi
7228
7229 if test x$ac_rtl_checking != x ; then
7230
7231 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7232
7233 fi
7234 if test x$ac_rtlflag_checking != x ; then
7235
7236 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7237
7238 fi
7239 if test x$ac_gc_checking != x ; then
7240
7241 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7242
7243 fi
7244 if test x$ac_gc_always_collect != x ; then
7245
7246 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7247
7248 fi
7249 if test x$ac_fold_checking != x ; then
7250
7251 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7252
7253 fi
7254 valgrind_path_defines=
7255 valgrind_command=
7256
7257 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7258 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7259   have_valgrind_h=yes
7260 else
7261   have_valgrind_h=no
7262 fi
7263
7264
7265
7266 # It is certainly possible that there's valgrind but no valgrind.h.
7267 # GCC relies on making annotations so we must have both.
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7269 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h.  */
7272 #include <valgrind/memcheck.h>
7273 #ifndef VALGRIND_DISCARD
7274 #error VALGRIND_DISCARD not defined
7275 #endif
7276 _ACEOF
7277 if ac_fn_cxx_try_cpp "$LINENO"; then :
7278   gcc_cv_header_valgrind_memcheck_h=yes
7279 else
7280   gcc_cv_header_valgrind_memcheck_h=no
7281 fi
7282 rm -f conftest.err conftest.i conftest.$ac_ext
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7284 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7286 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h.  */
7289 #include <memcheck.h>
7290 #ifndef VALGRIND_DISCARD
7291 #error VALGRIND_DISCARD not defined
7292 #endif
7293 _ACEOF
7294 if ac_fn_cxx_try_cpp "$LINENO"; then :
7295   gcc_cv_header_memcheck_h=yes
7296 else
7297   gcc_cv_header_memcheck_h=no
7298 fi
7299 rm -f conftest.err conftest.i conftest.$ac_ext
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7301 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7302 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7303
7304 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7305
7306 fi
7307 if test $gcc_cv_header_memcheck_h = yes; then
7308
7309 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7310
7311 fi
7312
7313 if test x$ac_valgrind_checking != x ; then
7314
7315 # Prepare PATH_SEPARATOR.
7316 # The user is always right.
7317 if test "${PATH_SEPARATOR+set}" != set; then
7318   echo "#! /bin/sh" >conf$$.sh
7319   echo  "exit 0"   >>conf$$.sh
7320   chmod +x conf$$.sh
7321   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7322     PATH_SEPARATOR=';'
7323   else
7324     PATH_SEPARATOR=:
7325   fi
7326   rm -f conf$$.sh
7327 fi
7328
7329 # Find out how to test for executable files. Don't use a zero-byte file,
7330 # as systems may use methods other than mode bits to determine executability.
7331 cat >conf$$.file <<_ASEOF
7332 #! /bin/sh
7333 exit 0
7334 _ASEOF
7335 chmod +x conf$$.file
7336 if test -x conf$$.file >/dev/null 2>&1; then
7337   ac_executable_p="test -x"
7338 else
7339   ac_executable_p="test -f"
7340 fi
7341 rm -f conf$$.file
7342
7343 # Extract the first word of "valgrind", so it can be a program name with args.
7344 set dummy valgrind; ac_word=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 $as_echo_n "checking for $ac_word... " >&6; }
7347 if ${ac_cv_path_valgrind_path+:} false; then :
7348   $as_echo_n "(cached) " >&6
7349 else
7350   case "$valgrind_path" in
7351   [\\/]* | ?:[\\/]*)
7352     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7353     ;;
7354   *)
7355     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7356     for ac_dir in $PATH; do
7357       IFS="$ac_save_IFS"
7358       test -z "$ac_dir" && ac_dir=.
7359       for ac_exec_ext in '' $ac_executable_extensions; do
7360         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7361           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7362             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7363             break 2
7364           fi
7365         fi
7366       done
7367     done
7368     IFS="$ac_save_IFS"
7369     ;;
7370 esac
7371 fi
7372 valgrind_path="$ac_cv_path_valgrind_path"
7373 if test -n "$valgrind_path"; then
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7375 $as_echo "$valgrind_path" >&6; }
7376 else
7377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7379 fi
7380
7381   if test "x$valgrind_path" = "x" \
7382     || (test $have_valgrind_h = no \
7383         && test $gcc_cv_header_memcheck_h = no \
7384         && test $gcc_cv_header_valgrind_memcheck_h = no); then
7385         as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7386   fi
7387   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7388   valgrind_command="$valgrind_path -q"
7389
7390 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7391
7392 fi
7393
7394
7395
7396 # Enable code coverage collection
7397 # Check whether --enable-coverage was given.
7398 if test "${enable_coverage+set}" = set; then :
7399   enableval=$enable_coverage; case "${enableval}" in
7400   yes|noopt)
7401     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7402     ;;
7403   opt)
7404     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7405     ;;
7406   no)
7407     # a.k.a. --disable-coverage
7408     coverage_flags=""
7409     ;;
7410   *)
7411     as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7412     ;;
7413 esac
7414 else
7415   coverage_flags=""
7416 fi
7417
7418
7419
7420 # Check whether --enable-gather-detailed-mem-stats was given.
7421 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7422   enableval=$enable_gather_detailed_mem_stats;
7423 else
7424   enable_gather_detailed_mem_stats=no
7425 fi
7426
7427 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7428
7429 cat >>confdefs.h <<_ACEOF
7430 #define GATHER_STATISTICS $gather_stats
7431 _ACEOF
7432
7433
7434 # Check whether --enable-valgrind-annotations was given.
7435 if test "${enable_valgrind_annotations+set}" = set; then :
7436   enableval=$enable_valgrind_annotations;
7437 else
7438   enable_valgrind_annotations=no
7439 fi
7440
7441 if test x$enable_valgrind_annotations != xno \
7442     || test x$ac_valgrind_checking != x; then
7443   if (test $have_valgrind_h = no \
7444       && test $gcc_cv_header_memcheck_h = no \
7445       && test $gcc_cv_header_valgrind_memcheck_h = no); then
7446     as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7447   fi
7448
7449 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7450
7451 fi
7452
7453 # -------------------------------
7454 # Miscenalleous configure options
7455 # -------------------------------
7456
7457 # With stabs
7458
7459 # Check whether --with-stabs was given.
7460 if test "${with_stabs+set}" = set; then :
7461   withval=$with_stabs; stabs="$with_stabs"
7462 else
7463   stabs=no
7464 fi
7465
7466
7467 # Determine whether or not multilibs are enabled.
7468 # Check whether --enable-multilib was given.
7469 if test "${enable_multilib+set}" = set; then :
7470   enableval=$enable_multilib;
7471 else
7472   enable_multilib=yes
7473 fi
7474
7475
7476
7477 # Determine whether or not multiarch is enabled.
7478 # Check whether --enable-multiarch was given.
7479 if test "${enable_multiarch+set}" = set; then :
7480   enableval=$enable_multiarch; case "${enableval}" in
7481 yes|no|auto) enable_multiarch=$enableval;;
7482 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7483 esac
7484 else
7485   enable_multiarch=auto
7486 fi
7487
7488 if test x${enable_multiarch} = xauto; then
7489   if test x${with_native_system_header_dir} != x; then
7490     ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7491     enable_multiarch=no
7492   fi
7493   if test x$host != x$target && test "x$with_sysroot" = x; then
7494     ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7495     enable_multiarch=no
7496   fi
7497 fi
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7499 $as_echo_n "checking for multiarch configuration... " >&6; }
7500
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7502 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7503
7504 # needed for setting the multiarch name for soft-float/hard-float ABIs
7505
7506
7507
7508 # default stack clash protection guard size as power of twos in bytes.
7509 # Please keep these in sync with params.def.
7510 stk_clash_min=12
7511 stk_clash_max=30
7512
7513 # Keep the default value when the option is not used to 0, this allows us to
7514 # distinguish between the cases where the user specifially set a value via
7515 # configure and when the normal default value is used.
7516
7517 # Check whether --with-stack-clash-protection-guard-size was given.
7518 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7519   withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7520 else
7521   DEFAULT_STK_CLASH_GUARD_SIZE=0
7522 fi
7523
7524 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7525      && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7526          || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7527   as_fn_error $? "Invalid value $DEFAULT_STK_CLASH_GUARD_SIZE for --with-stack-clash-protection-guard-size. Must be between $stk_clash_min and $stk_clash_max." "$LINENO" 5
7528 fi
7529
7530
7531 cat >>confdefs.h <<_ACEOF
7532 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7533 _ACEOF
7534
7535
7536 # Enable __cxa_atexit for C++.
7537 # Check whether --enable-__cxa_atexit was given.
7538 if test "${enable___cxa_atexit+set}" = set; then :
7539   enableval=$enable___cxa_atexit;
7540 fi
7541
7542
7543 # Enable C extension for decimal float if target supports it.
7544
7545 # Check whether --enable-decimal-float was given.
7546 if test "${enable_decimal_float+set}" = set; then :
7547   enableval=$enable_decimal_float;
7548   case $enable_decimal_float in
7549     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7550     *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7551 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7552   esac
7553
7554 else
7555
7556   case $target in
7557     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7558     i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7559     i?86*-*-mingw* | x86_64*-*-mingw* | \
7560     i?86*-*-cygwin* | x86_64*-*-cygwin*)
7561       enable_decimal_float=yes
7562       ;;
7563     *)
7564       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7565 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7566       enable_decimal_float=no
7567       ;;
7568   esac
7569
7570 fi
7571
7572
7573 # x86's use BID format instead of DPD
7574 case x$enable_decimal_float in
7575   xyes)
7576     case $target in
7577       i?86*-*-* | x86_64*-*-*)
7578         enable_decimal_float=bid
7579         ;;
7580       *)
7581         enable_decimal_float=dpd
7582         ;;
7583     esac
7584     default_decimal_float=$enable_decimal_float
7585     ;;
7586   xno)
7587     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7588     # dependency on libdecnumber.
7589     default_decimal_float=dpd
7590     ;;
7591 esac
7592
7593
7594
7595
7596 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7597
7598 cat >>confdefs.h <<_ACEOF
7599 #define ENABLE_DECIMAL_FLOAT $dfp
7600 _ACEOF
7601
7602
7603 # Use default_decimal_float for dependency.
7604 enable_decimal_float=$default_decimal_float
7605
7606 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7607
7608 cat >>confdefs.h <<_ACEOF
7609 #define ENABLE_DECIMAL_BID_FORMAT $bid
7610 _ACEOF
7611
7612
7613 # Enable C extension for fixed-point arithmetic.
7614 # Check whether --enable-fixed-point was given.
7615 if test "${enable_fixed_point+set}" = set; then :
7616   enableval=$enable_fixed_point;
7617 else
7618
7619   case $target in
7620     arm*)
7621       enable_fixed_point=yes
7622       ;;
7623
7624     mips*-*-*)
7625       enable_fixed_point=yes
7626       ;;
7627     *)
7628       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7629 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7630       enable_fixed_point=no
7631       ;;
7632   esac
7633
7634 fi
7635
7636
7637
7638 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7639
7640 cat >>confdefs.h <<_ACEOF
7641 #define ENABLE_FIXED_POINT $fixedpoint
7642 _ACEOF
7643
7644
7645 # Enable threads
7646 # Pass with no value to take the default
7647 # Pass with a value to specify a thread package
7648 # Check whether --enable-threads was given.
7649 if test "${enable_threads+set}" = set; then :
7650   enableval=$enable_threads;
7651 else
7652   enable_threads=''
7653 fi
7654
7655
7656 # Check whether --enable-tls was given.
7657 if test "${enable_tls+set}" = set; then :
7658   enableval=$enable_tls;
7659   case $enable_tls in
7660     yes | no) ;;
7661     *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7662 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7663   esac
7664
7665 else
7666   enable_tls=''
7667 fi
7668
7669
7670 # Check whether --enable-vtable-verify was given.
7671 if test "${enable_vtable_verify+set}" = set; then :
7672   enableval=$enable_vtable_verify;
7673 else
7674   enable_vtable_verify=no
7675 fi
7676
7677 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7678
7679 cat >>confdefs.h <<_ACEOF
7680 #define ENABLE_VTABLE_VERIFY $vtable_verify
7681 _ACEOF
7682
7683
7684 # Check whether --enable-objc-gc was given.
7685 if test "${enable_objc_gc+set}" = set; then :
7686   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7687         objc_boehm_gc=''
7688 else
7689         objc_boehm_gc=1
7690 fi
7691 else
7692   objc_boehm_gc=''
7693 fi
7694
7695
7696
7697 # Check whether --with-dwarf2 was given.
7698 if test "${with_dwarf2+set}" = set; then :
7699   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7700 else
7701   dwarf2=no
7702 fi
7703
7704
7705 # Check whether --enable-shared was given.
7706 if test "${enable_shared+set}" = set; then :
7707   enableval=$enable_shared;
7708   case $enable_shared in
7709   yes | no) ;;
7710   *)
7711     enable_shared=no
7712     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7713     for pkg in $enableval; do
7714       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7715         enable_shared=yes
7716       fi
7717     done
7718     IFS="$ac_save_ifs"
7719     ;;
7720   esac
7721
7722 else
7723   enable_shared=yes
7724 fi
7725
7726
7727
7728 # Check whether --enable-gcov was given.
7729 if test "${enable_gcov+set}" = set; then :
7730   enableval=$enable_gcov;
7731 else
7732   enable_gcov=yes
7733 fi
7734
7735
7736
7737
7738 # Check whether --with-specs was given.
7739 if test "${with_specs+set}" = set; then :
7740   withval=$with_specs; CONFIGURE_SPECS=$withval
7741 else
7742   CONFIGURE_SPECS=
7743
7744 fi
7745
7746
7747
7748
7749
7750 # Check whether --with-pkgversion was given.
7751 if test "${with_pkgversion+set}" = set; then :
7752   withval=$with_pkgversion; case "$withval" in
7753       yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7754       no)  PKGVERSION= ;;
7755       *)   PKGVERSION="($withval) " ;;
7756      esac
7757 else
7758   PKGVERSION="(GCC) "
7759
7760 fi
7761
7762
7763
7764
7765
7766 # Check whether --with-bugurl was given.
7767 if test "${with_bugurl+set}" = set; then :
7768   withval=$with_bugurl; case "$withval" in
7769       yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7770       no)  BUGURL=
7771            ;;
7772       *)   BUGURL="$withval"
7773            ;;
7774      esac
7775 else
7776   BUGURL="https://gcc.gnu.org/bugs/"
7777
7778 fi
7779
7780   case ${BUGURL} in
7781   "")
7782     REPORT_BUGS_TO=
7783     REPORT_BUGS_TEXI=
7784     ;;
7785   *)
7786     REPORT_BUGS_TO="<$BUGURL>"
7787     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7788     ;;
7789   esac;
7790
7791
7792
7793
7794 # Sanity check enable_languages in case someone does not run the toplevel
7795 # configure # script.
7796 # Check whether --enable-languages was given.
7797 if test "${enable_languages+set}" = set; then :
7798   enableval=$enable_languages; case ,${enable_languages}, in
7799        ,,|,yes,)
7800                 # go safe -- we cannot be much sure without the toplevel
7801                 # configure's
7802                 # analysis of which target libs are present and usable
7803                 enable_languages=c
7804                 ;;
7805          *,all,*)
7806                 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7807                 ;;
7808         *,c,*)
7809                 ;;
7810         *)
7811                 enable_languages=c,${enable_languages}
7812                 ;;
7813 esac
7814 else
7815   enable_languages=c
7816 fi
7817
7818
7819 if test x"$enable_as_accelerator_for" != x; then
7820
7821 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7822
7823   enable_as_accelerator=yes
7824   case "${target}" in
7825     *-intelmicemul-*)
7826       # In this case we expect offload compiler to be built as native, so we
7827       # need to rename the driver to avoid clashes with host's drivers.
7828       program_transform_name="s&^&${target}-&" ;;
7829   esac
7830   sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7831   program_transform_name=`echo $program_transform_name | sed $sedscript`
7832   accel_dir_suffix=/accel/${target_noncanonical}
7833   real_target_noncanonical=${enable_as_accelerator_for}
7834 fi
7835
7836
7837
7838
7839 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7840   tgt=`echo $tgt | sed 's/=.*//'`
7841
7842   if echo "$tgt" | grep "^hsa" > /dev/null ; then
7843     enable_hsa=1
7844   else
7845     enable_offloading=1
7846   fi
7847
7848   if test x"$offload_targets" = x; then
7849     offload_targets=$tgt
7850   else
7851     offload_targets="$offload_targets,$tgt"
7852   fi
7853 done
7854
7855 cat >>confdefs.h <<_ACEOF
7856 #define OFFLOAD_TARGETS "$offload_targets"
7857 _ACEOF
7858
7859 if test x"$enable_offloading" != x; then
7860
7861 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7862
7863 else
7864
7865 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7866
7867 fi
7868
7869 if test x"$enable_hsa" = x1 ; then
7870
7871 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7872
7873 fi
7874
7875
7876 # Check whether --with-multilib-list was given.
7877 if test "${with_multilib_list+set}" = set; then :
7878   withval=$with_multilib_list; :
7879 else
7880   with_multilib_list=default
7881 fi
7882
7883
7884 # -------------------------
7885 # Checks for other programs
7886 # -------------------------
7887
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7889 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7890 set x ${MAKE-make}
7891 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7892 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7893   $as_echo_n "(cached) " >&6
7894 else
7895   cat >conftest.make <<\_ACEOF
7896 SHELL = /bin/sh
7897 all:
7898         @echo '@@@%%%=$(MAKE)=@@@%%%'
7899 _ACEOF
7900 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7901 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7902   *@@@%%%=?*=@@@%%%*)
7903     eval ac_cv_prog_make_${ac_make}_set=yes;;
7904   *)
7905     eval ac_cv_prog_make_${ac_make}_set=no;;
7906 esac
7907 rm -f conftest.make
7908 fi
7909 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7911 $as_echo "yes" >&6; }
7912   SET_MAKE=
7913 else
7914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7916   SET_MAKE="MAKE=${MAKE-make}"
7917 fi
7918
7919
7920 # Find some useful tools
7921 for ac_prog in gawk mawk nawk awk
7922 do
7923   # Extract the first word of "$ac_prog", so it can be a program name with args.
7924 set dummy $ac_prog; ac_word=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if ${ac_cv_prog_AWK+:} false; then :
7928   $as_echo_n "(cached) " >&6
7929 else
7930   if test -n "$AWK"; then
7931   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7932 else
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934 for as_dir in $PATH
7935 do
7936   IFS=$as_save_IFS
7937   test -z "$as_dir" && as_dir=.
7938     for ac_exec_ext in '' $ac_executable_extensions; do
7939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7940     ac_cv_prog_AWK="$ac_prog"
7941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942     break 2
7943   fi
7944 done
7945   done
7946 IFS=$as_save_IFS
7947
7948 fi
7949 fi
7950 AWK=$ac_cv_prog_AWK
7951 if test -n "$AWK"; then
7952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7953 $as_echo "$AWK" >&6; }
7954 else
7955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7957 fi
7958
7959
7960   test -n "$AWK" && break
7961 done
7962
7963 # We need awk to create options.c and options.h.
7964 # Bail out if it's missing.
7965 case ${AWK} in
7966   "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
7967 esac
7968
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7970 $as_echo_n "checking whether ln -s works... " >&6; }
7971 if ${gcc_cv_prog_LN_S+:} false; then :
7972   $as_echo_n "(cached) " >&6
7973 else
7974   rm -f conftestdata_t
7975 echo >conftestdata_f
7976 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7977 then
7978   gcc_cv_prog_LN_S="ln -s"
7979 else
7980   if ln conftestdata_f conftestdata_t 2>/dev/null
7981   then
7982     gcc_cv_prog_LN_S=ln
7983   else
7984     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7985     then
7986       gcc_cv_prog_LN_S="cp -p"
7987     else
7988       gcc_cv_prog_LN_S=cp
7989     fi
7990   fi
7991 fi
7992 rm -f conftestdata_f conftestdata_t
7993
7994 fi
7995 LN_S="$gcc_cv_prog_LN_S"
7996 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7998 $as_echo "yes" >&6; }
7999 else
8000   if test "$gcc_cv_prog_LN_S" = "ln"; then
8001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8002 $as_echo "no, using ln" >&6; }
8003   else
8004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8005 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8006   fi
8007 fi
8008
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8010 $as_echo_n "checking whether ln works... " >&6; }
8011 if ${acx_cv_prog_LN+:} false; then :
8012   $as_echo_n "(cached) " >&6
8013 else
8014   rm -f conftestdata_t
8015 echo >conftestdata_f
8016 if ln conftestdata_f conftestdata_t 2>/dev/null
8017 then
8018   acx_cv_prog_LN=ln
8019 else
8020   acx_cv_prog_LN=no
8021 fi
8022 rm -f conftestdata_f conftestdata_t
8023
8024 fi
8025 if test $acx_cv_prog_LN = no; then
8026   LN="$LN_S"
8027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8028 $as_echo "no, using $LN" >&6; }
8029 else
8030   LN="$acx_cv_prog_LN"
8031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8032 $as_echo "yes" >&6; }
8033 fi
8034
8035 if test -n "$ac_tool_prefix"; then
8036   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8037 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if ${ac_cv_prog_RANLIB+:} false; then :
8041   $as_echo_n "(cached) " >&6
8042 else
8043   if test -n "$RANLIB"; then
8044   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8045 else
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 for as_dir in $PATH
8048 do
8049   IFS=$as_save_IFS
8050   test -z "$as_dir" && as_dir=.
8051     for ac_exec_ext in '' $ac_executable_extensions; do
8052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8053     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8055     break 2
8056   fi
8057 done
8058   done
8059 IFS=$as_save_IFS
8060
8061 fi
8062 fi
8063 RANLIB=$ac_cv_prog_RANLIB
8064 if test -n "$RANLIB"; then
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8066 $as_echo "$RANLIB" >&6; }
8067 else
8068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8070 fi
8071
8072
8073 fi
8074 if test -z "$ac_cv_prog_RANLIB"; then
8075   ac_ct_RANLIB=$RANLIB
8076   # Extract the first word of "ranlib", so it can be a program name with args.
8077 set dummy ranlib; ac_word=$2
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079 $as_echo_n "checking for $ac_word... " >&6; }
8080 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8081   $as_echo_n "(cached) " >&6
8082 else
8083   if test -n "$ac_ct_RANLIB"; then
8084   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8085 else
8086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087 for as_dir in $PATH
8088 do
8089   IFS=$as_save_IFS
8090   test -z "$as_dir" && as_dir=.
8091     for ac_exec_ext in '' $ac_executable_extensions; do
8092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8093     ac_cv_prog_ac_ct_RANLIB="ranlib"
8094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8095     break 2
8096   fi
8097 done
8098   done
8099 IFS=$as_save_IFS
8100
8101 fi
8102 fi
8103 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8104 if test -n "$ac_ct_RANLIB"; then
8105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8106 $as_echo "$ac_ct_RANLIB" >&6; }
8107 else
8108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }
8110 fi
8111
8112   if test "x$ac_ct_RANLIB" = x; then
8113     RANLIB=":"
8114   else
8115     case $cross_compiling:$ac_tool_warned in
8116 yes:)
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8119 ac_tool_warned=yes ;;
8120 esac
8121     RANLIB=$ac_ct_RANLIB
8122   fi
8123 else
8124   RANLIB="$ac_cv_prog_RANLIB"
8125 fi
8126
8127 ranlib_flags=""
8128
8129
8130 # Find a good install program.  We prefer a C program (faster),
8131 # so one script is as good as another.  But avoid the broken or
8132 # incompatible versions:
8133 # SysV /etc/install, /usr/sbin/install
8134 # SunOS /usr/etc/install
8135 # IRIX /sbin/install
8136 # AIX /bin/install
8137 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8138 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8139 # ./install, which can be erroneously created by make from ./install.sh.
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8141 $as_echo_n "checking for a BSD compatible install... " >&6; }
8142 if test -z "$INSTALL"; then
8143 if ${ac_cv_path_install+:} false; then :
8144   $as_echo_n "(cached) " >&6
8145 else
8146     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8147   for ac_dir in $PATH; do
8148     # Account for people who put trailing slashes in PATH elements.
8149     case "$ac_dir/" in
8150     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8151     *)
8152       # OSF1 and SCO ODT 3.0 have their own names for install.
8153       for ac_prog in ginstall scoinst install; do
8154         if test -f $ac_dir/$ac_prog; then
8155           if test $ac_prog = install &&
8156             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8157             # AIX install.  It has an incompatible calling convention.
8158             # OSF/1 installbsd also uses dspmsg, but is usable.
8159             :
8160           else
8161             ac_cv_path_install="$ac_dir/$ac_prog -c"
8162             break 2
8163           fi
8164         fi
8165       done
8166       ;;
8167     esac
8168   done
8169   IFS="$ac_save_IFS"
8170
8171 fi
8172   if test "${ac_cv_path_install+set}" = set; then
8173     INSTALL="$ac_cv_path_install"
8174   else
8175     # As a last resort, use the slow shell script.  We don't cache a
8176     # path for INSTALL within a source directory, because that will
8177     # break other packages using the cache if that directory is
8178     # removed, or if the path is relative.
8179     INSTALL="$ac_install_sh"
8180   fi
8181 fi
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8183 $as_echo "$INSTALL" >&6; }
8184
8185 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8186 # It thinks the first close brace ends the variable substitution.
8187 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8188
8189 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8190
8191
8192 # See if cmp has --ignore-initial.
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8194 $as_echo_n "checking for cmp's capabilities... " >&6; }
8195 if ${gcc_cv_prog_cmp_skip+:} false; then :
8196   $as_echo_n "(cached) " >&6
8197 else
8198    echo abfoo >t1
8199   echo cdfoo >t2
8200   gcc_cv_prog_cmp_skip=slowcompare
8201   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8202     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8203       :
8204     else
8205       gcc_cv_prog_cmp_skip=gnucompare
8206     fi
8207   fi
8208   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8209     if cmp t1 t2 2 2 > /dev/null 2>&1; then
8210       if cmp t1 t2 1 1 > /dev/null 2>&1; then
8211         :
8212       else
8213         gcc_cv_prog_cmp_skip=fastcompare
8214       fi
8215     fi
8216   fi
8217   rm t1 t2
8218
8219 fi
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8221 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8222 make_compare_target=$gcc_cv_prog_cmp_skip
8223
8224
8225
8226 # See if we have the mktemp command.
8227 # Extract the first word of "mktemp", so it can be a program name with args.
8228 set dummy mktemp; ac_word=$2
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230 $as_echo_n "checking for $ac_word... " >&6; }
8231 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8232   $as_echo_n "(cached) " >&6
8233 else
8234   if test -n "$have_mktemp_command"; then
8235   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8236 else
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 for as_dir in $PATH
8239 do
8240   IFS=$as_save_IFS
8241   test -z "$as_dir" && as_dir=.
8242     for ac_exec_ext in '' $ac_executable_extensions; do
8243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8244     ac_cv_prog_have_mktemp_command="yes"
8245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8246     break 2
8247   fi
8248 done
8249   done
8250 IFS=$as_save_IFS
8251
8252   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8253 fi
8254 fi
8255 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8256 if test -n "$have_mktemp_command"; then
8257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8258 $as_echo "$have_mktemp_command" >&6; }
8259 else
8260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 $as_echo "no" >&6; }
8262 fi
8263
8264
8265
8266 # See if makeinfo has been installed and is modern enough
8267 # that we can use it.
8268
8269   # Extract the first word of "makeinfo", so it can be a program name with args.
8270 set dummy makeinfo; ac_word=$2
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 $as_echo_n "checking for $ac_word... " >&6; }
8273 if ${ac_cv_prog_MAKEINFO+:} false; then :
8274   $as_echo_n "(cached) " >&6
8275 else
8276   if test -n "$MAKEINFO"; then
8277   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8278 else
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 for as_dir in $PATH
8281 do
8282   IFS=$as_save_IFS
8283   test -z "$as_dir" && as_dir=.
8284     for ac_exec_ext in '' $ac_executable_extensions; do
8285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8286     ac_cv_prog_MAKEINFO="makeinfo"
8287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8288     break 2
8289   fi
8290 done
8291   done
8292 IFS=$as_save_IFS
8293
8294 fi
8295 fi
8296 MAKEINFO=$ac_cv_prog_MAKEINFO
8297 if test -n "$MAKEINFO"; then
8298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8299 $as_echo "$MAKEINFO" >&6; }
8300 else
8301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 $as_echo "no" >&6; }
8303 fi
8304
8305
8306   if test -n "$MAKEINFO"; then
8307     # Found it, now check the version.
8308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8309 $as_echo_n "checking for modern makeinfo... " >&6; }
8310 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8311   $as_echo_n "(cached) " >&6
8312 else
8313   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8314                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8315
8316                     case $ac_prog_version in
8317                       '')  gcc_cv_prog_makeinfo_modern=no;;
8318                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
8319                       *)   gcc_cv_prog_makeinfo_modern=no;;
8320                     esac
8321
8322 fi
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8324 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8325   else
8326     gcc_cv_prog_makeinfo_modern=no
8327   fi
8328   if test $gcc_cv_prog_makeinfo_modern = no; then
8329     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8330   fi
8331
8332 if test $gcc_cv_prog_makeinfo_modern = no; then
8333   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8334 *** Makeinfo is missing or too old.
8335 *** Info documentation will not be built." >&5
8336 $as_echo "$as_me: WARNING:
8337 *** Makeinfo is missing or too old.
8338 *** Info documentation will not be built." >&2;}
8339   BUILD_INFO=
8340 else
8341   BUILD_INFO=info
8342 fi
8343
8344
8345 # Is pod2man recent enough to regenerate manpages?
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8347 $as_echo_n "checking for recent Pod::Man... " >&6; }
8348 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8350 $as_echo "yes" >&6; }
8351   GENERATED_MANPAGES=generated-manpages
8352 else
8353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354 $as_echo "no" >&6; }
8355   GENERATED_MANPAGES=
8356 fi
8357
8358
8359 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8360
8361 # How about lex?
8362 for ac_prog in flex
8363 do
8364   # Extract the first word of "$ac_prog", so it can be a program name with args.
8365 set dummy $ac_prog; ac_word=$2
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367 $as_echo_n "checking for $ac_word... " >&6; }
8368 if ${ac_cv_prog_FLEX+:} false; then :
8369   $as_echo_n "(cached) " >&6
8370 else
8371   if test -n "$FLEX"; then
8372   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8373 else
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 for as_dir in $PATH
8376 do
8377   IFS=$as_save_IFS
8378   test -z "$as_dir" && as_dir=.
8379     for ac_exec_ext in '' $ac_executable_extensions; do
8380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8381     ac_cv_prog_FLEX="$ac_prog"
8382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8383     break 2
8384   fi
8385 done
8386   done
8387 IFS=$as_save_IFS
8388
8389 fi
8390 fi
8391 FLEX=$ac_cv_prog_FLEX
8392 if test -n "$FLEX"; then
8393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8394 $as_echo "$FLEX" >&6; }
8395 else
8396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 $as_echo "no" >&6; }
8398 fi
8399
8400
8401   test -n "$FLEX" && break
8402 done
8403 test -n "$FLEX" || FLEX="$MISSING flex"
8404
8405
8406 # Bison?
8407 for ac_prog in bison
8408 do
8409   # Extract the first word of "$ac_prog", so it can be a program name with args.
8410 set dummy $ac_prog; ac_word=$2
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412 $as_echo_n "checking for $ac_word... " >&6; }
8413 if ${ac_cv_prog_BISON+:} false; then :
8414   $as_echo_n "(cached) " >&6
8415 else
8416   if test -n "$BISON"; then
8417   ac_cv_prog_BISON="$BISON" # Let the user override the test.
8418 else
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8421 do
8422   IFS=$as_save_IFS
8423   test -z "$as_dir" && as_dir=.
8424     for ac_exec_ext in '' $ac_executable_extensions; do
8425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8426     ac_cv_prog_BISON="$ac_prog"
8427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8428     break 2
8429   fi
8430 done
8431   done
8432 IFS=$as_save_IFS
8433
8434 fi
8435 fi
8436 BISON=$ac_cv_prog_BISON
8437 if test -n "$BISON"; then
8438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8439 $as_echo "$BISON" >&6; }
8440 else
8441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442 $as_echo "no" >&6; }
8443 fi
8444
8445
8446   test -n "$BISON" && break
8447 done
8448 test -n "$BISON" || BISON="$MISSING bison"
8449
8450
8451 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8452 # check for build == host before using them.
8453
8454 # NM
8455 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8456   && test -d ../binutils ; then
8457   NM='${objdir}/../binutils/nm-new'
8458 else
8459   # Extract the first word of "nm", so it can be a program name with args.
8460 set dummy nm; ac_word=$2
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 $as_echo_n "checking for $ac_word... " >&6; }
8463 if ${ac_cv_prog_NM+:} false; then :
8464   $as_echo_n "(cached) " >&6
8465 else
8466   if test -n "$NM"; then
8467   ac_cv_prog_NM="$NM" # Let the user override the test.
8468 else
8469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470 for as_dir in $PATH
8471 do
8472   IFS=$as_save_IFS
8473   test -z "$as_dir" && as_dir=.
8474     for ac_exec_ext in '' $ac_executable_extensions; do
8475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8476     ac_cv_prog_NM="nm"
8477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8478     break 2
8479   fi
8480 done
8481   done
8482 IFS=$as_save_IFS
8483
8484   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8485 fi
8486 fi
8487 NM=$ac_cv_prog_NM
8488 if test -n "$NM"; then
8489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8490 $as_echo "$NM" >&6; }
8491 else
8492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 $as_echo "no" >&6; }
8494 fi
8495
8496
8497 fi
8498
8499 # AR
8500 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8501   && test -d ../binutils ; then
8502   AR='${objdir}/../binutils/ar'
8503 else
8504   # Extract the first word of "ar", so it can be a program name with args.
8505 set dummy ar; ac_word=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if ${ac_cv_prog_AR+:} false; then :
8509   $as_echo_n "(cached) " >&6
8510 else
8511   if test -n "$AR"; then
8512   ac_cv_prog_AR="$AR" # Let the user override the test.
8513 else
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 for as_dir in $PATH
8516 do
8517   IFS=$as_save_IFS
8518   test -z "$as_dir" && as_dir=.
8519     for ac_exec_ext in '' $ac_executable_extensions; do
8520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8521     ac_cv_prog_AR="ar"
8522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523     break 2
8524   fi
8525 done
8526   done
8527 IFS=$as_save_IFS
8528
8529   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8530 fi
8531 fi
8532 AR=$ac_cv_prog_AR
8533 if test -n "$AR"; then
8534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8535 $as_echo "$AR" >&6; }
8536 else
8537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8539 fi
8540
8541
8542 fi
8543
8544 # The jit documentation looks better if built with sphinx, but can be
8545 # built with texinfo if sphinx is not available.
8546 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8547 # Extract the first word of "sphinx-build", so it can be a program name with args.
8548 set dummy sphinx-build; ac_word=$2
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550 $as_echo_n "checking for $ac_word... " >&6; }
8551 if ${ac_cv_prog_doc_build_sys+:} false; then :
8552   $as_echo_n "(cached) " >&6
8553 else
8554   if test -n "$doc_build_sys"; then
8555   ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8556 else
8557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558 for as_dir in $PATH
8559 do
8560   IFS=$as_save_IFS
8561   test -z "$as_dir" && as_dir=.
8562     for ac_exec_ext in '' $ac_executable_extensions; do
8563   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8564     ac_cv_prog_doc_build_sys="sphinx"
8565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8566     break 2
8567   fi
8568 done
8569   done
8570 IFS=$as_save_IFS
8571
8572   test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8573 fi
8574 fi
8575 doc_build_sys=$ac_cv_prog_doc_build_sys
8576 if test -n "$doc_build_sys"; then
8577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8578 $as_echo "$doc_build_sys" >&6; }
8579 else
8580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8582 fi
8583
8584
8585
8586 # --------------------
8587 # Checks for C headers
8588 # --------------------
8589
8590 # Need to reject headers which give warnings, so that the -Werror bootstrap
8591 # works later. *sigh*  This needs to come before all header checks.
8592
8593 ac_c_preproc_warn_flag=yes
8594
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8596 $as_echo_n "checking for ANSI C header files... " >&6; }
8597 if ${ac_cv_header_stdc+:} false; then :
8598   $as_echo_n "(cached) " >&6
8599 else
8600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h.  */
8602 #include <stdlib.h>
8603 #include <stdarg.h>
8604 #include <string.h>
8605 #include <float.h>
8606
8607 int
8608 main ()
8609 {
8610
8611   ;
8612   return 0;
8613 }
8614 _ACEOF
8615 if ac_fn_cxx_try_compile "$LINENO"; then :
8616   ac_cv_header_stdc=yes
8617 else
8618   ac_cv_header_stdc=no
8619 fi
8620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621
8622 if test $ac_cv_header_stdc = yes; then
8623   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h.  */
8626 #include <string.h>
8627
8628 _ACEOF
8629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8630   $EGREP "memchr" >/dev/null 2>&1; then :
8631
8632 else
8633   ac_cv_header_stdc=no
8634 fi
8635 rm -f conftest*
8636
8637 fi
8638
8639 if test $ac_cv_header_stdc = yes; then
8640   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h.  */
8643 #include <stdlib.h>
8644
8645 _ACEOF
8646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8647   $EGREP "free" >/dev/null 2>&1; then :
8648
8649 else
8650   ac_cv_header_stdc=no
8651 fi
8652 rm -f conftest*
8653
8654 fi
8655
8656 if test $ac_cv_header_stdc = yes; then
8657   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8658   if test "$cross_compiling" = yes; then :
8659   :
8660 else
8661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h.  */
8663 #include <ctype.h>
8664 #include <stdlib.h>
8665 #if ((' ' & 0x0FF) == 0x020)
8666 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8667 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8668 #else
8669 # define ISLOWER(c) \
8670                    (('a' <= (c) && (c) <= 'i') \
8671                      || ('j' <= (c) && (c) <= 'r') \
8672                      || ('s' <= (c) && (c) <= 'z'))
8673 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8674 #endif
8675
8676 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8677 int
8678 main ()
8679 {
8680   int i;
8681   for (i = 0; i < 256; i++)
8682     if (XOR (islower (i), ISLOWER (i))
8683         || toupper (i) != TOUPPER (i))
8684       return 2;
8685   return 0;
8686 }
8687 _ACEOF
8688 if ac_fn_cxx_try_run "$LINENO"; then :
8689
8690 else
8691   ac_cv_header_stdc=no
8692 fi
8693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8694   conftest.$ac_objext conftest.beam conftest.$ac_ext
8695 fi
8696
8697 fi
8698 fi
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8700 $as_echo "$ac_cv_header_stdc" >&6; }
8701 if test $ac_cv_header_stdc = yes; then
8702
8703 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8704
8705 fi
8706
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8708 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8709 if ${ac_cv_header_time+:} false; then :
8710   $as_echo_n "(cached) " >&6
8711 else
8712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h.  */
8714 #include <sys/types.h>
8715 #include <sys/time.h>
8716 #include <time.h>
8717
8718 int
8719 main ()
8720 {
8721 if ((struct tm *) 0)
8722 return 0;
8723   ;
8724   return 0;
8725 }
8726 _ACEOF
8727 if ac_fn_cxx_try_compile "$LINENO"; then :
8728   ac_cv_header_time=yes
8729 else
8730   ac_cv_header_time=no
8731 fi
8732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733 fi
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8735 $as_echo "$ac_cv_header_time" >&6; }
8736 if test $ac_cv_header_time = yes; then
8737
8738 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8739
8740 fi
8741
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8743 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8744 if ${gcc_cv_header_string+:} false; then :
8745   $as_echo_n "(cached) " >&6
8746 else
8747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h.  */
8749 #include <string.h>
8750 #include <strings.h>
8751 int
8752 main ()
8753 {
8754
8755   ;
8756   return 0;
8757 }
8758 _ACEOF
8759 if ac_fn_cxx_try_compile "$LINENO"; then :
8760   gcc_cv_header_string=yes
8761 else
8762   gcc_cv_header_string=no
8763 fi
8764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765 fi
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8767 $as_echo "$gcc_cv_header_string" >&6; }
8768 if test $gcc_cv_header_string = yes; then
8769
8770 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8771
8772 fi
8773
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8775 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8776 if ${ac_cv_header_sys_wait_h+:} false; then :
8777   $as_echo_n "(cached) " >&6
8778 else
8779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h.  */
8781 #include <sys/types.h>
8782 #include <sys/wait.h>
8783 #ifndef WEXITSTATUS
8784 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8785 #endif
8786 #ifndef WIFEXITED
8787 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8788 #endif
8789
8790 int
8791 main ()
8792 {
8793   int s;
8794   wait (&s);
8795   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8796   ;
8797   return 0;
8798 }
8799 _ACEOF
8800 if ac_fn_cxx_try_compile "$LINENO"; then :
8801   ac_cv_header_sys_wait_h=yes
8802 else
8803   ac_cv_header_sys_wait_h=no
8804 fi
8805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8806 fi
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8808 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8809 if test $ac_cv_header_sys_wait_h = yes; then
8810
8811 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8812
8813 fi
8814
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8816 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8817 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8818   $as_echo_n "(cached) " >&6
8819 else
8820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h.  */
8822 #include <sys/types.h>
8823 #include <termios.h>
8824 #ifdef TIOCGWINSZ
8825   yes
8826 #endif
8827
8828 _ACEOF
8829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8830   $EGREP "yes" >/dev/null 2>&1; then :
8831   ac_cv_sys_tiocgwinsz_in_termios_h=yes
8832 else
8833   ac_cv_sys_tiocgwinsz_in_termios_h=no
8834 fi
8835 rm -f conftest*
8836
8837 fi
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8839 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8840
8841 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8843 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8844 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8845   $as_echo_n "(cached) " >&6
8846 else
8847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h.  */
8849 #include <sys/types.h>
8850 #include <sys/ioctl.h>
8851 #ifdef TIOCGWINSZ
8852   yes
8853 #endif
8854
8855 _ACEOF
8856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8857   $EGREP "yes" >/dev/null 2>&1; then :
8858   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8859 else
8860   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8861 fi
8862 rm -f conftest*
8863
8864 fi
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8866 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8867
8868   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8869
8870 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8871
8872   fi
8873 fi
8874
8875 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8876                  fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8877                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8878                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8879 do :
8880   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8881 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8882 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8883   cat >>confdefs.h <<_ACEOF
8884 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8885 _ACEOF
8886
8887 fi
8888 done
8889
8890
8891 # Check for thread headers.
8892 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8893 if test "x$ac_cv_header_thread_h" = xyes; then :
8894   have_thread_h=yes
8895 else
8896   have_thread_h=
8897 fi
8898
8899 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8900 if test "x$ac_cv_header_pthread_h" = xyes; then :
8901   have_pthread_h=yes
8902 else
8903   have_pthread_h=
8904 fi
8905
8906
8907 # These tests can't be done till we know if we have limits.h.
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8909 $as_echo_n "checking for CHAR_BIT... " >&6; }
8910 if ${gcc_cv_decl_char_bit+:} false; then :
8911   $as_echo_n "(cached) " >&6
8912 else
8913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h.  */
8915 #ifdef HAVE_LIMITS_H
8916 #include <limits.h>
8917 #endif
8918 #ifdef CHAR_BIT
8919 found
8920 #endif
8921 _ACEOF
8922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8923   $EGREP "found" >/dev/null 2>&1; then :
8924   gcc_cv_decl_char_bit=yes
8925 else
8926   gcc_cv_decl_char_bit=no
8927 fi
8928 rm -f conftest*
8929
8930
8931 fi
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8933 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8934 if test $gcc_cv_decl_char_bit = no; then
8935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8936 $as_echo_n "checking number of bits in a byte... " >&6; }
8937 if ${gcc_cv_c_nbby+:} false; then :
8938   $as_echo_n "(cached) " >&6
8939 else
8940   i=8
8941  gcc_cv_c_nbby=
8942  while test $i -lt 65; do
8943    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h.  */
8945
8946 int
8947 main ()
8948 {
8949 switch(0) {
8950   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8951   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8952   ; }
8953   ;
8954   return 0;
8955 }
8956 _ACEOF
8957 if ac_fn_cxx_try_compile "$LINENO"; then :
8958   gcc_cv_c_nbby=$i; break
8959 fi
8960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8961    i=`expr $i + 1`
8962  done
8963  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8964
8965 fi
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8967 $as_echo "$gcc_cv_c_nbby" >&6; }
8968 if test $gcc_cv_c_nbby = failed; then
8969   as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
8970 else
8971
8972 cat >>confdefs.h <<_ACEOF
8973 #define CHAR_BIT $gcc_cv_c_nbby
8974 _ACEOF
8975
8976 fi
8977 fi
8978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8979 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8980 if ${ac_cv_c_bigendian+:} false; then :
8981   $as_echo_n "(cached) " >&6
8982 else
8983   ac_cv_c_bigendian=unknown
8984     # See if we're dealing with a universal compiler.
8985     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h.  */
8987 #ifndef __APPLE_CC__
8988                not a universal capable compiler
8989              #endif
8990              typedef int dummy;
8991
8992 _ACEOF
8993 if ac_fn_cxx_try_compile "$LINENO"; then :
8994
8995         # Check for potential -arch flags.  It is not universal unless
8996         # there are at least two -arch flags with different values.
8997         ac_arch=
8998         ac_prev=
8999         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9000          if test -n "$ac_prev"; then
9001            case $ac_word in
9002              i?86 | x86_64 | ppc | ppc64)
9003                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9004                  ac_arch=$ac_word
9005                else
9006                  ac_cv_c_bigendian=universal
9007                  break
9008                fi
9009                ;;
9010            esac
9011            ac_prev=
9012          elif test "x$ac_word" = "x-arch"; then
9013            ac_prev=arch
9014          fi
9015        done
9016 fi
9017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9018     if test $ac_cv_c_bigendian = unknown; then
9019       # See if sys/param.h defines the BYTE_ORDER macro.
9020       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h.  */
9022 #include <sys/types.h>
9023              #include <sys/param.h>
9024
9025 int
9026 main ()
9027 {
9028 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9029                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9030                      && LITTLE_ENDIAN)
9031               bogus endian macros
9032              #endif
9033
9034   ;
9035   return 0;
9036 }
9037 _ACEOF
9038 if ac_fn_cxx_try_compile "$LINENO"; then :
9039   # It does; now see whether it defined to BIG_ENDIAN or not.
9040          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h.  */
9042 #include <sys/types.h>
9043                 #include <sys/param.h>
9044
9045 int
9046 main ()
9047 {
9048 #if BYTE_ORDER != BIG_ENDIAN
9049                  not big endian
9050                 #endif
9051
9052   ;
9053   return 0;
9054 }
9055 _ACEOF
9056 if ac_fn_cxx_try_compile "$LINENO"; then :
9057   ac_cv_c_bigendian=yes
9058 else
9059   ac_cv_c_bigendian=no
9060 fi
9061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9062 fi
9063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9064     fi
9065     if test $ac_cv_c_bigendian = unknown; then
9066       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9067       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h.  */
9069 #include <limits.h>
9070
9071 int
9072 main ()
9073 {
9074 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9075               bogus endian macros
9076              #endif
9077
9078   ;
9079   return 0;
9080 }
9081 _ACEOF
9082 if ac_fn_cxx_try_compile "$LINENO"; then :
9083   # It does; now see whether it defined to _BIG_ENDIAN or not.
9084          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h.  */
9086 #include <limits.h>
9087
9088 int
9089 main ()
9090 {
9091 #ifndef _BIG_ENDIAN
9092                  not big endian
9093                 #endif
9094
9095   ;
9096   return 0;
9097 }
9098 _ACEOF
9099 if ac_fn_cxx_try_compile "$LINENO"; then :
9100   ac_cv_c_bigendian=yes
9101 else
9102   ac_cv_c_bigendian=no
9103 fi
9104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9105 fi
9106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9107     fi
9108     if test $ac_cv_c_bigendian = unknown; then
9109       # Compile a test program.
9110       if test "$cross_compiling" = yes; then :
9111   # Try to guess by grepping values from an object file.
9112          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h.  */
9114 short int ascii_mm[] =
9115                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9116                 short int ascii_ii[] =
9117                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9118                 int use_ascii (int i) {
9119                   return ascii_mm[i] + ascii_ii[i];
9120                 }
9121                 short int ebcdic_ii[] =
9122                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9123                 short int ebcdic_mm[] =
9124                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9125                 int use_ebcdic (int i) {
9126                   return ebcdic_mm[i] + ebcdic_ii[i];
9127                 }
9128                 extern int foo;
9129
9130 int
9131 main ()
9132 {
9133 return use_ascii (foo) == use_ebcdic (foo);
9134   ;
9135   return 0;
9136 }
9137 _ACEOF
9138 if ac_fn_cxx_try_compile "$LINENO"; then :
9139   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9140               ac_cv_c_bigendian=yes
9141             fi
9142             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9143               if test "$ac_cv_c_bigendian" = unknown; then
9144                 ac_cv_c_bigendian=no
9145               else
9146                 # finding both strings is unlikely to happen, but who knows?
9147                 ac_cv_c_bigendian=unknown
9148               fi
9149             fi
9150 fi
9151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152 else
9153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h.  */
9155 $ac_includes_default
9156 int
9157 main ()
9158 {
9159
9160              /* Are we little or big endian?  From Harbison&Steele.  */
9161              union
9162              {
9163                long int l;
9164                char c[sizeof (long int)];
9165              } u;
9166              u.l = 1;
9167              return u.c[sizeof (long int) - 1] == 1;
9168
9169   ;
9170   return 0;
9171 }
9172 _ACEOF
9173 if ac_fn_cxx_try_run "$LINENO"; then :
9174   ac_cv_c_bigendian=no
9175 else
9176   ac_cv_c_bigendian=yes
9177 fi
9178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9179   conftest.$ac_objext conftest.beam conftest.$ac_ext
9180 fi
9181
9182     fi
9183 fi
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9185 $as_echo "$ac_cv_c_bigendian" >&6; }
9186  case $ac_cv_c_bigendian in #(
9187    yes)
9188      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9189 ;; #(
9190    no)
9191       ;; #(
9192    universal)
9193
9194 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9195
9196      ;; #(
9197    *)
9198      as_fn_error $? "unknown endianness
9199  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9200  esac
9201
9202
9203 # ----------------------
9204 # Checks for C++ headers
9205 # ----------------------
9206
9207 ac_ext=cpp
9208 ac_cpp='$CXXCPP $CPPFLAGS'
9209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9213 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9214 if test -z "$CXXCPP"; then
9215   if ${ac_cv_prog_CXXCPP+:} false; then :
9216   $as_echo_n "(cached) " >&6
9217 else
9218       # Double quotes because CXXCPP needs to be expanded
9219     for CXXCPP in "$CXX -E" "/lib/cpp"
9220     do
9221       ac_preproc_ok=false
9222 for ac_cxx_preproc_warn_flag in '' yes
9223 do
9224   # Use a header file that comes with gcc, so configuring glibc
9225   # with a fresh cross-compiler works.
9226   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9227   # <limits.h> exists even on freestanding compilers.
9228   # On the NeXT, cc -E runs the code through the compiler's parser,
9229   # not just through cpp. "Syntax error" is here to catch this case.
9230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h.  */
9232 #ifdef __STDC__
9233 # include <limits.h>
9234 #else
9235 # include <assert.h>
9236 #endif
9237                      Syntax error
9238 _ACEOF
9239 if ac_fn_cxx_try_cpp "$LINENO"; then :
9240
9241 else
9242   # Broken: fails on valid input.
9243 continue
9244 fi
9245 rm -f conftest.err conftest.i conftest.$ac_ext
9246
9247   # OK, works on sane cases.  Now check whether nonexistent headers
9248   # can be detected and how.
9249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250 /* end confdefs.h.  */
9251 #include <ac_nonexistent.h>
9252 _ACEOF
9253 if ac_fn_cxx_try_cpp "$LINENO"; then :
9254   # Broken: success on invalid input.
9255 continue
9256 else
9257   # Passes both tests.
9258 ac_preproc_ok=:
9259 break
9260 fi
9261 rm -f conftest.err conftest.i conftest.$ac_ext
9262
9263 done
9264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9265 rm -f conftest.i conftest.err conftest.$ac_ext
9266 if $ac_preproc_ok; then :
9267   break
9268 fi
9269
9270     done
9271     ac_cv_prog_CXXCPP=$CXXCPP
9272
9273 fi
9274   CXXCPP=$ac_cv_prog_CXXCPP
9275 else
9276   ac_cv_prog_CXXCPP=$CXXCPP
9277 fi
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9279 $as_echo "$CXXCPP" >&6; }
9280 ac_preproc_ok=false
9281 for ac_cxx_preproc_warn_flag in '' yes
9282 do
9283   # Use a header file that comes with gcc, so configuring glibc
9284   # with a fresh cross-compiler works.
9285   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9286   # <limits.h> exists even on freestanding compilers.
9287   # On the NeXT, cc -E runs the code through the compiler's parser,
9288   # not just through cpp. "Syntax error" is here to catch this case.
9289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9290 /* end confdefs.h.  */
9291 #ifdef __STDC__
9292 # include <limits.h>
9293 #else
9294 # include <assert.h>
9295 #endif
9296                      Syntax error
9297 _ACEOF
9298 if ac_fn_cxx_try_cpp "$LINENO"; then :
9299
9300 else
9301   # Broken: fails on valid input.
9302 continue
9303 fi
9304 rm -f conftest.err conftest.i conftest.$ac_ext
9305
9306   # OK, works on sane cases.  Now check whether nonexistent headers
9307   # can be detected and how.
9308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h.  */
9310 #include <ac_nonexistent.h>
9311 _ACEOF
9312 if ac_fn_cxx_try_cpp "$LINENO"; then :
9313   # Broken: success on invalid input.
9314 continue
9315 else
9316   # Passes both tests.
9317 ac_preproc_ok=:
9318 break
9319 fi
9320 rm -f conftest.err conftest.i conftest.$ac_ext
9321
9322 done
9323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9324 rm -f conftest.i conftest.err conftest.$ac_ext
9325 if $ac_preproc_ok; then :
9326
9327 else
9328   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9331 See \`config.log' for more details" >&5
9332 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9333 See \`config.log' for more details" >&2;}; }
9334 fi
9335
9336 ac_ext=cpp
9337 ac_cpp='$CXXCPP $CPPFLAGS'
9338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9341
9342
9343 for ac_header in unordered_map
9344 do :
9345   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9346 if test "x$ac_cv_header_unordered_map" = xyes; then :
9347   cat >>confdefs.h <<_ACEOF
9348 #define HAVE_UNORDERED_MAP 1
9349 _ACEOF
9350
9351 fi
9352 done
9353
9354 for ac_header in tr1/unordered_map
9355 do :
9356   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9357 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9358   cat >>confdefs.h <<_ACEOF
9359 #define HAVE_TR1_UNORDERED_MAP 1
9360 _ACEOF
9361
9362 fi
9363 done
9364
9365 for ac_header in ext/hash_map
9366 do :
9367   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9368 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9369   cat >>confdefs.h <<_ACEOF
9370 #define HAVE_EXT_HASH_MAP 1
9371 _ACEOF
9372
9373 fi
9374 done
9375
9376
9377 # --------
9378 # Dependency checking.
9379 # --------
9380
9381 rm -rf .tst 2>/dev/null
9382 mkdir .tst 2>/dev/null
9383 if test -d .tst; then
9384   am__leading_dot=.
9385 else
9386   am__leading_dot=_
9387 fi
9388 rmdir .tst 2>/dev/null
9389
9390 DEPDIR="${am__leading_dot}deps"
9391
9392 ac_config_commands="$ac_config_commands depdir"
9393
9394
9395 ac_config_commands="$ac_config_commands gccdepdir"
9396
9397
9398 depcc="$CXX"  am_compiler_list=
9399
9400 am_depcomp=$ac_aux_dir/depcomp
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9402 $as_echo_n "checking dependency style of $depcc... " >&6; }
9403 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9404   $as_echo_n "(cached) " >&6
9405 else
9406   if test -f "$am_depcomp"; then
9407   # We make a subdir and do the tests there.  Otherwise we can end up
9408   # making bogus files that we don't know about and never remove.  For
9409   # instance it was reported that on HP-UX the gcc test will end up
9410   # making a dummy file named `D' -- because `-MD' means `put the output
9411   # in D'.
9412   mkdir conftest.dir
9413   # Copy depcomp to subdir because otherwise we won't find it if we're
9414   # using a relative directory.
9415   cp "$am_depcomp" conftest.dir
9416   cd conftest.dir
9417   # We will build objects and dependencies in a subdirectory because
9418   # it helps to detect inapplicable dependency modes.  For instance
9419   # both Tru64's cc and ICC support -MD to output dependencies as a
9420   # side effect of compilation, but ICC will put the dependencies in
9421   # the current directory while Tru64 will put them in the object
9422   # directory.
9423   mkdir sub
9424
9425   am_cv_CXX_dependencies_compiler_type=none
9426   if test "$am_compiler_list" = ""; then
9427      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9428   fi
9429   for depmode in $am_compiler_list; do
9430     if test $depmode = none; then break; fi
9431
9432     $as_echo "$as_me:$LINENO: trying $depmode" >&5
9433     # Setup a source with many dependencies, because some compilers
9434     # like to wrap large dependency lists on column 80 (with \), and
9435     # we should not choose a depcomp mode which is confused by this.
9436     #
9437     # We need to recreate these files for each test, as the compiler may
9438     # overwrite some of them when testing with obscure command lines.
9439     # This happens at least with the AIX C compiler.
9440     : > sub/conftest.c
9441     for i in 1 2 3 4 5 6; do
9442       echo '#include "conftst'$i'.h"' >> sub/conftest.c
9443       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9444       # Solaris 8's {/usr,}/bin/sh.
9445       touch sub/conftst$i.h
9446     done
9447     echo "include sub/conftest.Po" > confmf
9448
9449     # We check with `-c' and `-o' for the sake of the "dashmstdout"
9450     # mode.  It turns out that the SunPro C++ compiler does not properly
9451     # handle `-M -o', and we need to detect this.
9452     depcmd="depmode=$depmode \
9453        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9454        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9455        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9456     echo "| $depcmd" | sed -e 's/  */ /g' >&5
9457     if env $depcmd > conftest.err 2>&1 &&
9458        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9459        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9460        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9461       # icc doesn't choke on unknown options, it will just issue warnings
9462       # or remarks (even with -Werror).  So we grep stderr for any message
9463       # that says an option was ignored or not supported.
9464       # When given -MP, icc 7.0 and 7.1 complain thusly:
9465       #   icc: Command line warning: ignoring option '-M'; no argument required
9466       # The diagnosis changed in icc 8.0:
9467       #   icc: Command line remark: option '-MP' not supported
9468       if (grep 'ignoring option' conftest.err ||
9469           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9470         am_cv_CXX_dependencies_compiler_type=$depmode
9471         $as_echo "$as_me:$LINENO: success" >&5
9472         break
9473       fi
9474     fi
9475     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9476     sed -e 's/^/| /' < conftest.err >&5
9477   done
9478
9479   cd ..
9480   rm -rf conftest.dir
9481 else
9482   am_cv_CXX_dependencies_compiler_type=none
9483 fi
9484
9485 fi
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9487 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9488 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9489 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9490 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9491
9492 fi
9493
9494
9495 # --------
9496 # UNSORTED
9497 # --------
9498
9499
9500 # These libraries may be used by collect2.
9501 # We may need a special search path to get them linked.
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9503 $as_echo_n "checking for collect2 libraries... " >&6; }
9504 if ${gcc_cv_collect2_libs+:} false; then :
9505   $as_echo_n "(cached) " >&6
9506 else
9507   save_LIBS="$LIBS"
9508 for libs in '' -lld -lmld \
9509                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9510                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9511 do
9512         LIBS="$libs"
9513         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h.  */
9515
9516 /* Override any GCC internal prototype to avoid an error.
9517    Use char because int might match the return type of a GCC
9518    builtin and then its argument prototype would still apply.  */
9519 #ifdef __cplusplus
9520 extern "C"
9521 #endif
9522 char ldopen ();
9523 int
9524 main ()
9525 {
9526 return ldopen ();
9527   ;
9528   return 0;
9529 }
9530 _ACEOF
9531 if ac_fn_cxx_try_link "$LINENO"; then :
9532   gcc_cv_collect2_libs="$libs"; break
9533 fi
9534 rm -f core conftest.err conftest.$ac_objext \
9535     conftest$ac_exeext conftest.$ac_ext
9536 done
9537 LIBS="$save_LIBS"
9538 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9539 fi
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9541 $as_echo "$gcc_cv_collect2_libs" >&6; }
9542 case $gcc_cv_collect2_libs in
9543         "none required")        ;;
9544         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9545 esac
9546
9547
9548 # When building Ada code on Alpha, we need exc_resume which is usually in
9549 # -lexc.  So test for it.
9550 save_LIBS="$LIBS"
9551 LIBS=
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9553 $as_echo_n "checking for library containing exc_resume... " >&6; }
9554 if ${ac_cv_search_exc_resume+:} false; then :
9555   $as_echo_n "(cached) " >&6
9556 else
9557   ac_func_search_save_LIBS=$LIBS
9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h.  */
9560
9561 /* Override any GCC internal prototype to avoid an error.
9562    Use char because int might match the return type of a GCC
9563    builtin and then its argument prototype would still apply.  */
9564 #ifdef __cplusplus
9565 extern "C"
9566 #endif
9567 char exc_resume ();
9568 int
9569 main ()
9570 {
9571 return exc_resume ();
9572   ;
9573   return 0;
9574 }
9575 _ACEOF
9576 for ac_lib in '' exc; do
9577   if test -z "$ac_lib"; then
9578     ac_res="none required"
9579   else
9580     ac_res=-l$ac_lib
9581     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9582   fi
9583   if ac_fn_cxx_try_link "$LINENO"; then :
9584   ac_cv_search_exc_resume=$ac_res
9585 fi
9586 rm -f core conftest.err conftest.$ac_objext \
9587     conftest$ac_exeext
9588   if ${ac_cv_search_exc_resume+:} false; then :
9589   break
9590 fi
9591 done
9592 if ${ac_cv_search_exc_resume+:} false; then :
9593
9594 else
9595   ac_cv_search_exc_resume=no
9596 fi
9597 rm conftest.$ac_ext
9598 LIBS=$ac_func_search_save_LIBS
9599 fi
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9601 $as_echo "$ac_cv_search_exc_resume" >&6; }
9602 ac_res=$ac_cv_search_exc_resume
9603 if test "$ac_res" != no; then :
9604   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9605
9606 fi
9607
9608 GNAT_LIBEXC="$LIBS"
9609 LIBS="$save_LIBS"
9610
9611
9612 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9613 save_LIBS="$LIBS"
9614 LIBS=
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9616 $as_echo_n "checking for library containing kstat_open... " >&6; }
9617 if ${ac_cv_search_kstat_open+:} false; then :
9618   $as_echo_n "(cached) " >&6
9619 else
9620   ac_func_search_save_LIBS=$LIBS
9621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h.  */
9623
9624 /* Override any GCC internal prototype to avoid an error.
9625    Use char because int might match the return type of a GCC
9626    builtin and then its argument prototype would still apply.  */
9627 #ifdef __cplusplus
9628 extern "C"
9629 #endif
9630 char kstat_open ();
9631 int
9632 main ()
9633 {
9634 return kstat_open ();
9635   ;
9636   return 0;
9637 }
9638 _ACEOF
9639 for ac_lib in '' kstat; do
9640   if test -z "$ac_lib"; then
9641     ac_res="none required"
9642   else
9643     ac_res=-l$ac_lib
9644     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9645   fi
9646   if ac_fn_cxx_try_link "$LINENO"; then :
9647   ac_cv_search_kstat_open=$ac_res
9648 fi
9649 rm -f core conftest.err conftest.$ac_objext \
9650     conftest$ac_exeext
9651   if ${ac_cv_search_kstat_open+:} false; then :
9652   break
9653 fi
9654 done
9655 if ${ac_cv_search_kstat_open+:} false; then :
9656
9657 else
9658   ac_cv_search_kstat_open=no
9659 fi
9660 rm conftest.$ac_ext
9661 LIBS=$ac_func_search_save_LIBS
9662 fi
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9664 $as_echo "$ac_cv_search_kstat_open" >&6; }
9665 ac_res=$ac_cv_search_kstat_open
9666 if test "$ac_res" != no; then :
9667   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9668
9669 fi
9670
9671 EXTRA_GCC_LIBS="$LIBS"
9672 LIBS="$save_LIBS"
9673
9674
9675 # Some systems put ldexp and frexp in libm instead of libc; assume
9676 # they're both in the same place.  jcf-dump needs them.
9677 save_LIBS="$LIBS"
9678 LIBS=
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9680 $as_echo_n "checking for library containing ldexp... " >&6; }
9681 if ${ac_cv_search_ldexp+:} false; then :
9682   $as_echo_n "(cached) " >&6
9683 else
9684   ac_func_search_save_LIBS=$LIBS
9685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686 /* end confdefs.h.  */
9687
9688 /* Override any GCC internal prototype to avoid an error.
9689    Use char because int might match the return type of a GCC
9690    builtin and then its argument prototype would still apply.  */
9691 #ifdef __cplusplus
9692 extern "C"
9693 #endif
9694 char ldexp ();
9695 int
9696 main ()
9697 {
9698 return ldexp ();
9699   ;
9700   return 0;
9701 }
9702 _ACEOF
9703 for ac_lib in '' m; do
9704   if test -z "$ac_lib"; then
9705     ac_res="none required"
9706   else
9707     ac_res=-l$ac_lib
9708     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9709   fi
9710   if ac_fn_cxx_try_link "$LINENO"; then :
9711   ac_cv_search_ldexp=$ac_res
9712 fi
9713 rm -f core conftest.err conftest.$ac_objext \
9714     conftest$ac_exeext
9715   if ${ac_cv_search_ldexp+:} false; then :
9716   break
9717 fi
9718 done
9719 if ${ac_cv_search_ldexp+:} false; then :
9720
9721 else
9722   ac_cv_search_ldexp=no
9723 fi
9724 rm conftest.$ac_ext
9725 LIBS=$ac_func_search_save_LIBS
9726 fi
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9728 $as_echo "$ac_cv_search_ldexp" >&6; }
9729 ac_res=$ac_cv_search_ldexp
9730 if test "$ac_res" != no; then :
9731   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9732
9733 fi
9734
9735 LDEXP_LIB="$LIBS"
9736 LIBS="$save_LIBS"
9737
9738
9739 # Some systems need dlopen
9740 save_LIBS="$LIBS"
9741 LIBS=
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9743 $as_echo_n "checking for library containing dlopen... " >&6; }
9744 if ${ac_cv_search_dlopen+:} false; then :
9745   $as_echo_n "(cached) " >&6
9746 else
9747   ac_func_search_save_LIBS=$LIBS
9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749 /* end confdefs.h.  */
9750
9751 /* Override any GCC internal prototype to avoid an error.
9752    Use char because int might match the return type of a GCC
9753    builtin and then its argument prototype would still apply.  */
9754 #ifdef __cplusplus
9755 extern "C"
9756 #endif
9757 char dlopen ();
9758 int
9759 main ()
9760 {
9761 return dlopen ();
9762   ;
9763   return 0;
9764 }
9765 _ACEOF
9766 for ac_lib in '' dl; do
9767   if test -z "$ac_lib"; then
9768     ac_res="none required"
9769   else
9770     ac_res=-l$ac_lib
9771     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9772   fi
9773   if ac_fn_cxx_try_link "$LINENO"; then :
9774   ac_cv_search_dlopen=$ac_res
9775 fi
9776 rm -f core conftest.err conftest.$ac_objext \
9777     conftest$ac_exeext
9778   if ${ac_cv_search_dlopen+:} false; then :
9779   break
9780 fi
9781 done
9782 if ${ac_cv_search_dlopen+:} false; then :
9783
9784 else
9785   ac_cv_search_dlopen=no
9786 fi
9787 rm conftest.$ac_ext
9788 LIBS=$ac_func_search_save_LIBS
9789 fi
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9791 $as_echo "$ac_cv_search_dlopen" >&6; }
9792 ac_res=$ac_cv_search_dlopen
9793 if test "$ac_res" != no; then :
9794   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9795
9796 fi
9797
9798 DL_LIB="$LIBS"
9799 LIBS="$save_LIBS"
9800
9801
9802 # Use <inttypes.h> only if it exists,
9803 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9804 # PRId64
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9806 $as_echo_n "checking for inttypes.h... " >&6; }
9807 if ${gcc_cv_header_inttypes_h+:} false; then :
9808   $as_echo_n "(cached) " >&6
9809 else
9810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h.  */
9812 #define __STDC_FORMAT_MACROS
9813 #include <sys/types.h>
9814 #include <inttypes.h>
9815 int
9816 main ()
9817 {
9818 intmax_t i = -1;
9819 #ifndef PRId64
9820 choke me
9821 #endif
9822   ;
9823   return 0;
9824 }
9825 _ACEOF
9826 if ac_fn_cxx_try_compile "$LINENO"; then :
9827   gcc_cv_header_inttypes_h=yes
9828 else
9829   gcc_cv_header_inttypes_h=no
9830 fi
9831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9832 fi
9833
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9835 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9836 if test $gcc_cv_header_inttypes_h = yes; then
9837
9838 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9839
9840 fi
9841
9842
9843
9844 for ac_func in times clock kill getrlimit setrlimit atoq \
9845         popen sysconf strsignal getrusage nl_langinfo \
9846         gettimeofday mbstowcs wcswidth mmap setlocale \
9847         clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked madvise
9848 do :
9849   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9850 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9851 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9852   cat >>confdefs.h <<_ACEOF
9853 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9854 _ACEOF
9855
9856 fi
9857 done
9858
9859
9860 if test x$ac_cv_func_mbstowcs = xyes; then
9861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9862 $as_echo_n "checking whether mbstowcs works... " >&6; }
9863 if ${gcc_cv_func_mbstowcs_works+:} false; then :
9864   $as_echo_n "(cached) " >&6
9865 else
9866       if test "$cross_compiling" = yes; then :
9867   gcc_cv_func_mbstowcs_works=yes
9868 else
9869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h.  */
9871 #include <stdlib.h>
9872 int main()
9873 {
9874   mbstowcs(0, "", 0);
9875   return 0;
9876 }
9877 _ACEOF
9878 if ac_fn_cxx_try_run "$LINENO"; then :
9879   gcc_cv_func_mbstowcs_works=yes
9880 else
9881   gcc_cv_func_mbstowcs_works=no
9882 fi
9883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9884   conftest.$ac_objext conftest.beam conftest.$ac_ext
9885 fi
9886
9887 fi
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9889 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9890   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9891
9892 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9893
9894   fi
9895 fi
9896
9897 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9898 if test "x$ac_cv_type_ssize_t" = xyes; then :
9899
9900 else
9901
9902 cat >>confdefs.h <<_ACEOF
9903 #define ssize_t int
9904 _ACEOF
9905
9906 fi
9907
9908 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9909 if test "x$ac_cv_type_caddr_t" = xyes; then :
9910
9911 else
9912
9913 cat >>confdefs.h <<_ACEOF
9914 #define caddr_t char *
9915 _ACEOF
9916
9917 fi
9918
9919
9920
9921 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9922 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
9923   gcc_header_sys_mman_h=yes
9924 else
9925   gcc_header_sys_mman_h=no
9926 fi
9927
9928 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9929 if test "x$ac_cv_func_mmap" = xyes; then :
9930   gcc_func_mmap=yes
9931 else
9932   gcc_func_mmap=no
9933 fi
9934
9935 if test "$gcc_header_sys_mman_h" != yes \
9936  || test "$gcc_func_mmap" != yes; then
9937    gcc_cv_func_mmap_file=no
9938    gcc_cv_func_mmap_dev_zero=no
9939    gcc_cv_func_mmap_anon=no
9940 else
9941    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9942 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9943 if ${gcc_cv_func_mmap_file+:} false; then :
9944   $as_echo_n "(cached) " >&6
9945 else
9946   # Add a system to this blacklist if
9947    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9948    # memory area containing the same data that you'd get if you applied
9949    # read() to the same fd.  The only system known to have a problem here
9950    # is VMS, where text files have record structure.
9951    case "$host_os" in
9952      *vms* | ultrix*)
9953         gcc_cv_func_mmap_file=no ;;
9954      *)
9955         gcc_cv_func_mmap_file=yes;;
9956    esac
9957 fi
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9959 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9960    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9961 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9962 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
9963   $as_echo_n "(cached) " >&6
9964 else
9965   # Add a system to this blacklist if it has mmap() but /dev/zero
9966    # does not exist, or if mmapping /dev/zero does not give anonymous
9967    # zeroed pages with both the following properties:
9968    # 1. If you map N consecutive pages in with one call, and then
9969    #    unmap any subset of those pages, the pages that were not
9970    #    explicitly unmapped remain accessible.
9971    # 2. If you map two adjacent blocks of memory and then unmap them
9972    #    both at once, they must both go away.
9973    # Systems known to be in this category are Windows (all variants),
9974    # VMS, and Darwin.
9975    case "$host_os" in
9976      *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9977         gcc_cv_func_mmap_dev_zero=no ;;
9978      *)
9979         gcc_cv_func_mmap_dev_zero=yes;;
9980    esac
9981 fi
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9983 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9984
9985    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9986    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9987 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9988 if ${gcc_cv_decl_map_anon+:} false; then :
9989   $as_echo_n "(cached) " >&6
9990 else
9991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9992 /* end confdefs.h.  */
9993 #include <sys/types.h>
9994 #include <sys/mman.h>
9995 #include <unistd.h>
9996
9997 #ifndef MAP_ANONYMOUS
9998 #define MAP_ANONYMOUS MAP_ANON
9999 #endif
10000
10001 int
10002 main ()
10003 {
10004 int n = MAP_ANONYMOUS;
10005   ;
10006   return 0;
10007 }
10008 _ACEOF
10009 if ac_fn_cxx_try_compile "$LINENO"; then :
10010   gcc_cv_decl_map_anon=yes
10011 else
10012   gcc_cv_decl_map_anon=no
10013 fi
10014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015 fi
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10017 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10018
10019    if test $gcc_cv_decl_map_anon = no; then
10020      gcc_cv_func_mmap_anon=no
10021    else
10022      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10023 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10024 if ${gcc_cv_func_mmap_anon+:} false; then :
10025   $as_echo_n "(cached) " >&6
10026 else
10027   # Add a system to this blacklist if it has mmap() and MAP_ANON or
10028    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10029    # doesn't give anonymous zeroed pages with the same properties listed
10030    # above for use of /dev/zero.
10031    # Systems known to be in this category are Windows, VMS, and SCO Unix.
10032    case "$host_os" in
10033      *vms* | cygwin* | pe | mingw* | sco* | udk* )
10034         gcc_cv_func_mmap_anon=no ;;
10035      *)
10036         gcc_cv_func_mmap_anon=yes;;
10037    esac
10038 fi
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10040 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10041    fi
10042 fi
10043
10044 if test $gcc_cv_func_mmap_file = yes; then
10045
10046 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10047
10048 fi
10049 if test $gcc_cv_func_mmap_dev_zero = yes; then
10050
10051 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10052
10053 fi
10054 if test $gcc_cv_func_mmap_anon = yes; then
10055
10056 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10057
10058 fi
10059
10060
10061 case "${host}" in
10062 *-*-*vms*)
10063   # Under VMS, vfork works very differently than on Unix. The standard test
10064   # won't work, and it isn't easily adaptable. It makes more sense to
10065   # just force it.
10066   ac_cv_func_vfork_works=yes
10067   ;;
10068 esac
10069 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10070 if test "x$ac_cv_type_pid_t" = xyes; then :
10071
10072 else
10073
10074 cat >>confdefs.h <<_ACEOF
10075 #define pid_t int
10076 _ACEOF
10077
10078 fi
10079
10080 for ac_header in vfork.h
10081 do :
10082   ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10083 if test "x$ac_cv_header_vfork_h" = xyes; then :
10084   cat >>confdefs.h <<_ACEOF
10085 #define HAVE_VFORK_H 1
10086 _ACEOF
10087
10088 fi
10089 done
10090
10091 for ac_func in fork vfork
10092 do :
10093   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10094 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10095 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10096   cat >>confdefs.h <<_ACEOF
10097 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10098 _ACEOF
10099
10100 fi
10101 done
10102
10103 if test "x$ac_cv_func_fork" = xyes; then
10104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10105 $as_echo_n "checking for working fork... " >&6; }
10106 if ${ac_cv_func_fork_works+:} false; then :
10107   $as_echo_n "(cached) " >&6
10108 else
10109   if test "$cross_compiling" = yes; then :
10110   ac_cv_func_fork_works=cross
10111 else
10112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h.  */
10114 $ac_includes_default
10115 int
10116 main ()
10117 {
10118
10119           /* By Ruediger Kuhlmann. */
10120           return fork () < 0;
10121
10122   ;
10123   return 0;
10124 }
10125 _ACEOF
10126 if ac_fn_cxx_try_run "$LINENO"; then :
10127   ac_cv_func_fork_works=yes
10128 else
10129   ac_cv_func_fork_works=no
10130 fi
10131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10132   conftest.$ac_objext conftest.beam conftest.$ac_ext
10133 fi
10134
10135 fi
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10137 $as_echo "$ac_cv_func_fork_works" >&6; }
10138
10139 else
10140   ac_cv_func_fork_works=$ac_cv_func_fork
10141 fi
10142 if test "x$ac_cv_func_fork_works" = xcross; then
10143   case $host in
10144     *-*-amigaos* | *-*-msdosdjgpp*)
10145       # Override, as these systems have only a dummy fork() stub
10146       ac_cv_func_fork_works=no
10147       ;;
10148     *)
10149       ac_cv_func_fork_works=yes
10150       ;;
10151   esac
10152   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10153 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10154 fi
10155 ac_cv_func_vfork_works=$ac_cv_func_vfork
10156 if test "x$ac_cv_func_vfork" = xyes; then
10157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10158 $as_echo_n "checking for working vfork... " >&6; }
10159 if ${ac_cv_func_vfork_works+:} false; then :
10160   $as_echo_n "(cached) " >&6
10161 else
10162   if test "$cross_compiling" = yes; then :
10163   ac_cv_func_vfork_works=cross
10164 else
10165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h.  */
10167 /* Thanks to Paul Eggert for this test.  */
10168 $ac_includes_default
10169 #include <sys/wait.h>
10170 #ifdef HAVE_VFORK_H
10171 # include <vfork.h>
10172 #endif
10173 /* On some sparc systems, changes by the child to local and incoming
10174    argument registers are propagated back to the parent.  The compiler
10175    is told about this with #include <vfork.h>, but some compilers
10176    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10177    static variable whose address is put into a register that is
10178    clobbered by the vfork.  */
10179 static void
10180 #ifdef __cplusplus
10181 sparc_address_test (int arg)
10182 # else
10183 sparc_address_test (arg) int arg;
10184 #endif
10185 {
10186   static pid_t child;
10187   if (!child) {
10188     child = vfork ();
10189     if (child < 0) {
10190       perror ("vfork");
10191       _exit(2);
10192     }
10193     if (!child) {
10194       arg = getpid();
10195       write(-1, "", 0);
10196       _exit (arg);
10197     }
10198   }
10199 }
10200
10201 int
10202 main ()
10203 {
10204   pid_t parent = getpid ();
10205   pid_t child;
10206
10207   sparc_address_test (0);
10208
10209   child = vfork ();
10210
10211   if (child == 0) {
10212     /* Here is another test for sparc vfork register problems.  This
10213        test uses lots of local variables, at least as many local
10214        variables as main has allocated so far including compiler
10215        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10216        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10217        reuse the register of parent for one of the local variables,
10218        since it will think that parent can't possibly be used any more
10219        in this routine.  Assigning to the local variable will thus
10220        munge parent in the parent process.  */
10221     pid_t
10222       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10223       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10224     /* Convince the compiler that p..p7 are live; otherwise, it might
10225        use the same hardware register for all 8 local variables.  */
10226     if (p != p1 || p != p2 || p != p3 || p != p4
10227         || p != p5 || p != p6 || p != p7)
10228       _exit(1);
10229
10230     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10231        from child file descriptors.  If the child closes a descriptor
10232        before it execs or exits, this munges the parent's descriptor
10233        as well.  Test for this by closing stdout in the child.  */
10234     _exit(close(fileno(stdout)) != 0);
10235   } else {
10236     int status;
10237     struct stat st;
10238
10239     while (wait(&status) != child)
10240       ;
10241     return (
10242          /* Was there some problem with vforking?  */
10243          child < 0
10244
10245          /* Did the child fail?  (This shouldn't happen.)  */
10246          || status
10247
10248          /* Did the vfork/compiler bug occur?  */
10249          || parent != getpid()
10250
10251          /* Did the file descriptor bug occur?  */
10252          || fstat(fileno(stdout), &st) != 0
10253          );
10254   }
10255 }
10256 _ACEOF
10257 if ac_fn_cxx_try_run "$LINENO"; then :
10258   ac_cv_func_vfork_works=yes
10259 else
10260   ac_cv_func_vfork_works=no
10261 fi
10262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10263   conftest.$ac_objext conftest.beam conftest.$ac_ext
10264 fi
10265
10266 fi
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10268 $as_echo "$ac_cv_func_vfork_works" >&6; }
10269
10270 fi;
10271 if test "x$ac_cv_func_fork_works" = xcross; then
10272   ac_cv_func_vfork_works=$ac_cv_func_vfork
10273   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10274 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10275 fi
10276
10277 if test "x$ac_cv_func_vfork_works" = xyes; then
10278
10279 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10280
10281 else
10282
10283 $as_echo "#define vfork fork" >>confdefs.h
10284
10285 fi
10286 if test "x$ac_cv_func_fork_works" = xyes; then
10287
10288 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10289
10290 fi
10291
10292
10293
10294       if test "X$prefix" = "XNONE"; then
10295     acl_final_prefix="$ac_default_prefix"
10296   else
10297     acl_final_prefix="$prefix"
10298   fi
10299   if test "X$exec_prefix" = "XNONE"; then
10300     acl_final_exec_prefix='${prefix}'
10301   else
10302     acl_final_exec_prefix="$exec_prefix"
10303   fi
10304   acl_save_prefix="$prefix"
10305   prefix="$acl_final_prefix"
10306   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10307   prefix="$acl_save_prefix"
10308
10309
10310 # Check whether --with-gnu-ld was given.
10311 if test "${with_gnu_ld+set}" = set; then :
10312   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10313 else
10314   with_gnu_ld=no
10315 fi
10316
10317 # Prepare PATH_SEPARATOR.
10318 # The user is always right.
10319 if test "${PATH_SEPARATOR+set}" != set; then
10320   echo "#! /bin/sh" >conf$$.sh
10321   echo  "exit 0"   >>conf$$.sh
10322   chmod +x conf$$.sh
10323   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10324     PATH_SEPARATOR=';'
10325   else
10326     PATH_SEPARATOR=:
10327   fi
10328   rm -f conf$$.sh
10329 fi
10330 ac_prog=ld
10331 if test "$GCC" = yes; then
10332   # Check if gcc -print-prog-name=ld gives a path.
10333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10334 $as_echo_n "checking for ld used by GCC... " >&6; }
10335   case $host in
10336   *-*-mingw*)
10337     # gcc leaves a trailing carriage return which upsets mingw
10338     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10339   *)
10340     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10341   esac
10342   case $ac_prog in
10343     # Accept absolute paths.
10344     [\\/]* | [A-Za-z]:[\\/]*)
10345       re_direlt='/[^/][^/]*/\.\./'
10346       # Canonicalize the path of ld
10347       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10348       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10349         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10350       done
10351       test -z "$LD" && LD="$ac_prog"
10352       ;;
10353   "")
10354     # If it fails, then pretend we aren't using GCC.
10355     ac_prog=ld
10356     ;;
10357   *)
10358     # If it is relative, then search for the first ld in PATH.
10359     with_gnu_ld=unknown
10360     ;;
10361   esac
10362 elif test "$with_gnu_ld" = yes; then
10363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10364 $as_echo_n "checking for GNU ld... " >&6; }
10365 else
10366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10367 $as_echo_n "checking for non-GNU ld... " >&6; }
10368 fi
10369 if ${acl_cv_path_LD+:} false; then :
10370   $as_echo_n "(cached) " >&6
10371 else
10372   if test -z "$LD"; then
10373   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10374   for ac_dir in $PATH; do
10375     test -z "$ac_dir" && ac_dir=.
10376     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10377       acl_cv_path_LD="$ac_dir/$ac_prog"
10378       # Check to see if the program is GNU ld.  I'd rather use --version,
10379       # but apparently some GNU ld's only accept -v.
10380       # Break only if it was the GNU/non-GNU ld that we prefer.
10381       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10382         test "$with_gnu_ld" != no && break
10383       else
10384         test "$with_gnu_ld" != yes && break
10385       fi
10386     fi
10387   done
10388   IFS="$ac_save_ifs"
10389 else
10390   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10391 fi
10392 fi
10393
10394 LD="$acl_cv_path_LD"
10395 if test -n "$LD"; then
10396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10397 $as_echo "$LD" >&6; }
10398 else
10399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10400 $as_echo "no" >&6; }
10401 fi
10402 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10404 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10405 if ${acl_cv_prog_gnu_ld+:} false; then :
10406   $as_echo_n "(cached) " >&6
10407 else
10408   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10409 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10410   acl_cv_prog_gnu_ld=yes
10411 else
10412   acl_cv_prog_gnu_ld=no
10413 fi
10414 fi
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10416 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10417 with_gnu_ld=$acl_cv_prog_gnu_ld
10418
10419
10420
10421                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10422 $as_echo_n "checking for shared library run path origin... " >&6; }
10423 if ${acl_cv_rpath+:} false; then :
10424   $as_echo_n "(cached) " >&6
10425 else
10426
10427     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10428     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10429     . ./conftest.sh
10430     rm -f ./conftest.sh
10431     acl_cv_rpath=done
10432
10433 fi
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10435 $as_echo "$acl_cv_rpath" >&6; }
10436   wl="$acl_cv_wl"
10437   libext="$acl_cv_libext"
10438   shlibext="$acl_cv_shlibext"
10439   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10440   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10441   hardcode_direct="$acl_cv_hardcode_direct"
10442   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10443     # Check whether --enable-rpath was given.
10444 if test "${enable_rpath+set}" = set; then :
10445   enableval=$enable_rpath; :
10446 else
10447   enable_rpath=yes
10448 fi
10449
10450
10451
10452
10453
10454
10455
10456
10457     use_additional=yes
10458
10459   acl_save_prefix="$prefix"
10460   prefix="$acl_final_prefix"
10461   acl_save_exec_prefix="$exec_prefix"
10462   exec_prefix="$acl_final_exec_prefix"
10463
10464     eval additional_includedir=\"$includedir\"
10465     eval additional_libdir=\"$libdir\"
10466
10467   exec_prefix="$acl_save_exec_prefix"
10468   prefix="$acl_save_prefix"
10469
10470
10471 # Check whether --with-libiconv-prefix was given.
10472 if test "${with_libiconv_prefix+set}" = set; then :
10473   withval=$with_libiconv_prefix;
10474     if test "X$withval" = "Xno"; then
10475       use_additional=no
10476     else
10477       if test "X$withval" = "X"; then
10478
10479   acl_save_prefix="$prefix"
10480   prefix="$acl_final_prefix"
10481   acl_save_exec_prefix="$exec_prefix"
10482   exec_prefix="$acl_final_exec_prefix"
10483
10484           eval additional_includedir=\"$includedir\"
10485           eval additional_libdir=\"$libdir\"
10486
10487   exec_prefix="$acl_save_exec_prefix"
10488   prefix="$acl_save_prefix"
10489
10490       else
10491         additional_includedir="$withval/include"
10492         additional_libdir="$withval/lib"
10493       fi
10494     fi
10495
10496 fi
10497
10498       LIBICONV=
10499   LTLIBICONV=
10500   INCICONV=
10501   rpathdirs=
10502   ltrpathdirs=
10503   names_already_handled=
10504   names_next_round='iconv '
10505   while test -n "$names_next_round"; do
10506     names_this_round="$names_next_round"
10507     names_next_round=
10508     for name in $names_this_round; do
10509       already_handled=
10510       for n in $names_already_handled; do
10511         if test "$n" = "$name"; then
10512           already_handled=yes
10513           break
10514         fi
10515       done
10516       if test -z "$already_handled"; then
10517         names_already_handled="$names_already_handled $name"
10518                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10519         eval value=\"\$HAVE_LIB$uppername\"
10520         if test -n "$value"; then
10521           if test "$value" = yes; then
10522             eval value=\"\$LIB$uppername\"
10523             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10524             eval value=\"\$LTLIB$uppername\"
10525             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10526           else
10527                                     :
10528           fi
10529         else
10530                               found_dir=
10531           found_la=
10532           found_so=
10533           found_a=
10534           if test $use_additional = yes; then
10535             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10536               found_dir="$additional_libdir"
10537               found_so="$additional_libdir/lib$name.$shlibext"
10538               if test -f "$additional_libdir/lib$name.la"; then
10539                 found_la="$additional_libdir/lib$name.la"
10540               fi
10541             else
10542               if test -f "$additional_libdir/lib$name.$libext"; then
10543                 found_dir="$additional_libdir"
10544                 found_a="$additional_libdir/lib$name.$libext"
10545                 if test -f "$additional_libdir/lib$name.la"; then
10546                   found_la="$additional_libdir/lib$name.la"
10547                 fi
10548               fi
10549             fi
10550           fi
10551           if test "X$found_dir" = "X"; then
10552             for x in $LDFLAGS $LTLIBICONV; do
10553
10554   acl_save_prefix="$prefix"
10555   prefix="$acl_final_prefix"
10556   acl_save_exec_prefix="$exec_prefix"
10557   exec_prefix="$acl_final_exec_prefix"
10558   eval x=\"$x\"
10559   exec_prefix="$acl_save_exec_prefix"
10560   prefix="$acl_save_prefix"
10561
10562               case "$x" in
10563                 -L*)
10564                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10565                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10566                     found_dir="$dir"
10567                     found_so="$dir/lib$name.$shlibext"
10568                     if test -f "$dir/lib$name.la"; then
10569                       found_la="$dir/lib$name.la"
10570                     fi
10571                   else
10572                     if test -f "$dir/lib$name.$libext"; then
10573                       found_dir="$dir"
10574                       found_a="$dir/lib$name.$libext"
10575                       if test -f "$dir/lib$name.la"; then
10576                         found_la="$dir/lib$name.la"
10577                       fi
10578                     fi
10579                   fi
10580                   ;;
10581               esac
10582               if test "X$found_dir" != "X"; then
10583                 break
10584               fi
10585             done
10586           fi
10587           if test "X$found_dir" != "X"; then
10588                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10589             if test "X$found_so" != "X"; then
10590                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10591                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10592               else
10593                                                                                 haveit=
10594                 for x in $ltrpathdirs; do
10595                   if test "X$x" = "X$found_dir"; then
10596                     haveit=yes
10597                     break
10598                   fi
10599                 done
10600                 if test -z "$haveit"; then
10601                   ltrpathdirs="$ltrpathdirs $found_dir"
10602                 fi
10603                                 if test "$hardcode_direct" = yes; then
10604                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10605                 else
10606                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10607                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10608                                                             haveit=
10609                     for x in $rpathdirs; do
10610                       if test "X$x" = "X$found_dir"; then
10611                         haveit=yes
10612                         break
10613                       fi
10614                     done
10615                     if test -z "$haveit"; then
10616                       rpathdirs="$rpathdirs $found_dir"
10617                     fi
10618                   else
10619                                                                                 haveit=
10620                     for x in $LDFLAGS $LIBICONV; do
10621
10622   acl_save_prefix="$prefix"
10623   prefix="$acl_final_prefix"
10624   acl_save_exec_prefix="$exec_prefix"
10625   exec_prefix="$acl_final_exec_prefix"
10626   eval x=\"$x\"
10627   exec_prefix="$acl_save_exec_prefix"
10628   prefix="$acl_save_prefix"
10629
10630                       if test "X$x" = "X-L$found_dir"; then
10631                         haveit=yes
10632                         break
10633                       fi
10634                     done
10635                     if test -z "$haveit"; then
10636                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10637                     fi
10638                     if test "$hardcode_minus_L" != no; then
10639                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10640                     else
10641                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10642                     fi
10643                   fi
10644                 fi
10645               fi
10646             else
10647               if test "X$found_a" != "X"; then
10648                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10649               else
10650                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10651               fi
10652             fi
10653                         additional_includedir=
10654             case "$found_dir" in
10655               */lib | */lib/)
10656                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10657                 additional_includedir="$basedir/include"
10658                 ;;
10659             esac
10660             if test "X$additional_includedir" != "X"; then
10661                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10662                 haveit=
10663                 if test "X$additional_includedir" = "X/usr/local/include"; then
10664                   if test -n "$GCC"; then
10665                     case $host_os in
10666                       linux*) haveit=yes;;
10667                     esac
10668                   fi
10669                 fi
10670                 if test -z "$haveit"; then
10671                   for x in $CPPFLAGS $INCICONV; do
10672
10673   acl_save_prefix="$prefix"
10674   prefix="$acl_final_prefix"
10675   acl_save_exec_prefix="$exec_prefix"
10676   exec_prefix="$acl_final_exec_prefix"
10677   eval x=\"$x\"
10678   exec_prefix="$acl_save_exec_prefix"
10679   prefix="$acl_save_prefix"
10680
10681                     if test "X$x" = "X-I$additional_includedir"; then
10682                       haveit=yes
10683                       break
10684                     fi
10685                   done
10686                   if test -z "$haveit"; then
10687                     if test -d "$additional_includedir"; then
10688                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10689                     fi
10690                   fi
10691                 fi
10692               fi
10693             fi
10694                         if test -n "$found_la"; then
10695                                                         save_libdir="$libdir"
10696               case "$found_la" in
10697                 */* | *\\*) . "$found_la" ;;
10698                 *) . "./$found_la" ;;
10699               esac
10700               libdir="$save_libdir"
10701                             for dep in $dependency_libs; do
10702                 case "$dep" in
10703                   -L*)
10704                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10705                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10706                       haveit=
10707                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10708                         if test -n "$GCC"; then
10709                           case $host_os in
10710                             linux*) haveit=yes;;
10711                           esac
10712                         fi
10713                       fi
10714                       if test -z "$haveit"; then
10715                         haveit=
10716                         for x in $LDFLAGS $LIBICONV; do
10717
10718   acl_save_prefix="$prefix"
10719   prefix="$acl_final_prefix"
10720   acl_save_exec_prefix="$exec_prefix"
10721   exec_prefix="$acl_final_exec_prefix"
10722   eval x=\"$x\"
10723   exec_prefix="$acl_save_exec_prefix"
10724   prefix="$acl_save_prefix"
10725
10726                           if test "X$x" = "X-L$additional_libdir"; then
10727                             haveit=yes
10728                             break
10729                           fi
10730                         done
10731                         if test -z "$haveit"; then
10732                           if test -d "$additional_libdir"; then
10733                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10734                           fi
10735                         fi
10736                         haveit=
10737                         for x in $LDFLAGS $LTLIBICONV; do
10738
10739   acl_save_prefix="$prefix"
10740   prefix="$acl_final_prefix"
10741   acl_save_exec_prefix="$exec_prefix"
10742   exec_prefix="$acl_final_exec_prefix"
10743   eval x=\"$x\"
10744   exec_prefix="$acl_save_exec_prefix"
10745   prefix="$acl_save_prefix"
10746
10747                           if test "X$x" = "X-L$additional_libdir"; then
10748                             haveit=yes
10749                             break
10750                           fi
10751                         done
10752                         if test -z "$haveit"; then
10753                           if test -d "$additional_libdir"; then
10754                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10755                           fi
10756                         fi
10757                       fi
10758                     fi
10759                     ;;
10760                   -R*)
10761                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10762                     if test "$enable_rpath" != no; then
10763                                                                   haveit=
10764                       for x in $rpathdirs; do
10765                         if test "X$x" = "X$dir"; then
10766                           haveit=yes
10767                           break
10768                         fi
10769                       done
10770                       if test -z "$haveit"; then
10771                         rpathdirs="$rpathdirs $dir"
10772                       fi
10773                                                                   haveit=
10774                       for x in $ltrpathdirs; do
10775                         if test "X$x" = "X$dir"; then
10776                           haveit=yes
10777                           break
10778                         fi
10779                       done
10780                       if test -z "$haveit"; then
10781                         ltrpathdirs="$ltrpathdirs $dir"
10782                       fi
10783                     fi
10784                     ;;
10785                   -l*)
10786                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10787                     ;;
10788                   *.la)
10789                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10790                     ;;
10791                   *)
10792                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10793                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10794                     ;;
10795                 esac
10796               done
10797             fi
10798           else
10799                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10800             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10801           fi
10802         fi
10803       fi
10804     done
10805   done
10806   if test "X$rpathdirs" != "X"; then
10807     if test -n "$hardcode_libdir_separator"; then
10808                         alldirs=
10809       for found_dir in $rpathdirs; do
10810         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10811       done
10812             acl_save_libdir="$libdir"
10813       libdir="$alldirs"
10814       eval flag=\"$hardcode_libdir_flag_spec\"
10815       libdir="$acl_save_libdir"
10816       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10817     else
10818             for found_dir in $rpathdirs; do
10819         acl_save_libdir="$libdir"
10820         libdir="$found_dir"
10821         eval flag=\"$hardcode_libdir_flag_spec\"
10822         libdir="$acl_save_libdir"
10823         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10824       done
10825     fi
10826   fi
10827   if test "X$ltrpathdirs" != "X"; then
10828             for found_dir in $ltrpathdirs; do
10829       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10830     done
10831   fi
10832
10833
10834
10835
10836
10837
10838
10839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10840 $as_echo_n "checking for iconv... " >&6; }
10841 if ${am_cv_func_iconv+:} false; then :
10842   $as_echo_n "(cached) " >&6
10843 else
10844
10845     am_cv_func_iconv="no, consider installing GNU libiconv"
10846     am_cv_lib_iconv=no
10847                     am_save_CPPFLAGS="$CPPFLAGS"
10848     CPPFLAGS="$CPPFLAGS $INCICONV"
10849     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h.  */
10851 #include <stdlib.h>
10852 #include <iconv.h>
10853 int
10854 main ()
10855 {
10856 iconv_t cd = iconv_open("","");
10857        iconv(cd,NULL,NULL,NULL,NULL);
10858        iconv_close(cd);
10859   ;
10860   return 0;
10861 }
10862 _ACEOF
10863 if ac_fn_cxx_try_link "$LINENO"; then :
10864   am_cv_func_iconv=yes
10865 fi
10866 rm -f core conftest.err conftest.$ac_objext \
10867     conftest$ac_exeext conftest.$ac_ext
10868     CPPFLAGS="$am_save_CPPFLAGS"
10869
10870     if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10871       for _libs in .libs _libs; do
10872         am_save_CPPFLAGS="$CPPFLAGS"
10873         am_save_LIBS="$LIBS"
10874         CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10875         LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10876         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h.  */
10878 #include <stdlib.h>
10879 #include <iconv.h>
10880 int
10881 main ()
10882 {
10883 iconv_t cd = iconv_open("","");
10884            iconv(cd,NULL,NULL,NULL,NULL);
10885            iconv_close(cd);
10886   ;
10887   return 0;
10888 }
10889 _ACEOF
10890 if ac_fn_cxx_try_link "$LINENO"; then :
10891   INCICONV="-I../libiconv/include"
10892           LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10893           LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10894           am_cv_lib_iconv=yes
10895           am_cv_func_iconv=yes
10896 fi
10897 rm -f core conftest.err conftest.$ac_objext \
10898     conftest$ac_exeext conftest.$ac_ext
10899         CPPFLAGS="$am_save_CPPFLAGS"
10900         LIBS="$am_save_LIBS"
10901         if test "$am_cv_func_iconv" = "yes"; then
10902           break
10903         fi
10904       done
10905     fi
10906
10907     if test "$am_cv_func_iconv" != yes; then
10908       am_save_CPPFLAGS="$CPPFLAGS"
10909       am_save_LIBS="$LIBS"
10910       CPPFLAGS="$CPPFLAGS $INCICONV"
10911       LIBS="$LIBS $LIBICONV"
10912       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h.  */
10914 #include <stdlib.h>
10915 #include <iconv.h>
10916 int
10917 main ()
10918 {
10919 iconv_t cd = iconv_open("","");
10920          iconv(cd,NULL,NULL,NULL,NULL);
10921          iconv_close(cd);
10922   ;
10923   return 0;
10924 }
10925 _ACEOF
10926 if ac_fn_cxx_try_link "$LINENO"; then :
10927   am_cv_lib_iconv=yes
10928         am_cv_func_iconv=yes
10929 fi
10930 rm -f core conftest.err conftest.$ac_objext \
10931     conftest$ac_exeext conftest.$ac_ext
10932       CPPFLAGS="$am_save_CPPFLAGS"
10933       LIBS="$am_save_LIBS"
10934     fi
10935
10936 fi
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10938 $as_echo "$am_cv_func_iconv" >&6; }
10939   if test "$am_cv_func_iconv" = yes; then
10940
10941 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10942
10943   fi
10944   if test "$am_cv_lib_iconv" = yes; then
10945
10946   for element in $INCICONV; do
10947     haveit=
10948     for x in $CPPFLAGS; do
10949
10950   acl_save_prefix="$prefix"
10951   prefix="$acl_final_prefix"
10952   acl_save_exec_prefix="$exec_prefix"
10953   exec_prefix="$acl_final_exec_prefix"
10954   eval x=\"$x\"
10955   exec_prefix="$acl_save_exec_prefix"
10956   prefix="$acl_save_prefix"
10957
10958       if test "X$x" = "X$element"; then
10959         haveit=yes
10960         break
10961       fi
10962     done
10963     if test -z "$haveit"; then
10964       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10965     fi
10966   done
10967
10968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10969 $as_echo_n "checking how to link with libiconv... " >&6; }
10970     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10971 $as_echo "$LIBICONV" >&6; }
10972   else
10973     LIBICONV=
10974     LTLIBICONV=
10975   fi
10976
10977
10978
10979   if test "$am_cv_func_iconv" = yes; then
10980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10981 $as_echo_n "checking for iconv declaration... " >&6; }
10982     if ${am_cv_proto_iconv+:} false; then :
10983   $as_echo_n "(cached) " >&6
10984 else
10985
10986       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h.  */
10988
10989 #include <stdlib.h>
10990 #include <iconv.h>
10991 extern
10992 #ifdef __cplusplus
10993 "C"
10994 #endif
10995 #if defined(__STDC__) || defined(__cplusplus)
10996 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10997 #else
10998 size_t iconv();
10999 #endif
11000
11001 int
11002 main ()
11003 {
11004
11005   ;
11006   return 0;
11007 }
11008 _ACEOF
11009 if ac_fn_cxx_try_compile "$LINENO"; then :
11010   am_cv_proto_iconv_arg1=""
11011 else
11012   am_cv_proto_iconv_arg1="const"
11013 fi
11014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11015       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11016 fi
11017
11018     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11020          }$am_cv_proto_iconv" >&5
11021 $as_echo "${ac_t:-
11022          }$am_cv_proto_iconv" >&6; }
11023
11024 cat >>confdefs.h <<_ACEOF
11025 #define ICONV_CONST $am_cv_proto_iconv_arg1
11026 _ACEOF
11027
11028   fi
11029
11030
11031 # Until we have in-tree GNU iconv:
11032 LIBICONV_DEP=
11033 if test -f "$LTLIBICONV"; then
11034   LIBICONV_DEP=$LTLIBICONV
11035 fi
11036
11037
11038
11039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11040 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11041 if ${am_cv_val_LC_MESSAGES+:} false; then :
11042   $as_echo_n "(cached) " >&6
11043 else
11044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h.  */
11046 #include <locale.h>
11047 int
11048 main ()
11049 {
11050 return LC_MESSAGES
11051   ;
11052   return 0;
11053 }
11054 _ACEOF
11055 if ac_fn_cxx_try_link "$LINENO"; then :
11056   am_cv_val_LC_MESSAGES=yes
11057 else
11058   am_cv_val_LC_MESSAGES=no
11059 fi
11060 rm -f core conftest.err conftest.$ac_objext \
11061     conftest$ac_exeext conftest.$ac_ext
11062 fi
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11064 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11065   if test $am_cv_val_LC_MESSAGES = yes; then
11066
11067 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11068
11069   fi
11070
11071
11072
11073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11074 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11075 if ${am_cv_langinfo_codeset+:} false; then :
11076   $as_echo_n "(cached) " >&6
11077 else
11078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h.  */
11080 #include <langinfo.h>
11081 int
11082 main ()
11083 {
11084 char* cs = nl_langinfo(CODESET);
11085   ;
11086   return 0;
11087 }
11088 _ACEOF
11089 if ac_fn_cxx_try_link "$LINENO"; then :
11090   am_cv_langinfo_codeset=yes
11091 else
11092   am_cv_langinfo_codeset=no
11093 fi
11094 rm -f core conftest.err conftest.$ac_objext \
11095     conftest$ac_exeext conftest.$ac_ext
11096
11097 fi
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11099 $as_echo "$am_cv_langinfo_codeset" >&6; }
11100   if test $am_cv_langinfo_codeset = yes; then
11101
11102 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11103
11104   fi
11105
11106
11107 # We will need to find libiberty.h and ansidecl.h
11108 saved_CFLAGS="$CFLAGS"
11109 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11110 saved_CXXFLAGS="$CXXFLAGS"
11111 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11112
11113 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11114 # normal autoconf function for these.  But force definition of
11115 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11116 # basename handling in libiberty.h.
11117 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11118 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11119 #undef HAVE_DECL_BASENAME
11120 #define HAVE_DECL_BASENAME 1
11121 #include \"ansidecl.h\"
11122 #include \"system.h\"
11123 "
11124 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11125   ac_have_decl=1
11126 else
11127   ac_have_decl=0
11128 fi
11129
11130 cat >>confdefs.h <<_ACEOF
11131 #define HAVE_DECL_BASENAME $ac_have_decl
11132 _ACEOF
11133 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11134 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11135 #undef HAVE_DECL_BASENAME
11136 #define HAVE_DECL_BASENAME 1
11137 #include \"ansidecl.h\"
11138 #include \"system.h\"
11139 "
11140 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11141   ac_have_decl=1
11142 else
11143   ac_have_decl=0
11144 fi
11145
11146 cat >>confdefs.h <<_ACEOF
11147 #define HAVE_DECL_STRSTR $ac_have_decl
11148 _ACEOF
11149
11150
11151 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11152         madvise stpcpy strnlen strsignal strverscmp \
11153         strtol strtoul strtoll strtoull setenv unsetenv \
11154         errno snprintf vsnprintf vasprintf malloc realloc calloc \
11155         free getopt clock getpagesize ffs clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
11156 do
11157   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11159 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11160 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11161   $as_echo_n "(cached) " >&6
11162 else
11163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11164 /* end confdefs.h.  */
11165 #undef $ac_tr_decl
11166 #define $ac_tr_decl 1
11167
11168 #include "ansidecl.h"
11169 #include "system.h"
11170
11171 int
11172 main ()
11173 {
11174 #ifndef $ac_func
11175 char *(*pfn) = (char *(*)) $ac_func ;
11176 #endif
11177   ;
11178   return 0;
11179 }
11180 _ACEOF
11181 if ac_fn_cxx_try_compile "$LINENO"; then :
11182   eval "gcc_cv_have_decl_$ac_func=yes"
11183 else
11184   eval "gcc_cv_have_decl_$ac_func=no"
11185 fi
11186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11187 fi
11188
11189 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11191 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11192 #define $ac_tr_decl 1
11193 _ACEOF
11194
11195 else
11196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11198 #define $ac_tr_decl 0
11199 _ACEOF
11200
11201 fi
11202
11203 done
11204
11205
11206 for ac_func in getrlimit setrlimit getrusage
11207 do
11208   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11210 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11211 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11212   $as_echo_n "(cached) " >&6
11213 else
11214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h.  */
11216 #undef $ac_tr_decl
11217 #define $ac_tr_decl 1
11218
11219 #include "ansidecl.h"
11220 #include "system.h"
11221 #ifdef HAVE_SYS_RESOURCE_H
11222 #include <sys/resource.h>
11223 #endif
11224
11225
11226 int
11227 main ()
11228 {
11229 #ifndef $ac_func
11230 char *(*pfn) = (char *(*)) $ac_func ;
11231 #endif
11232   ;
11233   return 0;
11234 }
11235 _ACEOF
11236 if ac_fn_cxx_try_compile "$LINENO"; then :
11237   eval "gcc_cv_have_decl_$ac_func=yes"
11238 else
11239   eval "gcc_cv_have_decl_$ac_func=no"
11240 fi
11241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11242 fi
11243
11244 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11246 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11247 #define $ac_tr_decl 1
11248 _ACEOF
11249
11250 else
11251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11253 #define $ac_tr_decl 0
11254 _ACEOF
11255
11256 fi
11257
11258 done
11259
11260
11261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11262 /* end confdefs.h.  */
11263
11264 #include "ansidecl.h"
11265 #include "system.h"
11266 #ifdef HAVE_SYS_RESOURCE_H
11267 #include <sys/resource.h>
11268 #endif
11269
11270 int
11271 main ()
11272 {
11273 rlim_t l = 0;
11274   ;
11275   return 0;
11276 }
11277 _ACEOF
11278 if ac_fn_cxx_try_compile "$LINENO"; then :
11279
11280 else
11281
11282 $as_echo "#define rlim_t long" >>confdefs.h
11283
11284 fi
11285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11286
11287 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11288 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11289 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11290 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11291 for ac_func in ldgetname
11292 do
11293   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11295 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11296 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11297   $as_echo_n "(cached) " >&6
11298 else
11299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h.  */
11301 #undef $ac_tr_decl
11302 #define $ac_tr_decl 1
11303
11304 #include "ansidecl.h"
11305 #include "system.h"
11306 #ifdef HAVE_LDFCN_H
11307 #undef FREAD
11308 #undef FWRITE
11309 #include <ldfcn.h>
11310 #endif
11311
11312
11313 int
11314 main ()
11315 {
11316 #ifndef $ac_func
11317 char *(*pfn) = (char *(*)) $ac_func ;
11318 #endif
11319   ;
11320   return 0;
11321 }
11322 _ACEOF
11323 if ac_fn_cxx_try_compile "$LINENO"; then :
11324   eval "gcc_cv_have_decl_$ac_func=yes"
11325 else
11326   eval "gcc_cv_have_decl_$ac_func=no"
11327 fi
11328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11329 fi
11330
11331 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11333 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11334 #define $ac_tr_decl 1
11335 _ACEOF
11336
11337 else
11338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11340 #define $ac_tr_decl 0
11341 _ACEOF
11342
11343 fi
11344
11345 done
11346
11347
11348 for ac_func in times
11349 do
11350   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11352 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11353 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11354   $as_echo_n "(cached) " >&6
11355 else
11356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h.  */
11358 #undef $ac_tr_decl
11359 #define $ac_tr_decl 1
11360
11361 #include "ansidecl.h"
11362 #include "system.h"
11363 #ifdef HAVE_SYS_TIMES_H
11364 #include <sys/times.h>
11365 #endif
11366
11367
11368 int
11369 main ()
11370 {
11371 #ifndef $ac_func
11372 char *(*pfn) = (char *(*)) $ac_func ;
11373 #endif
11374   ;
11375   return 0;
11376 }
11377 _ACEOF
11378 if ac_fn_cxx_try_compile "$LINENO"; then :
11379   eval "gcc_cv_have_decl_$ac_func=yes"
11380 else
11381   eval "gcc_cv_have_decl_$ac_func=no"
11382 fi
11383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11384 fi
11385
11386 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11388 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11389 #define $ac_tr_decl 1
11390 _ACEOF
11391
11392 else
11393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11394 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11395 #define $ac_tr_decl 0
11396 _ACEOF
11397
11398 fi
11399
11400 done
11401
11402
11403 for ac_func in sigaltstack
11404 do
11405   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11407 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11408 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11409   $as_echo_n "(cached) " >&6
11410 else
11411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11412 /* end confdefs.h.  */
11413 #undef $ac_tr_decl
11414 #define $ac_tr_decl 1
11415
11416 #include "ansidecl.h"
11417 #include "system.h"
11418 #include <signal.h>
11419
11420
11421 int
11422 main ()
11423 {
11424 #ifndef $ac_func
11425 char *(*pfn) = (char *(*)) $ac_func ;
11426 #endif
11427   ;
11428   return 0;
11429 }
11430 _ACEOF
11431 if ac_fn_cxx_try_compile "$LINENO"; then :
11432   eval "gcc_cv_have_decl_$ac_func=yes"
11433 else
11434   eval "gcc_cv_have_decl_$ac_func=no"
11435 fi
11436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11437 fi
11438
11439 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11441 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11442 #define $ac_tr_decl 1
11443 _ACEOF
11444
11445 else
11446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11448 #define $ac_tr_decl 0
11449 _ACEOF
11450
11451 fi
11452
11453 done
11454
11455
11456 # More time-related stuff.
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11458 $as_echo_n "checking for struct tms... " >&6; }
11459 if ${ac_cv_struct_tms+:} false; then :
11460   $as_echo_n "(cached) " >&6
11461 else
11462
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h.  */
11465
11466 #include "ansidecl.h"
11467 #include "system.h"
11468 #ifdef HAVE_SYS_TIMES_H
11469 #include <sys/times.h>
11470 #endif
11471
11472 int
11473 main ()
11474 {
11475 struct tms tms;
11476   ;
11477   return 0;
11478 }
11479 _ACEOF
11480 if ac_fn_cxx_try_compile "$LINENO"; then :
11481   ac_cv_struct_tms=yes
11482 else
11483   ac_cv_struct_tms=no
11484 fi
11485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11486 fi
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11488 $as_echo "$ac_cv_struct_tms" >&6; }
11489 if test $ac_cv_struct_tms = yes; then
11490
11491 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11492
11493 fi
11494
11495 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11496 # revisit after autoconf 2.50.
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11498 $as_echo_n "checking for clock_t... " >&6; }
11499 if ${gcc_cv_type_clock_t+:} false; then :
11500   $as_echo_n "(cached) " >&6
11501 else
11502
11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h.  */
11505
11506 #include "ansidecl.h"
11507 #include "system.h"
11508
11509 int
11510 main ()
11511 {
11512 clock_t x;
11513   ;
11514   return 0;
11515 }
11516 _ACEOF
11517 if ac_fn_cxx_try_compile "$LINENO"; then :
11518   gcc_cv_type_clock_t=yes
11519 else
11520   gcc_cv_type_clock_t=no
11521 fi
11522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11523 fi
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11525 $as_echo "$gcc_cv_type_clock_t" >&6; }
11526 if test $gcc_cv_type_clock_t = yes; then
11527
11528 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11529
11530 fi
11531
11532 # Check if F_SETLKW is supported by fcntl.
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11534 $as_echo_n "checking for F_SETLKW... " >&6; }
11535 if ${ac_cv_f_setlkw+:} false; then :
11536   $as_echo_n "(cached) " >&6
11537 else
11538
11539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11540 /* end confdefs.h.  */
11541
11542 #include <fcntl.h>
11543 int
11544 main ()
11545 {
11546
11547 struct flock fl;
11548 fl.l_whence = 0;
11549 fl.l_start = 0;
11550 fl.l_len = 0;
11551 fl.l_pid = 0;
11552 return fcntl (1, F_SETLKW, &fl);
11553   ;
11554   return 0;
11555 }
11556 _ACEOF
11557 if ac_fn_cxx_try_compile "$LINENO"; then :
11558   ac_cv_f_setlkw=yes
11559 else
11560   ac_cv_f_setlkw=no
11561 fi
11562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11563 fi
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11565 $as_echo "$ac_cv_f_setlkw" >&6; }
11566 if test $ac_cv_f_setlkw = yes; then
11567
11568 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11569
11570 fi
11571
11572 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11573 CFLAGS="$saved_CFLAGS"
11574 CXXFLAGS="$saved_CXXFLAGS"
11575
11576 # mkdir takes a single argument on some systems.
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11578 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11579 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11580   $as_echo_n "(cached) " >&6
11581 else
11582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h.  */
11584
11585 #include <sys/types.h>
11586 #ifdef HAVE_SYS_STAT_H
11587 # include <sys/stat.h>
11588 #endif
11589 #ifdef HAVE_UNISTD_H
11590 # include <unistd.h>
11591 #endif
11592 #ifdef HAVE_DIRECT_H
11593 # include <direct.h>
11594 #endif
11595 int
11596 main ()
11597 {
11598 mkdir ("foo", 0);
11599   ;
11600   return 0;
11601 }
11602 _ACEOF
11603 if ac_fn_cxx_try_compile "$LINENO"; then :
11604   gcc_cv_mkdir_takes_one_arg=no
11605 else
11606   gcc_cv_mkdir_takes_one_arg=yes
11607 fi
11608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11609 fi
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11611 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11612 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11613
11614 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11615
11616 fi
11617
11618
11619 # File extensions
11620 manext='.1'
11621 objext='.o'
11622
11623
11624
11625 # With Setjmp/Longjmp based exception handling.
11626 # Check whether --enable-sjlj-exceptions was given.
11627 if test "${enable_sjlj_exceptions+set}" = set; then :
11628   enableval=$enable_sjlj_exceptions; case $target in
11629   *-*-hpux10*)
11630     if test $enableval != yes; then
11631       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11632 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11633       enableval=yes
11634     fi
11635     ;;
11636 esac
11637 force_sjlj_exceptions=yes
11638 else
11639   case $target in
11640   *-*-hpux10*)
11641     force_sjlj_exceptions=yes
11642     enableval=yes
11643     ;;
11644   lm32*-*-*)
11645      force_sjlj_exceptions=yes
11646      enableval=yes
11647      ;;
11648   *)
11649     force_sjlj_exceptions=no
11650     ;;
11651 esac
11652 fi
11653
11654 if test $force_sjlj_exceptions = yes; then
11655   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11656
11657 cat >>confdefs.h <<_ACEOF
11658 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11659 _ACEOF
11660
11661 fi
11662
11663 # --------------------------------------------------------
11664 # Build, host, and target specific configuration fragments
11665 # --------------------------------------------------------
11666
11667 # Collect build-machine-specific information.
11668 . ${srcdir}/config.build || exit 1
11669
11670 # Collect host-machine-specific information.
11671 . ${srcdir}/config.host || exit 1
11672
11673 target_gtfiles=
11674
11675 # Collect target-machine-specific information.
11676 . ${srcdir}/config.gcc || exit 1
11677
11678 extra_objs="${host_extra_objs} ${extra_objs}"
11679 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11680
11681 # Default the target-machine variables that were not explicitly set.
11682 if test x"$tm_file" = x
11683 then tm_file=$cpu_type/$cpu_type.h; fi
11684
11685 if test x"$extra_headers" = x
11686 then extra_headers=; fi
11687
11688 if test x$md_file = x
11689 then md_file=$cpu_type/$cpu_type.md; fi
11690
11691 if test x$out_file = x
11692 then out_file=$cpu_type/$cpu_type.c; fi
11693
11694 if test x"$tmake_file" = x
11695 then tmake_file=$cpu_type/t-$cpu_type
11696 fi
11697
11698 # Support --enable-initfini-array.
11699 if test x$enable_initfini_array != xno; then
11700   tm_file="${tm_file} initfini-array.h"
11701 fi
11702
11703 if test x"$dwarf2" = xyes
11704 then tm_file="$tm_file tm-dwarf2.h"
11705 fi
11706
11707 # Say what files are being used for the output code and MD file.
11708 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11709 echo "Using \`$srcdir/config/$md_file' as machine description file."
11710
11711 # If any of the xm_file variables contain nonexistent files, warn
11712 # about them and drop them.
11713
11714 bx=
11715 for x in $build_xm_file; do
11716   if    test -f $srcdir/config/$x
11717   then      bx="$bx $x"
11718   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11719 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11720   fi
11721 done
11722 build_xm_file="$bx"
11723
11724 hx=
11725 for x in $host_xm_file; do
11726   if    test -f $srcdir/config/$x
11727   then      hx="$hx $x"
11728   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11729 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11730   fi
11731 done
11732 host_xm_file="$hx"
11733
11734 tx=
11735 for x in $xm_file; do
11736   if    test -f $srcdir/config/$x
11737   then      tx="$tx $x"
11738   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11739 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11740   fi
11741 done
11742 xm_file="$tx"
11743
11744 count=a
11745 for f in $tm_file; do
11746         count=${count}x
11747 done
11748 if test $count = ax; then
11749         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11750 else
11751         echo "Using the following target machine macro files:"
11752         for f in $tm_file; do
11753                 echo "  $srcdir/config/$f"
11754         done
11755 fi
11756
11757 if test x$use_long_long_for_widest_fast_int = xyes; then
11758
11759 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11760
11761 fi
11762
11763 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11764
11765 cat >>confdefs.h <<_ACEOF
11766 #define HAVE_GNU_LD $gnu_ld_bool
11767 _ACEOF
11768
11769
11770 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11771
11772 cat >>confdefs.h <<_ACEOF
11773 #define HAVE_GNU_AS $gnu_as_bool
11774 _ACEOF
11775
11776
11777 count=a
11778 for f in $host_xm_file; do
11779         count=${count}x
11780 done
11781 if test $count = a; then
11782         :
11783 elif test $count = ax; then
11784         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11785 else
11786         echo "Using the following host machine macro files:"
11787         for f in $host_xm_file; do
11788                 echo "  $srcdir/config/$f"
11789         done
11790 fi
11791 echo "Using ${out_host_hook_obj} for host machine hooks."
11792
11793 if test "$host_xm_file" != "$build_xm_file"; then
11794         count=a
11795         for f in $build_xm_file; do
11796                 count=${count}x
11797         done
11798         if test $count = a; then
11799                 :
11800         elif test $count = ax; then
11801                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11802         else
11803                 echo "Using the following build machine macro files:"
11804                 for f in $build_xm_file; do
11805                         echo "  $srcdir/config/$f"
11806                 done
11807         fi
11808 fi
11809
11810 if test -n "$configured_native_system_header_dir"; then
11811   native_system_header_dir=$configured_native_system_header_dir
11812 fi
11813 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11814
11815
11816 case ${host} in
11817   powerpc*-*-darwin*)
11818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11819 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11820 if ${gcc_cv_mcontext_underscores+:} false; then :
11821   $as_echo_n "(cached) " >&6
11822 else
11823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h.  */
11825
11826 #include <sys/cdefs.h>
11827 #include <sys/signal.h>
11828 #include <ucontext.h>
11829 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11830
11831 _ACEOF
11832 if ac_fn_cxx_try_compile "$LINENO"; then :
11833   gcc_cv_mcontext_underscores=no
11834 else
11835   gcc_cv_mcontext_underscores=yes
11836 fi
11837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11838 fi
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11840 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11841       if test $gcc_cv_mcontext_underscores = yes; then
11842
11843 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11844
11845       fi
11846     ;;
11847 esac
11848
11849 # ---------
11850 # Threading
11851 # ---------
11852
11853 # Check if a valid thread package
11854 case ${enable_threads} in
11855   "" | no)
11856     # No threads
11857     target_thread_file='single'
11858     ;;
11859   yes)
11860     # default
11861     target_thread_file='single'
11862     ;;
11863   aix | dce | lynx | mipssde | posix | rtems | \
11864   single | tpf | vxworks | win32)
11865     target_thread_file=${enable_threads}
11866     ;;
11867   *)
11868     echo "${enable_threads} is an unknown thread package" 1>&2
11869     exit 1
11870     ;;
11871 esac
11872
11873 if test x${thread_file} = x; then
11874   # No thread file set by target-specific clauses in config.gcc,
11875   # so use file chosen by default logic above
11876   thread_file=${target_thread_file}
11877 fi
11878
11879 # --------
11880 # UNSORTED
11881 # --------
11882
11883 use_cxa_atexit=no
11884 if test x$enable___cxa_atexit = xyes || \
11885    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11886   if test x$host = x$target; then
11887     case $host in
11888       # mingw32 doesn't have __cxa_atexit but uses atexit registration
11889       # keyed to flag_use_cxa_atexit
11890       *-*-mingw32*)
11891         use_cxa_atexit=yes
11892         ;;
11893       powerpc-ibm-aix*)
11894         use_cxa_atexit=yes
11895         ;;
11896       *)
11897         ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11898 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
11899   use_cxa_atexit=yes
11900 else
11901   echo "__cxa_atexit can't be enabled on this target"
11902 fi
11903
11904         ;;
11905     esac
11906   else
11907     # We can't check for __cxa_atexit when building a cross, so assume
11908     # it is available
11909     use_cxa_atexit=yes
11910   fi
11911   if test x$use_cxa_atexit = xyes; then
11912
11913 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11914
11915   fi
11916 fi
11917
11918 # Look for a file containing extra machine modes.
11919 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11920   extra_modes_file='$(srcdir)'/config/${extra_modes}
11921
11922
11923 cat >>confdefs.h <<_ACEOF
11924 #define EXTRA_MODES_FILE "config/$extra_modes"
11925 _ACEOF
11926
11927 fi
11928
11929 # Convert extra_options into a form suitable for Makefile use.
11930 extra_opt_files=
11931 all_opt_files=
11932 for f in $extra_options; do
11933   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11934   all_opt_files="$all_opt_files $srcdir/config/$f"
11935 done
11936
11937
11938 # auto-host.h is the file containing items generated by autoconf and is
11939 # the first file included by config.h.
11940 # If host=build, it is correct to have bconfig include auto-host.h
11941 # as well.  If host!=build, we are in error and need to do more
11942 # work to find out the build config parameters.
11943 if test x$host = x$build
11944 then
11945         build_auto=auto-host.h
11946 else
11947         # We create a subdir, then run autoconf in the subdir.
11948         # To prevent recursion we set host and build for the new
11949         # invocation of configure to the build for this invocation
11950         # of configure.
11951         tempdir=build.$$
11952         rm -rf $tempdir
11953         mkdir $tempdir
11954         cd $tempdir
11955         case ${srcdir} in
11956         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11957         *) realsrcdir=../${srcdir};;
11958         esac
11959         # Clearing GMPINC is necessary to prevent host headers being
11960         # used by the build compiler.  Defining GENERATOR_FILE stops
11961         # system.h from including gmp.h.
11962         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11963         CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11964         LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11965         GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11966         ${realsrcdir}/configure \
11967                 --enable-languages=${enable_languages-all} \
11968                 --target=$target_alias --host=$build_alias --build=$build_alias
11969
11970         # We just finished tests for the build machine, so rename
11971         # the file auto-build.h in the gcc directory.
11972         mv auto-host.h ../auto-build.h
11973         cd ..
11974         rm -rf $tempdir
11975         build_auto=auto-build.h
11976 fi
11977
11978
11979 tm_file="${tm_file} defaults.h"
11980 tm_p_file="${tm_p_file} tm-preds.h"
11981 tm_d_file="${tm_d_file} defaults.h"
11982 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11983 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11984 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11985 # put this back in temporarily.
11986 xm_file="auto-host.h ansidecl.h ${xm_file}"
11987
11988 # --------
11989 # UNSORTED
11990 # --------
11991
11992 # Compile in configure arguments.
11993 if test -f configargs.h ; then
11994         # Being re-configured.
11995         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11996         gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
11997         if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
11998                 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11999         fi
12000 else
12001         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12002 fi
12003
12004 # Double all backslashes and backslash all quotes to turn
12005 # gcc_config_arguments into a C string.
12006 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12007 $gcc_config_arguments
12008 EOF
12009 gcc_config_arguments_str=`cat conftest.out`
12010 rm -f conftest.out
12011
12012 cat > configargs.h <<EOF
12013 /* Generated automatically. */
12014 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12015 static const char thread_model[] = "$thread_file";
12016
12017 static const struct {
12018   const char *name, *value;
12019 } configure_default_options[] = $configure_default_options;
12020 EOF
12021
12022 gcc_BASEVER=`cat $srcdir/BASE-VER`
12023 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12024 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12025 if test -f $srcdir/REVISION ; then
12026         gcc_REVISION=`cat $srcdir/REVISION`
12027 else
12028         gcc_REVISION=""
12029 fi
12030 cat > plugin-version.h <<EOF
12031 #include "configargs.h"
12032
12033 #define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12034 #define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12035 #define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12036 #define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12037
12038 static char basever[] = "$gcc_BASEVER";
12039 static char datestamp[] = "$gcc_DATESTAMP";
12040 static char devphase[] = "$gcc_DEVPHASE";
12041 static char revision[] = "$gcc_REVISION";
12042
12043 /* FIXME plugins: We should make the version information more precise.
12044    One way to do is to add a checksum. */
12045
12046 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12047                                                 devphase, revision,
12048                                                 configuration_arguments};
12049 EOF
12050
12051 # Determine what GCC version number to use in filesystem paths.
12052
12053   get_gcc_base_ver="cat"
12054
12055 # Check whether --with-gcc-major-version-only was given.
12056 if test "${with_gcc_major_version_only+set}" = set; then :
12057   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12058         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12059       fi
12060
12061 fi
12062
12063
12064
12065
12066 # Internationalization
12067 # If we haven't got the data from the intl directory,
12068 # assume NLS is disabled.
12069 USE_NLS=no
12070 LIBINTL=
12071 LIBINTL_DEP=
12072 INCINTL=
12073 XGETTEXT=
12074 GMSGFMT=
12075 POSUB=
12076
12077 if test -f  ../intl/config.intl; then
12078   .  ../intl/config.intl
12079 fi
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12081 $as_echo_n "checking whether NLS is requested... " >&6; }
12082 if test x"$USE_NLS" != xyes; then
12083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12085 else
12086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12087 $as_echo "yes" >&6; }
12088
12089 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12090
12091
12092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12093 $as_echo_n "checking for catalogs to be installed... " >&6; }
12094   # Look for .po and .gmo files in the source directory.
12095   CATALOGS=
12096   XLINGUAS=
12097   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12098     # If there aren't any .gmo files the shell will give us the
12099     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12100     # weeded out.
12101     case "$cat" in *\**)
12102       continue;;
12103     esac
12104     # The quadruple backslash is collapsed to a double backslash
12105     # by the backticks, then collapsed again by the double quotes,
12106     # leaving us with one backslash in the sed expression (right
12107     # before the dot that mustn't act as a wildcard).
12108     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12109     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12110     # The user is allowed to set LINGUAS to a list of languages to
12111     # install catalogs for.  If it's empty that means "all of them."
12112     if test "x$LINGUAS" = x; then
12113       CATALOGS="$CATALOGS $cat"
12114       XLINGUAS="$XLINGUAS $lang"
12115     else
12116       case "$LINGUAS" in *$lang*)
12117         CATALOGS="$CATALOGS $cat"
12118         XLINGUAS="$XLINGUAS $lang"
12119         ;;
12120       esac
12121     fi
12122   done
12123   LINGUAS="$XLINGUAS"
12124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12125 $as_echo "$LINGUAS" >&6; }
12126
12127
12128     DATADIRNAME=share
12129
12130   INSTOBJEXT=.mo
12131
12132   GENCAT=gencat
12133
12134   CATOBJEXT=.gmo
12135
12136 fi
12137
12138 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12139 # -liconv on the link line twice.
12140 case "$LIBINTL" in *$LIBICONV*)
12141         LIBICONV= ;;
12142 esac
12143
12144 # Check whether --enable-secureplt was given.
12145 if test "${enable_secureplt+set}" = set; then :
12146   enableval=$enable_secureplt;
12147 fi
12148
12149
12150 # Check whether --enable-mingw-wildcard was given.
12151 if test "${enable_mingw_wildcard+set}" = set; then :
12152   enableval=$enable_mingw_wildcard;
12153 else
12154   enable_mingw_wildcard=platform
12155 fi
12156
12157 if test x"$enable_mingw_wildcard" != xplatform ; then :
12158
12159 cat >>confdefs.h <<_ACEOF
12160 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12161 _ACEOF
12162
12163 fi
12164
12165 # Check whether --enable-large-address-aware was given.
12166 if test "${enable_large_address_aware+set}" = set; then :
12167   enableval=$enable_large_address_aware;
12168 fi
12169
12170 if test x"$enable_large_address_aware" = xyes; then :
12171
12172 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12173
12174 fi
12175
12176 # Check whether --enable-leading-mingw64-underscores was given.
12177 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12178   enableval=$enable_leading_mingw64_underscores;
12179 fi
12180
12181 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
12182
12183 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12184
12185 fi
12186
12187 # Check whether --enable-cld was given.
12188 if test "${enable_cld+set}" = set; then :
12189   enableval=$enable_cld;
12190 else
12191   enable_cld=no
12192 fi
12193
12194
12195 # Check whether --enable-frame-pointer was given.
12196 if test "${enable_frame_pointer+set}" = set; then :
12197   enableval=$enable_frame_pointer;
12198 else
12199
12200 case $target_os in
12201 linux* | darwin[8912]*)
12202   # Enable -fomit-frame-pointer by default for Linux and Darwin with
12203   # DWARF2.
12204   enable_frame_pointer=no
12205   ;;
12206 *)
12207   enable_frame_pointer=yes
12208   ;;
12209 esac
12210
12211 fi
12212
12213
12214 # Windows32 Registry support for specifying GCC installation paths.
12215 # Check whether --enable-win32-registry was given.
12216 if test "${enable_win32_registry+set}" = set; then :
12217   enableval=$enable_win32_registry;
12218 fi
12219
12220
12221 case $host_os in
12222   win32 | pe | cygwin* | mingw32*)
12223     if test "x$enable_win32_registry" != xno; then
12224       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12225 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12226 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12227   $as_echo_n "(cached) " >&6
12228 else
12229   ac_func_search_save_LIBS=$LIBS
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h.  */
12232
12233 /* Override any GCC internal prototype to avoid an error.
12234    Use char because int might match the return type of a GCC
12235    builtin and then its argument prototype would still apply.  */
12236 #ifdef __cplusplus
12237 extern "C"
12238 #endif
12239 char RegOpenKeyExA ();
12240 int
12241 main ()
12242 {
12243 return RegOpenKeyExA ();
12244   ;
12245   return 0;
12246 }
12247 _ACEOF
12248 for ac_lib in '' advapi32; do
12249   if test -z "$ac_lib"; then
12250     ac_res="none required"
12251   else
12252     ac_res=-l$ac_lib
12253     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12254   fi
12255   if ac_fn_cxx_try_link "$LINENO"; then :
12256   ac_cv_search_RegOpenKeyExA=$ac_res
12257 fi
12258 rm -f core conftest.err conftest.$ac_objext \
12259     conftest$ac_exeext
12260   if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12261   break
12262 fi
12263 done
12264 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12265
12266 else
12267   ac_cv_search_RegOpenKeyExA=no
12268 fi
12269 rm conftest.$ac_ext
12270 LIBS=$ac_func_search_save_LIBS
12271 fi
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12273 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12274 ac_res=$ac_cv_search_RegOpenKeyExA
12275 if test "$ac_res" != no; then :
12276   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12277
12278 else
12279   enable_win32_registry=no
12280 fi
12281
12282     fi
12283
12284     if test "x$enable_win32_registry" != xno; then
12285
12286 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12287
12288
12289       if test "x$enable_win32_registry" != xyes \
12290          && test "x$enable_win32_registry" != x; then
12291
12292 cat >>confdefs.h <<_ACEOF
12293 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12294 _ACEOF
12295
12296       fi
12297     fi
12298   ;;
12299 esac
12300
12301 # Get an absolute path to the GCC top-level source directory
12302 holddir=`${PWDCMD-pwd}`
12303 cd $srcdir
12304 topdir=`${PWDCMD-pwd}`
12305 cd $holddir
12306
12307 # Conditionalize the makefile for this host machine.
12308 xmake_file=
12309 for f in ${host_xmake_file}
12310 do
12311         if test -f ${srcdir}/config/$f
12312         then
12313                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12314         fi
12315 done
12316
12317 # Conditionalize the makefile for this target machine.
12318 tmake_file_=
12319 for f in ${tmake_file}
12320 do
12321         if test -f ${srcdir}/config/$f
12322         then
12323                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12324         fi
12325 done
12326 tmake_file="${tmake_file_}"
12327
12328 out_object_file=`basename $out_file .c`.o
12329 common_out_object_file=`basename $common_out_file .c`.o
12330
12331 tm_file_list="options.h"
12332 tm_include_list="options.h insn-constants.h"
12333 for f in $tm_file; do
12334   case $f in
12335     ./* )
12336        f=`echo $f | sed 's/^..//'`
12337        tm_file_list="${tm_file_list} $f"
12338        tm_include_list="${tm_include_list} $f"
12339        ;;
12340     defaults.h )
12341        tm_file_list="${tm_file_list} \$(srcdir)/$f"
12342        tm_include_list="${tm_include_list} $f"
12343        ;;
12344     * )
12345        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12346        tm_include_list="${tm_include_list} config/$f"
12347        ;;
12348   esac
12349 done
12350
12351 tm_p_file_list=
12352 tm_p_include_list=
12353 for f in $tm_p_file; do
12354   case $f in
12355     tm-preds.h )
12356        tm_p_file_list="${tm_p_file_list} $f"
12357        tm_p_include_list="${tm_p_include_list} $f"
12358        ;;
12359     * )
12360        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12361        tm_p_include_list="${tm_p_include_list} config/$f"
12362   esac
12363 done
12364
12365 tm_d_file_list=
12366 tm_d_include_list="options.h insn-constants.h"
12367 for f in $tm_d_file; do
12368   case $f in
12369     defaults.h )
12370        tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12371        tm_d_include_list="${tm_d_include_list} $f"
12372        ;;
12373     * )
12374        tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12375        tm_d_include_list="${tm_d_include_list} config/$f"
12376        ;;
12377   esac
12378 done
12379
12380 xm_file_list=
12381 xm_include_list=
12382 for f in $xm_file; do
12383   case $f in
12384     ansidecl.h )
12385        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12386        xm_include_list="${xm_include_list} $f"
12387        ;;
12388     auto-host.h )
12389        xm_file_list="${xm_file_list} $f"
12390        xm_include_list="${xm_include_list} $f"
12391        ;;
12392     * )
12393        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12394        xm_include_list="${xm_include_list} config/$f"
12395        ;;
12396   esac
12397 done
12398
12399 host_xm_file_list=
12400 host_xm_include_list=
12401 for f in $host_xm_file; do
12402   case $f in
12403     ansidecl.h )
12404        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12405        host_xm_include_list="${host_xm_include_list} $f"
12406        ;;
12407     auto-host.h )
12408        host_xm_file_list="${host_xm_file_list} $f"
12409        host_xm_include_list="${host_xm_include_list} $f"
12410        ;;
12411     * )
12412        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12413        host_xm_include_list="${host_xm_include_list} config/$f"
12414        ;;
12415   esac
12416 done
12417
12418 build_xm_file_list=
12419 for f in $build_xm_file; do
12420   case $f in
12421     ansidecl.h )
12422        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12423        build_xm_include_list="${build_xm_include_list} $f"
12424        ;;
12425     auto-build.h | auto-host.h )
12426        build_xm_file_list="${build_xm_file_list} $f"
12427        build_xm_include_list="${build_xm_include_list} $f"
12428        ;;
12429     * )
12430        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12431        build_xm_include_list="${build_xm_include_list} config/$f"
12432        ;;
12433   esac
12434 done
12435
12436 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12437 # cross-compiler which does not use the native headers and libraries.
12438 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12439 CROSS=
12440 ALL=all.internal
12441 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12442 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12443
12444 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12445    test x$build != x$host || test "x$with_build_sysroot" != x; then
12446   if test "x$with_build_sysroot" != x; then
12447     BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12448   else
12449     BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12450   fi
12451
12452   if test x$host != x$target
12453   then
12454     CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12455     ALL=all.cross
12456     SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12457   elif test "x$TARGET_SYSTEM_ROOT" != x; then
12458     SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12459   fi
12460
12461   if test "x$with_build_sysroot" != "x"; then
12462     target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12463   elif test "x$with_sysroot" = x; then
12464     target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12465   elif test "x$with_sysroot" = xyes; then
12466     target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12467   else
12468     target_header_dir="${with_sysroot}${native_system_header_dir}"
12469   fi
12470 else
12471   target_header_dir=${native_system_header_dir}
12472 fi
12473
12474 # If this is a cross-compiler that does not
12475 # have its own set of headers then define
12476 # inhibit_libc
12477
12478 # If this is using newlib, without having the headers available now,
12479 # then define inhibit_libc in LIBGCC2_CFLAGS.
12480 # This prevents libgcc2 from containing any code which requires libc
12481 # support.
12482 : ${inhibit_libc=false}
12483 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12484        test x$with_newlib = xyes ; } &&
12485      { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12486        inhibit_libc=true
12487 fi
12488
12489
12490 # When building gcc with a cross-compiler, we need to adjust things so
12491 # that the generator programs are still built with the native compiler.
12492 # Also, we cannot run fixincludes.
12493
12494 # These are the normal (build=host) settings:
12495 CC_FOR_BUILD='$(CC)'
12496 CXX_FOR_BUILD='$(CXX)'
12497 BUILD_CFLAGS='$(ALL_CFLAGS)'
12498 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12499 BUILD_LDFLAGS='$(LDFLAGS)'
12500 STMP_FIXINC=stmp-fixinc
12501
12502 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12503 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12504
12505 # And these apply if build != host, or we are generating coverage data
12506 if test x$build != x$host || test "x$coverage_flags" != x
12507 then
12508     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12509     BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12510     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12511
12512     NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12513     NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12514     BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12515     BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12516 fi
12517
12518
12519
12520 # Expand extra_headers to include complete path.
12521 # This substitutes for lots of t-* files.
12522 extra_headers_list=
12523 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12524 for file in ${extra_headers} ; do
12525   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12526 done
12527
12528 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12529 if test x"$use_gcc_tgmath" = xyes
12530 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12531 fi
12532
12533 # Define collect2 in Makefile.
12534 case $host_can_use_collect2 in
12535   no) collect2= ;;
12536   *) collect2='collect2$(exeext)' ;;
12537 esac
12538
12539
12540 # Add a definition of USE_COLLECT2 if system wants one.
12541 case $use_collect2 in
12542   no) use_collect2= ;;
12543   "") ;;
12544   *)
12545     host_xm_defines="${host_xm_defines} USE_COLLECT2"
12546     xm_defines="${xm_defines} USE_COLLECT2"
12547     case $host_can_use_collect2 in
12548       no)
12549         as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12550         ;;
12551     esac
12552     ;;
12553 esac
12554
12555
12556 cat >>confdefs.h <<_ACEOF
12557 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12558 _ACEOF
12559
12560
12561 # ---------------------------
12562 # Assembler & linker features
12563 # ---------------------------
12564
12565 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12566 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12567 # However when ld-new is first executed from the build tree, libtool will
12568 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12569 # to the build tree.  While doing this we need to use the previous-stage
12570 # linker, or we have an infinite loop.  The presence of a shell script as
12571 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12572 # the gcc/collect-ld script.  So we need to know how libtool works, or
12573 # exec-tool will fail.
12574
12575
12576 case `pwd` in
12577   *\ * | *\     *)
12578     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12579 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12580 esac
12581
12582
12583
12584 macro_version='2.2.7a'
12585 macro_revision='1.3134'
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599 ltmain="$ac_aux_dir/ltmain.sh"
12600
12601 # Backslashify metacharacters that are still active within
12602 # double-quoted strings.
12603 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12604
12605 # Same as above, but do not quote variable references.
12606 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12607
12608 # Sed substitution to delay expansion of an escaped shell variable in a
12609 # double_quote_subst'ed string.
12610 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12611
12612 # Sed substitution to delay expansion of an escaped single quote.
12613 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12614
12615 # Sed substitution to avoid accidental globbing in evaled expressions
12616 no_glob_subst='s/\*/\\\*/g'
12617
12618 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12619 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12620 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12621
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12623 $as_echo_n "checking how to print strings... " >&6; }
12624 # Test print first, because it will be a builtin if present.
12625 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12626    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12627   ECHO='print -r --'
12628 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12629   ECHO='printf %s\n'
12630 else
12631   # Use this function as a fallback that always works.
12632   func_fallback_echo ()
12633   {
12634     eval 'cat <<_LTECHO_EOF
12635 $1
12636 _LTECHO_EOF'
12637   }
12638   ECHO='func_fallback_echo'
12639 fi
12640
12641 # func_echo_all arg...
12642 # Invoke $ECHO with all args, space-separated.
12643 func_echo_all ()
12644 {
12645     $ECHO ""
12646 }
12647
12648 case "$ECHO" in
12649   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12650 $as_echo "printf" >&6; } ;;
12651   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12652 $as_echo "print -r" >&6; } ;;
12653   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12654 $as_echo "cat" >&6; } ;;
12655 esac
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12671 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12672 if ${ac_cv_path_SED+:} false; then :
12673   $as_echo_n "(cached) " >&6
12674 else
12675             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12676      for ac_i in 1 2 3 4 5 6 7; do
12677        ac_script="$ac_script$as_nl$ac_script"
12678      done
12679      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12680      { ac_script=; unset ac_script;}
12681      if test -z "$SED"; then
12682   ac_path_SED_found=false
12683   # Loop through the user's path and test for each of PROGNAME-LIST
12684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12685 for as_dir in $PATH
12686 do
12687   IFS=$as_save_IFS
12688   test -z "$as_dir" && as_dir=.
12689     for ac_prog in sed gsed; do
12690     for ac_exec_ext in '' $ac_executable_extensions; do
12691       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12692       as_fn_executable_p "$ac_path_SED" || continue
12693 # Check for GNU ac_path_SED and select it if it is found.
12694   # Check for GNU $ac_path_SED
12695 case `"$ac_path_SED" --version 2>&1` in
12696 *GNU*)
12697   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12698 *)
12699   ac_count=0
12700   $as_echo_n 0123456789 >"conftest.in"
12701   while :
12702   do
12703     cat "conftest.in" "conftest.in" >"conftest.tmp"
12704     mv "conftest.tmp" "conftest.in"
12705     cp "conftest.in" "conftest.nl"
12706     $as_echo '' >> "conftest.nl"
12707     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12708     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12709     as_fn_arith $ac_count + 1 && ac_count=$as_val
12710     if test $ac_count -gt ${ac_path_SED_max-0}; then
12711       # Best one so far, save it but keep looking for a better one
12712       ac_cv_path_SED="$ac_path_SED"
12713       ac_path_SED_max=$ac_count
12714     fi
12715     # 10*(2^10) chars as input seems more than enough
12716     test $ac_count -gt 10 && break
12717   done
12718   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12719 esac
12720
12721       $ac_path_SED_found && break 3
12722     done
12723   done
12724   done
12725 IFS=$as_save_IFS
12726   if test -z "$ac_cv_path_SED"; then
12727     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12728   fi
12729 else
12730   ac_cv_path_SED=$SED
12731 fi
12732
12733 fi
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12735 $as_echo "$ac_cv_path_SED" >&6; }
12736  SED="$ac_cv_path_SED"
12737   rm -f conftest.sed
12738
12739 test -z "$SED" && SED=sed
12740 Xsed="$SED -e 1s/^X//"
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12753 $as_echo_n "checking for fgrep... " >&6; }
12754 if ${ac_cv_path_FGREP+:} false; then :
12755   $as_echo_n "(cached) " >&6
12756 else
12757   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12758    then ac_cv_path_FGREP="$GREP -F"
12759    else
12760      if test -z "$FGREP"; then
12761   ac_path_FGREP_found=false
12762   # Loop through the user's path and test for each of PROGNAME-LIST
12763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12765 do
12766   IFS=$as_save_IFS
12767   test -z "$as_dir" && as_dir=.
12768     for ac_prog in fgrep; do
12769     for ac_exec_ext in '' $ac_executable_extensions; do
12770       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12771       as_fn_executable_p "$ac_path_FGREP" || continue
12772 # Check for GNU ac_path_FGREP and select it if it is found.
12773   # Check for GNU $ac_path_FGREP
12774 case `"$ac_path_FGREP" --version 2>&1` in
12775 *GNU*)
12776   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12777 *)
12778   ac_count=0
12779   $as_echo_n 0123456789 >"conftest.in"
12780   while :
12781   do
12782     cat "conftest.in" "conftest.in" >"conftest.tmp"
12783     mv "conftest.tmp" "conftest.in"
12784     cp "conftest.in" "conftest.nl"
12785     $as_echo 'FGREP' >> "conftest.nl"
12786     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12787     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12788     as_fn_arith $ac_count + 1 && ac_count=$as_val
12789     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12790       # Best one so far, save it but keep looking for a better one
12791       ac_cv_path_FGREP="$ac_path_FGREP"
12792       ac_path_FGREP_max=$ac_count
12793     fi
12794     # 10*(2^10) chars as input seems more than enough
12795     test $ac_count -gt 10 && break
12796   done
12797   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12798 esac
12799
12800       $ac_path_FGREP_found && break 3
12801     done
12802   done
12803   done
12804 IFS=$as_save_IFS
12805   if test -z "$ac_cv_path_FGREP"; then
12806     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12807   fi
12808 else
12809   ac_cv_path_FGREP=$FGREP
12810 fi
12811
12812    fi
12813 fi
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12815 $as_echo "$ac_cv_path_FGREP" >&6; }
12816  FGREP="$ac_cv_path_FGREP"
12817
12818
12819 test -z "$GREP" && GREP=grep
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839 # Check whether --with-gnu-ld was given.
12840 if test "${with_gnu_ld+set}" = set; then :
12841   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12842 else
12843   with_gnu_ld=no
12844 fi
12845
12846 ac_prog=ld
12847 if test "$GCC" = yes; then
12848   # Check if gcc -print-prog-name=ld gives a path.
12849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12850 $as_echo_n "checking for ld used by $CC... " >&6; }
12851   case $host in
12852   *-*-mingw*)
12853     # gcc leaves a trailing carriage return which upsets mingw
12854     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12855   *)
12856     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12857   esac
12858   case $ac_prog in
12859     # Accept absolute paths.
12860     [\\/]* | ?:[\\/]*)
12861       re_direlt='/[^/][^/]*/\.\./'
12862       # Canonicalize the pathname of ld
12863       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12864       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12865         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12866       done
12867       test -z "$LD" && LD="$ac_prog"
12868       ;;
12869   "")
12870     # If it fails, then pretend we aren't using GCC.
12871     ac_prog=ld
12872     ;;
12873   *)
12874     # If it is relative, then search for the first ld in PATH.
12875     with_gnu_ld=unknown
12876     ;;
12877   esac
12878 elif test "$with_gnu_ld" = yes; then
12879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12880 $as_echo_n "checking for GNU ld... " >&6; }
12881 else
12882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12883 $as_echo_n "checking for non-GNU ld... " >&6; }
12884 fi
12885 if ${lt_cv_path_LD+:} false; then :
12886   $as_echo_n "(cached) " >&6
12887 else
12888   if test -z "$LD"; then
12889   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12890   for ac_dir in $PATH; do
12891     IFS="$lt_save_ifs"
12892     test -z "$ac_dir" && ac_dir=.
12893     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12894       lt_cv_path_LD="$ac_dir/$ac_prog"
12895       # Check to see if the program is GNU ld.  I'd rather use --version,
12896       # but apparently some variants of GNU ld only accept -v.
12897       # Break only if it was the GNU/non-GNU ld that we prefer.
12898       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12899       *GNU* | *'with BFD'*)
12900         test "$with_gnu_ld" != no && break
12901         ;;
12902       *)
12903         test "$with_gnu_ld" != yes && break
12904         ;;
12905       esac
12906     fi
12907   done
12908   IFS="$lt_save_ifs"
12909 else
12910   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12911 fi
12912 fi
12913
12914 LD="$lt_cv_path_LD"
12915 if test -n "$LD"; then
12916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12917 $as_echo "$LD" >&6; }
12918 else
12919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920 $as_echo "no" >&6; }
12921 fi
12922 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12924 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12925 if ${lt_cv_prog_gnu_ld+:} false; then :
12926   $as_echo_n "(cached) " >&6
12927 else
12928   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12929 case `$LD -v 2>&1 </dev/null` in
12930 *GNU* | *'with BFD'*)
12931   lt_cv_prog_gnu_ld=yes
12932   ;;
12933 *)
12934   lt_cv_prog_gnu_ld=no
12935   ;;
12936 esac
12937 fi
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12939 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12940 with_gnu_ld=$lt_cv_prog_gnu_ld
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12951 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12952 if ${lt_cv_path_NM+:} false; then :
12953   $as_echo_n "(cached) " >&6
12954 else
12955   if test -n "$NM"; then
12956   # Let the user override the test.
12957   lt_cv_path_NM="$NM"
12958 else
12959   lt_nm_to_check="${ac_tool_prefix}nm"
12960   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12961     lt_nm_to_check="$lt_nm_to_check nm"
12962   fi
12963   for lt_tmp_nm in $lt_nm_to_check; do
12964     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12965     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12966       IFS="$lt_save_ifs"
12967       test -z "$ac_dir" && ac_dir=.
12968       tmp_nm="$ac_dir/$lt_tmp_nm"
12969       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12970         # Check to see if the nm accepts a BSD-compat flag.
12971         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12972         #   nm: unknown option "B" ignored
12973         # Tru64's nm complains that /dev/null is an invalid object file
12974         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12975         */dev/null* | *'Invalid file or object type'*)
12976           lt_cv_path_NM="$tmp_nm -B"
12977           break
12978           ;;
12979         *)
12980           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12981           */dev/null*)
12982             lt_cv_path_NM="$tmp_nm -p"
12983             break
12984             ;;
12985           *)
12986             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12987             continue # so that we can try to find one that supports BSD flags
12988             ;;
12989           esac
12990           ;;
12991         esac
12992       fi
12993     done
12994     IFS="$lt_save_ifs"
12995   done
12996   : ${lt_cv_path_NM=no}
12997 fi
12998 fi
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13000 $as_echo "$lt_cv_path_NM" >&6; }
13001 if test "$lt_cv_path_NM" != "no"; then
13002   NM="$lt_cv_path_NM"
13003 else
13004   # Didn't find any BSD compatible name lister, look for dumpbin.
13005   if test -n "$DUMPBIN"; then :
13006     # Let the user override the test.
13007   else
13008     if test -n "$ac_tool_prefix"; then
13009   for ac_prog in dumpbin "link -dump"
13010   do
13011     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13014 $as_echo_n "checking for $ac_word... " >&6; }
13015 if ${ac_cv_prog_DUMPBIN+:} false; then :
13016   $as_echo_n "(cached) " >&6
13017 else
13018   if test -n "$DUMPBIN"; then
13019   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13020 else
13021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13022 for as_dir in $PATH
13023 do
13024   IFS=$as_save_IFS
13025   test -z "$as_dir" && as_dir=.
13026     for ac_exec_ext in '' $ac_executable_extensions; do
13027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13028     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13030     break 2
13031   fi
13032 done
13033   done
13034 IFS=$as_save_IFS
13035
13036 fi
13037 fi
13038 DUMPBIN=$ac_cv_prog_DUMPBIN
13039 if test -n "$DUMPBIN"; then
13040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13041 $as_echo "$DUMPBIN" >&6; }
13042 else
13043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13044 $as_echo "no" >&6; }
13045 fi
13046
13047
13048     test -n "$DUMPBIN" && break
13049   done
13050 fi
13051 if test -z "$DUMPBIN"; then
13052   ac_ct_DUMPBIN=$DUMPBIN
13053   for ac_prog in dumpbin "link -dump"
13054 do
13055   # Extract the first word of "$ac_prog", so it can be a program name with args.
13056 set dummy $ac_prog; ac_word=$2
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13058 $as_echo_n "checking for $ac_word... " >&6; }
13059 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13060   $as_echo_n "(cached) " >&6
13061 else
13062   if test -n "$ac_ct_DUMPBIN"; then
13063   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13064 else
13065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13066 for as_dir in $PATH
13067 do
13068   IFS=$as_save_IFS
13069   test -z "$as_dir" && as_dir=.
13070     for ac_exec_ext in '' $ac_executable_extensions; do
13071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13072     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13074     break 2
13075   fi
13076 done
13077   done
13078 IFS=$as_save_IFS
13079
13080 fi
13081 fi
13082 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13083 if test -n "$ac_ct_DUMPBIN"; then
13084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13085 $as_echo "$ac_ct_DUMPBIN" >&6; }
13086 else
13087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088 $as_echo "no" >&6; }
13089 fi
13090
13091
13092   test -n "$ac_ct_DUMPBIN" && break
13093 done
13094
13095   if test "x$ac_ct_DUMPBIN" = x; then
13096     DUMPBIN=":"
13097   else
13098     case $cross_compiling:$ac_tool_warned in
13099 yes:)
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13102 ac_tool_warned=yes ;;
13103 esac
13104     DUMPBIN=$ac_ct_DUMPBIN
13105   fi
13106 fi
13107
13108     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13109     *COFF*)
13110       DUMPBIN="$DUMPBIN -symbols"
13111       ;;
13112     *)
13113       DUMPBIN=:
13114       ;;
13115     esac
13116   fi
13117
13118   if test "$DUMPBIN" != ":"; then
13119     NM="$DUMPBIN"
13120   fi
13121 fi
13122 test -z "$NM" && NM=nm
13123
13124
13125
13126
13127
13128
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13130 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13131 if ${lt_cv_nm_interface+:} false; then :
13132   $as_echo_n "(cached) " >&6
13133 else
13134   lt_cv_nm_interface="BSD nm"
13135   echo "int some_variable = 0;" > conftest.$ac_ext
13136   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13137   (eval "$ac_compile" 2>conftest.err)
13138   cat conftest.err >&5
13139   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13140   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13141   cat conftest.err >&5
13142   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13143   cat conftest.out >&5
13144   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13145     lt_cv_nm_interface="MS dumpbin"
13146   fi
13147   rm -f conftest*
13148 fi
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13150 $as_echo "$lt_cv_nm_interface" >&6; }
13151
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13153 $as_echo_n "checking whether ln -s works... " >&6; }
13154 LN_S=$as_ln_s
13155 if test "$LN_S" = "ln -s"; then
13156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13157 $as_echo "yes" >&6; }
13158 else
13159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13160 $as_echo "no, using $LN_S" >&6; }
13161 fi
13162
13163 # find the maximum length of command line arguments
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13165 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13166 if ${lt_cv_sys_max_cmd_len+:} false; then :
13167   $as_echo_n "(cached) " >&6
13168 else
13169     i=0
13170   teststring="ABCD"
13171
13172   case $build_os in
13173   msdosdjgpp*)
13174     # On DJGPP, this test can blow up pretty badly due to problems in libc
13175     # (any single argument exceeding 2000 bytes causes a buffer overrun
13176     # during glob expansion).  Even if it were fixed, the result of this
13177     # check would be larger than it should be.
13178     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13179     ;;
13180
13181   gnu*)
13182     # Under GNU Hurd, this test is not required because there is
13183     # no limit to the length of command line arguments.
13184     # Libtool will interpret -1 as no limit whatsoever
13185     lt_cv_sys_max_cmd_len=-1;
13186     ;;
13187
13188   cygwin* | mingw* | cegcc*)
13189     # On Win9x/ME, this test blows up -- it succeeds, but takes
13190     # about 5 minutes as the teststring grows exponentially.
13191     # Worse, since 9x/ME are not pre-emptively multitasking,
13192     # you end up with a "frozen" computer, even though with patience
13193     # the test eventually succeeds (with a max line length of 256k).
13194     # Instead, let's just punt: use the minimum linelength reported by
13195     # all of the supported platforms: 8192 (on NT/2K/XP).
13196     lt_cv_sys_max_cmd_len=8192;
13197     ;;
13198
13199   mint*)
13200     # On MiNT this can take a long time and run out of memory.
13201     lt_cv_sys_max_cmd_len=8192;
13202     ;;
13203
13204   amigaos*)
13205     # On AmigaOS with pdksh, this test takes hours, literally.
13206     # So we just punt and use a minimum line length of 8192.
13207     lt_cv_sys_max_cmd_len=8192;
13208     ;;
13209
13210   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13211     # This has been around since 386BSD, at least.  Likely further.
13212     if test -x /sbin/sysctl; then
13213       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13214     elif test -x /usr/sbin/sysctl; then
13215       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13216     else
13217       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13218     fi
13219     # And add a safety zone
13220     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13221     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13222     ;;
13223
13224   interix*)
13225     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13226     lt_cv_sys_max_cmd_len=196608
13227     ;;
13228
13229   osf*)
13230     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13231     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13232     # nice to cause kernel panics so lets avoid the loop below.
13233     # First set a reasonable default.
13234     lt_cv_sys_max_cmd_len=16384
13235     #
13236     if test -x /sbin/sysconfig; then
13237       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13238         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13239       esac
13240     fi
13241     ;;
13242   sco3.2v5*)
13243     lt_cv_sys_max_cmd_len=102400
13244     ;;
13245   sysv5* | sco5v6* | sysv4.2uw2*)
13246     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13247     if test -n "$kargmax"; then
13248       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
13249     else
13250       lt_cv_sys_max_cmd_len=32768
13251     fi
13252     ;;
13253   *)
13254     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13255     if test -n "$lt_cv_sys_max_cmd_len"; then
13256       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13257       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13258     else
13259       # Make teststring a little bigger before we do anything with it.
13260       # a 1K string should be a reasonable start.
13261       for i in 1 2 3 4 5 6 7 8 ; do
13262         teststring=$teststring$teststring
13263       done
13264       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13265       # If test is not a shell built-in, we'll probably end up computing a
13266       # maximum length that is only half of the actual maximum length, but
13267       # we can't tell.
13268       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13269                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13270               test $i != 17 # 1/2 MB should be enough
13271       do
13272         i=`expr $i + 1`
13273         teststring=$teststring$teststring
13274       done
13275       # Only check the string length outside the loop.
13276       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13277       teststring=
13278       # Add a significant safety factor because C++ compilers can tack on
13279       # massive amounts of additional arguments before passing them to the
13280       # linker.  It appears as though 1/2 is a usable value.
13281       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13282     fi
13283     ;;
13284   esac
13285
13286 fi
13287
13288 if test -n $lt_cv_sys_max_cmd_len ; then
13289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13290 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13291 else
13292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13293 $as_echo "none" >&6; }
13294 fi
13295 max_cmd_len=$lt_cv_sys_max_cmd_len
13296
13297
13298
13299
13300
13301
13302 : ${CP="cp -f"}
13303 : ${MV="mv -f"}
13304 : ${RM="rm -f"}
13305
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13307 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13308 # Try some XSI features
13309 xsi_shell=no
13310 ( _lt_dummy="a/b/c"
13311   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13312       = c,a/b,, \
13313     && eval 'test $(( 1 + 1 )) -eq 2 \
13314     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13315   && xsi_shell=yes
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13317 $as_echo "$xsi_shell" >&6; }
13318
13319
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13321 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13322 lt_shell_append=no
13323 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13324     >/dev/null 2>&1 \
13325   && lt_shell_append=yes
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13327 $as_echo "$lt_shell_append" >&6; }
13328
13329
13330 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13331   lt_unset=unset
13332 else
13333   lt_unset=false
13334 fi
13335
13336
13337
13338
13339
13340 # test EBCDIC or ASCII
13341 case `echo X|tr X '\101'` in
13342  A) # ASCII based system
13343     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13344   lt_SP2NL='tr \040 \012'
13345   lt_NL2SP='tr \015\012 \040\040'
13346   ;;
13347  *) # EBCDIC based system
13348   lt_SP2NL='tr \100 \n'
13349   lt_NL2SP='tr \r\n \100\100'
13350   ;;
13351 esac
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13362 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13363 if ${lt_cv_ld_reload_flag+:} false; then :
13364   $as_echo_n "(cached) " >&6
13365 else
13366   lt_cv_ld_reload_flag='-r'
13367 fi
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13369 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13370 reload_flag=$lt_cv_ld_reload_flag
13371 case $reload_flag in
13372 "" | " "*) ;;
13373 *) reload_flag=" $reload_flag" ;;
13374 esac
13375 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13376 case $host_os in
13377   darwin*)
13378     if test "$GCC" = yes; then
13379       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13380     else
13381       reload_cmds='$LD$reload_flag -o $output$reload_objs'
13382     fi
13383     ;;
13384 esac
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394 if test -n "$ac_tool_prefix"; then
13395   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13396 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13398 $as_echo_n "checking for $ac_word... " >&6; }
13399 if ${ac_cv_prog_OBJDUMP+:} false; then :
13400   $as_echo_n "(cached) " >&6
13401 else
13402   if test -n "$OBJDUMP"; then
13403   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13404 else
13405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406 for as_dir in $PATH
13407 do
13408   IFS=$as_save_IFS
13409   test -z "$as_dir" && as_dir=.
13410     for ac_exec_ext in '' $ac_executable_extensions; do
13411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13412     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13414     break 2
13415   fi
13416 done
13417   done
13418 IFS=$as_save_IFS
13419
13420 fi
13421 fi
13422 OBJDUMP=$ac_cv_prog_OBJDUMP
13423 if test -n "$OBJDUMP"; then
13424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13425 $as_echo "$OBJDUMP" >&6; }
13426 else
13427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13428 $as_echo "no" >&6; }
13429 fi
13430
13431
13432 fi
13433 if test -z "$ac_cv_prog_OBJDUMP"; then
13434   ac_ct_OBJDUMP=$OBJDUMP
13435   # Extract the first word of "objdump", so it can be a program name with args.
13436 set dummy objdump; ac_word=$2
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13438 $as_echo_n "checking for $ac_word... " >&6; }
13439 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13440   $as_echo_n "(cached) " >&6
13441 else
13442   if test -n "$ac_ct_OBJDUMP"; then
13443   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13444 else
13445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13446 for as_dir in $PATH
13447 do
13448   IFS=$as_save_IFS
13449   test -z "$as_dir" && as_dir=.
13450     for ac_exec_ext in '' $ac_executable_extensions; do
13451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13452     ac_cv_prog_ac_ct_OBJDUMP="objdump"
13453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13454     break 2
13455   fi
13456 done
13457   done
13458 IFS=$as_save_IFS
13459
13460 fi
13461 fi
13462 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13463 if test -n "$ac_ct_OBJDUMP"; then
13464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13465 $as_echo "$ac_ct_OBJDUMP" >&6; }
13466 else
13467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13468 $as_echo "no" >&6; }
13469 fi
13470
13471   if test "x$ac_ct_OBJDUMP" = x; then
13472     OBJDUMP="false"
13473   else
13474     case $cross_compiling:$ac_tool_warned in
13475 yes:)
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13478 ac_tool_warned=yes ;;
13479 esac
13480     OBJDUMP=$ac_ct_OBJDUMP
13481   fi
13482 else
13483   OBJDUMP="$ac_cv_prog_OBJDUMP"
13484 fi
13485
13486 test -z "$OBJDUMP" && OBJDUMP=objdump
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13497 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13498 if ${lt_cv_deplibs_check_method+:} false; then :
13499   $as_echo_n "(cached) " >&6
13500 else
13501   lt_cv_file_magic_cmd='$MAGIC_CMD'
13502 lt_cv_file_magic_test_file=
13503 lt_cv_deplibs_check_method='unknown'
13504 # Need to set the preceding variable on all platforms that support
13505 # interlibrary dependencies.
13506 # 'none' -- dependencies not supported.
13507 # `unknown' -- same as none, but documents that we really don't know.
13508 # 'pass_all' -- all dependencies passed with no checks.
13509 # 'test_compile' -- check by making test program.
13510 # 'file_magic [[regex]]' -- check by looking for files in library path
13511 # which responds to the $file_magic_cmd with a given extended regex.
13512 # If you have `file' or equivalent on your system and you're not sure
13513 # whether `pass_all' will *always* work, you probably want this one.
13514
13515 case $host_os in
13516 aix[4-9]*)
13517   lt_cv_deplibs_check_method=pass_all
13518   ;;
13519
13520 beos*)
13521   lt_cv_deplibs_check_method=pass_all
13522   ;;
13523
13524 bsdi[45]*)
13525   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13526   lt_cv_file_magic_cmd='/usr/bin/file -L'
13527   lt_cv_file_magic_test_file=/shlib/libc.so
13528   ;;
13529
13530 cygwin*)
13531   # func_win32_libid is a shell function defined in ltmain.sh
13532   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13533   lt_cv_file_magic_cmd='func_win32_libid'
13534   ;;
13535
13536 mingw* | pw32*)
13537   # Base MSYS/MinGW do not provide the 'file' command needed by
13538   # func_win32_libid shell function, so use a weaker test based on 'objdump',
13539   # unless we find 'file', for example because we are cross-compiling.
13540   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13541   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13542     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13543     lt_cv_file_magic_cmd='func_win32_libid'
13544   else
13545     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13546     lt_cv_file_magic_cmd='$OBJDUMP -f'
13547   fi
13548   ;;
13549
13550 cegcc*)
13551   # use the weaker test based on 'objdump'. See mingw*.
13552   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13553   lt_cv_file_magic_cmd='$OBJDUMP -f'
13554   ;;
13555
13556 darwin* | rhapsody*)
13557   lt_cv_deplibs_check_method=pass_all
13558   ;;
13559
13560 freebsd* | dragonfly*)
13561   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13562     case $host_cpu in
13563     i*86 )
13564       # Not sure whether the presence of OpenBSD here was a mistake.
13565       # Let's accept both of them until this is cleared up.
13566       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13567       lt_cv_file_magic_cmd=/usr/bin/file
13568       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13569       ;;
13570     esac
13571   else
13572     lt_cv_deplibs_check_method=pass_all
13573   fi
13574   ;;
13575
13576 gnu*)
13577   lt_cv_deplibs_check_method=pass_all
13578   ;;
13579
13580 haiku*)
13581   lt_cv_deplibs_check_method=pass_all
13582   ;;
13583
13584 hpux10.20* | hpux11*)
13585   lt_cv_file_magic_cmd=/usr/bin/file
13586   case $host_cpu in
13587   ia64*)
13588     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13589     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13590     ;;
13591   hppa*64*)
13592     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
13593     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13594     ;;
13595   *)
13596     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13597     lt_cv_file_magic_test_file=/usr/lib/libc.sl
13598     ;;
13599   esac
13600   ;;
13601
13602 interix[3-9]*)
13603   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13604   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13605   ;;
13606
13607 irix5* | irix6* | nonstopux*)
13608   case $LD in
13609   *-32|*"-32 ") libmagic=32-bit;;
13610   *-n32|*"-n32 ") libmagic=N32;;
13611   *-64|*"-64 ") libmagic=64-bit;;
13612   *) libmagic=never-match;;
13613   esac
13614   lt_cv_deplibs_check_method=pass_all
13615   ;;
13616
13617 # This must be Linux ELF.
13618 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13619   lt_cv_deplibs_check_method=pass_all
13620   ;;
13621
13622 netbsd*)
13623   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13624     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13625   else
13626     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13627   fi
13628   ;;
13629
13630 newos6*)
13631   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13632   lt_cv_file_magic_cmd=/usr/bin/file
13633   lt_cv_file_magic_test_file=/usr/lib/libnls.so
13634   ;;
13635
13636 *nto* | *qnx*)
13637   lt_cv_deplibs_check_method=pass_all
13638   ;;
13639
13640 openbsd*)
13641   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13642     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13643   else
13644     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13645   fi
13646   ;;
13647
13648 osf3* | osf4* | osf5*)
13649   lt_cv_deplibs_check_method=pass_all
13650   ;;
13651
13652 rdos*)
13653   lt_cv_deplibs_check_method=pass_all
13654   ;;
13655
13656 solaris*)
13657   lt_cv_deplibs_check_method=pass_all
13658   ;;
13659
13660 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13661   lt_cv_deplibs_check_method=pass_all
13662   ;;
13663
13664 sysv4 | sysv4.3*)
13665   case $host_vendor in
13666   motorola)
13667     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
13668     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13669     ;;
13670   ncr)
13671     lt_cv_deplibs_check_method=pass_all
13672     ;;
13673   sequent)
13674     lt_cv_file_magic_cmd='/bin/file'
13675     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13676     ;;
13677   sni)
13678     lt_cv_file_magic_cmd='/bin/file'
13679     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13680     lt_cv_file_magic_test_file=/lib/libc.so
13681     ;;
13682   siemens)
13683     lt_cv_deplibs_check_method=pass_all
13684     ;;
13685   pc)
13686     lt_cv_deplibs_check_method=pass_all
13687     ;;
13688   esac
13689   ;;
13690
13691 tpf*)
13692   lt_cv_deplibs_check_method=pass_all
13693   ;;
13694 esac
13695
13696 fi
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13698 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13699 file_magic_cmd=$lt_cv_file_magic_cmd
13700 deplibs_check_method=$lt_cv_deplibs_check_method
13701 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714 if test -n "$ac_tool_prefix"; then
13715   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13716 set dummy ${ac_tool_prefix}ar; ac_word=$2
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13718 $as_echo_n "checking for $ac_word... " >&6; }
13719 if ${ac_cv_prog_AR+:} false; then :
13720   $as_echo_n "(cached) " >&6
13721 else
13722   if test -n "$AR"; then
13723   ac_cv_prog_AR="$AR" # Let the user override the test.
13724 else
13725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726 for as_dir in $PATH
13727 do
13728   IFS=$as_save_IFS
13729   test -z "$as_dir" && as_dir=.
13730     for ac_exec_ext in '' $ac_executable_extensions; do
13731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13732     ac_cv_prog_AR="${ac_tool_prefix}ar"
13733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13734     break 2
13735   fi
13736 done
13737   done
13738 IFS=$as_save_IFS
13739
13740 fi
13741 fi
13742 AR=$ac_cv_prog_AR
13743 if test -n "$AR"; then
13744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13745 $as_echo "$AR" >&6; }
13746 else
13747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13749 fi
13750
13751
13752 fi
13753 if test -z "$ac_cv_prog_AR"; then
13754   ac_ct_AR=$AR
13755   # Extract the first word of "ar", so it can be a program name with args.
13756 set dummy ar; ac_word=$2
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13758 $as_echo_n "checking for $ac_word... " >&6; }
13759 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13760   $as_echo_n "(cached) " >&6
13761 else
13762   if test -n "$ac_ct_AR"; then
13763   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13764 else
13765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13766 for as_dir in $PATH
13767 do
13768   IFS=$as_save_IFS
13769   test -z "$as_dir" && as_dir=.
13770     for ac_exec_ext in '' $ac_executable_extensions; do
13771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13772     ac_cv_prog_ac_ct_AR="ar"
13773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13774     break 2
13775   fi
13776 done
13777   done
13778 IFS=$as_save_IFS
13779
13780 fi
13781 fi
13782 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13783 if test -n "$ac_ct_AR"; then
13784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13785 $as_echo "$ac_ct_AR" >&6; }
13786 else
13787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 $as_echo "no" >&6; }
13789 fi
13790
13791   if test "x$ac_ct_AR" = x; then
13792     AR="false"
13793   else
13794     case $cross_compiling:$ac_tool_warned in
13795 yes:)
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13798 ac_tool_warned=yes ;;
13799 esac
13800     AR=$ac_ct_AR
13801   fi
13802 else
13803   AR="$ac_cv_prog_AR"
13804 fi
13805
13806 test -z "$AR" && AR=ar
13807 test -z "$AR_FLAGS" && AR_FLAGS=cru
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819 if test -n "$ac_tool_prefix"; then
13820   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13821 set dummy ${ac_tool_prefix}strip; ac_word=$2
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13823 $as_echo_n "checking for $ac_word... " >&6; }
13824 if ${ac_cv_prog_STRIP+:} false; then :
13825   $as_echo_n "(cached) " >&6
13826 else
13827   if test -n "$STRIP"; then
13828   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13829 else
13830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831 for as_dir in $PATH
13832 do
13833   IFS=$as_save_IFS
13834   test -z "$as_dir" && as_dir=.
13835     for ac_exec_ext in '' $ac_executable_extensions; do
13836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13837     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13839     break 2
13840   fi
13841 done
13842   done
13843 IFS=$as_save_IFS
13844
13845 fi
13846 fi
13847 STRIP=$ac_cv_prog_STRIP
13848 if test -n "$STRIP"; then
13849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13850 $as_echo "$STRIP" >&6; }
13851 else
13852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13853 $as_echo "no" >&6; }
13854 fi
13855
13856
13857 fi
13858 if test -z "$ac_cv_prog_STRIP"; then
13859   ac_ct_STRIP=$STRIP
13860   # Extract the first word of "strip", so it can be a program name with args.
13861 set dummy strip; ac_word=$2
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13863 $as_echo_n "checking for $ac_word... " >&6; }
13864 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13865   $as_echo_n "(cached) " >&6
13866 else
13867   if test -n "$ac_ct_STRIP"; then
13868   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13869 else
13870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871 for as_dir in $PATH
13872 do
13873   IFS=$as_save_IFS
13874   test -z "$as_dir" && as_dir=.
13875     for ac_exec_ext in '' $ac_executable_extensions; do
13876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13877     ac_cv_prog_ac_ct_STRIP="strip"
13878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13879     break 2
13880   fi
13881 done
13882   done
13883 IFS=$as_save_IFS
13884
13885 fi
13886 fi
13887 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13888 if test -n "$ac_ct_STRIP"; then
13889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13890 $as_echo "$ac_ct_STRIP" >&6; }
13891 else
13892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13893 $as_echo "no" >&6; }
13894 fi
13895
13896   if test "x$ac_ct_STRIP" = x; then
13897     STRIP=":"
13898   else
13899     case $cross_compiling:$ac_tool_warned in
13900 yes:)
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13903 ac_tool_warned=yes ;;
13904 esac
13905     STRIP=$ac_ct_STRIP
13906   fi
13907 else
13908   STRIP="$ac_cv_prog_STRIP"
13909 fi
13910
13911 test -z "$STRIP" && STRIP=:
13912
13913
13914
13915
13916
13917
13918 if test -n "$ac_tool_prefix"; then
13919   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13920 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13922 $as_echo_n "checking for $ac_word... " >&6; }
13923 if ${ac_cv_prog_RANLIB+:} false; then :
13924   $as_echo_n "(cached) " >&6
13925 else
13926   if test -n "$RANLIB"; then
13927   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13928 else
13929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13930 for as_dir in $PATH
13931 do
13932   IFS=$as_save_IFS
13933   test -z "$as_dir" && as_dir=.
13934     for ac_exec_ext in '' $ac_executable_extensions; do
13935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13936     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13938     break 2
13939   fi
13940 done
13941   done
13942 IFS=$as_save_IFS
13943
13944 fi
13945 fi
13946 RANLIB=$ac_cv_prog_RANLIB
13947 if test -n "$RANLIB"; then
13948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13949 $as_echo "$RANLIB" >&6; }
13950 else
13951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13952 $as_echo "no" >&6; }
13953 fi
13954
13955
13956 fi
13957 if test -z "$ac_cv_prog_RANLIB"; then
13958   ac_ct_RANLIB=$RANLIB
13959   # Extract the first word of "ranlib", so it can be a program name with args.
13960 set dummy ranlib; ac_word=$2
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13962 $as_echo_n "checking for $ac_word... " >&6; }
13963 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13964   $as_echo_n "(cached) " >&6
13965 else
13966   if test -n "$ac_ct_RANLIB"; then
13967   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13968 else
13969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13970 for as_dir in $PATH
13971 do
13972   IFS=$as_save_IFS
13973   test -z "$as_dir" && as_dir=.
13974     for ac_exec_ext in '' $ac_executable_extensions; do
13975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13976     ac_cv_prog_ac_ct_RANLIB="ranlib"
13977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13978     break 2
13979   fi
13980 done
13981   done
13982 IFS=$as_save_IFS
13983
13984 fi
13985 fi
13986 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13987 if test -n "$ac_ct_RANLIB"; then
13988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13989 $as_echo "$ac_ct_RANLIB" >&6; }
13990 else
13991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13992 $as_echo "no" >&6; }
13993 fi
13994
13995   if test "x$ac_ct_RANLIB" = x; then
13996     RANLIB=":"
13997   else
13998     case $cross_compiling:$ac_tool_warned in
13999 yes:)
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14002 ac_tool_warned=yes ;;
14003 esac
14004     RANLIB=$ac_ct_RANLIB
14005   fi
14006 else
14007   RANLIB="$ac_cv_prog_RANLIB"
14008 fi
14009
14010 test -z "$RANLIB" && RANLIB=:
14011
14012
14013
14014
14015
14016
14017 # Determine commands to create old-style static archives.
14018 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14019 old_postinstall_cmds='chmod 644 $oldlib'
14020 old_postuninstall_cmds=
14021
14022 if test -n "$RANLIB"; then
14023   case $host_os in
14024   openbsd*)
14025     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14026     ;;
14027   *)
14028     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14029     ;;
14030   esac
14031   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14032 fi
14033
14034 case $host_os in
14035   darwin*)
14036     lock_old_archive_extraction=yes ;;
14037   *)
14038     lock_old_archive_extraction=no ;;
14039 esac
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079 # If no C compiler was specified, use CC.
14080 LTCC=${LTCC-"$CC"}
14081
14082 # If no C compiler flags were specified, use CFLAGS.
14083 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14084
14085 # Allow CC to be a program name with arguments.
14086 compiler=$CC
14087
14088
14089 # Check for command to grab the raw symbol name followed by C symbol from nm.
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14091 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14092 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14093   $as_echo_n "(cached) " >&6
14094 else
14095
14096 # These are sane defaults that work on at least a few old systems.
14097 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
14098
14099 # Character class describing NM global symbol codes.
14100 symcode='[BCDEGRST]'
14101
14102 # Regexp to match symbols that can be accessed directly from C.
14103 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14104
14105 # Define system-specific variables.
14106 case $host_os in
14107 aix*)
14108   symcode='[BCDT]'
14109   ;;
14110 cygwin* | mingw* | pw32* | cegcc*)
14111   symcode='[ABCDGISTW]'
14112   ;;
14113 hpux*)
14114   if test "$host_cpu" = ia64; then
14115     symcode='[ABCDEGRST]'
14116   fi
14117   ;;
14118 irix* | nonstopux*)
14119   symcode='[BCDEGRST]'
14120   ;;
14121 osf*)
14122   symcode='[BCDEGQRST]'
14123   ;;
14124 solaris*)
14125   symcode='[BDRT]'
14126   ;;
14127 sco3.2v5*)
14128   symcode='[DT]'
14129   ;;
14130 sysv4.2uw2*)
14131   symcode='[DT]'
14132   ;;
14133 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14134   symcode='[ABDT]'
14135   ;;
14136 sysv4)
14137   symcode='[DFNSTU]'
14138   ;;
14139 esac
14140
14141 # If we're using GNU nm, then use its standard symbol codes.
14142 case `$NM -V 2>&1` in
14143 *GNU* | *'with BFD'*)
14144   symcode='[ABCDGIRSTW]' ;;
14145 esac
14146
14147 # Transform an extracted symbol line into a proper C declaration.
14148 # Some systems (esp. on ia64) link data and code symbols differently,
14149 # so use this general approach.
14150 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14151
14152 # Transform an extracted symbol line into symbol name and symbol address
14153 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
14154 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
14155
14156 # Handle CRLF in mingw tool chain
14157 opt_cr=
14158 case $build_os in
14159 mingw*)
14160   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14161   ;;
14162 esac
14163
14164 # Try without a prefix underscore, then with it.
14165 for ac_symprfx in "" "_"; do
14166
14167   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14168   symxfrm="\\1 $ac_symprfx\\2 \\2"
14169
14170   # Write the raw and C identifiers.
14171   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14172     # Fake it for dumpbin and say T for any non-static function
14173     # and D for any global variable.
14174     # Also find C++ and __fastcall symbols from MSVC++,
14175     # which start with @ or ?.
14176     lt_cv_sys_global_symbol_pipe="$AWK '"\
14177 "     {last_section=section; section=\$ 3};"\
14178 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14179 "     \$ 0!~/External *\|/{next};"\
14180 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14181 "     {if(hide[section]) next};"\
14182 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14183 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14184 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
14185 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14186 "     ' prfx=^$ac_symprfx"
14187   else
14188     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14189   fi
14190
14191   # Check to see that the pipe works correctly.
14192   pipe_works=no
14193
14194   rm -f conftest*
14195   cat > conftest.$ac_ext <<_LT_EOF
14196 #ifdef __cplusplus
14197 extern "C" {
14198 #endif
14199 char nm_test_var;
14200 void nm_test_func(void);
14201 void nm_test_func(void){}
14202 #ifdef __cplusplus
14203 }
14204 #endif
14205 int main(){nm_test_var='a';nm_test_func();return(0);}
14206 _LT_EOF
14207
14208   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14209   (eval $ac_compile) 2>&5
14210   ac_status=$?
14211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14212   test $ac_status = 0; }; then
14213     # Now try to grab the symbols.
14214     nlist=conftest.nm
14215     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14216   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14217   ac_status=$?
14218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14219   test $ac_status = 0; } && test -s "$nlist"; then
14220       # Try sorting and uniquifying the output.
14221       if sort "$nlist" | uniq > "$nlist"T; then
14222         mv -f "$nlist"T "$nlist"
14223       else
14224         rm -f "$nlist"T
14225       fi
14226
14227       # Make sure that we snagged all the symbols we need.
14228       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14229         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14230           cat <<_LT_EOF > conftest.$ac_ext
14231 #ifdef __cplusplus
14232 extern "C" {
14233 #endif
14234
14235 _LT_EOF
14236           # Now generate the symbol file.
14237           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14238
14239           cat <<_LT_EOF >> conftest.$ac_ext
14240
14241 /* The mapping between symbol names and symbols.  */
14242 const struct {
14243   const char *name;
14244   void       *address;
14245 }
14246 lt__PROGRAM__LTX_preloaded_symbols[] =
14247 {
14248   { "@PROGRAM@", (void *) 0 },
14249 _LT_EOF
14250           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14251           cat <<\_LT_EOF >> conftest.$ac_ext
14252   {0, (void *) 0}
14253 };
14254
14255 /* This works around a problem in FreeBSD linker */
14256 #ifdef FREEBSD_WORKAROUND
14257 static const void *lt_preloaded_setup() {
14258   return lt__PROGRAM__LTX_preloaded_symbols;
14259 }
14260 #endif
14261
14262 #ifdef __cplusplus
14263 }
14264 #endif
14265 _LT_EOF
14266           # Now try linking the two files.
14267           mv conftest.$ac_objext conftstm.$ac_objext
14268           lt_save_LIBS="$LIBS"
14269           lt_save_CFLAGS="$CFLAGS"
14270           LIBS="conftstm.$ac_objext"
14271           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14272           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14273   (eval $ac_link) 2>&5
14274   ac_status=$?
14275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14276   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14277             pipe_works=yes
14278           fi
14279           LIBS="$lt_save_LIBS"
14280           CFLAGS="$lt_save_CFLAGS"
14281         else
14282           echo "cannot find nm_test_func in $nlist" >&5
14283         fi
14284       else
14285         echo "cannot find nm_test_var in $nlist" >&5
14286       fi
14287     else
14288       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14289     fi
14290   else
14291     echo "$progname: failed program was:" >&5
14292     cat conftest.$ac_ext >&5
14293   fi
14294   rm -rf conftest* conftst*
14295
14296   # Do not use the global_symbol_pipe unless it works.
14297   if test "$pipe_works" = yes; then
14298     break
14299   else
14300     lt_cv_sys_global_symbol_pipe=
14301   fi
14302 done
14303
14304 fi
14305
14306 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14307   lt_cv_sys_global_symbol_to_cdecl=
14308 fi
14309 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14311 $as_echo "failed" >&6; }
14312 else
14313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14314 $as_echo "ok" >&6; }
14315 fi
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338 # Check whether --enable-libtool-lock was given.
14339 if test "${enable_libtool_lock+set}" = set; then :
14340   enableval=$enable_libtool_lock;
14341 fi
14342
14343 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14344
14345 # Some flags need to be propagated to the compiler or linker for good
14346 # libtool support.
14347 case $host in
14348 ia64-*-hpux*)
14349   # Find out which ABI we are using.
14350   echo 'int i;' > conftest.$ac_ext
14351   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14352   (eval $ac_compile) 2>&5
14353   ac_status=$?
14354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14355   test $ac_status = 0; }; then
14356     case `/usr/bin/file conftest.$ac_objext` in
14357       *ELF-32*)
14358         HPUX_IA64_MODE="32"
14359         ;;
14360       *ELF-64*)
14361         HPUX_IA64_MODE="64"
14362         ;;
14363     esac
14364   fi
14365   rm -rf conftest*
14366   ;;
14367 *-*-irix6*)
14368   # Find out which ABI we are using.
14369   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14370   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14371   (eval $ac_compile) 2>&5
14372   ac_status=$?
14373   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14374   test $ac_status = 0; }; then
14375     if test "$lt_cv_prog_gnu_ld" = yes; then
14376       case `/usr/bin/file conftest.$ac_objext` in
14377         *32-bit*)
14378           LD="${LD-ld} -melf32bsmip"
14379           ;;
14380         *N32*)
14381           LD="${LD-ld} -melf32bmipn32"
14382           ;;
14383         *64-bit*)
14384           LD="${LD-ld} -melf64bmip"
14385         ;;
14386       esac
14387     else
14388       case `/usr/bin/file conftest.$ac_objext` in
14389         *32-bit*)
14390           LD="${LD-ld} -32"
14391           ;;
14392         *N32*)
14393           LD="${LD-ld} -n32"
14394           ;;
14395         *64-bit*)
14396           LD="${LD-ld} -64"
14397           ;;
14398       esac
14399     fi
14400   fi
14401   rm -rf conftest*
14402   ;;
14403
14404 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14405 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14406   # Find out which ABI we are using.
14407   echo 'int i;' > conftest.$ac_ext
14408   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14409   (eval $ac_compile) 2>&5
14410   ac_status=$?
14411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14412   test $ac_status = 0; }; then
14413     case `/usr/bin/file conftest.o` in
14414       *32-bit*)
14415         case $host in
14416           x86_64-*kfreebsd*-gnu)
14417             LD="${LD-ld} -m elf_i386_fbsd"
14418             ;;
14419           x86_64-*linux*)
14420             case `/usr/bin/file conftest.o` in
14421               *x86-64*)
14422                 LD="${LD-ld} -m elf32_x86_64"
14423                 ;;
14424               *)
14425                 LD="${LD-ld} -m elf_i386"
14426                 ;;
14427             esac
14428             ;;
14429           powerpc64le-*linux*)
14430             LD="${LD-ld} -m elf32lppclinux"
14431             ;;
14432           powerpc64-*linux*)
14433             LD="${LD-ld} -m elf32ppclinux"
14434             ;;
14435           s390x-*linux*)
14436             LD="${LD-ld} -m elf_s390"
14437             ;;
14438           sparc64-*linux*)
14439             LD="${LD-ld} -m elf32_sparc"
14440             ;;
14441         esac
14442         ;;
14443       *64-bit*)
14444         case $host in
14445           x86_64-*kfreebsd*-gnu)
14446             LD="${LD-ld} -m elf_x86_64_fbsd"
14447             ;;
14448           x86_64-*linux*)
14449             LD="${LD-ld} -m elf_x86_64"
14450             ;;
14451           powerpcle-*linux*)
14452             LD="${LD-ld} -m elf64lppc"
14453             ;;
14454           powerpc-*linux*)
14455             LD="${LD-ld} -m elf64ppc"
14456             ;;
14457           s390*-*linux*|s390*-*tpf*)
14458             LD="${LD-ld} -m elf64_s390"
14459             ;;
14460           sparc*-*linux*)
14461             LD="${LD-ld} -m elf64_sparc"
14462             ;;
14463         esac
14464         ;;
14465     esac
14466   fi
14467   rm -rf conftest*
14468   ;;
14469
14470 *-*-sco3.2v5*)
14471   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14472   SAVE_CFLAGS="$CFLAGS"
14473   CFLAGS="$CFLAGS -belf"
14474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14475 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14476 if ${lt_cv_cc_needs_belf+:} false; then :
14477   $as_echo_n "(cached) " >&6
14478 else
14479   ac_ext=c
14480 ac_cpp='$CPP $CPPFLAGS'
14481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14484
14485      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h.  */
14487
14488 int
14489 main ()
14490 {
14491
14492   ;
14493   return 0;
14494 }
14495 _ACEOF
14496 if ac_fn_c_try_link "$LINENO"; then :
14497   lt_cv_cc_needs_belf=yes
14498 else
14499   lt_cv_cc_needs_belf=no
14500 fi
14501 rm -f core conftest.err conftest.$ac_objext \
14502     conftest$ac_exeext conftest.$ac_ext
14503      ac_ext=c
14504 ac_cpp='$CPP $CPPFLAGS'
14505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14508
14509 fi
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14511 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14512   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14513     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14514     CFLAGS="$SAVE_CFLAGS"
14515   fi
14516   ;;
14517 sparc*-*solaris*)
14518   # Find out which ABI we are using.
14519   echo 'int i;' > conftest.$ac_ext
14520   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14521   (eval $ac_compile) 2>&5
14522   ac_status=$?
14523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14524   test $ac_status = 0; }; then
14525     case `/usr/bin/file conftest.o` in
14526     *64-bit*)
14527       case $lt_cv_prog_gnu_ld in
14528       yes*) LD="${LD-ld} -m elf64_sparc" ;;
14529       *)
14530         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14531           LD="${LD-ld} -64"
14532         fi
14533         ;;
14534       esac
14535       ;;
14536     esac
14537   fi
14538   rm -rf conftest*
14539   ;;
14540 esac
14541
14542 need_locks="$enable_libtool_lock"
14543
14544
14545   case $host_os in
14546     rhapsody* | darwin*)
14547     if test -n "$ac_tool_prefix"; then
14548   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14549 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14551 $as_echo_n "checking for $ac_word... " >&6; }
14552 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14553   $as_echo_n "(cached) " >&6
14554 else
14555   if test -n "$DSYMUTIL"; then
14556   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14557 else
14558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14559 for as_dir in $PATH
14560 do
14561   IFS=$as_save_IFS
14562   test -z "$as_dir" && as_dir=.
14563     for ac_exec_ext in '' $ac_executable_extensions; do
14564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14565     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14567     break 2
14568   fi
14569 done
14570   done
14571 IFS=$as_save_IFS
14572
14573 fi
14574 fi
14575 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14576 if test -n "$DSYMUTIL"; then
14577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14578 $as_echo "$DSYMUTIL" >&6; }
14579 else
14580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14581 $as_echo "no" >&6; }
14582 fi
14583
14584
14585 fi
14586 if test -z "$ac_cv_prog_DSYMUTIL"; then
14587   ac_ct_DSYMUTIL=$DSYMUTIL
14588   # Extract the first word of "dsymutil", so it can be a program name with args.
14589 set dummy dsymutil; ac_word=$2
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14591 $as_echo_n "checking for $ac_word... " >&6; }
14592 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14593   $as_echo_n "(cached) " >&6
14594 else
14595   if test -n "$ac_ct_DSYMUTIL"; then
14596   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14597 else
14598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14599 for as_dir in $PATH
14600 do
14601   IFS=$as_save_IFS
14602   test -z "$as_dir" && as_dir=.
14603     for ac_exec_ext in '' $ac_executable_extensions; do
14604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14605     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14607     break 2
14608   fi
14609 done
14610   done
14611 IFS=$as_save_IFS
14612
14613 fi
14614 fi
14615 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14616 if test -n "$ac_ct_DSYMUTIL"; then
14617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14618 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14619 else
14620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14621 $as_echo "no" >&6; }
14622 fi
14623
14624   if test "x$ac_ct_DSYMUTIL" = x; then
14625     DSYMUTIL=":"
14626   else
14627     case $cross_compiling:$ac_tool_warned in
14628 yes:)
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14631 ac_tool_warned=yes ;;
14632 esac
14633     DSYMUTIL=$ac_ct_DSYMUTIL
14634   fi
14635 else
14636   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14637 fi
14638
14639     if test -n "$ac_tool_prefix"; then
14640   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14641 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14643 $as_echo_n "checking for $ac_word... " >&6; }
14644 if ${ac_cv_prog_NMEDIT+:} false; then :
14645   $as_echo_n "(cached) " >&6
14646 else
14647   if test -n "$NMEDIT"; then
14648   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14649 else
14650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14651 for as_dir in $PATH
14652 do
14653   IFS=$as_save_IFS
14654   test -z "$as_dir" && as_dir=.
14655     for ac_exec_ext in '' $ac_executable_extensions; do
14656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14657     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14659     break 2
14660   fi
14661 done
14662   done
14663 IFS=$as_save_IFS
14664
14665 fi
14666 fi
14667 NMEDIT=$ac_cv_prog_NMEDIT
14668 if test -n "$NMEDIT"; then
14669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14670 $as_echo "$NMEDIT" >&6; }
14671 else
14672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14673 $as_echo "no" >&6; }
14674 fi
14675
14676
14677 fi
14678 if test -z "$ac_cv_prog_NMEDIT"; then
14679   ac_ct_NMEDIT=$NMEDIT
14680   # Extract the first word of "nmedit", so it can be a program name with args.
14681 set dummy nmedit; ac_word=$2
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14683 $as_echo_n "checking for $ac_word... " >&6; }
14684 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14685   $as_echo_n "(cached) " >&6
14686 else
14687   if test -n "$ac_ct_NMEDIT"; then
14688   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14689 else
14690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14691 for as_dir in $PATH
14692 do
14693   IFS=$as_save_IFS
14694   test -z "$as_dir" && as_dir=.
14695     for ac_exec_ext in '' $ac_executable_extensions; do
14696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14697     ac_cv_prog_ac_ct_NMEDIT="nmedit"
14698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14699     break 2
14700   fi
14701 done
14702   done
14703 IFS=$as_save_IFS
14704
14705 fi
14706 fi
14707 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14708 if test -n "$ac_ct_NMEDIT"; then
14709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14710 $as_echo "$ac_ct_NMEDIT" >&6; }
14711 else
14712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14713 $as_echo "no" >&6; }
14714 fi
14715
14716   if test "x$ac_ct_NMEDIT" = x; then
14717     NMEDIT=":"
14718   else
14719     case $cross_compiling:$ac_tool_warned in
14720 yes:)
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14723 ac_tool_warned=yes ;;
14724 esac
14725     NMEDIT=$ac_ct_NMEDIT
14726   fi
14727 else
14728   NMEDIT="$ac_cv_prog_NMEDIT"
14729 fi
14730
14731     if test -n "$ac_tool_prefix"; then
14732   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14733 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14735 $as_echo_n "checking for $ac_word... " >&6; }
14736 if ${ac_cv_prog_LIPO+:} false; then :
14737   $as_echo_n "(cached) " >&6
14738 else
14739   if test -n "$LIPO"; then
14740   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14741 else
14742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14743 for as_dir in $PATH
14744 do
14745   IFS=$as_save_IFS
14746   test -z "$as_dir" && as_dir=.
14747     for ac_exec_ext in '' $ac_executable_extensions; do
14748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14749     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14751     break 2
14752   fi
14753 done
14754   done
14755 IFS=$as_save_IFS
14756
14757 fi
14758 fi
14759 LIPO=$ac_cv_prog_LIPO
14760 if test -n "$LIPO"; then
14761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14762 $as_echo "$LIPO" >&6; }
14763 else
14764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14765 $as_echo "no" >&6; }
14766 fi
14767
14768
14769 fi
14770 if test -z "$ac_cv_prog_LIPO"; then
14771   ac_ct_LIPO=$LIPO
14772   # Extract the first word of "lipo", so it can be a program name with args.
14773 set dummy lipo; ac_word=$2
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14775 $as_echo_n "checking for $ac_word... " >&6; }
14776 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14777   $as_echo_n "(cached) " >&6
14778 else
14779   if test -n "$ac_ct_LIPO"; then
14780   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14781 else
14782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14783 for as_dir in $PATH
14784 do
14785   IFS=$as_save_IFS
14786   test -z "$as_dir" && as_dir=.
14787     for ac_exec_ext in '' $ac_executable_extensions; do
14788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14789     ac_cv_prog_ac_ct_LIPO="lipo"
14790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14791     break 2
14792   fi
14793 done
14794   done
14795 IFS=$as_save_IFS
14796
14797 fi
14798 fi
14799 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14800 if test -n "$ac_ct_LIPO"; then
14801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14802 $as_echo "$ac_ct_LIPO" >&6; }
14803 else
14804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14805 $as_echo "no" >&6; }
14806 fi
14807
14808   if test "x$ac_ct_LIPO" = x; then
14809     LIPO=":"
14810   else
14811     case $cross_compiling:$ac_tool_warned in
14812 yes:)
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14815 ac_tool_warned=yes ;;
14816 esac
14817     LIPO=$ac_ct_LIPO
14818   fi
14819 else
14820   LIPO="$ac_cv_prog_LIPO"
14821 fi
14822
14823     if test -n "$ac_tool_prefix"; then
14824   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14825 set dummy ${ac_tool_prefix}otool; ac_word=$2
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14827 $as_echo_n "checking for $ac_word... " >&6; }
14828 if ${ac_cv_prog_OTOOL+:} false; then :
14829   $as_echo_n "(cached) " >&6
14830 else
14831   if test -n "$OTOOL"; then
14832   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14833 else
14834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14835 for as_dir in $PATH
14836 do
14837   IFS=$as_save_IFS
14838   test -z "$as_dir" && as_dir=.
14839     for ac_exec_ext in '' $ac_executable_extensions; do
14840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14841     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14843     break 2
14844   fi
14845 done
14846   done
14847 IFS=$as_save_IFS
14848
14849 fi
14850 fi
14851 OTOOL=$ac_cv_prog_OTOOL
14852 if test -n "$OTOOL"; then
14853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14854 $as_echo "$OTOOL" >&6; }
14855 else
14856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14857 $as_echo "no" >&6; }
14858 fi
14859
14860
14861 fi
14862 if test -z "$ac_cv_prog_OTOOL"; then
14863   ac_ct_OTOOL=$OTOOL
14864   # Extract the first word of "otool", so it can be a program name with args.
14865 set dummy otool; ac_word=$2
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14867 $as_echo_n "checking for $ac_word... " >&6; }
14868 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14869   $as_echo_n "(cached) " >&6
14870 else
14871   if test -n "$ac_ct_OTOOL"; then
14872   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14873 else
14874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14875 for as_dir in $PATH
14876 do
14877   IFS=$as_save_IFS
14878   test -z "$as_dir" && as_dir=.
14879     for ac_exec_ext in '' $ac_executable_extensions; do
14880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14881     ac_cv_prog_ac_ct_OTOOL="otool"
14882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14883     break 2
14884   fi
14885 done
14886   done
14887 IFS=$as_save_IFS
14888
14889 fi
14890 fi
14891 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14892 if test -n "$ac_ct_OTOOL"; then
14893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14894 $as_echo "$ac_ct_OTOOL" >&6; }
14895 else
14896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14897 $as_echo "no" >&6; }
14898 fi
14899
14900   if test "x$ac_ct_OTOOL" = x; then
14901     OTOOL=":"
14902   else
14903     case $cross_compiling:$ac_tool_warned in
14904 yes:)
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14907 ac_tool_warned=yes ;;
14908 esac
14909     OTOOL=$ac_ct_OTOOL
14910   fi
14911 else
14912   OTOOL="$ac_cv_prog_OTOOL"
14913 fi
14914
14915     if test -n "$ac_tool_prefix"; then
14916   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14917 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14919 $as_echo_n "checking for $ac_word... " >&6; }
14920 if ${ac_cv_prog_OTOOL64+:} false; then :
14921   $as_echo_n "(cached) " >&6
14922 else
14923   if test -n "$OTOOL64"; then
14924   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14925 else
14926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14927 for as_dir in $PATH
14928 do
14929   IFS=$as_save_IFS
14930   test -z "$as_dir" && as_dir=.
14931     for ac_exec_ext in '' $ac_executable_extensions; do
14932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14933     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14935     break 2
14936   fi
14937 done
14938   done
14939 IFS=$as_save_IFS
14940
14941 fi
14942 fi
14943 OTOOL64=$ac_cv_prog_OTOOL64
14944 if test -n "$OTOOL64"; then
14945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14946 $as_echo "$OTOOL64" >&6; }
14947 else
14948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14949 $as_echo "no" >&6; }
14950 fi
14951
14952
14953 fi
14954 if test -z "$ac_cv_prog_OTOOL64"; then
14955   ac_ct_OTOOL64=$OTOOL64
14956   # Extract the first word of "otool64", so it can be a program name with args.
14957 set dummy otool64; ac_word=$2
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14959 $as_echo_n "checking for $ac_word... " >&6; }
14960 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14961   $as_echo_n "(cached) " >&6
14962 else
14963   if test -n "$ac_ct_OTOOL64"; then
14964   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14965 else
14966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14967 for as_dir in $PATH
14968 do
14969   IFS=$as_save_IFS
14970   test -z "$as_dir" && as_dir=.
14971     for ac_exec_ext in '' $ac_executable_extensions; do
14972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14973     ac_cv_prog_ac_ct_OTOOL64="otool64"
14974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14975     break 2
14976   fi
14977 done
14978   done
14979 IFS=$as_save_IFS
14980
14981 fi
14982 fi
14983 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14984 if test -n "$ac_ct_OTOOL64"; then
14985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14986 $as_echo "$ac_ct_OTOOL64" >&6; }
14987 else
14988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14989 $as_echo "no" >&6; }
14990 fi
14991
14992   if test "x$ac_ct_OTOOL64" = x; then
14993     OTOOL64=":"
14994   else
14995     case $cross_compiling:$ac_tool_warned in
14996 yes:)
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14999 ac_tool_warned=yes ;;
15000 esac
15001     OTOOL64=$ac_ct_OTOOL64
15002   fi
15003 else
15004   OTOOL64="$ac_cv_prog_OTOOL64"
15005 fi
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15034 $as_echo_n "checking for -single_module linker flag... " >&6; }
15035 if ${lt_cv_apple_cc_single_mod+:} false; then :
15036   $as_echo_n "(cached) " >&6
15037 else
15038   lt_cv_apple_cc_single_mod=no
15039       if test -z "${LT_MULTI_MODULE}"; then
15040         # By default we will add the -single_module flag. You can override
15041         # by either setting the environment variable LT_MULTI_MODULE
15042         # non-empty at configure time, or by adding -multi_module to the
15043         # link flags.
15044         rm -rf libconftest.dylib*
15045         echo "int foo(void){return 1;}" > conftest.c
15046         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15047 -dynamiclib -Wl,-single_module conftest.c" >&5
15048         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15049           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15050         _lt_result=$?
15051         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15052           lt_cv_apple_cc_single_mod=yes
15053         else
15054           cat conftest.err >&5
15055         fi
15056         rm -rf libconftest.dylib*
15057         rm -f conftest.*
15058       fi
15059 fi
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15061 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15063 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15064 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15065   $as_echo_n "(cached) " >&6
15066 else
15067   lt_cv_ld_exported_symbols_list=no
15068       save_LDFLAGS=$LDFLAGS
15069       echo "_main" > conftest.sym
15070       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15071       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h.  */
15073
15074 int
15075 main ()
15076 {
15077
15078   ;
15079   return 0;
15080 }
15081 _ACEOF
15082 if ac_fn_c_try_link "$LINENO"; then :
15083   lt_cv_ld_exported_symbols_list=yes
15084 else
15085   lt_cv_ld_exported_symbols_list=no
15086 fi
15087 rm -f core conftest.err conftest.$ac_objext \
15088     conftest$ac_exeext conftest.$ac_ext
15089         LDFLAGS="$save_LDFLAGS"
15090
15091 fi
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15093 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15095 $as_echo_n "checking for -force_load linker flag... " >&6; }
15096 if ${lt_cv_ld_force_load+:} false; then :
15097   $as_echo_n "(cached) " >&6
15098 else
15099   lt_cv_ld_force_load=no
15100       cat > conftest.c << _LT_EOF
15101 int forced_loaded() { return 2;}
15102 _LT_EOF
15103       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15104       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15105       echo "$AR cru libconftest.a conftest.o" >&5
15106       $AR cru libconftest.a conftest.o 2>&5
15107       cat > conftest.c << _LT_EOF
15108 int main() { return 0;}
15109 _LT_EOF
15110       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15111       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15112       _lt_result=$?
15113       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15114         lt_cv_ld_force_load=yes
15115       else
15116         cat conftest.err >&5
15117       fi
15118         rm -f conftest.err libconftest.a conftest conftest.c
15119         rm -rf conftest.dSYM
15120
15121 fi
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15123 $as_echo "$lt_cv_ld_force_load" >&6; }
15124     case $host_os in
15125     rhapsody* | darwin1.[012])
15126       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15127     darwin1.*)
15128       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15129     darwin*) # darwin 5.x on
15130       # if running on 10.5 or later, the deployment target defaults
15131       # to the OS version, if on x86, and 10.4, the deployment
15132       # target defaults to 10.4. Don't you love it?
15133       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15134         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15135           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15136         10.[012][,.]*)
15137           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15138         10.*)
15139           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15140       esac
15141     ;;
15142   esac
15143     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15144       _lt_dar_single_mod='$single_module'
15145     fi
15146     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15147       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15148     else
15149       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15150     fi
15151     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15152       _lt_dsymutil='~$DSYMUTIL $lib || :'
15153     else
15154       _lt_dsymutil=
15155     fi
15156     ;;
15157   esac
15158
15159
15160 for ac_header in dlfcn.h
15161 do :
15162   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15163 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15164   cat >>confdefs.h <<_ACEOF
15165 #define HAVE_DLFCN_H 1
15166 _ACEOF
15167
15168 fi
15169 done
15170
15171
15172
15173
15174
15175 # Set options
15176
15177
15178
15179         enable_dlopen=no
15180
15181
15182   enable_win32_dll=no
15183
15184
15185             # Check whether --enable-shared was given.
15186 if test "${enable_shared+set}" = set; then :
15187   enableval=$enable_shared; p=${PACKAGE-default}
15188     case $enableval in
15189     yes) enable_shared=yes ;;
15190     no) enable_shared=no ;;
15191     *)
15192       enable_shared=no
15193       # Look at the argument we got.  We use all the common list separators.
15194       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15195       for pkg in $enableval; do
15196         IFS="$lt_save_ifs"
15197         if test "X$pkg" = "X$p"; then
15198           enable_shared=yes
15199         fi
15200       done
15201       IFS="$lt_save_ifs"
15202       ;;
15203     esac
15204 else
15205   enable_shared=yes
15206 fi
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216   # Check whether --enable-static was given.
15217 if test "${enable_static+set}" = set; then :
15218   enableval=$enable_static; p=${PACKAGE-default}
15219     case $enableval in
15220     yes) enable_static=yes ;;
15221     no) enable_static=no ;;
15222     *)
15223      enable_static=no
15224       # Look at the argument we got.  We use all the common list separators.
15225       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15226       for pkg in $enableval; do
15227         IFS="$lt_save_ifs"
15228         if test "X$pkg" = "X$p"; then
15229           enable_static=yes
15230         fi
15231       done
15232       IFS="$lt_save_ifs"
15233       ;;
15234     esac
15235 else
15236   enable_static=yes
15237 fi
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248 # Check whether --with-pic was given.
15249 if test "${with_pic+set}" = set; then :
15250   withval=$with_pic; pic_mode="$withval"
15251 else
15252   pic_mode=default
15253 fi
15254
15255
15256 test -z "$pic_mode" && pic_mode=default
15257
15258
15259
15260
15261
15262
15263
15264   # Check whether --enable-fast-install was given.
15265 if test "${enable_fast_install+set}" = set; then :
15266   enableval=$enable_fast_install; p=${PACKAGE-default}
15267     case $enableval in
15268     yes) enable_fast_install=yes ;;
15269     no) enable_fast_install=no ;;
15270     *)
15271       enable_fast_install=no
15272       # Look at the argument we got.  We use all the common list separators.
15273       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15274       for pkg in $enableval; do
15275         IFS="$lt_save_ifs"
15276         if test "X$pkg" = "X$p"; then
15277           enable_fast_install=yes
15278         fi
15279       done
15280       IFS="$lt_save_ifs"
15281       ;;
15282     esac
15283 else
15284   enable_fast_install=yes
15285 fi
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297 # This can be used to rebuild libtool when needed
15298 LIBTOOL_DEPS="$ltmain"
15299
15300 # Always use our own libtool.
15301 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328 test -z "$LN_S" && LN_S="ln -s"
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343 if test -n "${ZSH_VERSION+set}" ; then
15344    setopt NO_GLOB_SUBST
15345 fi
15346
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15348 $as_echo_n "checking for objdir... " >&6; }
15349 if ${lt_cv_objdir+:} false; then :
15350   $as_echo_n "(cached) " >&6
15351 else
15352   rm -f .libs 2>/dev/null
15353 mkdir .libs 2>/dev/null
15354 if test -d .libs; then
15355   lt_cv_objdir=.libs
15356 else
15357   # MS-DOS does not allow filenames that begin with a dot.
15358   lt_cv_objdir=_libs
15359 fi
15360 rmdir .libs 2>/dev/null
15361 fi
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15363 $as_echo "$lt_cv_objdir" >&6; }
15364 objdir=$lt_cv_objdir
15365
15366
15367
15368
15369
15370 cat >>confdefs.h <<_ACEOF
15371 #define LT_OBJDIR "$lt_cv_objdir/"
15372 _ACEOF
15373
15374
15375
15376
15377 case $host_os in
15378 aix3*)
15379   # AIX sometimes has problems with the GCC collect2 program.  For some
15380   # reason, if we set the COLLECT_NAMES environment variable, the problems
15381   # vanish in a puff of smoke.
15382   if test "X${COLLECT_NAMES+set}" != Xset; then
15383     COLLECT_NAMES=
15384     export COLLECT_NAMES
15385   fi
15386   ;;
15387 esac
15388
15389 # Global variables:
15390 ofile=libtool
15391 can_build_shared=yes
15392
15393 # All known linkers require a `.a' archive for static linking (except MSVC,
15394 # which needs '.lib').
15395 libext=a
15396
15397 with_gnu_ld="$lt_cv_prog_gnu_ld"
15398
15399 old_CC="$CC"
15400 old_CFLAGS="$CFLAGS"
15401
15402 # Set sane defaults for various variables
15403 test -z "$CC" && CC=cc
15404 test -z "$LTCC" && LTCC=$CC
15405 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15406 test -z "$LD" && LD=ld
15407 test -z "$ac_objext" && ac_objext=o
15408
15409 for cc_temp in $compiler""; do
15410   case $cc_temp in
15411     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15412     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15413     \-*) ;;
15414     *) break;;
15415   esac
15416 done
15417 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15418
15419
15420 # Only perform the check for file, if the check method requires it
15421 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15422 case $deplibs_check_method in
15423 file_magic*)
15424   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15426 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15427 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15428   $as_echo_n "(cached) " >&6
15429 else
15430   case $MAGIC_CMD in
15431 [\\/*] |  ?:[\\/]*)
15432   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15433   ;;
15434 *)
15435   lt_save_MAGIC_CMD="$MAGIC_CMD"
15436   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15437   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15438   for ac_dir in $ac_dummy; do
15439     IFS="$lt_save_ifs"
15440     test -z "$ac_dir" && ac_dir=.
15441     if test -f $ac_dir/${ac_tool_prefix}file; then
15442       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15443       if test -n "$file_magic_test_file"; then
15444         case $deplibs_check_method in
15445         "file_magic "*)
15446           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15447           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15448           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15449             $EGREP "$file_magic_regex" > /dev/null; then
15450             :
15451           else
15452             cat <<_LT_EOF 1>&2
15453
15454 *** Warning: the command libtool uses to detect shared libraries,
15455 *** $file_magic_cmd, produces output that libtool cannot recognize.
15456 *** The result is that libtool may fail to recognize shared libraries
15457 *** as such.  This will affect the creation of libtool libraries that
15458 *** depend on shared libraries, but programs linked with such libtool
15459 *** libraries will work regardless of this problem.  Nevertheless, you
15460 *** may want to report the problem to your system manager and/or to
15461 *** bug-libtool@gnu.org
15462
15463 _LT_EOF
15464           fi ;;
15465         esac
15466       fi
15467       break
15468     fi
15469   done
15470   IFS="$lt_save_ifs"
15471   MAGIC_CMD="$lt_save_MAGIC_CMD"
15472   ;;
15473 esac
15474 fi
15475
15476 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15477 if test -n "$MAGIC_CMD"; then
15478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15479 $as_echo "$MAGIC_CMD" >&6; }
15480 else
15481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15482 $as_echo "no" >&6; }
15483 fi
15484
15485
15486
15487
15488
15489 if test -z "$lt_cv_path_MAGIC_CMD"; then
15490   if test -n "$ac_tool_prefix"; then
15491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15492 $as_echo_n "checking for file... " >&6; }
15493 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15494   $as_echo_n "(cached) " >&6
15495 else
15496   case $MAGIC_CMD in
15497 [\\/*] |  ?:[\\/]*)
15498   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15499   ;;
15500 *)
15501   lt_save_MAGIC_CMD="$MAGIC_CMD"
15502   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15503   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15504   for ac_dir in $ac_dummy; do
15505     IFS="$lt_save_ifs"
15506     test -z "$ac_dir" && ac_dir=.
15507     if test -f $ac_dir/file; then
15508       lt_cv_path_MAGIC_CMD="$ac_dir/file"
15509       if test -n "$file_magic_test_file"; then
15510         case $deplibs_check_method in
15511         "file_magic "*)
15512           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15513           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15514           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15515             $EGREP "$file_magic_regex" > /dev/null; then
15516             :
15517           else
15518             cat <<_LT_EOF 1>&2
15519
15520 *** Warning: the command libtool uses to detect shared libraries,
15521 *** $file_magic_cmd, produces output that libtool cannot recognize.
15522 *** The result is that libtool may fail to recognize shared libraries
15523 *** as such.  This will affect the creation of libtool libraries that
15524 *** depend on shared libraries, but programs linked with such libtool
15525 *** libraries will work regardless of this problem.  Nevertheless, you
15526 *** may want to report the problem to your system manager and/or to
15527 *** bug-libtool@gnu.org
15528
15529 _LT_EOF
15530           fi ;;
15531         esac
15532       fi
15533       break
15534     fi
15535   done
15536   IFS="$lt_save_ifs"
15537   MAGIC_CMD="$lt_save_MAGIC_CMD"
15538   ;;
15539 esac
15540 fi
15541
15542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15543 if test -n "$MAGIC_CMD"; then
15544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15545 $as_echo "$MAGIC_CMD" >&6; }
15546 else
15547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15548 $as_echo "no" >&6; }
15549 fi
15550
15551
15552   else
15553     MAGIC_CMD=:
15554   fi
15555 fi
15556
15557   fi
15558   ;;
15559 esac
15560
15561 # Use C for the default configuration in the libtool script
15562
15563 lt_save_CC="$CC"
15564 ac_ext=c
15565 ac_cpp='$CPP $CPPFLAGS'
15566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15569
15570
15571 # Source file extension for C test sources.
15572 ac_ext=c
15573
15574 # Object file extension for compiled C test sources.
15575 objext=o
15576 objext=$objext
15577
15578 # Code to be used in simple compile tests
15579 lt_simple_compile_test_code="int some_variable = 0;"
15580
15581 # Code to be used in simple link tests
15582 lt_simple_link_test_code='int main(){return(0);}'
15583
15584
15585
15586
15587
15588
15589
15590 # If no C compiler was specified, use CC.
15591 LTCC=${LTCC-"$CC"}
15592
15593 # If no C compiler flags were specified, use CFLAGS.
15594 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15595
15596 # Allow CC to be a program name with arguments.
15597 compiler=$CC
15598
15599 # Save the default compiler, since it gets overwritten when the other
15600 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15601 compiler_DEFAULT=$CC
15602
15603 # save warnings/boilerplate of simple test code
15604 ac_outfile=conftest.$ac_objext
15605 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15606 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15607 _lt_compiler_boilerplate=`cat conftest.err`
15608 $RM conftest*
15609
15610 ac_outfile=conftest.$ac_objext
15611 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15612 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15613 _lt_linker_boilerplate=`cat conftest.err`
15614 $RM -r conftest*
15615
15616
15617 ## CAVEAT EMPTOR:
15618 ## There is no encapsulation within the following macros, do not change
15619 ## the running order or otherwise move them around unless you know exactly
15620 ## what you are doing...
15621 if test -n "$compiler"; then
15622
15623 lt_prog_compiler_no_builtin_flag=
15624
15625 if test "$GCC" = yes; then
15626   case $cc_basename in
15627   nvcc*)
15628     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15629   *)
15630     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15631   esac
15632
15633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15634 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15635 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15636   $as_echo_n "(cached) " >&6
15637 else
15638   lt_cv_prog_compiler_rtti_exceptions=no
15639    ac_outfile=conftest.$ac_objext
15640    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15641    lt_compiler_flag="-fno-rtti -fno-exceptions"
15642    # Insert the option either (1) after the last *FLAGS variable, or
15643    # (2) before a word containing "conftest.", or (3) at the end.
15644    # Note that $ac_compile itself does not contain backslashes and begins
15645    # with a dollar sign (not a hyphen), so the echo should work correctly.
15646    # The option is referenced via a variable to avoid confusing sed.
15647    lt_compile=`echo "$ac_compile" | $SED \
15648    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15649    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15650    -e 's:$: $lt_compiler_flag:'`
15651    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15652    (eval "$lt_compile" 2>conftest.err)
15653    ac_status=$?
15654    cat conftest.err >&5
15655    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656    if (exit $ac_status) && test -s "$ac_outfile"; then
15657      # The compiler can only warn and ignore the option if not recognized
15658      # So say no if there are warnings other than the usual output.
15659      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15660      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15661      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15662        lt_cv_prog_compiler_rtti_exceptions=yes
15663      fi
15664    fi
15665    $RM conftest*
15666
15667 fi
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15669 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15670
15671 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15672     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15673 else
15674     :
15675 fi
15676
15677 fi
15678
15679
15680
15681
15682
15683
15684   lt_prog_compiler_wl=
15685 lt_prog_compiler_pic=
15686 lt_prog_compiler_static=
15687
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15689 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15690
15691   if test "$GCC" = yes; then
15692     lt_prog_compiler_wl='-Wl,'
15693     lt_prog_compiler_static='-static'
15694
15695     case $host_os in
15696       aix*)
15697       # All AIX code is PIC.
15698       if test "$host_cpu" = ia64; then
15699         # AIX 5 now supports IA64 processor
15700         lt_prog_compiler_static='-Bstatic'
15701       fi
15702       lt_prog_compiler_pic='-fPIC'
15703       ;;
15704
15705     amigaos*)
15706       case $host_cpu in
15707       powerpc)
15708             # see comment about AmigaOS4 .so support
15709             lt_prog_compiler_pic='-fPIC'
15710         ;;
15711       m68k)
15712             # FIXME: we need at least 68020 code to build shared libraries, but
15713             # adding the `-m68020' flag to GCC prevents building anything better,
15714             # like `-m68040'.
15715             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15716         ;;
15717       esac
15718       ;;
15719
15720     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15721       # PIC is the default for these OSes.
15722       ;;
15723
15724     mingw* | cygwin* | pw32* | os2* | cegcc*)
15725       # This hack is so that the source file can tell whether it is being
15726       # built for inclusion in a dll (and should export symbols for example).
15727       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15728       # (--disable-auto-import) libraries
15729       lt_prog_compiler_pic='-DDLL_EXPORT'
15730       ;;
15731
15732     darwin* | rhapsody*)
15733       # PIC is the default on this platform
15734       # Common symbols not allowed in MH_DYLIB files
15735       lt_prog_compiler_pic='-fno-common'
15736       ;;
15737
15738     haiku*)
15739       # PIC is the default for Haiku.
15740       # The "-static" flag exists, but is broken.
15741       lt_prog_compiler_static=
15742       ;;
15743
15744     hpux*)
15745       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15746       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15747       # sets the default TLS model and affects inlining.
15748       case $host_cpu in
15749       hppa*64*)
15750         # +Z the default
15751         ;;
15752       *)
15753         lt_prog_compiler_pic='-fPIC'
15754         ;;
15755       esac
15756       ;;
15757
15758     interix[3-9]*)
15759       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15760       # Instead, we relocate shared libraries at runtime.
15761       ;;
15762
15763     msdosdjgpp*)
15764       # Just because we use GCC doesn't mean we suddenly get shared libraries
15765       # on systems that don't support them.
15766       lt_prog_compiler_can_build_shared=no
15767       enable_shared=no
15768       ;;
15769
15770     *nto* | *qnx*)
15771       # QNX uses GNU C++, but need to define -shared option too, otherwise
15772       # it will coredump.
15773       lt_prog_compiler_pic='-fPIC -shared'
15774       ;;
15775
15776     sysv4*MP*)
15777       if test -d /usr/nec; then
15778         lt_prog_compiler_pic=-Kconform_pic
15779       fi
15780       ;;
15781
15782     *)
15783       lt_prog_compiler_pic='-fPIC'
15784       ;;
15785     esac
15786
15787     case $cc_basename in
15788     nvcc*) # Cuda Compiler Driver 2.2
15789       lt_prog_compiler_wl='-Xlinker '
15790       lt_prog_compiler_pic='-Xcompiler -fPIC'
15791       ;;
15792     esac
15793   else
15794     # PORTME Check for flag to pass linker flags through the system compiler.
15795     case $host_os in
15796     aix*)
15797       lt_prog_compiler_wl='-Wl,'
15798       if test "$host_cpu" = ia64; then
15799         # AIX 5 now supports IA64 processor
15800         lt_prog_compiler_static='-Bstatic'
15801       else
15802         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15803       fi
15804       ;;
15805
15806     mingw* | cygwin* | pw32* | os2* | cegcc*)
15807       # This hack is so that the source file can tell whether it is being
15808       # built for inclusion in a dll (and should export symbols for example).
15809       lt_prog_compiler_pic='-DDLL_EXPORT'
15810       ;;
15811
15812     hpux9* | hpux10* | hpux11*)
15813       lt_prog_compiler_wl='-Wl,'
15814       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15815       # not for PA HP-UX.
15816       case $host_cpu in
15817       hppa*64*|ia64*)
15818         # +Z the default
15819         ;;
15820       *)
15821         lt_prog_compiler_pic='+Z'
15822         ;;
15823       esac
15824       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15825       lt_prog_compiler_static='${wl}-a ${wl}archive'
15826       ;;
15827
15828     irix5* | irix6* | nonstopux*)
15829       lt_prog_compiler_wl='-Wl,'
15830       # PIC (with -KPIC) is the default.
15831       lt_prog_compiler_static='-non_shared'
15832       ;;
15833
15834     linux* | k*bsd*-gnu | kopensolaris*-gnu)
15835       case $cc_basename in
15836       # old Intel for x86_64 which still supported -KPIC.
15837       ecc*)
15838         lt_prog_compiler_wl='-Wl,'
15839         lt_prog_compiler_pic='-KPIC'
15840         lt_prog_compiler_static='-static'
15841         ;;
15842       # icc used to be incompatible with GCC.
15843       # ICC 10 doesn't accept -KPIC any more.
15844       icc* | ifort*)
15845         lt_prog_compiler_wl='-Wl,'
15846         lt_prog_compiler_pic='-fPIC'
15847         lt_prog_compiler_static='-static'
15848         ;;
15849       # Lahey Fortran 8.1.
15850       lf95*)
15851         lt_prog_compiler_wl='-Wl,'
15852         lt_prog_compiler_pic='--shared'
15853         lt_prog_compiler_static='--static'
15854         ;;
15855       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15856         # Portland Group compilers (*not* the Pentium gcc compiler,
15857         # which looks to be a dead project)
15858         lt_prog_compiler_wl='-Wl,'
15859         lt_prog_compiler_pic='-fpic'
15860         lt_prog_compiler_static='-Bstatic'
15861         ;;
15862       ccc*)
15863         lt_prog_compiler_wl='-Wl,'
15864         # All Alpha code is PIC.
15865         lt_prog_compiler_static='-non_shared'
15866         ;;
15867       xl* | bgxl* | bgf* | mpixl*)
15868         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15869         lt_prog_compiler_wl='-Wl,'
15870         lt_prog_compiler_pic='-qpic'
15871         lt_prog_compiler_static='-qstaticlink'
15872         ;;
15873       *)
15874         case `$CC -V 2>&1 | sed 5q` in
15875         *Sun\ F* | *Sun*Fortran*)
15876           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15877           lt_prog_compiler_pic='-KPIC'
15878           lt_prog_compiler_static='-Bstatic'
15879           lt_prog_compiler_wl=''
15880           ;;
15881         *Sun\ C*)
15882           # Sun C 5.9
15883           lt_prog_compiler_pic='-KPIC'
15884           lt_prog_compiler_static='-Bstatic'
15885           lt_prog_compiler_wl='-Wl,'
15886           ;;
15887         esac
15888         ;;
15889       esac
15890       ;;
15891
15892     newsos6)
15893       lt_prog_compiler_pic='-KPIC'
15894       lt_prog_compiler_static='-Bstatic'
15895       ;;
15896
15897     *nto* | *qnx*)
15898       # QNX uses GNU C++, but need to define -shared option too, otherwise
15899       # it will coredump.
15900       lt_prog_compiler_pic='-fPIC -shared'
15901       ;;
15902
15903     osf3* | osf4* | osf5*)
15904       lt_prog_compiler_wl='-Wl,'
15905       # All OSF/1 code is PIC.
15906       lt_prog_compiler_static='-non_shared'
15907       ;;
15908
15909     rdos*)
15910       lt_prog_compiler_static='-non_shared'
15911       ;;
15912
15913     solaris*)
15914       lt_prog_compiler_pic='-KPIC'
15915       lt_prog_compiler_static='-Bstatic'
15916       case $cc_basename in
15917       f77* | f90* | f95*)
15918         lt_prog_compiler_wl='-Qoption ld ';;
15919       *)
15920         lt_prog_compiler_wl='-Wl,';;
15921       esac
15922       ;;
15923
15924     sunos4*)
15925       lt_prog_compiler_wl='-Qoption ld '
15926       lt_prog_compiler_pic='-PIC'
15927       lt_prog_compiler_static='-Bstatic'
15928       ;;
15929
15930     sysv4 | sysv4.2uw2* | sysv4.3*)
15931       lt_prog_compiler_wl='-Wl,'
15932       lt_prog_compiler_pic='-KPIC'
15933       lt_prog_compiler_static='-Bstatic'
15934       ;;
15935
15936     sysv4*MP*)
15937       if test -d /usr/nec ;then
15938         lt_prog_compiler_pic='-Kconform_pic'
15939         lt_prog_compiler_static='-Bstatic'
15940       fi
15941       ;;
15942
15943     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15944       lt_prog_compiler_wl='-Wl,'
15945       lt_prog_compiler_pic='-KPIC'
15946       lt_prog_compiler_static='-Bstatic'
15947       ;;
15948
15949     unicos*)
15950       lt_prog_compiler_wl='-Wl,'
15951       lt_prog_compiler_can_build_shared=no
15952       ;;
15953
15954     uts4*)
15955       lt_prog_compiler_pic='-pic'
15956       lt_prog_compiler_static='-Bstatic'
15957       ;;
15958
15959     *)
15960       lt_prog_compiler_can_build_shared=no
15961       ;;
15962     esac
15963   fi
15964
15965 case $host_os in
15966   # For platforms which do not support PIC, -DPIC is meaningless:
15967   *djgpp*)
15968     lt_prog_compiler_pic=
15969     ;;
15970   *)
15971     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15972     ;;
15973 esac
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15975 $as_echo "$lt_prog_compiler_pic" >&6; }
15976
15977
15978
15979
15980
15981
15982 #
15983 # Check to make sure the PIC flag actually works.
15984 #
15985 if test -n "$lt_prog_compiler_pic"; then
15986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15987 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15988 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15989   $as_echo_n "(cached) " >&6
15990 else
15991   lt_cv_prog_compiler_pic_works=no
15992    ac_outfile=conftest.$ac_objext
15993    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15994    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15995    # Insert the option either (1) after the last *FLAGS variable, or
15996    # (2) before a word containing "conftest.", or (3) at the end.
15997    # Note that $ac_compile itself does not contain backslashes and begins
15998    # with a dollar sign (not a hyphen), so the echo should work correctly.
15999    # The option is referenced via a variable to avoid confusing sed.
16000    lt_compile=`echo "$ac_compile" | $SED \
16001    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16002    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16003    -e 's:$: $lt_compiler_flag:'`
16004    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16005    (eval "$lt_compile" 2>conftest.err)
16006    ac_status=$?
16007    cat conftest.err >&5
16008    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009    if (exit $ac_status) && test -s "$ac_outfile"; then
16010      # The compiler can only warn and ignore the option if not recognized
16011      # So say no if there are warnings other than the usual output.
16012      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16013      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16014      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16015        lt_cv_prog_compiler_pic_works=yes
16016      fi
16017    fi
16018    $RM conftest*
16019
16020 fi
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16022 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16023
16024 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16025     case $lt_prog_compiler_pic in
16026      "" | " "*) ;;
16027      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16028      esac
16029 else
16030     lt_prog_compiler_pic=
16031      lt_prog_compiler_can_build_shared=no
16032 fi
16033
16034 fi
16035
16036
16037
16038
16039
16040
16041 #
16042 # Check to make sure the static flag actually works.
16043 #
16044 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16046 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16047 if ${lt_cv_prog_compiler_static_works+:} false; then :
16048   $as_echo_n "(cached) " >&6
16049 else
16050   lt_cv_prog_compiler_static_works=no
16051    save_LDFLAGS="$LDFLAGS"
16052    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16053    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16054    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16055      # The linker can only warn and ignore the option if not recognized
16056      # So say no if there are warnings
16057      if test -s conftest.err; then
16058        # Append any errors to the config.log.
16059        cat conftest.err 1>&5
16060        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16061        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16062        if diff conftest.exp conftest.er2 >/dev/null; then
16063          lt_cv_prog_compiler_static_works=yes
16064        fi
16065      else
16066        lt_cv_prog_compiler_static_works=yes
16067      fi
16068    fi
16069    $RM -r conftest*
16070    LDFLAGS="$save_LDFLAGS"
16071
16072 fi
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16074 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16075
16076 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16077     :
16078 else
16079     lt_prog_compiler_static=
16080 fi
16081
16082
16083
16084
16085
16086
16087
16088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16089 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16090 if ${lt_cv_prog_compiler_c_o+:} false; then :
16091   $as_echo_n "(cached) " >&6
16092 else
16093   lt_cv_prog_compiler_c_o=no
16094    $RM -r conftest 2>/dev/null
16095    mkdir conftest
16096    cd conftest
16097    mkdir out
16098    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16099
16100    lt_compiler_flag="-o out/conftest2.$ac_objext"
16101    # Insert the option either (1) after the last *FLAGS variable, or
16102    # (2) before a word containing "conftest.", or (3) at the end.
16103    # Note that $ac_compile itself does not contain backslashes and begins
16104    # with a dollar sign (not a hyphen), so the echo should work correctly.
16105    lt_compile=`echo "$ac_compile" | $SED \
16106    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16107    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16108    -e 's:$: $lt_compiler_flag:'`
16109    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16110    (eval "$lt_compile" 2>out/conftest.err)
16111    ac_status=$?
16112    cat out/conftest.err >&5
16113    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16115    then
16116      # The compiler can only warn and ignore the option if not recognized
16117      # So say no if there are warnings
16118      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16119      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16120      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16121        lt_cv_prog_compiler_c_o=yes
16122      fi
16123    fi
16124    chmod u+w . 2>&5
16125    $RM conftest*
16126    # SGI C++ compiler will create directory out/ii_files/ for
16127    # template instantiation
16128    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16129    $RM out/* && rmdir out
16130    cd ..
16131    $RM -r conftest
16132    $RM conftest*
16133
16134 fi
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16136 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16137
16138
16139
16140
16141
16142
16143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16144 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16145 if ${lt_cv_prog_compiler_c_o+:} false; then :
16146   $as_echo_n "(cached) " >&6
16147 else
16148   lt_cv_prog_compiler_c_o=no
16149    $RM -r conftest 2>/dev/null
16150    mkdir conftest
16151    cd conftest
16152    mkdir out
16153    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16154
16155    lt_compiler_flag="-o out/conftest2.$ac_objext"
16156    # Insert the option either (1) after the last *FLAGS variable, or
16157    # (2) before a word containing "conftest.", or (3) at the end.
16158    # Note that $ac_compile itself does not contain backslashes and begins
16159    # with a dollar sign (not a hyphen), so the echo should work correctly.
16160    lt_compile=`echo "$ac_compile" | $SED \
16161    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16162    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16163    -e 's:$: $lt_compiler_flag:'`
16164    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16165    (eval "$lt_compile" 2>out/conftest.err)
16166    ac_status=$?
16167    cat out/conftest.err >&5
16168    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16170    then
16171      # The compiler can only warn and ignore the option if not recognized
16172      # So say no if there are warnings
16173      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16174      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16175      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16176        lt_cv_prog_compiler_c_o=yes
16177      fi
16178    fi
16179    chmod u+w . 2>&5
16180    $RM conftest*
16181    # SGI C++ compiler will create directory out/ii_files/ for
16182    # template instantiation
16183    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16184    $RM out/* && rmdir out
16185    cd ..
16186    $RM -r conftest
16187    $RM conftest*
16188
16189 fi
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16191 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16192
16193
16194
16195
16196 hard_links="nottested"
16197 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16198   # do not overwrite the value of need_locks provided by the user
16199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16200 $as_echo_n "checking if we can lock with hard links... " >&6; }
16201   hard_links=yes
16202   $RM conftest*
16203   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16204   touch conftest.a
16205   ln conftest.a conftest.b 2>&5 || hard_links=no
16206   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16208 $as_echo "$hard_links" >&6; }
16209   if test "$hard_links" = no; then
16210     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16211 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16212     need_locks=warn
16213   fi
16214 else
16215   need_locks=no
16216 fi
16217
16218
16219
16220
16221
16222
16223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16224 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16225
16226   runpath_var=
16227   allow_undefined_flag=
16228   always_export_symbols=no
16229   archive_cmds=
16230   archive_expsym_cmds=
16231   compiler_needs_object=no
16232   enable_shared_with_static_runtimes=no
16233   export_dynamic_flag_spec=
16234   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16235   hardcode_automatic=no
16236   hardcode_direct=no
16237   hardcode_direct_absolute=no
16238   hardcode_libdir_flag_spec=
16239   hardcode_libdir_flag_spec_ld=
16240   hardcode_libdir_separator=
16241   hardcode_minus_L=no
16242   hardcode_shlibpath_var=unsupported
16243   inherit_rpath=no
16244   link_all_deplibs=unknown
16245   module_cmds=
16246   module_expsym_cmds=
16247   old_archive_from_new_cmds=
16248   old_archive_from_expsyms_cmds=
16249   thread_safe_flag_spec=
16250   whole_archive_flag_spec=
16251   # include_expsyms should be a list of space-separated symbols to be *always*
16252   # included in the symbol list
16253   include_expsyms=
16254   # exclude_expsyms can be an extended regexp of symbols to exclude
16255   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16256   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16257   # as well as any symbol that contains `d'.
16258   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16259   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16260   # platforms (ab)use it in PIC code, but their linkers get confused if
16261   # the symbol is explicitly referenced.  Since portable code cannot
16262   # rely on this symbol name, it's probably fine to never include it in
16263   # preloaded symbol tables.
16264   # Exclude shared library initialization/finalization symbols.
16265   extract_expsyms_cmds=
16266
16267   case $host_os in
16268   cygwin* | mingw* | pw32* | cegcc*)
16269     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16270     # When not using gcc, we currently assume that we are using
16271     # Microsoft Visual C++.
16272     if test "$GCC" != yes; then
16273       with_gnu_ld=no
16274     fi
16275     ;;
16276   interix*)
16277     # we just hope/assume this is gcc and not c89 (= MSVC++)
16278     with_gnu_ld=yes
16279     ;;
16280   openbsd*)
16281     with_gnu_ld=no
16282     ;;
16283   esac
16284
16285   ld_shlibs=yes
16286
16287   # On some targets, GNU ld is compatible enough with the native linker
16288   # that we're better off using the native interface for both.
16289   lt_use_gnu_ld_interface=no
16290   if test "$with_gnu_ld" = yes; then
16291     case $host_os in
16292       aix*)
16293         # The AIX port of GNU ld has always aspired to compatibility
16294         # with the native linker.  However, as the warning in the GNU ld
16295         # block says, versions before 2.19.5* couldn't really create working
16296         # shared libraries, regardless of the interface used.
16297         case `$LD -v 2>&1` in
16298           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16299           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16300           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16301           *)
16302             lt_use_gnu_ld_interface=yes
16303             ;;
16304         esac
16305         ;;
16306       *)
16307         lt_use_gnu_ld_interface=yes
16308         ;;
16309     esac
16310   fi
16311
16312   if test "$lt_use_gnu_ld_interface" = yes; then
16313     # If archive_cmds runs LD, not CC, wlarc should be empty
16314     wlarc='${wl}'
16315
16316     # Set some defaults for GNU ld with shared library support. These
16317     # are reset later if shared libraries are not supported. Putting them
16318     # here allows them to be overridden if necessary.
16319     runpath_var=LD_RUN_PATH
16320     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16321     export_dynamic_flag_spec='${wl}--export-dynamic'
16322     # ancient GNU ld didn't support --whole-archive et. al.
16323     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16324       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16325     else
16326       whole_archive_flag_spec=
16327     fi
16328     supports_anon_versioning=no
16329     case `$LD -v 2>&1` in
16330       *GNU\ gold*) supports_anon_versioning=yes ;;
16331       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16332       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16333       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16334       *\ 2.11.*) ;; # other 2.11 versions
16335       *) supports_anon_versioning=yes ;;
16336     esac
16337
16338     # See if GNU ld supports shared libraries.
16339     case $host_os in
16340     aix[3-9]*)
16341       # On AIX/PPC, the GNU linker is very broken
16342       if test "$host_cpu" != ia64; then
16343         ld_shlibs=no
16344         cat <<_LT_EOF 1>&2
16345
16346 *** Warning: the GNU linker, at least up to release 2.19, is reported
16347 *** to be unable to reliably create shared libraries on AIX.
16348 *** Therefore, libtool is disabling shared libraries support.  If you
16349 *** really care for shared libraries, you may want to install binutils
16350 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16351 *** You will then need to restart the configuration process.
16352
16353 _LT_EOF
16354       fi
16355       ;;
16356
16357     amigaos*)
16358       case $host_cpu in
16359       powerpc)
16360             # see comment about AmigaOS4 .so support
16361             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16362             archive_expsym_cmds=''
16363         ;;
16364       m68k)
16365             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16366             hardcode_libdir_flag_spec='-L$libdir'
16367             hardcode_minus_L=yes
16368         ;;
16369       esac
16370       ;;
16371
16372     beos*)
16373       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16374         allow_undefined_flag=unsupported
16375         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16376         # support --undefined.  This deserves some investigation.  FIXME
16377         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16378       else
16379         ld_shlibs=no
16380       fi
16381       ;;
16382
16383     cygwin* | mingw* | pw32* | cegcc*)
16384       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16385       # as there is no search path for DLLs.
16386       hardcode_libdir_flag_spec='-L$libdir'
16387       export_dynamic_flag_spec='${wl}--export-all-symbols'
16388       allow_undefined_flag=unsupported
16389       always_export_symbols=no
16390       enable_shared_with_static_runtimes=yes
16391       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16392
16393       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16394         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16395         # If the export-symbols file already is a .def file (1st line
16396         # is EXPORTS), use it as is; otherwise, prepend...
16397         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16398           cp $export_symbols $output_objdir/$soname.def;
16399         else
16400           echo EXPORTS > $output_objdir/$soname.def;
16401           cat $export_symbols >> $output_objdir/$soname.def;
16402         fi~
16403         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16404       else
16405         ld_shlibs=no
16406       fi
16407       ;;
16408
16409     haiku*)
16410       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16411       link_all_deplibs=yes
16412       ;;
16413
16414     interix[3-9]*)
16415       hardcode_direct=no
16416       hardcode_shlibpath_var=no
16417       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16418       export_dynamic_flag_spec='${wl}-E'
16419       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16420       # Instead, shared libraries are loaded at an image base (0x10000000 by
16421       # default) and relocated if they conflict, which is a slow very memory
16422       # consuming and fragmenting process.  To avoid this, we pick a random,
16423       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16424       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16425       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16426       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16427       ;;
16428
16429     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16430       tmp_diet=no
16431       if test "$host_os" = linux-dietlibc; then
16432         case $cc_basename in
16433           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
16434         esac
16435       fi
16436       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16437          && test "$tmp_diet" = no
16438       then
16439         tmp_addflag=' $pic_flag'
16440         tmp_sharedflag='-shared'
16441         case $cc_basename,$host_cpu in
16442         pgcc*)                          # Portland Group C compiler
16443           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16444           tmp_addflag=' $pic_flag'
16445           ;;
16446         pgf77* | pgf90* | pgf95* | pgfortran*)
16447                                         # Portland Group f77 and f90 compilers
16448           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16449           tmp_addflag=' $pic_flag -Mnomain' ;;
16450         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
16451           tmp_addflag=' -i_dynamic' ;;
16452         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16453           tmp_addflag=' -i_dynamic -nofor_main' ;;
16454         ifc* | ifort*)                  # Intel Fortran compiler
16455           tmp_addflag=' -nofor_main' ;;
16456         lf95*)                          # Lahey Fortran 8.1
16457           whole_archive_flag_spec=
16458           tmp_sharedflag='--shared' ;;
16459         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16460           tmp_sharedflag='-qmkshrobj'
16461           tmp_addflag= ;;
16462         nvcc*)  # Cuda Compiler Driver 2.2
16463           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16464           compiler_needs_object=yes
16465           ;;
16466         esac
16467         case `$CC -V 2>&1 | sed 5q` in
16468         *Sun\ C*)                       # Sun C 5.9
16469           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16470           compiler_needs_object=yes
16471           tmp_sharedflag='-G' ;;
16472         *Sun\ F*)                       # Sun Fortran 8.3
16473           tmp_sharedflag='-G' ;;
16474         esac
16475         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16476
16477         if test "x$supports_anon_versioning" = xyes; then
16478           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16479             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16480             echo "local: *; };" >> $output_objdir/$libname.ver~
16481             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16482         fi
16483
16484         case $cc_basename in
16485         xlf* | bgf* | bgxlf* | mpixlf*)
16486           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16487           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16488           hardcode_libdir_flag_spec=
16489           hardcode_libdir_flag_spec_ld='-rpath $libdir'
16490           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16491           if test "x$supports_anon_versioning" = xyes; then
16492             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16493               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16494               echo "local: *; };" >> $output_objdir/$libname.ver~
16495               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16496           fi
16497           ;;
16498         esac
16499       else
16500         ld_shlibs=no
16501       fi
16502       ;;
16503
16504     netbsd*)
16505       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16506         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16507         wlarc=
16508       else
16509         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16510         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16511       fi
16512       ;;
16513
16514     solaris*)
16515       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16516         ld_shlibs=no
16517         cat <<_LT_EOF 1>&2
16518
16519 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16520 *** create shared libraries on Solaris systems.  Therefore, libtool
16521 *** is disabling shared libraries support.  We urge you to upgrade GNU
16522 *** binutils to release 2.9.1 or newer.  Another option is to modify
16523 *** your PATH or compiler configuration so that the native linker is
16524 *** used, and then restart.
16525
16526 _LT_EOF
16527       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16528         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16529         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16530       else
16531         ld_shlibs=no
16532       fi
16533       ;;
16534
16535     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16536       case `$LD -v 2>&1` in
16537         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16538         ld_shlibs=no
16539         cat <<_LT_EOF 1>&2
16540
16541 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16542 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16543 *** is disabling shared libraries support.  We urge you to upgrade GNU
16544 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16545 *** your PATH or compiler configuration so that the native linker is
16546 *** used, and then restart.
16547
16548 _LT_EOF
16549         ;;
16550         *)
16551           # For security reasons, it is highly recommended that you always
16552           # use absolute paths for naming shared libraries, and exclude the
16553           # DT_RUNPATH tag from executables and libraries.  But doing so
16554           # requires that you compile everything twice, which is a pain.
16555           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16556             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16557             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16558             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16559           else
16560             ld_shlibs=no
16561           fi
16562         ;;
16563       esac
16564       ;;
16565
16566     sunos4*)
16567       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16568       wlarc=
16569       hardcode_direct=yes
16570       hardcode_shlibpath_var=no
16571       ;;
16572
16573     *)
16574       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16575         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16576         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16577       else
16578         ld_shlibs=no
16579       fi
16580       ;;
16581     esac
16582
16583     if test "$ld_shlibs" = no; then
16584       runpath_var=
16585       hardcode_libdir_flag_spec=
16586       export_dynamic_flag_spec=
16587       whole_archive_flag_spec=
16588     fi
16589   else
16590     # PORTME fill in a description of your system's linker (not GNU ld)
16591     case $host_os in
16592     aix3*)
16593       allow_undefined_flag=unsupported
16594       always_export_symbols=yes
16595       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16596       # Note: this linker hardcodes the directories in LIBPATH if there
16597       # are no directories specified by -L.
16598       hardcode_minus_L=yes
16599       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16600         # Neither direct hardcoding nor static linking is supported with a
16601         # broken collect2.
16602         hardcode_direct=unsupported
16603       fi
16604       ;;
16605
16606     aix[4-9]*)
16607       if test "$host_cpu" = ia64; then
16608         # On IA64, the linker does run time linking by default, so we don't
16609         # have to do anything special.
16610         aix_use_runtimelinking=no
16611         exp_sym_flag='-Bexport'
16612         no_entry_flag=""
16613       else
16614         # If we're using GNU nm, then we don't want the "-C" option.
16615         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16616         # Also, AIX nm treats weak defined symbols like other global
16617         # defined symbols, whereas GNU nm marks them as "W".
16618         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16619           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16620         else
16621           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16622         fi
16623         aix_use_runtimelinking=no
16624
16625         # Test if we are trying to use run time linking or normal
16626         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16627         # need to do runtime linking.
16628         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16629           for ld_flag in $LDFLAGS; do
16630           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16631             aix_use_runtimelinking=yes
16632             break
16633           fi
16634           done
16635           ;;
16636         esac
16637
16638         exp_sym_flag='-bexport'
16639         no_entry_flag='-bnoentry'
16640       fi
16641
16642       # When large executables or shared objects are built, AIX ld can
16643       # have problems creating the table of contents.  If linking a library
16644       # or program results in "error TOC overflow" add -mminimal-toc to
16645       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16646       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16647
16648       archive_cmds=''
16649       hardcode_direct=yes
16650       hardcode_direct_absolute=yes
16651       hardcode_libdir_separator=':'
16652       link_all_deplibs=yes
16653       file_list_spec='${wl}-f,'
16654
16655       if test "$GCC" = yes; then
16656         case $host_os in aix4.[012]|aix4.[012].*)
16657         # We only want to do this on AIX 4.2 and lower, the check
16658         # below for broken collect2 doesn't work under 4.3+
16659           collect2name=`${CC} -print-prog-name=collect2`
16660           if test -f "$collect2name" &&
16661            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16662           then
16663           # We have reworked collect2
16664           :
16665           else
16666           # We have old collect2
16667           hardcode_direct=unsupported
16668           # It fails to find uninstalled libraries when the uninstalled
16669           # path is not listed in the libpath.  Setting hardcode_minus_L
16670           # to unsupported forces relinking
16671           hardcode_minus_L=yes
16672           hardcode_libdir_flag_spec='-L$libdir'
16673           hardcode_libdir_separator=
16674           fi
16675           ;;
16676         esac
16677         shared_flag='-shared'
16678         if test "$aix_use_runtimelinking" = yes; then
16679           shared_flag="$shared_flag "'${wl}-G'
16680         fi
16681       else
16682         # not using gcc
16683         if test "$host_cpu" = ia64; then
16684         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16685         # chokes on -Wl,-G. The following line is correct:
16686           shared_flag='-G'
16687         else
16688           if test "$aix_use_runtimelinking" = yes; then
16689             shared_flag='${wl}-G'
16690           else
16691             shared_flag='${wl}-bM:SRE'
16692           fi
16693         fi
16694       fi
16695
16696       export_dynamic_flag_spec='${wl}-bexpall'
16697       # It seems that -bexpall does not export symbols beginning with
16698       # underscore (_), so it is better to generate a list of symbols to export.
16699       always_export_symbols=yes
16700       if test "$aix_use_runtimelinking" = yes; then
16701         # Warning - without using the other runtime loading flags (-brtl),
16702         # -berok will link without error, but may produce a broken library.
16703         allow_undefined_flag='-berok'
16704         # Determine the default libpath from the value encoded in an
16705         # empty executable.
16706         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16707 /* end confdefs.h.  */
16708
16709 int
16710 main ()
16711 {
16712
16713   ;
16714   return 0;
16715 }
16716 _ACEOF
16717 if ac_fn_c_try_link "$LINENO"; then :
16718
16719 lt_aix_libpath_sed='
16720     /Import File Strings/,/^$/ {
16721         /^0/ {
16722             s/^0  *\(.*\)$/\1/
16723             p
16724         }
16725     }'
16726 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16727 # Check for a 64-bit object if we didn't find anything.
16728 if test -z "$aix_libpath"; then
16729   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16730 fi
16731 fi
16732 rm -f core conftest.err conftest.$ac_objext \
16733     conftest$ac_exeext conftest.$ac_ext
16734 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16735
16736         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16737         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16738       else
16739         if test "$host_cpu" = ia64; then
16740           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16741           allow_undefined_flag="-z nodefs"
16742           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16743         else
16744          # Determine the default libpath from the value encoded in an
16745          # empty executable.
16746          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747 /* end confdefs.h.  */
16748
16749 int
16750 main ()
16751 {
16752
16753   ;
16754   return 0;
16755 }
16756 _ACEOF
16757 if ac_fn_c_try_link "$LINENO"; then :
16758
16759 lt_aix_libpath_sed='
16760     /Import File Strings/,/^$/ {
16761         /^0/ {
16762             s/^0  *\(.*\)$/\1/
16763             p
16764         }
16765     }'
16766 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16767 # Check for a 64-bit object if we didn't find anything.
16768 if test -z "$aix_libpath"; then
16769   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16770 fi
16771 fi
16772 rm -f core conftest.err conftest.$ac_objext \
16773     conftest$ac_exeext conftest.$ac_ext
16774 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16775
16776          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16777           # Warning - without using the other run time loading flags,
16778           # -berok will link without error, but may produce a broken library.
16779           no_undefined_flag=' ${wl}-bernotok'
16780           allow_undefined_flag=' ${wl}-berok'
16781           if test "$with_gnu_ld" = yes; then
16782             # We only use this code for GNU lds that support --whole-archive.
16783             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16784           else
16785             # Exported symbols can be pulled into shared objects from archives
16786             whole_archive_flag_spec='$convenience'
16787           fi
16788           archive_cmds_need_lc=yes
16789           # This is similar to how AIX traditionally builds its shared libraries.
16790           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16791         fi
16792       fi
16793       ;;
16794
16795     amigaos*)
16796       case $host_cpu in
16797       powerpc)
16798             # see comment about AmigaOS4 .so support
16799             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16800             archive_expsym_cmds=''
16801         ;;
16802       m68k)
16803             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16804             hardcode_libdir_flag_spec='-L$libdir'
16805             hardcode_minus_L=yes
16806         ;;
16807       esac
16808       ;;
16809
16810     bsdi[45]*)
16811       export_dynamic_flag_spec=-rdynamic
16812       ;;
16813
16814     cygwin* | mingw* | pw32* | cegcc*)
16815       # When not using gcc, we currently assume that we are using
16816       # Microsoft Visual C++.
16817       # hardcode_libdir_flag_spec is actually meaningless, as there is
16818       # no search path for DLLs.
16819       hardcode_libdir_flag_spec=' '
16820       allow_undefined_flag=unsupported
16821       # Tell ltmain to make .lib files, not .a files.
16822       libext=lib
16823       # Tell ltmain to make .dll files, not .so files.
16824       shrext_cmds=".dll"
16825       # FIXME: Setting linknames here is a bad hack.
16826       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16827       # The linker will automatically build a .lib file if we build a DLL.
16828       old_archive_from_new_cmds='true'
16829       # FIXME: Should let the user specify the lib program.
16830       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16831       fix_srcfile_path='`cygpath -w "$srcfile"`'
16832       enable_shared_with_static_runtimes=yes
16833       ;;
16834
16835     darwin* | rhapsody*)
16836
16837
16838   archive_cmds_need_lc=no
16839   hardcode_direct=no
16840   hardcode_automatic=yes
16841   hardcode_shlibpath_var=unsupported
16842   if test "$lt_cv_ld_force_load" = "yes"; then
16843     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16844   else
16845     whole_archive_flag_spec=''
16846   fi
16847   link_all_deplibs=yes
16848   allow_undefined_flag="$_lt_dar_allow_undefined"
16849   case $cc_basename in
16850      ifort*) _lt_dar_can_shared=yes ;;
16851      *) _lt_dar_can_shared=$GCC ;;
16852   esac
16853   if test "$_lt_dar_can_shared" = "yes"; then
16854     output_verbose_link_cmd=func_echo_all
16855     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16856     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16857     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16858     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16859
16860   else
16861   ld_shlibs=no
16862   fi
16863
16864       ;;
16865
16866     dgux*)
16867       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16868       hardcode_libdir_flag_spec='-L$libdir'
16869       hardcode_shlibpath_var=no
16870       ;;
16871
16872     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16873     # support.  Future versions do this automatically, but an explicit c++rt0.o
16874     # does not break anything, and helps significantly (at the cost of a little
16875     # extra space).
16876     freebsd2.2*)
16877       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16878       hardcode_libdir_flag_spec='-R$libdir'
16879       hardcode_direct=yes
16880       hardcode_shlibpath_var=no
16881       ;;
16882
16883     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16884     freebsd2.*)
16885       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16886       hardcode_direct=yes
16887       hardcode_minus_L=yes
16888       hardcode_shlibpath_var=no
16889       ;;
16890
16891     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16892     freebsd* | dragonfly*)
16893       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16894       hardcode_libdir_flag_spec='-R$libdir'
16895       hardcode_direct=yes
16896       hardcode_shlibpath_var=no
16897       ;;
16898
16899     hpux9*)
16900       if test "$GCC" = yes; then
16901         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16902       else
16903         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16904       fi
16905       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16906       hardcode_libdir_separator=:
16907       hardcode_direct=yes
16908
16909       # hardcode_minus_L: Not really in the search PATH,
16910       # but as the default location of the library.
16911       hardcode_minus_L=yes
16912       export_dynamic_flag_spec='${wl}-E'
16913       ;;
16914
16915     hpux10*)
16916       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16917         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16918       else
16919         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16920       fi
16921       if test "$with_gnu_ld" = no; then
16922         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16923         hardcode_libdir_flag_spec_ld='+b $libdir'
16924         hardcode_libdir_separator=:
16925         hardcode_direct=yes
16926         hardcode_direct_absolute=yes
16927         export_dynamic_flag_spec='${wl}-E'
16928         # hardcode_minus_L: Not really in the search PATH,
16929         # but as the default location of the library.
16930         hardcode_minus_L=yes
16931       fi
16932       ;;
16933
16934     hpux11*)
16935       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16936         case $host_cpu in
16937         hppa*64*)
16938           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16939           ;;
16940         ia64*)
16941           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16942           ;;
16943         *)
16944           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16945           ;;
16946         esac
16947       else
16948         case $host_cpu in
16949         hppa*64*)
16950           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16951           ;;
16952         ia64*)
16953           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16954           ;;
16955         *)
16956
16957           # Older versions of the 11.00 compiler do not understand -b yet
16958           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16959           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16960 $as_echo_n "checking if $CC understands -b... " >&6; }
16961 if ${lt_cv_prog_compiler__b+:} false; then :
16962   $as_echo_n "(cached) " >&6
16963 else
16964   lt_cv_prog_compiler__b=no
16965    save_LDFLAGS="$LDFLAGS"
16966    LDFLAGS="$LDFLAGS -b"
16967    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16968    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16969      # The linker can only warn and ignore the option if not recognized
16970      # So say no if there are warnings
16971      if test -s conftest.err; then
16972        # Append any errors to the config.log.
16973        cat conftest.err 1>&5
16974        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16975        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16976        if diff conftest.exp conftest.er2 >/dev/null; then
16977          lt_cv_prog_compiler__b=yes
16978        fi
16979      else
16980        lt_cv_prog_compiler__b=yes
16981      fi
16982    fi
16983    $RM -r conftest*
16984    LDFLAGS="$save_LDFLAGS"
16985
16986 fi
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16988 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16989
16990 if test x"$lt_cv_prog_compiler__b" = xyes; then
16991     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16992 else
16993     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16994 fi
16995
16996           ;;
16997         esac
16998       fi
16999       if test "$with_gnu_ld" = no; then
17000         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17001         hardcode_libdir_separator=:
17002
17003         case $host_cpu in
17004         hppa*64*|ia64*)
17005           hardcode_direct=no
17006           hardcode_shlibpath_var=no
17007           ;;
17008         *)
17009           hardcode_direct=yes
17010           hardcode_direct_absolute=yes
17011           export_dynamic_flag_spec='${wl}-E'
17012
17013           # hardcode_minus_L: Not really in the search PATH,
17014           # but as the default location of the library.
17015           hardcode_minus_L=yes
17016           ;;
17017         esac
17018       fi
17019       ;;
17020
17021     irix5* | irix6* | nonstopux*)
17022       if test "$GCC" = yes; then
17023         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17024         # Try to use the -exported_symbol ld option, if it does not
17025         # work, assume that -exports_file does not work either and
17026         # implicitly export all symbols.
17027         save_LDFLAGS="$LDFLAGS"
17028         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17029         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17030 /* end confdefs.h.  */
17031 int foo(void) {}
17032 _ACEOF
17033 if ac_fn_c_try_link "$LINENO"; then :
17034   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
17035
17036 fi
17037 rm -f core conftest.err conftest.$ac_objext \
17038     conftest$ac_exeext conftest.$ac_ext
17039         LDFLAGS="$save_LDFLAGS"
17040       else
17041         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17042         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
17043       fi
17044       archive_cmds_need_lc='no'
17045       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17046       hardcode_libdir_separator=:
17047       inherit_rpath=yes
17048       link_all_deplibs=yes
17049       ;;
17050
17051     netbsd*)
17052       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17053         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17054       else
17055         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17056       fi
17057       hardcode_libdir_flag_spec='-R$libdir'
17058       hardcode_direct=yes
17059       hardcode_shlibpath_var=no
17060       ;;
17061
17062     newsos6)
17063       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17064       hardcode_direct=yes
17065       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17066       hardcode_libdir_separator=:
17067       hardcode_shlibpath_var=no
17068       ;;
17069
17070     *nto* | *qnx*)
17071       ;;
17072
17073     openbsd*)
17074       if test -f /usr/libexec/ld.so; then
17075         hardcode_direct=yes
17076         hardcode_shlibpath_var=no
17077         hardcode_direct_absolute=yes
17078         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17079           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17080           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17081           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17082           export_dynamic_flag_spec='${wl}-E'
17083         else
17084           case $host_os in
17085            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17086              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17087              hardcode_libdir_flag_spec='-R$libdir'
17088              ;;
17089            *)
17090              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17091              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17092              ;;
17093           esac
17094         fi
17095       else
17096         ld_shlibs=no
17097       fi
17098       ;;
17099
17100     os2*)
17101       hardcode_libdir_flag_spec='-L$libdir'
17102       hardcode_minus_L=yes
17103       allow_undefined_flag=unsupported
17104       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17105       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17106       ;;
17107
17108     osf3*)
17109       if test "$GCC" = yes; then
17110         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17111         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17112       else
17113         allow_undefined_flag=' -expect_unresolved \*'
17114         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17115       fi
17116       archive_cmds_need_lc='no'
17117       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17118       hardcode_libdir_separator=:
17119       ;;
17120
17121     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17122       if test "$GCC" = yes; then
17123         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17124         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17125         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17126       else
17127         allow_undefined_flag=' -expect_unresolved \*'
17128         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17129         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
17130         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
17131
17132         # Both c and cxx compiler support -rpath directly
17133         hardcode_libdir_flag_spec='-rpath $libdir'
17134       fi
17135       archive_cmds_need_lc='no'
17136       hardcode_libdir_separator=:
17137       ;;
17138
17139     solaris*)
17140       no_undefined_flag=' -z defs'
17141       if test "$GCC" = yes; then
17142         wlarc='${wl}'
17143         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17144         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17145           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17146       else
17147         case `$CC -V 2>&1` in
17148         *"Compilers 5.0"*)
17149           wlarc=''
17150           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17151           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17152           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17153           ;;
17154         *)
17155           wlarc='${wl}'
17156           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17157           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17158           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17159           ;;
17160         esac
17161       fi
17162       hardcode_libdir_flag_spec='-R$libdir'
17163       hardcode_shlibpath_var=no
17164       case $host_os in
17165       solaris2.[0-5] | solaris2.[0-5].*) ;;
17166       *)
17167         # The compiler driver will combine and reorder linker options,
17168         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17169         # but is careful enough not to reorder.
17170         # Supported since Solaris 2.6 (maybe 2.5.1?)
17171         if test "$GCC" = yes; then
17172           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17173         else
17174           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17175         fi
17176         ;;
17177       esac
17178       link_all_deplibs=yes
17179       ;;
17180
17181     sunos4*)
17182       if test "x$host_vendor" = xsequent; then
17183         # Use $CC to link under sequent, because it throws in some extra .o
17184         # files that make .init and .fini sections work.
17185         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17186       else
17187         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17188       fi
17189       hardcode_libdir_flag_spec='-L$libdir'
17190       hardcode_direct=yes
17191       hardcode_minus_L=yes
17192       hardcode_shlibpath_var=no
17193       ;;
17194
17195     sysv4)
17196       case $host_vendor in
17197         sni)
17198           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17199           hardcode_direct=yes # is this really true???
17200         ;;
17201         siemens)
17202           ## LD is ld it makes a PLAMLIB
17203           ## CC just makes a GrossModule.
17204           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17205           reload_cmds='$CC -r -o $output$reload_objs'
17206           hardcode_direct=no
17207         ;;
17208         motorola)
17209           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17210           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17211         ;;
17212       esac
17213       runpath_var='LD_RUN_PATH'
17214       hardcode_shlibpath_var=no
17215       ;;
17216
17217     sysv4.3*)
17218       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17219       hardcode_shlibpath_var=no
17220       export_dynamic_flag_spec='-Bexport'
17221       ;;
17222
17223     sysv4*MP*)
17224       if test -d /usr/nec; then
17225         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17226         hardcode_shlibpath_var=no
17227         runpath_var=LD_RUN_PATH
17228         hardcode_runpath_var=yes
17229         ld_shlibs=yes
17230       fi
17231       ;;
17232
17233     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17234       no_undefined_flag='${wl}-z,text'
17235       archive_cmds_need_lc=no
17236       hardcode_shlibpath_var=no
17237       runpath_var='LD_RUN_PATH'
17238
17239       if test "$GCC" = yes; then
17240         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17241         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17242       else
17243         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17244         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17245       fi
17246       ;;
17247
17248     sysv5* | sco3.2v5* | sco5v6*)
17249       # Note: We can NOT use -z defs as we might desire, because we do not
17250       # link with -lc, and that would cause any symbols used from libc to
17251       # always be unresolved, which means just about no library would
17252       # ever link correctly.  If we're not using GNU ld we use -z text
17253       # though, which does catch some bad symbols but isn't as heavy-handed
17254       # as -z defs.
17255       no_undefined_flag='${wl}-z,text'
17256       allow_undefined_flag='${wl}-z,nodefs'
17257       archive_cmds_need_lc=no
17258       hardcode_shlibpath_var=no
17259       hardcode_libdir_flag_spec='${wl}-R,$libdir'
17260       hardcode_libdir_separator=':'
17261       link_all_deplibs=yes
17262       export_dynamic_flag_spec='${wl}-Bexport'
17263       runpath_var='LD_RUN_PATH'
17264
17265       if test "$GCC" = yes; then
17266         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17267         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17268       else
17269         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17270         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17271       fi
17272       ;;
17273
17274     uts4*)
17275       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17276       hardcode_libdir_flag_spec='-L$libdir'
17277       hardcode_shlibpath_var=no
17278       ;;
17279
17280     *)
17281       ld_shlibs=no
17282       ;;
17283     esac
17284
17285     if test x$host_vendor = xsni; then
17286       case $host in
17287       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17288         export_dynamic_flag_spec='${wl}-Blargedynsym'
17289         ;;
17290       esac
17291     fi
17292   fi
17293
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17295 $as_echo "$ld_shlibs" >&6; }
17296 test "$ld_shlibs" = no && can_build_shared=no
17297
17298 with_gnu_ld=$with_gnu_ld
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314 #
17315 # Do we need to explicitly link libc?
17316 #
17317 case "x$archive_cmds_need_lc" in
17318 x|xyes)
17319   # Assume -lc should be added
17320   archive_cmds_need_lc=yes
17321
17322   if test "$enable_shared" = yes && test "$GCC" = yes; then
17323     case $archive_cmds in
17324     *'~'*)
17325       # FIXME: we may have to deal with multi-command sequences.
17326       ;;
17327     '$CC '*)
17328       # Test whether the compiler implicitly links with -lc since on some
17329       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17330       # to ld, don't add -lc before -lgcc.
17331       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17332 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17333 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17334   $as_echo_n "(cached) " >&6
17335 else
17336   $RM conftest*
17337         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17338
17339         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17340   (eval $ac_compile) 2>&5
17341   ac_status=$?
17342   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17343   test $ac_status = 0; } 2>conftest.err; then
17344           soname=conftest
17345           lib=conftest
17346           libobjs=conftest.$ac_objext
17347           deplibs=
17348           wl=$lt_prog_compiler_wl
17349           pic_flag=$lt_prog_compiler_pic
17350           compiler_flags=-v
17351           linker_flags=-v
17352           verstring=
17353           output_objdir=.
17354           libname=conftest
17355           lt_save_allow_undefined_flag=$allow_undefined_flag
17356           allow_undefined_flag=
17357           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17358   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17359   ac_status=$?
17360   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17361   test $ac_status = 0; }
17362           then
17363             lt_cv_archive_cmds_need_lc=no
17364           else
17365             lt_cv_archive_cmds_need_lc=yes
17366           fi
17367           allow_undefined_flag=$lt_save_allow_undefined_flag
17368         else
17369           cat conftest.err 1>&5
17370         fi
17371         $RM conftest*
17372
17373 fi
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17375 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17376       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17377       ;;
17378     esac
17379   fi
17380   ;;
17381 esac
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17540 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17541
17542 if test "$GCC" = yes; then
17543   case $host_os in
17544     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17545     *) lt_awk_arg="/^libraries:/" ;;
17546   esac
17547   case $host_os in
17548     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17549     *) lt_sed_strip_eq="s,=/,/,g" ;;
17550   esac
17551   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17552   case $lt_search_path_spec in
17553   *\;*)
17554     # if the path contains ";" then we assume it to be the separator
17555     # otherwise default to the standard path separator (i.e. ":") - it is
17556     # assumed that no part of a normal pathname contains ";" but that should
17557     # okay in the real world where ";" in dirpaths is itself problematic.
17558     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17559     ;;
17560   *)
17561     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17562     ;;
17563   esac
17564   # Ok, now we have the path, separated by spaces, we can step through it
17565   # and add multilib dir if necessary.
17566   lt_tmp_lt_search_path_spec=
17567   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17568   for lt_sys_path in $lt_search_path_spec; do
17569     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17570       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17571     else
17572       test -d "$lt_sys_path" && \
17573         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17574     fi
17575   done
17576   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17577 BEGIN {RS=" "; FS="/|\n";} {
17578   lt_foo="";
17579   lt_count=0;
17580   for (lt_i = NF; lt_i > 0; lt_i--) {
17581     if ($lt_i != "" && $lt_i != ".") {
17582       if ($lt_i == "..") {
17583         lt_count++;
17584       } else {
17585         if (lt_count == 0) {
17586           lt_foo="/" $lt_i lt_foo;
17587         } else {
17588           lt_count--;
17589         }
17590       }
17591     }
17592   }
17593   if (lt_foo != "") { lt_freq[lt_foo]++; }
17594   if (lt_freq[lt_foo] == 1) { print lt_foo; }
17595 }'`
17596   # AWK program above erroneously prepends '/' to C:/dos/paths
17597   # for these hosts.
17598   case $host_os in
17599     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17600       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17601   esac
17602   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17603 else
17604   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17605 fi
17606 library_names_spec=
17607 libname_spec='lib$name'
17608 soname_spec=
17609 shrext_cmds=".so"
17610 postinstall_cmds=
17611 postuninstall_cmds=
17612 finish_cmds=
17613 finish_eval=
17614 shlibpath_var=
17615 shlibpath_overrides_runpath=unknown
17616 version_type=none
17617 dynamic_linker="$host_os ld.so"
17618 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17619 need_lib_prefix=unknown
17620 hardcode_into_libs=no
17621
17622 # when you set need_version to no, make sure it does not cause -set_version
17623 # flags to be left without arguments
17624 need_version=unknown
17625
17626 case $host_os in
17627 aix3*)
17628   version_type=linux
17629   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17630   shlibpath_var=LIBPATH
17631
17632   # AIX 3 has no versioning support, so we append a major version to the name.
17633   soname_spec='${libname}${release}${shared_ext}$major'
17634   ;;
17635
17636 aix[4-9]*)
17637   version_type=linux
17638   need_lib_prefix=no
17639   need_version=no
17640   hardcode_into_libs=yes
17641   if test "$host_cpu" = ia64; then
17642     # AIX 5 supports IA64
17643     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17644     shlibpath_var=LD_LIBRARY_PATH
17645   else
17646     # With GCC up to 2.95.x, collect2 would create an import file
17647     # for dependence libraries.  The import file would start with
17648     # the line `#! .'.  This would cause the generated library to
17649     # depend on `.', always an invalid library.  This was fixed in
17650     # development snapshots of GCC prior to 3.0.
17651     case $host_os in
17652       aix4 | aix4.[01] | aix4.[01].*)
17653       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17654            echo ' yes '
17655            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17656         :
17657       else
17658         can_build_shared=no
17659       fi
17660       ;;
17661     esac
17662     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17663     # soname into executable. Probably we can add versioning support to
17664     # collect2, so additional links can be useful in future.
17665     if test "$aix_use_runtimelinking" = yes; then
17666       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17667       # instead of lib<name>.a to let people know that these are not
17668       # typical AIX shared libraries.
17669       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17670     else
17671       # We preserve .a as extension for shared libraries through AIX4.2
17672       # and later when we are not doing run time linking.
17673       library_names_spec='${libname}${release}.a $libname.a'
17674       soname_spec='${libname}${release}${shared_ext}$major'
17675     fi
17676     shlibpath_var=LIBPATH
17677   fi
17678   ;;
17679
17680 amigaos*)
17681   case $host_cpu in
17682   powerpc)
17683     # Since July 2007 AmigaOS4 officially supports .so libraries.
17684     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17685     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17686     ;;
17687   m68k)
17688     library_names_spec='$libname.ixlibrary $libname.a'
17689     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17690     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17691     ;;
17692   esac
17693   ;;
17694
17695 beos*)
17696   library_names_spec='${libname}${shared_ext}'
17697   dynamic_linker="$host_os ld.so"
17698   shlibpath_var=LIBRARY_PATH
17699   ;;
17700
17701 bsdi[45]*)
17702   version_type=linux
17703   need_version=no
17704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17705   soname_spec='${libname}${release}${shared_ext}$major'
17706   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17707   shlibpath_var=LD_LIBRARY_PATH
17708   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17709   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17710   # the default ld.so.conf also contains /usr/contrib/lib and
17711   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17712   # libtool to hard-code these into programs
17713   ;;
17714
17715 cygwin* | mingw* | pw32* | cegcc*)
17716   version_type=windows
17717   shrext_cmds=".dll"
17718   need_version=no
17719   need_lib_prefix=no
17720
17721   case $GCC,$host_os in
17722   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17723     library_names_spec='$libname.dll.a'
17724     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17725     postinstall_cmds='base_file=`basename \${file}`~
17726       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17727       dldir=$destdir/`dirname \$dlpath`~
17728       test -d \$dldir || mkdir -p \$dldir~
17729       $install_prog $dir/$dlname \$dldir/$dlname~
17730       chmod a+x \$dldir/$dlname~
17731       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17732         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17733       fi'
17734     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17735       dlpath=$dir/\$dldll~
17736        $RM \$dlpath'
17737     shlibpath_overrides_runpath=yes
17738
17739     case $host_os in
17740     cygwin*)
17741       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17742       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17743
17744       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17745       ;;
17746     mingw* | cegcc*)
17747       # MinGW DLLs use traditional 'lib' prefix
17748       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17749       ;;
17750     pw32*)
17751       # pw32 DLLs use 'pw' prefix rather than 'lib'
17752       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17753       ;;
17754     esac
17755     ;;
17756
17757   *)
17758     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17759     ;;
17760   esac
17761   dynamic_linker='Win32 ld.exe'
17762   # FIXME: first we should search . and the directory the executable is in
17763   shlibpath_var=PATH
17764   ;;
17765
17766 darwin* | rhapsody*)
17767   dynamic_linker="$host_os dyld"
17768   version_type=darwin
17769   need_lib_prefix=no
17770   need_version=no
17771   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17772   soname_spec='${libname}${release}${major}$shared_ext'
17773   shlibpath_overrides_runpath=yes
17774   shlibpath_var=DYLD_LIBRARY_PATH
17775   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17776
17777   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17778   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17779   ;;
17780
17781 dgux*)
17782   version_type=linux
17783   need_lib_prefix=no
17784   need_version=no
17785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17786   soname_spec='${libname}${release}${shared_ext}$major'
17787   shlibpath_var=LD_LIBRARY_PATH
17788   ;;
17789
17790 freebsd* | dragonfly*)
17791   # DragonFly does not have aout.  When/if they implement a new
17792   # versioning mechanism, adjust this.
17793   if test -x /usr/bin/objformat; then
17794     objformat=`/usr/bin/objformat`
17795   else
17796     case $host_os in
17797     freebsd[23].*) objformat=aout ;;
17798     *) objformat=elf ;;
17799     esac
17800   fi
17801   version_type=freebsd-$objformat
17802   case $version_type in
17803     freebsd-elf*)
17804       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17805       need_version=no
17806       need_lib_prefix=no
17807       ;;
17808     freebsd-*)
17809       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17810       need_version=yes
17811       ;;
17812   esac
17813   shlibpath_var=LD_LIBRARY_PATH
17814   case $host_os in
17815   freebsd2.*)
17816     shlibpath_overrides_runpath=yes
17817     ;;
17818   freebsd3.[01]* | freebsdelf3.[01]*)
17819     shlibpath_overrides_runpath=yes
17820     hardcode_into_libs=yes
17821     ;;
17822   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17823   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17824     shlibpath_overrides_runpath=no
17825     hardcode_into_libs=yes
17826     ;;
17827   *) # from 4.6 on, and DragonFly
17828     shlibpath_overrides_runpath=yes
17829     hardcode_into_libs=yes
17830     ;;
17831   esac
17832   ;;
17833
17834 gnu*)
17835   version_type=linux
17836   need_lib_prefix=no
17837   need_version=no
17838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17839   soname_spec='${libname}${release}${shared_ext}$major'
17840   shlibpath_var=LD_LIBRARY_PATH
17841   hardcode_into_libs=yes
17842   ;;
17843
17844 haiku*)
17845   version_type=linux
17846   need_lib_prefix=no
17847   need_version=no
17848   dynamic_linker="$host_os runtime_loader"
17849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17850   soname_spec='${libname}${release}${shared_ext}$major'
17851   shlibpath_var=LIBRARY_PATH
17852   shlibpath_overrides_runpath=yes
17853   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17854   hardcode_into_libs=yes
17855   ;;
17856
17857 hpux9* | hpux10* | hpux11*)
17858   # Give a soname corresponding to the major version so that dld.sl refuses to
17859   # link against other versions.
17860   version_type=sunos
17861   need_lib_prefix=no
17862   need_version=no
17863   case $host_cpu in
17864   ia64*)
17865     shrext_cmds='.so'
17866     hardcode_into_libs=yes
17867     dynamic_linker="$host_os dld.so"
17868     shlibpath_var=LD_LIBRARY_PATH
17869     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17871     soname_spec='${libname}${release}${shared_ext}$major'
17872     if test "X$HPUX_IA64_MODE" = X32; then
17873       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17874     else
17875       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17876     fi
17877     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17878     ;;
17879   hppa*64*)
17880     shrext_cmds='.sl'
17881     hardcode_into_libs=yes
17882     dynamic_linker="$host_os dld.sl"
17883     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17884     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17885     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17886     soname_spec='${libname}${release}${shared_ext}$major'
17887     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17888     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17889     ;;
17890   *)
17891     shrext_cmds='.sl'
17892     dynamic_linker="$host_os dld.sl"
17893     shlibpath_var=SHLIB_PATH
17894     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17896     soname_spec='${libname}${release}${shared_ext}$major'
17897     ;;
17898   esac
17899   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17900   postinstall_cmds='chmod 555 $lib'
17901   # or fails outright, so override atomically:
17902   install_override_mode=555
17903   ;;
17904
17905 interix[3-9]*)
17906   version_type=linux
17907   need_lib_prefix=no
17908   need_version=no
17909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17910   soname_spec='${libname}${release}${shared_ext}$major'
17911   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17912   shlibpath_var=LD_LIBRARY_PATH
17913   shlibpath_overrides_runpath=no
17914   hardcode_into_libs=yes
17915   ;;
17916
17917 irix5* | irix6* | nonstopux*)
17918   case $host_os in
17919     nonstopux*) version_type=nonstopux ;;
17920     *)
17921         if test "$lt_cv_prog_gnu_ld" = yes; then
17922                 version_type=linux
17923         else
17924                 version_type=irix
17925         fi ;;
17926   esac
17927   need_lib_prefix=no
17928   need_version=no
17929   soname_spec='${libname}${release}${shared_ext}$major'
17930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17931   case $host_os in
17932   irix5* | nonstopux*)
17933     libsuff= shlibsuff=
17934     ;;
17935   *)
17936     case $LD in # libtool.m4 will add one of these switches to LD
17937     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17938       libsuff= shlibsuff= libmagic=32-bit;;
17939     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17940       libsuff=32 shlibsuff=N32 libmagic=N32;;
17941     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17942       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17943     *) libsuff= shlibsuff= libmagic=never-match;;
17944     esac
17945     ;;
17946   esac
17947   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17948   shlibpath_overrides_runpath=no
17949   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17950   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17951   hardcode_into_libs=yes
17952   ;;
17953
17954 # No shared lib support for Linux oldld, aout, or coff.
17955 linux*oldld* | linux*aout* | linux*coff*)
17956   dynamic_linker=no
17957   ;;
17958
17959 # This must be Linux ELF.
17960 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17961   version_type=linux
17962   need_lib_prefix=no
17963   need_version=no
17964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965   soname_spec='${libname}${release}${shared_ext}$major'
17966   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17967   shlibpath_var=LD_LIBRARY_PATH
17968   shlibpath_overrides_runpath=no
17969
17970   # Some binutils ld are patched to set DT_RUNPATH
17971   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17972   $as_echo_n "(cached) " >&6
17973 else
17974   lt_cv_shlibpath_overrides_runpath=no
17975     save_LDFLAGS=$LDFLAGS
17976     save_libdir=$libdir
17977     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17978          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17979     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17980 /* end confdefs.h.  */
17981
17982 int
17983 main ()
17984 {
17985
17986   ;
17987   return 0;
17988 }
17989 _ACEOF
17990 if ac_fn_c_try_link "$LINENO"; then :
17991   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17992   lt_cv_shlibpath_overrides_runpath=yes
17993 fi
17994 fi
17995 rm -f core conftest.err conftest.$ac_objext \
17996     conftest$ac_exeext conftest.$ac_ext
17997     LDFLAGS=$save_LDFLAGS
17998     libdir=$save_libdir
17999
18000 fi
18001
18002   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18003
18004   # This implies no fast_install, which is unacceptable.
18005   # Some rework will be needed to allow for fast_install
18006   # before this can be enabled.
18007   hardcode_into_libs=yes
18008
18009   # Append ld.so.conf contents to the search path
18010   if test -f /etc/ld.so.conf; then
18011     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
18012     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18013   fi
18014
18015   # We used to test for /lib/ld.so.1 and disable shared libraries on
18016   # powerpc, because MkLinux only supported shared libraries with the
18017   # GNU dynamic linker.  Since this was broken with cross compilers,
18018   # most powerpc-linux boxes support dynamic linking these days and
18019   # people can always --disable-shared, the test was removed, and we
18020   # assume the GNU/Linux dynamic linker is in use.
18021   dynamic_linker='GNU/Linux ld.so'
18022   ;;
18023
18024 netbsd*)
18025   version_type=sunos
18026   need_lib_prefix=no
18027   need_version=no
18028   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18029     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18030     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18031     dynamic_linker='NetBSD (a.out) ld.so'
18032   else
18033     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18034     soname_spec='${libname}${release}${shared_ext}$major'
18035     dynamic_linker='NetBSD ld.elf_so'
18036   fi
18037   shlibpath_var=LD_LIBRARY_PATH
18038   shlibpath_overrides_runpath=yes
18039   hardcode_into_libs=yes
18040   ;;
18041
18042 newsos6)
18043   version_type=linux
18044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18045   shlibpath_var=LD_LIBRARY_PATH
18046   shlibpath_overrides_runpath=yes
18047   ;;
18048
18049 *nto* | *qnx*)
18050   version_type=qnx
18051   need_lib_prefix=no
18052   need_version=no
18053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18054   soname_spec='${libname}${release}${shared_ext}$major'
18055   shlibpath_var=LD_LIBRARY_PATH
18056   shlibpath_overrides_runpath=no
18057   hardcode_into_libs=yes
18058   dynamic_linker='ldqnx.so'
18059   ;;
18060
18061 openbsd*)
18062   version_type=sunos
18063   sys_lib_dlsearch_path_spec="/usr/lib"
18064   need_lib_prefix=no
18065   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18066   case $host_os in
18067     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
18068     *)                          need_version=no  ;;
18069   esac
18070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18071   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18072   shlibpath_var=LD_LIBRARY_PATH
18073   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18074     case $host_os in
18075       openbsd2.[89] | openbsd2.[89].*)
18076         shlibpath_overrides_runpath=no
18077         ;;
18078       *)
18079         shlibpath_overrides_runpath=yes
18080         ;;
18081       esac
18082   else
18083     shlibpath_overrides_runpath=yes
18084   fi
18085   ;;
18086
18087 os2*)
18088   libname_spec='$name'
18089   shrext_cmds=".dll"
18090   need_lib_prefix=no
18091   library_names_spec='$libname${shared_ext} $libname.a'
18092   dynamic_linker='OS/2 ld.exe'
18093   shlibpath_var=LIBPATH
18094   ;;
18095
18096 osf3* | osf4* | osf5*)
18097   version_type=osf
18098   need_lib_prefix=no
18099   need_version=no
18100   soname_spec='${libname}${release}${shared_ext}$major'
18101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18102   shlibpath_var=LD_LIBRARY_PATH
18103   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18104   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18105   ;;
18106
18107 rdos*)
18108   dynamic_linker=no
18109   ;;
18110
18111 solaris*)
18112   version_type=linux
18113   need_lib_prefix=no
18114   need_version=no
18115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18116   soname_spec='${libname}${release}${shared_ext}$major'
18117   shlibpath_var=LD_LIBRARY_PATH
18118   shlibpath_overrides_runpath=yes
18119   hardcode_into_libs=yes
18120   # ldd complains unless libraries are executable
18121   postinstall_cmds='chmod +x $lib'
18122   ;;
18123
18124 sunos4*)
18125   version_type=sunos
18126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18127   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18128   shlibpath_var=LD_LIBRARY_PATH
18129   shlibpath_overrides_runpath=yes
18130   if test "$with_gnu_ld" = yes; then
18131     need_lib_prefix=no
18132   fi
18133   need_version=yes
18134   ;;
18135
18136 sysv4 | sysv4.3*)
18137   version_type=linux
18138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18139   soname_spec='${libname}${release}${shared_ext}$major'
18140   shlibpath_var=LD_LIBRARY_PATH
18141   case $host_vendor in
18142     sni)
18143       shlibpath_overrides_runpath=no
18144       need_lib_prefix=no
18145       runpath_var=LD_RUN_PATH
18146       ;;
18147     siemens)
18148       need_lib_prefix=no
18149       ;;
18150     motorola)
18151       need_lib_prefix=no
18152       need_version=no
18153       shlibpath_overrides_runpath=no
18154       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18155       ;;
18156   esac
18157   ;;
18158
18159 sysv4*MP*)
18160   if test -d /usr/nec ;then
18161     version_type=linux
18162     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18163     soname_spec='$libname${shared_ext}.$major'
18164     shlibpath_var=LD_LIBRARY_PATH
18165   fi
18166   ;;
18167
18168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18169   version_type=freebsd-elf
18170   need_lib_prefix=no
18171   need_version=no
18172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18173   soname_spec='${libname}${release}${shared_ext}$major'
18174   shlibpath_var=LD_LIBRARY_PATH
18175   shlibpath_overrides_runpath=yes
18176   hardcode_into_libs=yes
18177   if test "$with_gnu_ld" = yes; then
18178     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18179   else
18180     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18181     case $host_os in
18182       sco3.2v5*)
18183         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18184         ;;
18185     esac
18186   fi
18187   sys_lib_dlsearch_path_spec='/usr/lib'
18188   ;;
18189
18190 tpf*)
18191   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18192   version_type=linux
18193   need_lib_prefix=no
18194   need_version=no
18195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18196   shlibpath_var=LD_LIBRARY_PATH
18197   shlibpath_overrides_runpath=no
18198   hardcode_into_libs=yes
18199   ;;
18200
18201 uts4*)
18202   version_type=linux
18203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18204   soname_spec='${libname}${release}${shared_ext}$major'
18205   shlibpath_var=LD_LIBRARY_PATH
18206   ;;
18207
18208 *)
18209   dynamic_linker=no
18210   ;;
18211 esac
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18213 $as_echo "$dynamic_linker" >&6; }
18214 test "$dynamic_linker" = no && can_build_shared=no
18215
18216 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18217 if test "$GCC" = yes; then
18218   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18219 fi
18220
18221 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18222   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18223 fi
18224 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18225   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18226 fi
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18320 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18321 hardcode_action=
18322 if test -n "$hardcode_libdir_flag_spec" ||
18323    test -n "$runpath_var" ||
18324    test "X$hardcode_automatic" = "Xyes" ; then
18325
18326   # We can hardcode non-existent directories.
18327   if test "$hardcode_direct" != no &&
18328      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18329      # have to relink, otherwise we might link with an installed library
18330      # when we should be linking with a yet-to-be-installed one
18331      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18332      test "$hardcode_minus_L" != no; then
18333     # Linking always hardcodes the temporary library directory.
18334     hardcode_action=relink
18335   else
18336     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18337     hardcode_action=immediate
18338   fi
18339 else
18340   # We cannot hardcode anything, or else we can only hardcode existing
18341   # directories.
18342   hardcode_action=unsupported
18343 fi
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18345 $as_echo "$hardcode_action" >&6; }
18346
18347 if test "$hardcode_action" = relink ||
18348    test "$inherit_rpath" = yes; then
18349   # Fast installation is not supported
18350   enable_fast_install=no
18351 elif test "$shlibpath_overrides_runpath" = yes ||
18352      test "$enable_shared" = no; then
18353   # Fast installation is not necessary
18354   enable_fast_install=needless
18355 fi
18356
18357
18358
18359
18360
18361
18362   if test "x$enable_dlopen" != xyes; then
18363   enable_dlopen=unknown
18364   enable_dlopen_self=unknown
18365   enable_dlopen_self_static=unknown
18366 else
18367   lt_cv_dlopen=no
18368   lt_cv_dlopen_libs=
18369
18370   case $host_os in
18371   beos*)
18372     lt_cv_dlopen="load_add_on"
18373     lt_cv_dlopen_libs=
18374     lt_cv_dlopen_self=yes
18375     ;;
18376
18377   mingw* | pw32* | cegcc*)
18378     lt_cv_dlopen="LoadLibrary"
18379     lt_cv_dlopen_libs=
18380     ;;
18381
18382   cygwin*)
18383     lt_cv_dlopen="dlopen"
18384     lt_cv_dlopen_libs=
18385     ;;
18386
18387   darwin*)
18388   # if libdl is installed we need to link against it
18389     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18390 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18391 if ${ac_cv_lib_dl_dlopen+:} false; then :
18392   $as_echo_n "(cached) " >&6
18393 else
18394   ac_check_lib_save_LIBS=$LIBS
18395 LIBS="-ldl  $LIBS"
18396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18397 /* end confdefs.h.  */
18398
18399 /* Override any GCC internal prototype to avoid an error.
18400    Use char because int might match the return type of a GCC
18401    builtin and then its argument prototype would still apply.  */
18402 #ifdef __cplusplus
18403 extern "C"
18404 #endif
18405 char dlopen ();
18406 int
18407 main ()
18408 {
18409 return dlopen ();
18410   ;
18411   return 0;
18412 }
18413 _ACEOF
18414 if ac_fn_c_try_link "$LINENO"; then :
18415   ac_cv_lib_dl_dlopen=yes
18416 else
18417   ac_cv_lib_dl_dlopen=no
18418 fi
18419 rm -f core conftest.err conftest.$ac_objext \
18420     conftest$ac_exeext conftest.$ac_ext
18421 LIBS=$ac_check_lib_save_LIBS
18422 fi
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18424 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18425 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18426   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18427 else
18428
18429     lt_cv_dlopen="dyld"
18430     lt_cv_dlopen_libs=
18431     lt_cv_dlopen_self=yes
18432
18433 fi
18434
18435     ;;
18436
18437   *)
18438     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18439 if test "x$ac_cv_func_shl_load" = xyes; then :
18440   lt_cv_dlopen="shl_load"
18441 else
18442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18443 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18444 if ${ac_cv_lib_dld_shl_load+:} false; then :
18445   $as_echo_n "(cached) " >&6
18446 else
18447   ac_check_lib_save_LIBS=$LIBS
18448 LIBS="-ldld  $LIBS"
18449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18450 /* end confdefs.h.  */
18451
18452 /* Override any GCC internal prototype to avoid an error.
18453    Use char because int might match the return type of a GCC
18454    builtin and then its argument prototype would still apply.  */
18455 #ifdef __cplusplus
18456 extern "C"
18457 #endif
18458 char shl_load ();
18459 int
18460 main ()
18461 {
18462 return shl_load ();
18463   ;
18464   return 0;
18465 }
18466 _ACEOF
18467 if ac_fn_c_try_link "$LINENO"; then :
18468   ac_cv_lib_dld_shl_load=yes
18469 else
18470   ac_cv_lib_dld_shl_load=no
18471 fi
18472 rm -f core conftest.err conftest.$ac_objext \
18473     conftest$ac_exeext conftest.$ac_ext
18474 LIBS=$ac_check_lib_save_LIBS
18475 fi
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18477 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18478 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18479   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18480 else
18481   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18482 if test "x$ac_cv_func_dlopen" = xyes; then :
18483   lt_cv_dlopen="dlopen"
18484 else
18485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18486 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18487 if ${ac_cv_lib_dl_dlopen+:} false; then :
18488   $as_echo_n "(cached) " >&6
18489 else
18490   ac_check_lib_save_LIBS=$LIBS
18491 LIBS="-ldl  $LIBS"
18492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18493 /* end confdefs.h.  */
18494
18495 /* Override any GCC internal prototype to avoid an error.
18496    Use char because int might match the return type of a GCC
18497    builtin and then its argument prototype would still apply.  */
18498 #ifdef __cplusplus
18499 extern "C"
18500 #endif
18501 char dlopen ();
18502 int
18503 main ()
18504 {
18505 return dlopen ();
18506   ;
18507   return 0;
18508 }
18509 _ACEOF
18510 if ac_fn_c_try_link "$LINENO"; then :
18511   ac_cv_lib_dl_dlopen=yes
18512 else
18513   ac_cv_lib_dl_dlopen=no
18514 fi
18515 rm -f core conftest.err conftest.$ac_objext \
18516     conftest$ac_exeext conftest.$ac_ext
18517 LIBS=$ac_check_lib_save_LIBS
18518 fi
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18520 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18521 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18522   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18523 else
18524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18525 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18526 if ${ac_cv_lib_svld_dlopen+:} false; then :
18527   $as_echo_n "(cached) " >&6
18528 else
18529   ac_check_lib_save_LIBS=$LIBS
18530 LIBS="-lsvld  $LIBS"
18531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18532 /* end confdefs.h.  */
18533
18534 /* Override any GCC internal prototype to avoid an error.
18535    Use char because int might match the return type of a GCC
18536    builtin and then its argument prototype would still apply.  */
18537 #ifdef __cplusplus
18538 extern "C"
18539 #endif
18540 char dlopen ();
18541 int
18542 main ()
18543 {
18544 return dlopen ();
18545   ;
18546   return 0;
18547 }
18548 _ACEOF
18549 if ac_fn_c_try_link "$LINENO"; then :
18550   ac_cv_lib_svld_dlopen=yes
18551 else
18552   ac_cv_lib_svld_dlopen=no
18553 fi
18554 rm -f core conftest.err conftest.$ac_objext \
18555     conftest$ac_exeext conftest.$ac_ext
18556 LIBS=$ac_check_lib_save_LIBS
18557 fi
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18559 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18560 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18561   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18562 else
18563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18564 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18565 if ${ac_cv_lib_dld_dld_link+:} false; then :
18566   $as_echo_n "(cached) " >&6
18567 else
18568   ac_check_lib_save_LIBS=$LIBS
18569 LIBS="-ldld  $LIBS"
18570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18571 /* end confdefs.h.  */
18572
18573 /* Override any GCC internal prototype to avoid an error.
18574    Use char because int might match the return type of a GCC
18575    builtin and then its argument prototype would still apply.  */
18576 #ifdef __cplusplus
18577 extern "C"
18578 #endif
18579 char dld_link ();
18580 int
18581 main ()
18582 {
18583 return dld_link ();
18584   ;
18585   return 0;
18586 }
18587 _ACEOF
18588 if ac_fn_c_try_link "$LINENO"; then :
18589   ac_cv_lib_dld_dld_link=yes
18590 else
18591   ac_cv_lib_dld_dld_link=no
18592 fi
18593 rm -f core conftest.err conftest.$ac_objext \
18594     conftest$ac_exeext conftest.$ac_ext
18595 LIBS=$ac_check_lib_save_LIBS
18596 fi
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18598 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18599 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18600   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18601 fi
18602
18603
18604 fi
18605
18606
18607 fi
18608
18609
18610 fi
18611
18612
18613 fi
18614
18615
18616 fi
18617
18618     ;;
18619   esac
18620
18621   if test "x$lt_cv_dlopen" != xno; then
18622     enable_dlopen=yes
18623   else
18624     enable_dlopen=no
18625   fi
18626
18627   case $lt_cv_dlopen in
18628   dlopen)
18629     save_CPPFLAGS="$CPPFLAGS"
18630     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18631
18632     save_LDFLAGS="$LDFLAGS"
18633     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18634
18635     save_LIBS="$LIBS"
18636     LIBS="$lt_cv_dlopen_libs $LIBS"
18637
18638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18639 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18640 if ${lt_cv_dlopen_self+:} false; then :
18641   $as_echo_n "(cached) " >&6
18642 else
18643           if test "$cross_compiling" = yes; then :
18644   lt_cv_dlopen_self=cross
18645 else
18646   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18647   lt_status=$lt_dlunknown
18648   cat > conftest.$ac_ext <<_LT_EOF
18649 #line 18640 "configure"
18650 #include "confdefs.h"
18651
18652 #if HAVE_DLFCN_H
18653 #include <dlfcn.h>
18654 #endif
18655
18656 #include <stdio.h>
18657
18658 #ifdef RTLD_GLOBAL
18659 #  define LT_DLGLOBAL           RTLD_GLOBAL
18660 #else
18661 #  ifdef DL_GLOBAL
18662 #    define LT_DLGLOBAL         DL_GLOBAL
18663 #  else
18664 #    define LT_DLGLOBAL         0
18665 #  endif
18666 #endif
18667
18668 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18669    find out it does not work in some platform. */
18670 #ifndef LT_DLLAZY_OR_NOW
18671 #  ifdef RTLD_LAZY
18672 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18673 #  else
18674 #    ifdef DL_LAZY
18675 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18676 #    else
18677 #      ifdef RTLD_NOW
18678 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18679 #      else
18680 #        ifdef DL_NOW
18681 #          define LT_DLLAZY_OR_NOW      DL_NOW
18682 #        else
18683 #          define LT_DLLAZY_OR_NOW      0
18684 #        endif
18685 #      endif
18686 #    endif
18687 #  endif
18688 #endif
18689
18690 /* When -fvisbility=hidden is used, assume the code has been annotated
18691    correspondingly for the symbols needed.  */
18692 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18693 void fnord () __attribute__((visibility("default")));
18694 #endif
18695
18696 void fnord () { int i=42; }
18697 int main ()
18698 {
18699   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18700   int status = $lt_dlunknown;
18701
18702   if (self)
18703     {
18704       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18705       else
18706         {
18707           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18708           else puts (dlerror ());
18709         }
18710       /* dlclose (self); */
18711     }
18712   else
18713     puts (dlerror ());
18714
18715   return status;
18716 }
18717 _LT_EOF
18718   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18719   (eval $ac_link) 2>&5
18720   ac_status=$?
18721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18722   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18723     (./conftest; exit; ) >&5 2>/dev/null
18724     lt_status=$?
18725     case x$lt_status in
18726       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18727       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18728       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18729     esac
18730   else :
18731     # compilation failed
18732     lt_cv_dlopen_self=no
18733   fi
18734 fi
18735 rm -fr conftest*
18736
18737
18738 fi
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18740 $as_echo "$lt_cv_dlopen_self" >&6; }
18741
18742     if test "x$lt_cv_dlopen_self" = xyes; then
18743       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18744       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18745 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18746 if ${lt_cv_dlopen_self_static+:} false; then :
18747   $as_echo_n "(cached) " >&6
18748 else
18749           if test "$cross_compiling" = yes; then :
18750   lt_cv_dlopen_self_static=cross
18751 else
18752   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18753   lt_status=$lt_dlunknown
18754   cat > conftest.$ac_ext <<_LT_EOF
18755 #line 18746 "configure"
18756 #include "confdefs.h"
18757
18758 #if HAVE_DLFCN_H
18759 #include <dlfcn.h>
18760 #endif
18761
18762 #include <stdio.h>
18763
18764 #ifdef RTLD_GLOBAL
18765 #  define LT_DLGLOBAL           RTLD_GLOBAL
18766 #else
18767 #  ifdef DL_GLOBAL
18768 #    define LT_DLGLOBAL         DL_GLOBAL
18769 #  else
18770 #    define LT_DLGLOBAL         0
18771 #  endif
18772 #endif
18773
18774 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18775    find out it does not work in some platform. */
18776 #ifndef LT_DLLAZY_OR_NOW
18777 #  ifdef RTLD_LAZY
18778 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18779 #  else
18780 #    ifdef DL_LAZY
18781 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18782 #    else
18783 #      ifdef RTLD_NOW
18784 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18785 #      else
18786 #        ifdef DL_NOW
18787 #          define LT_DLLAZY_OR_NOW      DL_NOW
18788 #        else
18789 #          define LT_DLLAZY_OR_NOW      0
18790 #        endif
18791 #      endif
18792 #    endif
18793 #  endif
18794 #endif
18795
18796 /* When -fvisbility=hidden is used, assume the code has been annotated
18797    correspondingly for the symbols needed.  */
18798 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18799 void fnord () __attribute__((visibility("default")));
18800 #endif
18801
18802 void fnord () { int i=42; }
18803 int main ()
18804 {
18805   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18806   int status = $lt_dlunknown;
18807
18808   if (self)
18809     {
18810       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18811       else
18812         {
18813           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18814           else puts (dlerror ());
18815         }
18816       /* dlclose (self); */
18817     }
18818   else
18819     puts (dlerror ());
18820
18821   return status;
18822 }
18823 _LT_EOF
18824   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18825   (eval $ac_link) 2>&5
18826   ac_status=$?
18827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18828   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18829     (./conftest; exit; ) >&5 2>/dev/null
18830     lt_status=$?
18831     case x$lt_status in
18832       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18833       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18834       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18835     esac
18836   else :
18837     # compilation failed
18838     lt_cv_dlopen_self_static=no
18839   fi
18840 fi
18841 rm -fr conftest*
18842
18843
18844 fi
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18846 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18847     fi
18848
18849     CPPFLAGS="$save_CPPFLAGS"
18850     LDFLAGS="$save_LDFLAGS"
18851     LIBS="$save_LIBS"
18852     ;;
18853   esac
18854
18855   case $lt_cv_dlopen_self in
18856   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18857   *) enable_dlopen_self=unknown ;;
18858   esac
18859
18860   case $lt_cv_dlopen_self_static in
18861   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18862   *) enable_dlopen_self_static=unknown ;;
18863   esac
18864 fi
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882 striplib=
18883 old_striplib=
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18885 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18886 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18887   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18888   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18890 $as_echo "yes" >&6; }
18891 else
18892 # FIXME - insert some real tests, host_os isn't really good enough
18893   case $host_os in
18894   darwin*)
18895     if test -n "$STRIP" ; then
18896       striplib="$STRIP -x"
18897       old_striplib="$STRIP -S"
18898       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18899 $as_echo "yes" >&6; }
18900     else
18901       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18902 $as_echo "no" >&6; }
18903     fi
18904     ;;
18905   *)
18906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18907 $as_echo "no" >&6; }
18908     ;;
18909   esac
18910 fi
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923   # Report which library types will actually be built
18924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18925 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18927 $as_echo "$can_build_shared" >&6; }
18928
18929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18930 $as_echo_n "checking whether to build shared libraries... " >&6; }
18931   test "$can_build_shared" = "no" && enable_shared=no
18932
18933   # On AIX, shared libraries and static libraries use the same namespace, and
18934   # are all built from PIC.
18935   case $host_os in
18936   aix3*)
18937     test "$enable_shared" = yes && enable_static=no
18938     if test -n "$RANLIB"; then
18939       archive_cmds="$archive_cmds~\$RANLIB \$lib"
18940       postinstall_cmds='$RANLIB $lib'
18941     fi
18942     ;;
18943
18944   aix[4-9]*)
18945     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18946       test "$enable_shared" = yes && enable_static=no
18947     fi
18948     ;;
18949   esac
18950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18951 $as_echo "$enable_shared" >&6; }
18952
18953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18954 $as_echo_n "checking whether to build static libraries... " >&6; }
18955   # Make sure either enable_shared or enable_static is yes.
18956   test "$enable_shared" = yes || enable_static=yes
18957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18958 $as_echo "$enable_static" >&6; }
18959
18960
18961
18962
18963 fi
18964 ac_ext=cpp
18965 ac_cpp='$CXXCPP $CPPFLAGS'
18966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18969
18970 CC="$lt_save_CC"
18971
18972       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18973     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18974     (test "X$CXX" != "Xg++"))) ; then
18975   ac_ext=cpp
18976 ac_cpp='$CXXCPP $CPPFLAGS'
18977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18981 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18982 if test -z "$CXXCPP"; then
18983   if ${ac_cv_prog_CXXCPP+:} false; then :
18984   $as_echo_n "(cached) " >&6
18985 else
18986       # Double quotes because CXXCPP needs to be expanded
18987     for CXXCPP in "$CXX -E" "/lib/cpp"
18988     do
18989       ac_preproc_ok=false
18990 for ac_cxx_preproc_warn_flag in '' yes
18991 do
18992   # Use a header file that comes with gcc, so configuring glibc
18993   # with a fresh cross-compiler works.
18994   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18995   # <limits.h> exists even on freestanding compilers.
18996   # On the NeXT, cc -E runs the code through the compiler's parser,
18997   # not just through cpp. "Syntax error" is here to catch this case.
18998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18999 /* end confdefs.h.  */
19000 #ifdef __STDC__
19001 # include <limits.h>
19002 #else
19003 # include <assert.h>
19004 #endif
19005                      Syntax error
19006 _ACEOF
19007 if ac_fn_cxx_try_cpp "$LINENO"; then :
19008
19009 else
19010   # Broken: fails on valid input.
19011 continue
19012 fi
19013 rm -f conftest.err conftest.i conftest.$ac_ext
19014
19015   # OK, works on sane cases.  Now check whether nonexistent headers
19016   # can be detected and how.
19017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19018 /* end confdefs.h.  */
19019 #include <ac_nonexistent.h>
19020 _ACEOF
19021 if ac_fn_cxx_try_cpp "$LINENO"; then :
19022   # Broken: success on invalid input.
19023 continue
19024 else
19025   # Passes both tests.
19026 ac_preproc_ok=:
19027 break
19028 fi
19029 rm -f conftest.err conftest.i conftest.$ac_ext
19030
19031 done
19032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19033 rm -f conftest.i conftest.err conftest.$ac_ext
19034 if $ac_preproc_ok; then :
19035   break
19036 fi
19037
19038     done
19039     ac_cv_prog_CXXCPP=$CXXCPP
19040
19041 fi
19042   CXXCPP=$ac_cv_prog_CXXCPP
19043 else
19044   ac_cv_prog_CXXCPP=$CXXCPP
19045 fi
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19047 $as_echo "$CXXCPP" >&6; }
19048 ac_preproc_ok=false
19049 for ac_cxx_preproc_warn_flag in '' yes
19050 do
19051   # Use a header file that comes with gcc, so configuring glibc
19052   # with a fresh cross-compiler works.
19053   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19054   # <limits.h> exists even on freestanding compilers.
19055   # On the NeXT, cc -E runs the code through the compiler's parser,
19056   # not just through cpp. "Syntax error" is here to catch this case.
19057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19058 /* end confdefs.h.  */
19059 #ifdef __STDC__
19060 # include <limits.h>
19061 #else
19062 # include <assert.h>
19063 #endif
19064                      Syntax error
19065 _ACEOF
19066 if ac_fn_cxx_try_cpp "$LINENO"; then :
19067
19068 else
19069   # Broken: fails on valid input.
19070 continue
19071 fi
19072 rm -f conftest.err conftest.i conftest.$ac_ext
19073
19074   # OK, works on sane cases.  Now check whether nonexistent headers
19075   # can be detected and how.
19076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077 /* end confdefs.h.  */
19078 #include <ac_nonexistent.h>
19079 _ACEOF
19080 if ac_fn_cxx_try_cpp "$LINENO"; then :
19081   # Broken: success on invalid input.
19082 continue
19083 else
19084   # Passes both tests.
19085 ac_preproc_ok=:
19086 break
19087 fi
19088 rm -f conftest.err conftest.i conftest.$ac_ext
19089
19090 done
19091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19092 rm -f conftest.i conftest.err conftest.$ac_ext
19093 if $ac_preproc_ok; then :
19094
19095 else
19096   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19098 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19099 See \`config.log' for more details" "$LINENO" 5; }
19100 fi
19101
19102 ac_ext=cpp
19103 ac_cpp='$CXXCPP $CPPFLAGS'
19104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19107
19108 else
19109   _lt_caught_CXX_error=yes
19110 fi
19111
19112 ac_ext=cpp
19113 ac_cpp='$CXXCPP $CPPFLAGS'
19114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19117
19118 archive_cmds_need_lc_CXX=no
19119 allow_undefined_flag_CXX=
19120 always_export_symbols_CXX=no
19121 archive_expsym_cmds_CXX=
19122 compiler_needs_object_CXX=no
19123 export_dynamic_flag_spec_CXX=
19124 hardcode_direct_CXX=no
19125 hardcode_direct_absolute_CXX=no
19126 hardcode_libdir_flag_spec_CXX=
19127 hardcode_libdir_flag_spec_ld_CXX=
19128 hardcode_libdir_separator_CXX=
19129 hardcode_minus_L_CXX=no
19130 hardcode_shlibpath_var_CXX=unsupported
19131 hardcode_automatic_CXX=no
19132 inherit_rpath_CXX=no
19133 module_cmds_CXX=
19134 module_expsym_cmds_CXX=
19135 link_all_deplibs_CXX=unknown
19136 old_archive_cmds_CXX=$old_archive_cmds
19137 reload_flag_CXX=$reload_flag
19138 reload_cmds_CXX=$reload_cmds
19139 no_undefined_flag_CXX=
19140 whole_archive_flag_spec_CXX=
19141 enable_shared_with_static_runtimes_CXX=no
19142
19143 # Source file extension for C++ test sources.
19144 ac_ext=cpp
19145
19146 # Object file extension for compiled C++ test sources.
19147 objext=o
19148 objext_CXX=$objext
19149
19150 # No sense in running all these tests if we already determined that
19151 # the CXX compiler isn't working.  Some variables (like enable_shared)
19152 # are currently assumed to apply to all compilers on this platform,
19153 # and will be corrupted by setting them based on a non-working compiler.
19154 if test "$_lt_caught_CXX_error" != yes; then
19155   # Code to be used in simple compile tests
19156   lt_simple_compile_test_code="int some_variable = 0;"
19157
19158   # Code to be used in simple link tests
19159   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19160
19161   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19162
19163
19164
19165
19166
19167
19168 # If no C compiler was specified, use CC.
19169 LTCC=${LTCC-"$CC"}
19170
19171 # If no C compiler flags were specified, use CFLAGS.
19172 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19173
19174 # Allow CC to be a program name with arguments.
19175 compiler=$CC
19176
19177
19178   # save warnings/boilerplate of simple test code
19179   ac_outfile=conftest.$ac_objext
19180 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19181 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19182 _lt_compiler_boilerplate=`cat conftest.err`
19183 $RM conftest*
19184
19185   ac_outfile=conftest.$ac_objext
19186 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19187 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19188 _lt_linker_boilerplate=`cat conftest.err`
19189 $RM -r conftest*
19190
19191
19192   # Allow CC to be a program name with arguments.
19193   lt_save_CC=$CC
19194   lt_save_LD=$LD
19195   lt_save_GCC=$GCC
19196   GCC=$GXX
19197   lt_save_with_gnu_ld=$with_gnu_ld
19198   lt_save_path_LD=$lt_cv_path_LD
19199   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19200     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19201   else
19202     $as_unset lt_cv_prog_gnu_ld
19203   fi
19204   if test -n "${lt_cv_path_LDCXX+set}"; then
19205     lt_cv_path_LD=$lt_cv_path_LDCXX
19206   else
19207     $as_unset lt_cv_path_LD
19208   fi
19209   test -z "${LDCXX+set}" || LD=$LDCXX
19210   CC=${CXX-"c++"}
19211   compiler=$CC
19212   compiler_CXX=$CC
19213   for cc_temp in $compiler""; do
19214   case $cc_temp in
19215     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19216     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19217     \-*) ;;
19218     *) break;;
19219   esac
19220 done
19221 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19222
19223
19224   if test -n "$compiler"; then
19225     # We don't want -fno-exception when compiling C++ code, so set the
19226     # no_builtin_flag separately
19227     if test "$GXX" = yes; then
19228       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19229     else
19230       lt_prog_compiler_no_builtin_flag_CXX=
19231     fi
19232
19233     if test "$GXX" = yes; then
19234       # Set up default GNU C++ configuration
19235
19236
19237
19238 # Check whether --with-gnu-ld was given.
19239 if test "${with_gnu_ld+set}" = set; then :
19240   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19241 else
19242   with_gnu_ld=no
19243 fi
19244
19245 ac_prog=ld
19246 if test "$GCC" = yes; then
19247   # Check if gcc -print-prog-name=ld gives a path.
19248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19249 $as_echo_n "checking for ld used by $CC... " >&6; }
19250   case $host in
19251   *-*-mingw*)
19252     # gcc leaves a trailing carriage return which upsets mingw
19253     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19254   *)
19255     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19256   esac
19257   case $ac_prog in
19258     # Accept absolute paths.
19259     [\\/]* | ?:[\\/]*)
19260       re_direlt='/[^/][^/]*/\.\./'
19261       # Canonicalize the pathname of ld
19262       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19263       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19264         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19265       done
19266       test -z "$LD" && LD="$ac_prog"
19267       ;;
19268   "")
19269     # If it fails, then pretend we aren't using GCC.
19270     ac_prog=ld
19271     ;;
19272   *)
19273     # If it is relative, then search for the first ld in PATH.
19274     with_gnu_ld=unknown
19275     ;;
19276   esac
19277 elif test "$with_gnu_ld" = yes; then
19278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19279 $as_echo_n "checking for GNU ld... " >&6; }
19280 else
19281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19282 $as_echo_n "checking for non-GNU ld... " >&6; }
19283 fi
19284 if ${lt_cv_path_LD+:} false; then :
19285   $as_echo_n "(cached) " >&6
19286 else
19287   if test -z "$LD"; then
19288   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19289   for ac_dir in $PATH; do
19290     IFS="$lt_save_ifs"
19291     test -z "$ac_dir" && ac_dir=.
19292     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19293       lt_cv_path_LD="$ac_dir/$ac_prog"
19294       # Check to see if the program is GNU ld.  I'd rather use --version,
19295       # but apparently some variants of GNU ld only accept -v.
19296       # Break only if it was the GNU/non-GNU ld that we prefer.
19297       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19298       *GNU* | *'with BFD'*)
19299         test "$with_gnu_ld" != no && break
19300         ;;
19301       *)
19302         test "$with_gnu_ld" != yes && break
19303         ;;
19304       esac
19305     fi
19306   done
19307   IFS="$lt_save_ifs"
19308 else
19309   lt_cv_path_LD="$LD" # Let the user override the test with a path.
19310 fi
19311 fi
19312
19313 LD="$lt_cv_path_LD"
19314 if test -n "$LD"; then
19315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19316 $as_echo "$LD" >&6; }
19317 else
19318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19319 $as_echo "no" >&6; }
19320 fi
19321 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19323 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19324 if ${lt_cv_prog_gnu_ld+:} false; then :
19325   $as_echo_n "(cached) " >&6
19326 else
19327   # I'd rather use --version here, but apparently some GNU lds only accept -v.
19328 case `$LD -v 2>&1 </dev/null` in
19329 *GNU* | *'with BFD'*)
19330   lt_cv_prog_gnu_ld=yes
19331   ;;
19332 *)
19333   lt_cv_prog_gnu_ld=no
19334   ;;
19335 esac
19336 fi
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19338 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19339 with_gnu_ld=$lt_cv_prog_gnu_ld
19340
19341
19342
19343
19344
19345
19346
19347       # Check if GNU C++ uses GNU ld as the underlying linker, since the
19348       # archiving commands below assume that GNU ld is being used.
19349       if test "$with_gnu_ld" = yes; then
19350         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19351         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19352
19353         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19354         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19355
19356         # If archive_cmds runs LD, not CC, wlarc should be empty
19357         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19358         #     investigate it a little bit more. (MM)
19359         wlarc='${wl}'
19360
19361         # ancient GNU ld didn't support --whole-archive et. al.
19362         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19363           $GREP 'no-whole-archive' > /dev/null; then
19364           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19365         else
19366           whole_archive_flag_spec_CXX=
19367         fi
19368       else
19369         with_gnu_ld=no
19370         wlarc=
19371
19372         # A generic and very simple default shared library creation
19373         # command for GNU C++ for the case where it uses the native
19374         # linker, instead of GNU ld.  If possible, this setting should
19375         # overridden to take advantage of the native linker features on
19376         # the platform it is being used on.
19377         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19378       fi
19379
19380       # Commands to make compiler produce verbose output that lists
19381       # what "hidden" libraries, object files and flags are used when
19382       # linking a shared library.
19383       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19384
19385     else
19386       GXX=no
19387       with_gnu_ld=no
19388       wlarc=
19389     fi
19390
19391     # PORTME: fill in a description of your system's C++ link characteristics
19392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19393 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19394     ld_shlibs_CXX=yes
19395     case $host_os in
19396       aix3*)
19397         # FIXME: insert proper C++ library support
19398         ld_shlibs_CXX=no
19399         ;;
19400       aix[4-9]*)
19401         if test "$host_cpu" = ia64; then
19402           # On IA64, the linker does run time linking by default, so we don't
19403           # have to do anything special.
19404           aix_use_runtimelinking=no
19405           exp_sym_flag='-Bexport'
19406           no_entry_flag=""
19407         else
19408           aix_use_runtimelinking=no
19409
19410           # Test if we are trying to use run time linking or normal
19411           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19412           # need to do runtime linking.
19413           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19414             for ld_flag in $LDFLAGS; do
19415               case $ld_flag in
19416               *-brtl*)
19417                 aix_use_runtimelinking=yes
19418                 break
19419                 ;;
19420               esac
19421             done
19422             ;;
19423           esac
19424
19425           exp_sym_flag='-bexport'
19426           no_entry_flag='-bnoentry'
19427         fi
19428
19429         # When large executables or shared objects are built, AIX ld can
19430         # have problems creating the table of contents.  If linking a library
19431         # or program results in "error TOC overflow" add -mminimal-toc to
19432         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19433         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19434
19435         archive_cmds_CXX=''
19436         hardcode_direct_CXX=yes
19437         hardcode_direct_absolute_CXX=yes
19438         hardcode_libdir_separator_CXX=':'
19439         link_all_deplibs_CXX=yes
19440         file_list_spec_CXX='${wl}-f,'
19441
19442         if test "$GXX" = yes; then
19443           case $host_os in aix4.[012]|aix4.[012].*)
19444           # We only want to do this on AIX 4.2 and lower, the check
19445           # below for broken collect2 doesn't work under 4.3+
19446           collect2name=`${CC} -print-prog-name=collect2`
19447           if test -f "$collect2name" &&
19448              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19449           then
19450             # We have reworked collect2
19451             :
19452           else
19453             # We have old collect2
19454             hardcode_direct_CXX=unsupported
19455             # It fails to find uninstalled libraries when the uninstalled
19456             # path is not listed in the libpath.  Setting hardcode_minus_L
19457             # to unsupported forces relinking
19458             hardcode_minus_L_CXX=yes
19459             hardcode_libdir_flag_spec_CXX='-L$libdir'
19460             hardcode_libdir_separator_CXX=
19461           fi
19462           esac
19463           shared_flag='-shared'
19464           if test "$aix_use_runtimelinking" = yes; then
19465             shared_flag="$shared_flag "'${wl}-G'
19466           fi
19467         else
19468           # not using gcc
19469           if test "$host_cpu" = ia64; then
19470           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19471           # chokes on -Wl,-G. The following line is correct:
19472           shared_flag='-G'
19473           else
19474             if test "$aix_use_runtimelinking" = yes; then
19475               shared_flag='${wl}-G'
19476             else
19477               shared_flag='${wl}-bM:SRE'
19478             fi
19479           fi
19480         fi
19481
19482         export_dynamic_flag_spec_CXX='${wl}-bexpall'
19483         # It seems that -bexpall does not export symbols beginning with
19484         # underscore (_), so it is better to generate a list of symbols to
19485         # export.
19486         always_export_symbols_CXX=yes
19487         if test "$aix_use_runtimelinking" = yes; then
19488           # Warning - without using the other runtime loading flags (-brtl),
19489           # -berok will link without error, but may produce a broken library.
19490           allow_undefined_flag_CXX='-berok'
19491           # Determine the default libpath from the value encoded in an empty
19492           # executable.
19493           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19494 /* end confdefs.h.  */
19495
19496 int
19497 main ()
19498 {
19499
19500   ;
19501   return 0;
19502 }
19503 _ACEOF
19504 if ac_fn_cxx_try_link "$LINENO"; then :
19505
19506 lt_aix_libpath_sed='
19507     /Import File Strings/,/^$/ {
19508         /^0/ {
19509             s/^0  *\(.*\)$/\1/
19510             p
19511         }
19512     }'
19513 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19514 # Check for a 64-bit object if we didn't find anything.
19515 if test -z "$aix_libpath"; then
19516   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19517 fi
19518 fi
19519 rm -f core conftest.err conftest.$ac_objext \
19520     conftest$ac_exeext conftest.$ac_ext
19521 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19522
19523           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19524
19525           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19526         else
19527           if test "$host_cpu" = ia64; then
19528             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19529             allow_undefined_flag_CXX="-z nodefs"
19530             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19531           else
19532             # Determine the default libpath from the value encoded in an
19533             # empty executable.
19534             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19535 /* end confdefs.h.  */
19536
19537 int
19538 main ()
19539 {
19540
19541   ;
19542   return 0;
19543 }
19544 _ACEOF
19545 if ac_fn_cxx_try_link "$LINENO"; then :
19546
19547 lt_aix_libpath_sed='
19548     /Import File Strings/,/^$/ {
19549         /^0/ {
19550             s/^0  *\(.*\)$/\1/
19551             p
19552         }
19553     }'
19554 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19555 # Check for a 64-bit object if we didn't find anything.
19556 if test -z "$aix_libpath"; then
19557   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19558 fi
19559 fi
19560 rm -f core conftest.err conftest.$ac_objext \
19561     conftest$ac_exeext conftest.$ac_ext
19562 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19563
19564             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19565             # Warning - without using the other run time loading flags,
19566             # -berok will link without error, but may produce a broken library.
19567             no_undefined_flag_CXX=' ${wl}-bernotok'
19568             allow_undefined_flag_CXX=' ${wl}-berok'
19569             if test "$with_gnu_ld" = yes; then
19570               # We only use this code for GNU lds that support --whole-archive.
19571               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19572             else
19573               # Exported symbols can be pulled into shared objects from archives
19574               whole_archive_flag_spec_CXX='$convenience'
19575             fi
19576             archive_cmds_need_lc_CXX=yes
19577             # This is similar to how AIX traditionally builds its shared
19578             # libraries.
19579             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19580           fi
19581         fi
19582         ;;
19583
19584       beos*)
19585         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19586           allow_undefined_flag_CXX=unsupported
19587           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19588           # support --undefined.  This deserves some investigation.  FIXME
19589           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19590         else
19591           ld_shlibs_CXX=no
19592         fi
19593         ;;
19594
19595       chorus*)
19596         case $cc_basename in
19597           *)
19598           # FIXME: insert proper C++ library support
19599           ld_shlibs_CXX=no
19600           ;;
19601         esac
19602         ;;
19603
19604       cygwin* | mingw* | pw32* | cegcc*)
19605         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19606         # as there is no search path for DLLs.
19607         hardcode_libdir_flag_spec_CXX='-L$libdir'
19608         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19609         allow_undefined_flag_CXX=unsupported
19610         always_export_symbols_CXX=no
19611         enable_shared_with_static_runtimes_CXX=yes
19612
19613         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19614           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19615           # If the export-symbols file already is a .def file (1st line
19616           # is EXPORTS), use it as is; otherwise, prepend...
19617           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19618             cp $export_symbols $output_objdir/$soname.def;
19619           else
19620             echo EXPORTS > $output_objdir/$soname.def;
19621             cat $export_symbols >> $output_objdir/$soname.def;
19622           fi~
19623           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19624         else
19625           ld_shlibs_CXX=no
19626         fi
19627         ;;
19628       darwin* | rhapsody*)
19629
19630
19631   archive_cmds_need_lc_CXX=no
19632   hardcode_direct_CXX=no
19633   hardcode_automatic_CXX=yes
19634   hardcode_shlibpath_var_CXX=unsupported
19635   if test "$lt_cv_ld_force_load" = "yes"; then
19636     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
19637   else
19638     whole_archive_flag_spec_CXX=''
19639   fi
19640   link_all_deplibs_CXX=yes
19641   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19642   case $cc_basename in
19643      ifort*) _lt_dar_can_shared=yes ;;
19644      *) _lt_dar_can_shared=$GCC ;;
19645   esac
19646   if test "$_lt_dar_can_shared" = "yes"; then
19647     output_verbose_link_cmd=func_echo_all
19648     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19649     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19650     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19651     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19652        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19653       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
19654       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
19655     fi
19656
19657   else
19658   ld_shlibs_CXX=no
19659   fi
19660
19661         ;;
19662
19663       dgux*)
19664         case $cc_basename in
19665           ec++*)
19666             # FIXME: insert proper C++ library support
19667             ld_shlibs_CXX=no
19668             ;;
19669           ghcx*)
19670             # Green Hills C++ Compiler
19671             # FIXME: insert proper C++ library support
19672             ld_shlibs_CXX=no
19673             ;;
19674           *)
19675             # FIXME: insert proper C++ library support
19676             ld_shlibs_CXX=no
19677             ;;
19678         esac
19679         ;;
19680
19681       freebsd2.*)
19682         # C++ shared libraries reported to be fairly broken before
19683         # switch to ELF
19684         ld_shlibs_CXX=no
19685         ;;
19686
19687       freebsd-elf*)
19688         archive_cmds_need_lc_CXX=no
19689         ;;
19690
19691       freebsd* | dragonfly*)
19692         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19693         # conventions
19694         ld_shlibs_CXX=yes
19695         ;;
19696
19697       gnu*)
19698         ;;
19699
19700       haiku*)
19701         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19702         link_all_deplibs_CXX=yes
19703         ;;
19704
19705       hpux9*)
19706         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19707         hardcode_libdir_separator_CXX=:
19708         export_dynamic_flag_spec_CXX='${wl}-E'
19709         hardcode_direct_CXX=yes
19710         hardcode_minus_L_CXX=yes # Not in the search PATH,
19711                                              # but as the default
19712                                              # location of the library.
19713
19714         case $cc_basename in
19715           CC*)
19716             # FIXME: insert proper C++ library support
19717             ld_shlibs_CXX=no
19718             ;;
19719           aCC*)
19720             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19721             # Commands to make compiler produce verbose output that lists
19722             # what "hidden" libraries, object files and flags are used when
19723             # linking a shared library.
19724             #
19725             # There doesn't appear to be a way to prevent this compiler from
19726             # explicitly linking system object files so we need to strip them
19727             # from the output so that they don't get included in the library
19728             # dependencies.
19729             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19730             ;;
19731           *)
19732             if test "$GXX" = yes; then
19733               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19734             else
19735               # FIXME: insert proper C++ library support
19736               ld_shlibs_CXX=no
19737             fi
19738             ;;
19739         esac
19740         ;;
19741
19742       hpux10*|hpux11*)
19743         if test $with_gnu_ld = no; then
19744           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19745           hardcode_libdir_separator_CXX=:
19746
19747           case $host_cpu in
19748             hppa*64*|ia64*)
19749               ;;
19750             *)
19751               export_dynamic_flag_spec_CXX='${wl}-E'
19752               ;;
19753           esac
19754         fi
19755         case $host_cpu in
19756           hppa*64*|ia64*)
19757             hardcode_direct_CXX=no
19758             hardcode_shlibpath_var_CXX=no
19759             ;;
19760           *)
19761             hardcode_direct_CXX=yes
19762             hardcode_direct_absolute_CXX=yes
19763             hardcode_minus_L_CXX=yes # Not in the search PATH,
19764                                                  # but as the default
19765                                                  # location of the library.
19766             ;;
19767         esac
19768
19769         case $cc_basename in
19770           CC*)
19771             # FIXME: insert proper C++ library support
19772             ld_shlibs_CXX=no
19773             ;;
19774           aCC*)
19775             case $host_cpu in
19776               hppa*64*)
19777                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19778                 ;;
19779               ia64*)
19780                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19781                 ;;
19782               *)
19783                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19784                 ;;
19785             esac
19786             # Commands to make compiler produce verbose output that lists
19787             # what "hidden" libraries, object files and flags are used when
19788             # linking a shared library.
19789             #
19790             # There doesn't appear to be a way to prevent this compiler from
19791             # explicitly linking system object files so we need to strip them
19792             # from the output so that they don't get included in the library
19793             # dependencies.
19794             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19795             ;;
19796           *)
19797             if test "$GXX" = yes; then
19798               if test $with_gnu_ld = no; then
19799                 case $host_cpu in
19800                   hppa*64*)
19801                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19802                     ;;
19803                   ia64*)
19804                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19805                     ;;
19806                   *)
19807                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19808                     ;;
19809                 esac
19810               fi
19811             else
19812               # FIXME: insert proper C++ library support
19813               ld_shlibs_CXX=no
19814             fi
19815             ;;
19816         esac
19817         ;;
19818
19819       interix[3-9]*)
19820         hardcode_direct_CXX=no
19821         hardcode_shlibpath_var_CXX=no
19822         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19823         export_dynamic_flag_spec_CXX='${wl}-E'
19824         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19825         # Instead, shared libraries are loaded at an image base (0x10000000 by
19826         # default) and relocated if they conflict, which is a slow very memory
19827         # consuming and fragmenting process.  To avoid this, we pick a random,
19828         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19829         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19830         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19831         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19832         ;;
19833       irix5* | irix6*)
19834         case $cc_basename in
19835           CC*)
19836             # SGI C++
19837             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19838
19839             # Archives containing C++ object files must be created using
19840             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19841             # necessary to make sure instantiated templates are included
19842             # in the archive.
19843             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19844             ;;
19845           *)
19846             if test "$GXX" = yes; then
19847               if test "$with_gnu_ld" = no; then
19848                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19849               else
19850                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
19851               fi
19852             fi
19853             link_all_deplibs_CXX=yes
19854             ;;
19855         esac
19856         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19857         hardcode_libdir_separator_CXX=:
19858         inherit_rpath_CXX=yes
19859         ;;
19860
19861       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19862         case $cc_basename in
19863           KCC*)
19864             # Kuck and Associates, Inc. (KAI) C++ Compiler
19865
19866             # KCC will only create a shared library if the output file
19867             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19868             # to its proper name (with version) after linking.
19869             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19870             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19871             # Commands to make compiler produce verbose output that lists
19872             # what "hidden" libraries, object files and flags are used when
19873             # linking a shared library.
19874             #
19875             # There doesn't appear to be a way to prevent this compiler from
19876             # explicitly linking system object files so we need to strip them
19877             # from the output so that they don't get included in the library
19878             # dependencies.
19879             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19880
19881             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19882             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19883
19884             # Archives containing C++ object files must be created using
19885             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19886             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19887             ;;
19888           icpc* | ecpc* )
19889             # Intel C++
19890             with_gnu_ld=yes
19891             # version 8.0 and above of icpc choke on multiply defined symbols
19892             # if we add $predep_objects and $postdep_objects, however 7.1 and
19893             # earlier do not add the objects themselves.
19894             case `$CC -V 2>&1` in
19895               *"Version 7."*)
19896                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19897                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19898                 ;;
19899               *)  # Version 8.0 or newer
19900                 tmp_idyn=
19901                 case $host_cpu in
19902                   ia64*) tmp_idyn=' -i_dynamic';;
19903                 esac
19904                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19905                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19906                 ;;
19907             esac
19908             archive_cmds_need_lc_CXX=no
19909             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19910             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19911             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19912             ;;
19913           pgCC* | pgcpp*)
19914             # Portland Group C++ compiler
19915             case `$CC -V` in
19916             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19917               prelink_cmds_CXX='tpldir=Template.dir~
19918                 rm -rf $tpldir~
19919                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19920                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19921               old_archive_cmds_CXX='tpldir=Template.dir~
19922                 rm -rf $tpldir~
19923                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19924                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19925                 $RANLIB $oldlib'
19926               archive_cmds_CXX='tpldir=Template.dir~
19927                 rm -rf $tpldir~
19928                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19929                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19930               archive_expsym_cmds_CXX='tpldir=Template.dir~
19931                 rm -rf $tpldir~
19932                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19933                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19934               ;;
19935             *) # Version 6 and above use weak symbols
19936               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19937               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19938               ;;
19939             esac
19940
19941             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19942             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19943             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19944             ;;
19945           cxx*)
19946             # Compaq C++
19947             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19948             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19949
19950             runpath_var=LD_RUN_PATH
19951             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19952             hardcode_libdir_separator_CXX=:
19953
19954             # Commands to make compiler produce verbose output that lists
19955             # what "hidden" libraries, object files and flags are used when
19956             # linking a shared library.
19957             #
19958             # There doesn't appear to be a way to prevent this compiler from
19959             # explicitly linking system object files so we need to strip them
19960             # from the output so that they don't get included in the library
19961             # dependencies.
19962             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
19963             ;;
19964           xl* | mpixl* | bgxl*)
19965             # IBM XL 8.0 on PPC, with GNU ld
19966             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19967             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19968             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19969             if test "x$supports_anon_versioning" = xyes; then
19970               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19971                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19972                 echo "local: *; };" >> $output_objdir/$libname.ver~
19973                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19974             fi
19975             ;;
19976           *)
19977             case `$CC -V 2>&1 | sed 5q` in
19978             *Sun\ C*)
19979               # Sun C++ 5.9
19980               no_undefined_flag_CXX=' -zdefs'
19981               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19982               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
19983               hardcode_libdir_flag_spec_CXX='-R$libdir'
19984               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19985               compiler_needs_object_CXX=yes
19986
19987               # Not sure whether something based on
19988               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19989               # would be better.
19990               output_verbose_link_cmd='func_echo_all'
19991
19992               # Archives containing C++ object files must be created using
19993               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19994               # necessary to make sure instantiated templates are included
19995               # in the archive.
19996               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19997               ;;
19998             esac
19999             ;;
20000         esac
20001         ;;
20002
20003       lynxos*)
20004         # FIXME: insert proper C++ library support
20005         ld_shlibs_CXX=no
20006         ;;
20007
20008       m88k*)
20009         # FIXME: insert proper C++ library support
20010         ld_shlibs_CXX=no
20011         ;;
20012
20013       mvs*)
20014         case $cc_basename in
20015           cxx*)
20016             # FIXME: insert proper C++ library support
20017             ld_shlibs_CXX=no
20018             ;;
20019           *)
20020             # FIXME: insert proper C++ library support
20021             ld_shlibs_CXX=no
20022             ;;
20023         esac
20024         ;;
20025
20026       netbsd*)
20027         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20028           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20029           wlarc=
20030           hardcode_libdir_flag_spec_CXX='-R$libdir'
20031           hardcode_direct_CXX=yes
20032           hardcode_shlibpath_var_CXX=no
20033         fi
20034         # Workaround some broken pre-1.5 toolchains
20035         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20036         ;;
20037
20038       *nto* | *qnx*)
20039         ld_shlibs_CXX=yes
20040         ;;
20041
20042       openbsd2*)
20043         # C++ shared libraries are fairly broken
20044         ld_shlibs_CXX=no
20045         ;;
20046
20047       openbsd*)
20048         if test -f /usr/libexec/ld.so; then
20049           hardcode_direct_CXX=yes
20050           hardcode_shlibpath_var_CXX=no
20051           hardcode_direct_absolute_CXX=yes
20052           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20053           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20054           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20055             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20056             export_dynamic_flag_spec_CXX='${wl}-E'
20057             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20058           fi
20059           output_verbose_link_cmd=func_echo_all
20060         else
20061           ld_shlibs_CXX=no
20062         fi
20063         ;;
20064
20065       osf3* | osf4* | osf5*)
20066         case $cc_basename in
20067           KCC*)
20068             # Kuck and Associates, Inc. (KAI) C++ Compiler
20069
20070             # KCC will only create a shared library if the output file
20071             # ends with ".so" (or ".sl" for HP-UX), so rename the library
20072             # to its proper name (with version) after linking.
20073             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
20074
20075             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20076             hardcode_libdir_separator_CXX=:
20077
20078             # Archives containing C++ object files must be created using
20079             # the KAI C++ compiler.
20080             case $host in
20081               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20082               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20083             esac
20084             ;;
20085           RCC*)
20086             # Rational C++ 2.4.1
20087             # FIXME: insert proper C++ library support
20088             ld_shlibs_CXX=no
20089             ;;
20090           cxx*)
20091             case $host in
20092               osf3*)
20093                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20094                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
20095                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20096                 ;;
20097               *)
20098                 allow_undefined_flag_CXX=' -expect_unresolved \*'
20099                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
20100                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20101                   echo "-hidden">> $lib.exp~
20102                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
20103                   $RM $lib.exp'
20104                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20105                 ;;
20106             esac
20107
20108             hardcode_libdir_separator_CXX=:
20109
20110             # Commands to make compiler produce verbose output that lists
20111             # what "hidden" libraries, object files and flags are used when
20112             # linking a shared library.
20113             #
20114             # There doesn't appear to be a way to prevent this compiler from
20115             # explicitly linking system object files so we need to strip them
20116             # from the output so that they don't get included in the library
20117             # dependencies.
20118             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
20119             ;;
20120           *)
20121             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20122               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20123               case $host in
20124                 osf3*)
20125                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20126                   ;;
20127                 *)
20128                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20129                   ;;
20130               esac
20131
20132               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20133               hardcode_libdir_separator_CXX=:
20134
20135               # Commands to make compiler produce verbose output that lists
20136               # what "hidden" libraries, object files and flags are used when
20137               # linking a shared library.
20138               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20139
20140             else
20141               # FIXME: insert proper C++ library support
20142               ld_shlibs_CXX=no
20143             fi
20144             ;;
20145         esac
20146         ;;
20147
20148       psos*)
20149         # FIXME: insert proper C++ library support
20150         ld_shlibs_CXX=no
20151         ;;
20152
20153       sunos4*)
20154         case $cc_basename in
20155           CC*)
20156             # Sun C++ 4.x
20157             # FIXME: insert proper C++ library support
20158             ld_shlibs_CXX=no
20159             ;;
20160           lcc*)
20161             # Lucid
20162             # FIXME: insert proper C++ library support
20163             ld_shlibs_CXX=no
20164             ;;
20165           *)
20166             # FIXME: insert proper C++ library support
20167             ld_shlibs_CXX=no
20168             ;;
20169         esac
20170         ;;
20171
20172       solaris*)
20173         case $cc_basename in
20174           CC*)
20175             # Sun C++ 4.2, 5.x and Centerline C++
20176             archive_cmds_need_lc_CXX=yes
20177             no_undefined_flag_CXX=' -zdefs'
20178             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20179             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20180               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20181
20182             hardcode_libdir_flag_spec_CXX='-R$libdir'
20183             hardcode_shlibpath_var_CXX=no
20184             case $host_os in
20185               solaris2.[0-5] | solaris2.[0-5].*) ;;
20186               *)
20187                 # The compiler driver will combine and reorder linker options,
20188                 # but understands `-z linker_flag'.
20189                 # Supported since Solaris 2.6 (maybe 2.5.1?)
20190                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20191                 ;;
20192             esac
20193             link_all_deplibs_CXX=yes
20194
20195             output_verbose_link_cmd='func_echo_all'
20196
20197             # Archives containing C++ object files must be created using
20198             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20199             # necessary to make sure instantiated templates are included
20200             # in the archive.
20201             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20202             ;;
20203           gcx*)
20204             # Green Hills C++ Compiler
20205             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20206
20207             # The C++ compiler must be used to create the archive.
20208             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20209             ;;
20210           *)
20211             # GNU C++ compiler with Solaris linker
20212             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20213               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20214               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20215                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20216                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20217                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20218
20219                 # Commands to make compiler produce verbose output that lists
20220                 # what "hidden" libraries, object files and flags are used when
20221                 # linking a shared library.
20222                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20223               else
20224                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20225                 # platform.
20226                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20227                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20228                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20229
20230                 # Commands to make compiler produce verbose output that lists
20231                 # what "hidden" libraries, object files and flags are used when
20232                 # linking a shared library.
20233                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20234               fi
20235
20236               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20237               case $host_os in
20238                 solaris2.[0-5] | solaris2.[0-5].*) ;;
20239                 *)
20240                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20241                   ;;
20242               esac
20243             fi
20244             ;;
20245         esac
20246         ;;
20247
20248     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20249       no_undefined_flag_CXX='${wl}-z,text'
20250       archive_cmds_need_lc_CXX=no
20251       hardcode_shlibpath_var_CXX=no
20252       runpath_var='LD_RUN_PATH'
20253
20254       case $cc_basename in
20255         CC*)
20256           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20257           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20258           ;;
20259         *)
20260           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20261           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20262           ;;
20263       esac
20264       ;;
20265
20266       sysv5* | sco3.2v5* | sco5v6*)
20267         # Note: We can NOT use -z defs as we might desire, because we do not
20268         # link with -lc, and that would cause any symbols used from libc to
20269         # always be unresolved, which means just about no library would
20270         # ever link correctly.  If we're not using GNU ld we use -z text
20271         # though, which does catch some bad symbols but isn't as heavy-handed
20272         # as -z defs.
20273         no_undefined_flag_CXX='${wl}-z,text'
20274         allow_undefined_flag_CXX='${wl}-z,nodefs'
20275         archive_cmds_need_lc_CXX=no
20276         hardcode_shlibpath_var_CXX=no
20277         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20278         hardcode_libdir_separator_CXX=':'
20279         link_all_deplibs_CXX=yes
20280         export_dynamic_flag_spec_CXX='${wl}-Bexport'
20281         runpath_var='LD_RUN_PATH'
20282
20283         case $cc_basename in
20284           CC*)
20285             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20286             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20287             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20288               '"$old_archive_cmds_CXX"
20289             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20290               '"$reload_cmds_CXX"
20291             ;;
20292           *)
20293             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20294             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20295             ;;
20296         esac
20297       ;;
20298
20299       tandem*)
20300         case $cc_basename in
20301           NCC*)
20302             # NonStop-UX NCC 3.20
20303             # FIXME: insert proper C++ library support
20304             ld_shlibs_CXX=no
20305             ;;
20306           *)
20307             # FIXME: insert proper C++ library support
20308             ld_shlibs_CXX=no
20309             ;;
20310         esac
20311         ;;
20312
20313       vxworks*)
20314         # FIXME: insert proper C++ library support
20315         ld_shlibs_CXX=no
20316         ;;
20317
20318       *)
20319         # FIXME: insert proper C++ library support
20320         ld_shlibs_CXX=no
20321         ;;
20322     esac
20323
20324     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20325 $as_echo "$ld_shlibs_CXX" >&6; }
20326     test "$ld_shlibs_CXX" = no && can_build_shared=no
20327
20328     GCC_CXX="$GXX"
20329     LD_CXX="$LD"
20330
20331     ## CAVEAT EMPTOR:
20332     ## There is no encapsulation within the following macros, do not change
20333     ## the running order or otherwise move them around unless you know exactly
20334     ## what you are doing...
20335     # Dependencies to place before and after the object being linked:
20336 predep_objects_CXX=
20337 postdep_objects_CXX=
20338 predeps_CXX=
20339 postdeps_CXX=
20340 compiler_lib_search_path_CXX=
20341
20342 cat > conftest.$ac_ext <<_LT_EOF
20343 class Foo
20344 {
20345 public:
20346   Foo (void) { a = 0; }
20347 private:
20348   int a;
20349 };
20350 _LT_EOF
20351
20352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20353   (eval $ac_compile) 2>&5
20354   ac_status=$?
20355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20356   test $ac_status = 0; }; then
20357   # Parse the compiler output and extract the necessary
20358   # objects, libraries and library flags.
20359
20360   # Sentinel used to keep track of whether or not we are before
20361   # the conftest object file.
20362   pre_test_object_deps_done=no
20363
20364   for p in `eval "$output_verbose_link_cmd"`; do
20365     case $p in
20366
20367     -L* | -R* | -l*)
20368        # Some compilers place space between "-{L,R}" and the path.
20369        # Remove the space.
20370        if test $p = "-L" ||
20371           test $p = "-R"; then
20372          prev=$p
20373          continue
20374        else
20375          prev=
20376        fi
20377
20378        if test "$pre_test_object_deps_done" = no; then
20379          case $p in
20380          -L* | -R*)
20381            # Internal compiler library paths should come after those
20382            # provided the user.  The postdeps already come after the
20383            # user supplied libs so there is no need to process them.
20384            if test -z "$compiler_lib_search_path_CXX"; then
20385              compiler_lib_search_path_CXX="${prev}${p}"
20386            else
20387              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20388            fi
20389            ;;
20390          # The "-l" case would never come before the object being
20391          # linked, so don't bother handling this case.
20392          esac
20393        else
20394          if test -z "$postdeps_CXX"; then
20395            postdeps_CXX="${prev}${p}"
20396          else
20397            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20398          fi
20399        fi
20400        ;;
20401
20402     *.$objext)
20403        # This assumes that the test object file only shows up
20404        # once in the compiler output.
20405        if test "$p" = "conftest.$objext"; then
20406          pre_test_object_deps_done=yes
20407          continue
20408        fi
20409
20410        if test "$pre_test_object_deps_done" = no; then
20411          if test -z "$predep_objects_CXX"; then
20412            predep_objects_CXX="$p"
20413          else
20414            predep_objects_CXX="$predep_objects_CXX $p"
20415          fi
20416        else
20417          if test -z "$postdep_objects_CXX"; then
20418            postdep_objects_CXX="$p"
20419          else
20420            postdep_objects_CXX="$postdep_objects_CXX $p"
20421          fi
20422        fi
20423        ;;
20424
20425     *) ;; # Ignore the rest.
20426
20427     esac
20428   done
20429
20430   # Clean up.
20431   rm -f a.out a.exe
20432 else
20433   echo "libtool.m4: error: problem compiling CXX test program"
20434 fi
20435
20436 $RM -f confest.$objext
20437
20438 # PORTME: override above test on systems where it is broken
20439 case $host_os in
20440 interix[3-9]*)
20441   # Interix 3.5 installs completely hosed .la files for C++, so rather than
20442   # hack all around it, let's just trust "g++" to DTRT.
20443   predep_objects_CXX=
20444   postdep_objects_CXX=
20445   postdeps_CXX=
20446   ;;
20447
20448 linux*)
20449   case `$CC -V 2>&1 | sed 5q` in
20450   *Sun\ C*)
20451     # Sun C++ 5.9
20452
20453     # The more standards-conforming stlport4 library is
20454     # incompatible with the Cstd library. Avoid specifying
20455     # it if it's in CXXFLAGS. Ignore libCrun as
20456     # -library=stlport4 depends on it.
20457     case " $CXX $CXXFLAGS " in
20458     *" -library=stlport4 "*)
20459       solaris_use_stlport4=yes
20460       ;;
20461     esac
20462
20463     if test "$solaris_use_stlport4" != yes; then
20464       postdeps_CXX='-library=Cstd -library=Crun'
20465     fi
20466     ;;
20467   esac
20468   ;;
20469
20470 solaris*)
20471   case $cc_basename in
20472   CC*)
20473     # The more standards-conforming stlport4 library is
20474     # incompatible with the Cstd library. Avoid specifying
20475     # it if it's in CXXFLAGS. Ignore libCrun as
20476     # -library=stlport4 depends on it.
20477     case " $CXX $CXXFLAGS " in
20478     *" -library=stlport4 "*)
20479       solaris_use_stlport4=yes
20480       ;;
20481     esac
20482
20483     # Adding this requires a known-good setup of shared libraries for
20484     # Sun compiler versions before 5.6, else PIC objects from an old
20485     # archive will be linked into the output, leading to subtle bugs.
20486     if test "$solaris_use_stlport4" != yes; then
20487       postdeps_CXX='-library=Cstd -library=Crun'
20488     fi
20489     ;;
20490   esac
20491   ;;
20492 esac
20493
20494
20495 case " $postdeps_CXX " in
20496 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20497 esac
20498  compiler_lib_search_dirs_CXX=
20499 if test -n "${compiler_lib_search_path_CXX}"; then
20500  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20501 fi
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533     lt_prog_compiler_wl_CXX=
20534 lt_prog_compiler_pic_CXX=
20535 lt_prog_compiler_static_CXX=
20536
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20538 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20539
20540   # C++ specific cases for pic, static, wl, etc.
20541   if test "$GXX" = yes; then
20542     lt_prog_compiler_wl_CXX='-Wl,'
20543     lt_prog_compiler_static_CXX='-static'
20544
20545     case $host_os in
20546     aix*)
20547       # All AIX code is PIC.
20548       if test "$host_cpu" = ia64; then
20549         # AIX 5 now supports IA64 processor
20550         lt_prog_compiler_static_CXX='-Bstatic'
20551       fi
20552       lt_prog_compiler_pic_CXX='-fPIC'
20553       ;;
20554
20555     amigaos*)
20556       case $host_cpu in
20557       powerpc)
20558             # see comment about AmigaOS4 .so support
20559             lt_prog_compiler_pic_CXX='-fPIC'
20560         ;;
20561       m68k)
20562             # FIXME: we need at least 68020 code to build shared libraries, but
20563             # adding the `-m68020' flag to GCC prevents building anything better,
20564             # like `-m68040'.
20565             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20566         ;;
20567       esac
20568       ;;
20569
20570     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20571       # PIC is the default for these OSes.
20572       ;;
20573     mingw* | cygwin* | os2* | pw32* | cegcc*)
20574       # This hack is so that the source file can tell whether it is being
20575       # built for inclusion in a dll (and should export symbols for example).
20576       # Although the cygwin gcc ignores -fPIC, still need this for old-style
20577       # (--disable-auto-import) libraries
20578       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20579       ;;
20580     darwin* | rhapsody*)
20581       # PIC is the default on this platform
20582       # Common symbols not allowed in MH_DYLIB files
20583       lt_prog_compiler_pic_CXX='-fno-common'
20584       ;;
20585     *djgpp*)
20586       # DJGPP does not support shared libraries at all
20587       lt_prog_compiler_pic_CXX=
20588       ;;
20589     haiku*)
20590       # PIC is the default for Haiku.
20591       # The "-static" flag exists, but is broken.
20592       lt_prog_compiler_static_CXX=
20593       ;;
20594     interix[3-9]*)
20595       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20596       # Instead, we relocate shared libraries at runtime.
20597       ;;
20598     sysv4*MP*)
20599       if test -d /usr/nec; then
20600         lt_prog_compiler_pic_CXX=-Kconform_pic
20601       fi
20602       ;;
20603     hpux*)
20604       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20605       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20606       # sets the default TLS model and affects inlining.
20607       case $host_cpu in
20608       hppa*64*)
20609         ;;
20610       *)
20611         lt_prog_compiler_pic_CXX='-fPIC'
20612         ;;
20613       esac
20614       ;;
20615     *qnx* | *nto*)
20616       # QNX uses GNU C++, but need to define -shared option too, otherwise
20617       # it will coredump.
20618       lt_prog_compiler_pic_CXX='-fPIC -shared'
20619       ;;
20620     *)
20621       lt_prog_compiler_pic_CXX='-fPIC'
20622       ;;
20623     esac
20624   else
20625     case $host_os in
20626       aix[4-9]*)
20627         # All AIX code is PIC.
20628         if test "$host_cpu" = ia64; then
20629           # AIX 5 now supports IA64 processor
20630           lt_prog_compiler_static_CXX='-Bstatic'
20631         else
20632           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20633         fi
20634         ;;
20635       chorus*)
20636         case $cc_basename in
20637         cxch68*)
20638           # Green Hills C++ Compiler
20639           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
20640           ;;
20641         esac
20642         ;;
20643       dgux*)
20644         case $cc_basename in
20645           ec++*)
20646             lt_prog_compiler_pic_CXX='-KPIC'
20647             ;;
20648           ghcx*)
20649             # Green Hills C++ Compiler
20650             lt_prog_compiler_pic_CXX='-pic'
20651             ;;
20652           *)
20653             ;;
20654         esac
20655         ;;
20656       freebsd* | dragonfly*)
20657         # FreeBSD uses GNU C++
20658         ;;
20659       hpux9* | hpux10* | hpux11*)
20660         case $cc_basename in
20661           CC*)
20662             lt_prog_compiler_wl_CXX='-Wl,'
20663             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20664             if test "$host_cpu" != ia64; then
20665               lt_prog_compiler_pic_CXX='+Z'
20666             fi
20667             ;;
20668           aCC*)
20669             lt_prog_compiler_wl_CXX='-Wl,'
20670             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20671             case $host_cpu in
20672             hppa*64*|ia64*)
20673               # +Z the default
20674               ;;
20675             *)
20676               lt_prog_compiler_pic_CXX='+Z'
20677               ;;
20678             esac
20679             ;;
20680           *)
20681             ;;
20682         esac
20683         ;;
20684       interix*)
20685         # This is c89, which is MS Visual C++ (no shared libs)
20686         # Anyone wants to do a port?
20687         ;;
20688       irix5* | irix6* | nonstopux*)
20689         case $cc_basename in
20690           CC*)
20691             lt_prog_compiler_wl_CXX='-Wl,'
20692             lt_prog_compiler_static_CXX='-non_shared'
20693             # CC pic flag -KPIC is the default.
20694             ;;
20695           *)
20696             ;;
20697         esac
20698         ;;
20699       linux* | k*bsd*-gnu | kopensolaris*-gnu)
20700         case $cc_basename in
20701           KCC*)
20702             # KAI C++ Compiler
20703             lt_prog_compiler_wl_CXX='--backend -Wl,'
20704             lt_prog_compiler_pic_CXX='-fPIC'
20705             ;;
20706           ecpc* )
20707             # old Intel C++ for x86_64 which still supported -KPIC.
20708             lt_prog_compiler_wl_CXX='-Wl,'
20709             lt_prog_compiler_pic_CXX='-KPIC'
20710             lt_prog_compiler_static_CXX='-static'
20711             ;;
20712           icpc* )
20713             # Intel C++, used to be incompatible with GCC.
20714             # ICC 10 doesn't accept -KPIC any more.
20715             lt_prog_compiler_wl_CXX='-Wl,'
20716             lt_prog_compiler_pic_CXX='-fPIC'
20717             lt_prog_compiler_static_CXX='-static'
20718             ;;
20719           pgCC* | pgcpp*)
20720             # Portland Group C++ compiler
20721             lt_prog_compiler_wl_CXX='-Wl,'
20722             lt_prog_compiler_pic_CXX='-fpic'
20723             lt_prog_compiler_static_CXX='-Bstatic'
20724             ;;
20725           cxx*)
20726             # Compaq C++
20727             # Make sure the PIC flag is empty.  It appears that all Alpha
20728             # Linux and Compaq Tru64 Unix objects are PIC.
20729             lt_prog_compiler_pic_CXX=
20730             lt_prog_compiler_static_CXX='-non_shared'
20731             ;;
20732           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20733             # IBM XL 8.0, 9.0 on PPC and BlueGene
20734             lt_prog_compiler_wl_CXX='-Wl,'
20735             lt_prog_compiler_pic_CXX='-qpic'
20736             lt_prog_compiler_static_CXX='-qstaticlink'
20737             ;;
20738           *)
20739             case `$CC -V 2>&1 | sed 5q` in
20740             *Sun\ C*)
20741               # Sun C++ 5.9
20742               lt_prog_compiler_pic_CXX='-KPIC'
20743               lt_prog_compiler_static_CXX='-Bstatic'
20744               lt_prog_compiler_wl_CXX='-Qoption ld '
20745               ;;
20746             esac
20747             ;;
20748         esac
20749         ;;
20750       lynxos*)
20751         ;;
20752       m88k*)
20753         ;;
20754       mvs*)
20755         case $cc_basename in
20756           cxx*)
20757             lt_prog_compiler_pic_CXX='-W c,exportall'
20758             ;;
20759           *)
20760             ;;
20761         esac
20762         ;;
20763       netbsd*)
20764         ;;
20765       *qnx* | *nto*)
20766         # QNX uses GNU C++, but need to define -shared option too, otherwise
20767         # it will coredump.
20768         lt_prog_compiler_pic_CXX='-fPIC -shared'
20769         ;;
20770       osf3* | osf4* | osf5*)
20771         case $cc_basename in
20772           KCC*)
20773             lt_prog_compiler_wl_CXX='--backend -Wl,'
20774             ;;
20775           RCC*)
20776             # Rational C++ 2.4.1
20777             lt_prog_compiler_pic_CXX='-pic'
20778             ;;
20779           cxx*)
20780             # Digital/Compaq C++
20781             lt_prog_compiler_wl_CXX='-Wl,'
20782             # Make sure the PIC flag is empty.  It appears that all Alpha
20783             # Linux and Compaq Tru64 Unix objects are PIC.
20784             lt_prog_compiler_pic_CXX=
20785             lt_prog_compiler_static_CXX='-non_shared'
20786             ;;
20787           *)
20788             ;;
20789         esac
20790         ;;
20791       psos*)
20792         ;;
20793       solaris*)
20794         case $cc_basename in
20795           CC*)
20796             # Sun C++ 4.2, 5.x and Centerline C++
20797             lt_prog_compiler_pic_CXX='-KPIC'
20798             lt_prog_compiler_static_CXX='-Bstatic'
20799             lt_prog_compiler_wl_CXX='-Qoption ld '
20800             ;;
20801           gcx*)
20802             # Green Hills C++ Compiler
20803             lt_prog_compiler_pic_CXX='-PIC'
20804             ;;
20805           *)
20806             ;;
20807         esac
20808         ;;
20809       sunos4*)
20810         case $cc_basename in
20811           CC*)
20812             # Sun C++ 4.x
20813             lt_prog_compiler_pic_CXX='-pic'
20814             lt_prog_compiler_static_CXX='-Bstatic'
20815             ;;
20816           lcc*)
20817             # Lucid
20818             lt_prog_compiler_pic_CXX='-pic'
20819             ;;
20820           *)
20821             ;;
20822         esac
20823         ;;
20824       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20825         case $cc_basename in
20826           CC*)
20827             lt_prog_compiler_wl_CXX='-Wl,'
20828             lt_prog_compiler_pic_CXX='-KPIC'
20829             lt_prog_compiler_static_CXX='-Bstatic'
20830             ;;
20831         esac
20832         ;;
20833       tandem*)
20834         case $cc_basename in
20835           NCC*)
20836             # NonStop-UX NCC 3.20
20837             lt_prog_compiler_pic_CXX='-KPIC'
20838             ;;
20839           *)
20840             ;;
20841         esac
20842         ;;
20843       vxworks*)
20844         ;;
20845       *)
20846         lt_prog_compiler_can_build_shared_CXX=no
20847         ;;
20848     esac
20849   fi
20850
20851 case $host_os in
20852   # For platforms which do not support PIC, -DPIC is meaningless:
20853   *djgpp*)
20854     lt_prog_compiler_pic_CXX=
20855     ;;
20856   *)
20857     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20858     ;;
20859 esac
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20861 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20862
20863
20864
20865 #
20866 # Check to make sure the PIC flag actually works.
20867 #
20868 if test -n "$lt_prog_compiler_pic_CXX"; then
20869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20870 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20871 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
20872   $as_echo_n "(cached) " >&6
20873 else
20874   lt_cv_prog_compiler_pic_works_CXX=no
20875    ac_outfile=conftest.$ac_objext
20876    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20877    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20878    # Insert the option either (1) after the last *FLAGS variable, or
20879    # (2) before a word containing "conftest.", or (3) at the end.
20880    # Note that $ac_compile itself does not contain backslashes and begins
20881    # with a dollar sign (not a hyphen), so the echo should work correctly.
20882    # The option is referenced via a variable to avoid confusing sed.
20883    lt_compile=`echo "$ac_compile" | $SED \
20884    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20885    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20886    -e 's:$: $lt_compiler_flag:'`
20887    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20888    (eval "$lt_compile" 2>conftest.err)
20889    ac_status=$?
20890    cat conftest.err >&5
20891    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892    if (exit $ac_status) && test -s "$ac_outfile"; then
20893      # The compiler can only warn and ignore the option if not recognized
20894      # So say no if there are warnings other than the usual output.
20895      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20896      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20897      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20898        lt_cv_prog_compiler_pic_works_CXX=yes
20899      fi
20900    fi
20901    $RM conftest*
20902
20903 fi
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20905 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20906
20907 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20908     case $lt_prog_compiler_pic_CXX in
20909      "" | " "*) ;;
20910      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20911      esac
20912 else
20913     lt_prog_compiler_pic_CXX=
20914      lt_prog_compiler_can_build_shared_CXX=no
20915 fi
20916
20917 fi
20918
20919
20920
20921 #
20922 # Check to make sure the static flag actually works.
20923 #
20924 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20926 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20927 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
20928   $as_echo_n "(cached) " >&6
20929 else
20930   lt_cv_prog_compiler_static_works_CXX=no
20931    save_LDFLAGS="$LDFLAGS"
20932    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20933    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20934    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20935      # The linker can only warn and ignore the option if not recognized
20936      # So say no if there are warnings
20937      if test -s conftest.err; then
20938        # Append any errors to the config.log.
20939        cat conftest.err 1>&5
20940        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20941        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20942        if diff conftest.exp conftest.er2 >/dev/null; then
20943          lt_cv_prog_compiler_static_works_CXX=yes
20944        fi
20945      else
20946        lt_cv_prog_compiler_static_works_CXX=yes
20947      fi
20948    fi
20949    $RM -r conftest*
20950    LDFLAGS="$save_LDFLAGS"
20951
20952 fi
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20954 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20955
20956 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20957     :
20958 else
20959     lt_prog_compiler_static_CXX=
20960 fi
20961
20962
20963
20964
20965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20966 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20967 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20968   $as_echo_n "(cached) " >&6
20969 else
20970   lt_cv_prog_compiler_c_o_CXX=no
20971    $RM -r conftest 2>/dev/null
20972    mkdir conftest
20973    cd conftest
20974    mkdir out
20975    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20976
20977    lt_compiler_flag="-o out/conftest2.$ac_objext"
20978    # Insert the option either (1) after the last *FLAGS variable, or
20979    # (2) before a word containing "conftest.", or (3) at the end.
20980    # Note that $ac_compile itself does not contain backslashes and begins
20981    # with a dollar sign (not a hyphen), so the echo should work correctly.
20982    lt_compile=`echo "$ac_compile" | $SED \
20983    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20984    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20985    -e 's:$: $lt_compiler_flag:'`
20986    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20987    (eval "$lt_compile" 2>out/conftest.err)
20988    ac_status=$?
20989    cat out/conftest.err >&5
20990    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20992    then
20993      # The compiler can only warn and ignore the option if not recognized
20994      # So say no if there are warnings
20995      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20996      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20997      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20998        lt_cv_prog_compiler_c_o_CXX=yes
20999      fi
21000    fi
21001    chmod u+w . 2>&5
21002    $RM conftest*
21003    # SGI C++ compiler will create directory out/ii_files/ for
21004    # template instantiation
21005    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21006    $RM out/* && rmdir out
21007    cd ..
21008    $RM -r conftest
21009    $RM conftest*
21010
21011 fi
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21013 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21014
21015
21016
21017     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21018 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21019 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21020   $as_echo_n "(cached) " >&6
21021 else
21022   lt_cv_prog_compiler_c_o_CXX=no
21023    $RM -r conftest 2>/dev/null
21024    mkdir conftest
21025    cd conftest
21026    mkdir out
21027    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21028
21029    lt_compiler_flag="-o out/conftest2.$ac_objext"
21030    # Insert the option either (1) after the last *FLAGS variable, or
21031    # (2) before a word containing "conftest.", or (3) at the end.
21032    # Note that $ac_compile itself does not contain backslashes and begins
21033    # with a dollar sign (not a hyphen), so the echo should work correctly.
21034    lt_compile=`echo "$ac_compile" | $SED \
21035    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21036    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21037    -e 's:$: $lt_compiler_flag:'`
21038    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21039    (eval "$lt_compile" 2>out/conftest.err)
21040    ac_status=$?
21041    cat out/conftest.err >&5
21042    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21044    then
21045      # The compiler can only warn and ignore the option if not recognized
21046      # So say no if there are warnings
21047      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21048      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21049      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21050        lt_cv_prog_compiler_c_o_CXX=yes
21051      fi
21052    fi
21053    chmod u+w . 2>&5
21054    $RM conftest*
21055    # SGI C++ compiler will create directory out/ii_files/ for
21056    # template instantiation
21057    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21058    $RM out/* && rmdir out
21059    cd ..
21060    $RM -r conftest
21061    $RM conftest*
21062
21063 fi
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21065 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21066
21067
21068
21069
21070 hard_links="nottested"
21071 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21072   # do not overwrite the value of need_locks provided by the user
21073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21074 $as_echo_n "checking if we can lock with hard links... " >&6; }
21075   hard_links=yes
21076   $RM conftest*
21077   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21078   touch conftest.a
21079   ln conftest.a conftest.b 2>&5 || hard_links=no
21080   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21082 $as_echo "$hard_links" >&6; }
21083   if test "$hard_links" = no; then
21084     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21085 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21086     need_locks=warn
21087   fi
21088 else
21089   need_locks=no
21090 fi
21091
21092
21093
21094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21095 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21096
21097   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21098   case $host_os in
21099   aix[4-9]*)
21100     # If we're using GNU nm, then we don't want the "-C" option.
21101     # -C means demangle to AIX nm, but means don't demangle with GNU nm
21102     # Also, AIX nm treats weak defined symbols like other global defined
21103     # symbols, whereas GNU nm marks them as "W".
21104     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21105       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
21106     else
21107       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
21108     fi
21109     ;;
21110   pw32*)
21111     export_symbols_cmds_CXX="$ltdll_cmds"
21112   ;;
21113   cygwin* | mingw* | cegcc*)
21114     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
21115   ;;
21116   *)
21117     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21118   ;;
21119   esac
21120   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21121
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21123 $as_echo "$ld_shlibs_CXX" >&6; }
21124 test "$ld_shlibs_CXX" = no && can_build_shared=no
21125
21126 with_gnu_ld_CXX=$with_gnu_ld
21127
21128
21129
21130
21131
21132
21133 #
21134 # Do we need to explicitly link libc?
21135 #
21136 case "x$archive_cmds_need_lc_CXX" in
21137 x|xyes)
21138   # Assume -lc should be added
21139   archive_cmds_need_lc_CXX=yes
21140
21141   if test "$enable_shared" = yes && test "$GCC" = yes; then
21142     case $archive_cmds_CXX in
21143     *'~'*)
21144       # FIXME: we may have to deal with multi-command sequences.
21145       ;;
21146     '$CC '*)
21147       # Test whether the compiler implicitly links with -lc since on some
21148       # systems, -lgcc has to come before -lc. If gcc already passes -lc
21149       # to ld, don't add -lc before -lgcc.
21150       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21151 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21152 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21153   $as_echo_n "(cached) " >&6
21154 else
21155   $RM conftest*
21156         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21157
21158         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21159   (eval $ac_compile) 2>&5
21160   ac_status=$?
21161   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21162   test $ac_status = 0; } 2>conftest.err; then
21163           soname=conftest
21164           lib=conftest
21165           libobjs=conftest.$ac_objext
21166           deplibs=
21167           wl=$lt_prog_compiler_wl_CXX
21168           pic_flag=$lt_prog_compiler_pic_CXX
21169           compiler_flags=-v
21170           linker_flags=-v
21171           verstring=
21172           output_objdir=.
21173           libname=conftest
21174           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21175           allow_undefined_flag_CXX=
21176           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21177   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21178   ac_status=$?
21179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21180   test $ac_status = 0; }
21181           then
21182             lt_cv_archive_cmds_need_lc_CXX=no
21183           else
21184             lt_cv_archive_cmds_need_lc_CXX=yes
21185           fi
21186           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21187         else
21188           cat conftest.err 1>&5
21189         fi
21190         $RM conftest*
21191
21192 fi
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21194 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21195       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21196       ;;
21197     esac
21198   fi
21199   ;;
21200 esac
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21266 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21267
21268 library_names_spec=
21269 libname_spec='lib$name'
21270 soname_spec=
21271 shrext_cmds=".so"
21272 postinstall_cmds=
21273 postuninstall_cmds=
21274 finish_cmds=
21275 finish_eval=
21276 shlibpath_var=
21277 shlibpath_overrides_runpath=unknown
21278 version_type=none
21279 dynamic_linker="$host_os ld.so"
21280 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21281 need_lib_prefix=unknown
21282 hardcode_into_libs=no
21283
21284 # when you set need_version to no, make sure it does not cause -set_version
21285 # flags to be left without arguments
21286 need_version=unknown
21287
21288 case $host_os in
21289 aix3*)
21290   version_type=linux
21291   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21292   shlibpath_var=LIBPATH
21293
21294   # AIX 3 has no versioning support, so we append a major version to the name.
21295   soname_spec='${libname}${release}${shared_ext}$major'
21296   ;;
21297
21298 aix[4-9]*)
21299   version_type=linux
21300   need_lib_prefix=no
21301   need_version=no
21302   hardcode_into_libs=yes
21303   if test "$host_cpu" = ia64; then
21304     # AIX 5 supports IA64
21305     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21306     shlibpath_var=LD_LIBRARY_PATH
21307   else
21308     # With GCC up to 2.95.x, collect2 would create an import file
21309     # for dependence libraries.  The import file would start with
21310     # the line `#! .'.  This would cause the generated library to
21311     # depend on `.', always an invalid library.  This was fixed in
21312     # development snapshots of GCC prior to 3.0.
21313     case $host_os in
21314       aix4 | aix4.[01] | aix4.[01].*)
21315       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21316            echo ' yes '
21317            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21318         :
21319       else
21320         can_build_shared=no
21321       fi
21322       ;;
21323     esac
21324     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21325     # soname into executable. Probably we can add versioning support to
21326     # collect2, so additional links can be useful in future.
21327     if test "$aix_use_runtimelinking" = yes; then
21328       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21329       # instead of lib<name>.a to let people know that these are not
21330       # typical AIX shared libraries.
21331       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21332     else
21333       # We preserve .a as extension for shared libraries through AIX4.2
21334       # and later when we are not doing run time linking.
21335       library_names_spec='${libname}${release}.a $libname.a'
21336       soname_spec='${libname}${release}${shared_ext}$major'
21337     fi
21338     shlibpath_var=LIBPATH
21339   fi
21340   ;;
21341
21342 amigaos*)
21343   case $host_cpu in
21344   powerpc)
21345     # Since July 2007 AmigaOS4 officially supports .so libraries.
21346     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21347     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21348     ;;
21349   m68k)
21350     library_names_spec='$libname.ixlibrary $libname.a'
21351     # Create ${libname}_ixlibrary.a entries in /sys/libs.
21352     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
21353     ;;
21354   esac
21355   ;;
21356
21357 beos*)
21358   library_names_spec='${libname}${shared_ext}'
21359   dynamic_linker="$host_os ld.so"
21360   shlibpath_var=LIBRARY_PATH
21361   ;;
21362
21363 bsdi[45]*)
21364   version_type=linux
21365   need_version=no
21366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21367   soname_spec='${libname}${release}${shared_ext}$major'
21368   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21369   shlibpath_var=LD_LIBRARY_PATH
21370   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21371   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21372   # the default ld.so.conf also contains /usr/contrib/lib and
21373   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21374   # libtool to hard-code these into programs
21375   ;;
21376
21377 cygwin* | mingw* | pw32* | cegcc*)
21378   version_type=windows
21379   shrext_cmds=".dll"
21380   need_version=no
21381   need_lib_prefix=no
21382
21383   case $GCC,$host_os in
21384   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21385     library_names_spec='$libname.dll.a'
21386     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21387     postinstall_cmds='base_file=`basename \${file}`~
21388       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21389       dldir=$destdir/`dirname \$dlpath`~
21390       test -d \$dldir || mkdir -p \$dldir~
21391       $install_prog $dir/$dlname \$dldir/$dlname~
21392       chmod a+x \$dldir/$dlname~
21393       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21394         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21395       fi'
21396     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21397       dlpath=$dir/\$dldll~
21398        $RM \$dlpath'
21399     shlibpath_overrides_runpath=yes
21400
21401     case $host_os in
21402     cygwin*)
21403       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21404       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21405
21406       ;;
21407     mingw* | cegcc*)
21408       # MinGW DLLs use traditional 'lib' prefix
21409       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21410       ;;
21411     pw32*)
21412       # pw32 DLLs use 'pw' prefix rather than 'lib'
21413       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21414       ;;
21415     esac
21416     ;;
21417
21418   *)
21419     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21420     ;;
21421   esac
21422   dynamic_linker='Win32 ld.exe'
21423   # FIXME: first we should search . and the directory the executable is in
21424   shlibpath_var=PATH
21425   ;;
21426
21427 darwin* | rhapsody*)
21428   dynamic_linker="$host_os dyld"
21429   version_type=darwin
21430   need_lib_prefix=no
21431   need_version=no
21432   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21433   soname_spec='${libname}${release}${major}$shared_ext'
21434   shlibpath_overrides_runpath=yes
21435   shlibpath_var=DYLD_LIBRARY_PATH
21436   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21437
21438   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21439   ;;
21440
21441 dgux*)
21442   version_type=linux
21443   need_lib_prefix=no
21444   need_version=no
21445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21446   soname_spec='${libname}${release}${shared_ext}$major'
21447   shlibpath_var=LD_LIBRARY_PATH
21448   ;;
21449
21450 freebsd* | dragonfly*)
21451   # DragonFly does not have aout.  When/if they implement a new
21452   # versioning mechanism, adjust this.
21453   if test -x /usr/bin/objformat; then
21454     objformat=`/usr/bin/objformat`
21455   else
21456     case $host_os in
21457     freebsd[23].*) objformat=aout ;;
21458     *) objformat=elf ;;
21459     esac
21460   fi
21461   version_type=freebsd-$objformat
21462   case $version_type in
21463     freebsd-elf*)
21464       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21465       need_version=no
21466       need_lib_prefix=no
21467       ;;
21468     freebsd-*)
21469       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21470       need_version=yes
21471       ;;
21472   esac
21473   shlibpath_var=LD_LIBRARY_PATH
21474   case $host_os in
21475   freebsd2.*)
21476     shlibpath_overrides_runpath=yes
21477     ;;
21478   freebsd3.[01]* | freebsdelf3.[01]*)
21479     shlibpath_overrides_runpath=yes
21480     hardcode_into_libs=yes
21481     ;;
21482   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21483   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21484     shlibpath_overrides_runpath=no
21485     hardcode_into_libs=yes
21486     ;;
21487   *) # from 4.6 on, and DragonFly
21488     shlibpath_overrides_runpath=yes
21489     hardcode_into_libs=yes
21490     ;;
21491   esac
21492   ;;
21493
21494 gnu*)
21495   version_type=linux
21496   need_lib_prefix=no
21497   need_version=no
21498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21499   soname_spec='${libname}${release}${shared_ext}$major'
21500   shlibpath_var=LD_LIBRARY_PATH
21501   hardcode_into_libs=yes
21502   ;;
21503
21504 haiku*)
21505   version_type=linux
21506   need_lib_prefix=no
21507   need_version=no
21508   dynamic_linker="$host_os runtime_loader"
21509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21510   soname_spec='${libname}${release}${shared_ext}$major'
21511   shlibpath_var=LIBRARY_PATH
21512   shlibpath_overrides_runpath=yes
21513   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21514   hardcode_into_libs=yes
21515   ;;
21516
21517 hpux9* | hpux10* | hpux11*)
21518   # Give a soname corresponding to the major version so that dld.sl refuses to
21519   # link against other versions.
21520   version_type=sunos
21521   need_lib_prefix=no
21522   need_version=no
21523   case $host_cpu in
21524   ia64*)
21525     shrext_cmds='.so'
21526     hardcode_into_libs=yes
21527     dynamic_linker="$host_os dld.so"
21528     shlibpath_var=LD_LIBRARY_PATH
21529     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21530     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21531     soname_spec='${libname}${release}${shared_ext}$major'
21532     if test "X$HPUX_IA64_MODE" = X32; then
21533       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21534     else
21535       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21536     fi
21537     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21538     ;;
21539   hppa*64*)
21540     shrext_cmds='.sl'
21541     hardcode_into_libs=yes
21542     dynamic_linker="$host_os dld.sl"
21543     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21544     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21545     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21546     soname_spec='${libname}${release}${shared_ext}$major'
21547     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21548     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21549     ;;
21550   *)
21551     shrext_cmds='.sl'
21552     dynamic_linker="$host_os dld.sl"
21553     shlibpath_var=SHLIB_PATH
21554     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21556     soname_spec='${libname}${release}${shared_ext}$major'
21557     ;;
21558   esac
21559   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21560   postinstall_cmds='chmod 555 $lib'
21561   # or fails outright, so override atomically:
21562   install_override_mode=555
21563   ;;
21564
21565 interix[3-9]*)
21566   version_type=linux
21567   need_lib_prefix=no
21568   need_version=no
21569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21570   soname_spec='${libname}${release}${shared_ext}$major'
21571   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21572   shlibpath_var=LD_LIBRARY_PATH
21573   shlibpath_overrides_runpath=no
21574   hardcode_into_libs=yes
21575   ;;
21576
21577 irix5* | irix6* | nonstopux*)
21578   case $host_os in
21579     nonstopux*) version_type=nonstopux ;;
21580     *)
21581         if test "$lt_cv_prog_gnu_ld" = yes; then
21582                 version_type=linux
21583         else
21584                 version_type=irix
21585         fi ;;
21586   esac
21587   need_lib_prefix=no
21588   need_version=no
21589   soname_spec='${libname}${release}${shared_ext}$major'
21590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21591   case $host_os in
21592   irix5* | nonstopux*)
21593     libsuff= shlibsuff=
21594     ;;
21595   *)
21596     case $LD in # libtool.m4 will add one of these switches to LD
21597     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21598       libsuff= shlibsuff= libmagic=32-bit;;
21599     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21600       libsuff=32 shlibsuff=N32 libmagic=N32;;
21601     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21602       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21603     *) libsuff= shlibsuff= libmagic=never-match;;
21604     esac
21605     ;;
21606   esac
21607   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21608   shlibpath_overrides_runpath=no
21609   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21610   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21611   hardcode_into_libs=yes
21612   ;;
21613
21614 # No shared lib support for Linux oldld, aout, or coff.
21615 linux*oldld* | linux*aout* | linux*coff*)
21616   dynamic_linker=no
21617   ;;
21618
21619 # This must be Linux ELF.
21620 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21621   version_type=linux
21622   need_lib_prefix=no
21623   need_version=no
21624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21625   soname_spec='${libname}${release}${shared_ext}$major'
21626   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21627   shlibpath_var=LD_LIBRARY_PATH
21628   shlibpath_overrides_runpath=no
21629
21630   # Some binutils ld are patched to set DT_RUNPATH
21631   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21632   $as_echo_n "(cached) " >&6
21633 else
21634   lt_cv_shlibpath_overrides_runpath=no
21635     save_LDFLAGS=$LDFLAGS
21636     save_libdir=$libdir
21637     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21638          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21639     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21640 /* end confdefs.h.  */
21641
21642 int
21643 main ()
21644 {
21645
21646   ;
21647   return 0;
21648 }
21649 _ACEOF
21650 if ac_fn_cxx_try_link "$LINENO"; then :
21651   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21652   lt_cv_shlibpath_overrides_runpath=yes
21653 fi
21654 fi
21655 rm -f core conftest.err conftest.$ac_objext \
21656     conftest$ac_exeext conftest.$ac_ext
21657     LDFLAGS=$save_LDFLAGS
21658     libdir=$save_libdir
21659
21660 fi
21661
21662   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21663
21664   # This implies no fast_install, which is unacceptable.
21665   # Some rework will be needed to allow for fast_install
21666   # before this can be enabled.
21667   hardcode_into_libs=yes
21668
21669   # Append ld.so.conf contents to the search path
21670   if test -f /etc/ld.so.conf; then
21671     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
21672     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21673   fi
21674
21675   # We used to test for /lib/ld.so.1 and disable shared libraries on
21676   # powerpc, because MkLinux only supported shared libraries with the
21677   # GNU dynamic linker.  Since this was broken with cross compilers,
21678   # most powerpc-linux boxes support dynamic linking these days and
21679   # people can always --disable-shared, the test was removed, and we
21680   # assume the GNU/Linux dynamic linker is in use.
21681   dynamic_linker='GNU/Linux ld.so'
21682   ;;
21683
21684 netbsd*)
21685   version_type=sunos
21686   need_lib_prefix=no
21687   need_version=no
21688   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21689     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21690     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21691     dynamic_linker='NetBSD (a.out) ld.so'
21692   else
21693     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21694     soname_spec='${libname}${release}${shared_ext}$major'
21695     dynamic_linker='NetBSD ld.elf_so'
21696   fi
21697   shlibpath_var=LD_LIBRARY_PATH
21698   shlibpath_overrides_runpath=yes
21699   hardcode_into_libs=yes
21700   ;;
21701
21702 newsos6)
21703   version_type=linux
21704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21705   shlibpath_var=LD_LIBRARY_PATH
21706   shlibpath_overrides_runpath=yes
21707   ;;
21708
21709 *nto* | *qnx*)
21710   version_type=qnx
21711   need_lib_prefix=no
21712   need_version=no
21713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21714   soname_spec='${libname}${release}${shared_ext}$major'
21715   shlibpath_var=LD_LIBRARY_PATH
21716   shlibpath_overrides_runpath=no
21717   hardcode_into_libs=yes
21718   dynamic_linker='ldqnx.so'
21719   ;;
21720
21721 openbsd*)
21722   version_type=sunos
21723   sys_lib_dlsearch_path_spec="/usr/lib"
21724   need_lib_prefix=no
21725   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21726   case $host_os in
21727     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
21728     *)                          need_version=no  ;;
21729   esac
21730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21731   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21732   shlibpath_var=LD_LIBRARY_PATH
21733   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21734     case $host_os in
21735       openbsd2.[89] | openbsd2.[89].*)
21736         shlibpath_overrides_runpath=no
21737         ;;
21738       *)
21739         shlibpath_overrides_runpath=yes
21740         ;;
21741       esac
21742   else
21743     shlibpath_overrides_runpath=yes
21744   fi
21745   ;;
21746
21747 os2*)
21748   libname_spec='$name'
21749   shrext_cmds=".dll"
21750   need_lib_prefix=no
21751   library_names_spec='$libname${shared_ext} $libname.a'
21752   dynamic_linker='OS/2 ld.exe'
21753   shlibpath_var=LIBPATH
21754   ;;
21755
21756 osf3* | osf4* | osf5*)
21757   version_type=osf
21758   need_lib_prefix=no
21759   need_version=no
21760   soname_spec='${libname}${release}${shared_ext}$major'
21761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21762   shlibpath_var=LD_LIBRARY_PATH
21763   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21764   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21765   ;;
21766
21767 rdos*)
21768   dynamic_linker=no
21769   ;;
21770
21771 solaris*)
21772   version_type=linux
21773   need_lib_prefix=no
21774   need_version=no
21775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21776   soname_spec='${libname}${release}${shared_ext}$major'
21777   shlibpath_var=LD_LIBRARY_PATH
21778   shlibpath_overrides_runpath=yes
21779   hardcode_into_libs=yes
21780   # ldd complains unless libraries are executable
21781   postinstall_cmds='chmod +x $lib'
21782   ;;
21783
21784 sunos4*)
21785   version_type=sunos
21786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21787   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21788   shlibpath_var=LD_LIBRARY_PATH
21789   shlibpath_overrides_runpath=yes
21790   if test "$with_gnu_ld" = yes; then
21791     need_lib_prefix=no
21792   fi
21793   need_version=yes
21794   ;;
21795
21796 sysv4 | sysv4.3*)
21797   version_type=linux
21798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21799   soname_spec='${libname}${release}${shared_ext}$major'
21800   shlibpath_var=LD_LIBRARY_PATH
21801   case $host_vendor in
21802     sni)
21803       shlibpath_overrides_runpath=no
21804       need_lib_prefix=no
21805       runpath_var=LD_RUN_PATH
21806       ;;
21807     siemens)
21808       need_lib_prefix=no
21809       ;;
21810     motorola)
21811       need_lib_prefix=no
21812       need_version=no
21813       shlibpath_overrides_runpath=no
21814       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21815       ;;
21816   esac
21817   ;;
21818
21819 sysv4*MP*)
21820   if test -d /usr/nec ;then
21821     version_type=linux
21822     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21823     soname_spec='$libname${shared_ext}.$major'
21824     shlibpath_var=LD_LIBRARY_PATH
21825   fi
21826   ;;
21827
21828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21829   version_type=freebsd-elf
21830   need_lib_prefix=no
21831   need_version=no
21832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21833   soname_spec='${libname}${release}${shared_ext}$major'
21834   shlibpath_var=LD_LIBRARY_PATH
21835   shlibpath_overrides_runpath=yes
21836   hardcode_into_libs=yes
21837   if test "$with_gnu_ld" = yes; then
21838     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21839   else
21840     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21841     case $host_os in
21842       sco3.2v5*)
21843         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21844         ;;
21845     esac
21846   fi
21847   sys_lib_dlsearch_path_spec='/usr/lib'
21848   ;;
21849
21850 tpf*)
21851   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21852   version_type=linux
21853   need_lib_prefix=no
21854   need_version=no
21855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21856   shlibpath_var=LD_LIBRARY_PATH
21857   shlibpath_overrides_runpath=no
21858   hardcode_into_libs=yes
21859   ;;
21860
21861 uts4*)
21862   version_type=linux
21863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21864   soname_spec='${libname}${release}${shared_ext}$major'
21865   shlibpath_var=LD_LIBRARY_PATH
21866   ;;
21867
21868 *)
21869   dynamic_linker=no
21870   ;;
21871 esac
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21873 $as_echo "$dynamic_linker" >&6; }
21874 test "$dynamic_linker" = no && can_build_shared=no
21875
21876 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21877 if test "$GCC" = yes; then
21878   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21879 fi
21880
21881 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21882   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21883 fi
21884 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21885   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21886 fi
21887
21888
21889
21890
21891
21892
21893
21894
21895
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21926 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21927 hardcode_action_CXX=
21928 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21929    test -n "$runpath_var_CXX" ||
21930    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21931
21932   # We can hardcode non-existent directories.
21933   if test "$hardcode_direct_CXX" != no &&
21934      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21935      # have to relink, otherwise we might link with an installed library
21936      # when we should be linking with a yet-to-be-installed one
21937      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21938      test "$hardcode_minus_L_CXX" != no; then
21939     # Linking always hardcodes the temporary library directory.
21940     hardcode_action_CXX=relink
21941   else
21942     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21943     hardcode_action_CXX=immediate
21944   fi
21945 else
21946   # We cannot hardcode anything, or else we can only hardcode existing
21947   # directories.
21948   hardcode_action_CXX=unsupported
21949 fi
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21951 $as_echo "$hardcode_action_CXX" >&6; }
21952
21953 if test "$hardcode_action_CXX" = relink ||
21954    test "$inherit_rpath_CXX" = yes; then
21955   # Fast installation is not supported
21956   enable_fast_install=no
21957 elif test "$shlibpath_overrides_runpath" = yes ||
21958      test "$enable_shared" = no; then
21959   # Fast installation is not necessary
21960   enable_fast_install=needless
21961 fi
21962
21963
21964
21965
21966
21967
21968
21969   fi # test -n "$compiler"
21970
21971   CC=$lt_save_CC
21972   LDCXX=$LD
21973   LD=$lt_save_LD
21974   GCC=$lt_save_GCC
21975   with_gnu_ld=$lt_save_with_gnu_ld
21976   lt_cv_path_LDCXX=$lt_cv_path_LD
21977   lt_cv_path_LD=$lt_save_path_LD
21978   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21979   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21980 fi # test "$_lt_caught_CXX_error" != yes
21981
21982 ac_ext=cpp
21983 ac_cpp='$CXXCPP $CPPFLAGS'
21984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003 # Only expand once:
22004
22005
22006
22007
22008
22009 # Identify the assembler which will work hand-in-glove with the newly
22010 # built GCC, so that we can examine its features.  This is the assembler
22011 # which will be driven by the driver program.
22012 #
22013 # If build != host, and we aren't building gas in-tree, we identify a
22014 # build->target assembler and hope that it will have the same features
22015 # as the host->target assembler we'll be using.
22016 gcc_cv_gas_major_version=
22017 gcc_cv_gas_minor_version=
22018 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22019
22020 if ${gcc_cv_as+:} false; then :
22021
22022 else
22023
22024 if test -x "$DEFAULT_ASSEMBLER"; then
22025         gcc_cv_as="$DEFAULT_ASSEMBLER"
22026 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22027      && test -f ../gas/Makefile \
22028      && test x$build = x$host; then
22029         gcc_cv_as=../gas/as-new$build_exeext
22030 elif test -x as$build_exeext; then
22031         # Build using assembler in the current directory.
22032         gcc_cv_as=./as$build_exeext
22033 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22034         gcc_cv_as="$AS_FOR_TARGET"
22035 else
22036         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22037 set dummy $AS_FOR_TARGET; ac_word=$2
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22039 $as_echo_n "checking for $ac_word... " >&6; }
22040 if ${ac_cv_path_gcc_cv_as+:} false; then :
22041   $as_echo_n "(cached) " >&6
22042 else
22043   case $gcc_cv_as in
22044   [\\/]* | ?:[\\/]*)
22045   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22046   ;;
22047   *)
22048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22049 for as_dir in $PATH
22050 do
22051   IFS=$as_save_IFS
22052   test -z "$as_dir" && as_dir=.
22053     for ac_exec_ext in '' $ac_executable_extensions; do
22054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22055     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22057     break 2
22058   fi
22059 done
22060   done
22061 IFS=$as_save_IFS
22062
22063   ;;
22064 esac
22065 fi
22066 gcc_cv_as=$ac_cv_path_gcc_cv_as
22067 if test -n "$gcc_cv_as"; then
22068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22069 $as_echo "$gcc_cv_as" >&6; }
22070 else
22071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22072 $as_echo "no" >&6; }
22073 fi
22074
22075
22076 fi
22077 fi
22078
22079 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22080
22081 case "$ORIGINAL_AS_FOR_TARGET" in
22082   ./as | ./as$build_exeext) ;;
22083   *) ac_config_files="$ac_config_files as:exec-tool.in"
22084  ;;
22085 esac
22086
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22088 $as_echo_n "checking what assembler to use... " >&6; }
22089 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22090   # Single tree build which includes gas.  We want to prefer it
22091   # over whatever linker top-level may have detected, since
22092   # we'll use what we're building after installation anyway.
22093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22094 $as_echo "newly built gas" >&6; }
22095   in_tree_gas=yes
22096   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22097 for f in $gcc_cv_as_bfd_srcdir/configure \
22098          $gcc_cv_as_gas_srcdir/configure \
22099          $gcc_cv_as_gas_srcdir/configure.ac \
22100          $gcc_cv_as_gas_srcdir/Makefile.in ; do
22101   gcc_cv_gas_version=`sed -n -e 's/^[   ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22102   if test x$gcc_cv_gas_version != x; then
22103     break
22104   fi
22105 done
22106 case $gcc_cv_gas_version in
22107   VERSION=[0-9]*) ;;
22108   *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22109 esac
22110 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22111 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22112 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22113 case $gcc_cv_gas_patch_version in
22114   "") gcc_cv_gas_patch_version="0" ;;
22115 esac
22116 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22117                             + $gcc_cv_gas_minor_version \) \* 1000 \
22118                             + $gcc_cv_gas_patch_version`
22119
22120   in_tree_gas_is_elf=no
22121   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22122      || (grep 'obj_format = multi' ../gas/Makefile \
22123          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22124   then
22125     in_tree_gas_is_elf=yes
22126   fi
22127 else
22128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22129 $as_echo "$gcc_cv_as" >&6; }
22130   in_tree_gas=no
22131 fi
22132
22133 default_ld=
22134 # Check whether --enable-ld was given.
22135 if test "${enable_ld+set}" = set; then :
22136   enableval=$enable_ld; case "${enableval}" in
22137  no)
22138    default_ld=ld.gold
22139    ;;
22140  esac
22141 fi
22142
22143
22144 install_gold_as_default=no
22145 # Check whether --enable-gold was given.
22146 if test "${enable_gold+set}" = set; then :
22147   enableval=$enable_gold; case "${enableval}" in
22148  default)
22149    install_gold_as_default=yes
22150    ;;
22151  yes)
22152    if test x${default_ld} != x; then
22153      install_gold_as_default=yes
22154    fi
22155    ;;
22156  no)
22157    ;;
22158  *)
22159    as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22160    ;;
22161  esac
22162 fi
22163
22164
22165 # Identify the linker which will work hand-in-glove with the newly
22166 # built GCC, so that we can examine its features.  This is the linker
22167 # which will be driven by the driver program.
22168 #
22169 # If build != host, and we aren't building gas in-tree, we identify a
22170 # build->target linker and hope that it will have the same features
22171 # as the host->target linker we'll be using.
22172 gcc_cv_gld_major_version=
22173 gcc_cv_gld_minor_version=
22174 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22175 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22176 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22177
22178 if ${gcc_cv_ld+:} false; then :
22179
22180 else
22181
22182 if test -x "$DEFAULT_LINKER"; then
22183         gcc_cv_ld="$DEFAULT_LINKER"
22184 elif test $install_gold_as_default = yes \
22185      && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22186      && test -f ../gold/Makefile \
22187      && test x$build = x$host; then
22188         gcc_cv_ld=../gold/ld-new$build_exeext
22189 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22190      && test -f ../ld/Makefile \
22191      && test x$build = x$host; then
22192         gcc_cv_ld=../ld/ld-new$build_exeext
22193 elif test -x collect-ld$build_exeext; then
22194         # Build using linker in the current directory.
22195         gcc_cv_ld=./collect-ld$build_exeext
22196 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22197         gcc_cv_ld="$LD_FOR_TARGET"
22198 else
22199         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22200 set dummy $LD_FOR_TARGET; ac_word=$2
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22202 $as_echo_n "checking for $ac_word... " >&6; }
22203 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22204   $as_echo_n "(cached) " >&6
22205 else
22206   case $gcc_cv_ld in
22207   [\\/]* | ?:[\\/]*)
22208   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22209   ;;
22210   *)
22211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22212 for as_dir in $PATH
22213 do
22214   IFS=$as_save_IFS
22215   test -z "$as_dir" && as_dir=.
22216     for ac_exec_ext in '' $ac_executable_extensions; do
22217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22218     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22220     break 2
22221   fi
22222 done
22223   done
22224 IFS=$as_save_IFS
22225
22226   ;;
22227 esac
22228 fi
22229 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22230 if test -n "$gcc_cv_ld"; then
22231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22232 $as_echo "$gcc_cv_ld" >&6; }
22233 else
22234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22235 $as_echo "no" >&6; }
22236 fi
22237
22238
22239 fi
22240 fi
22241
22242 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22243 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22244 # if the PLUGIN_LD is set ld-new, just have it as ld
22245 # as that is the installed named.
22246 if test x$PLUGIN_LD_SUFFIX = xld-new \
22247    || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22248   PLUGIN_LD_SUFFIX=ld
22249 fi
22250
22251 # Check whether --with-plugin-ld was given.
22252 if test "${with_plugin_ld+set}" = set; then :
22253   withval=$with_plugin_ld; if test x"$withval" != x; then
22254    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22255    PLUGIN_LD_SUFFIX="$withval"
22256  fi
22257 fi
22258
22259
22260
22261 cat >>confdefs.h <<_ACEOF
22262 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22263 _ACEOF
22264
22265
22266 # Check to see if we are using gold instead of ld
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22268 $as_echo_n "checking whether we are using gold... " >&6; }
22269 ld_is_gold=no
22270 if test x$gcc_cv_ld != x; then
22271   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22272      | grep "GNU gold" > /dev/null; then
22273     ld_is_gold=yes
22274   fi
22275 fi
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22277 $as_echo "$ld_is_gold" >&6; }
22278
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22280 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22281 # Check to see if default ld is not gold, but gold is
22282 # available and has support for split stack.  If gcc was configured
22283 # with gold then no checking is done.
22284 #
22285 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22286
22287 # For platforms other than powerpc64*, enable as appropriate.
22288
22289   gold_non_default=no
22290   ld_gold=`which ${gcc_cv_ld}.gold`
22291 # Make sure this gold has minimal split stack support
22292   if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22293     ld_vers=`$ld_gold --version | sed 1q`
22294     gold_vers=`echo $ld_vers | sed -n \
22295           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22296     case $target in
22297 # check that the gold version contains the complete split stack support
22298 # on powerpc64 big and little endian
22299       powerpc64*-*-*)
22300         case "$gold_vers" in
22301           2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22302           ;;
22303           *) gold_non_default=no
22304           ;;
22305         esac
22306         ;;
22307     esac
22308   fi
22309   if test $gold_non_default = yes; then
22310
22311 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22312
22313   fi
22314 fi
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22316 $as_echo "$gold_non_default" >&6; }
22317
22318 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22319
22320 case "$ORIGINAL_LD_FOR_TARGET" in
22321   ./collect-ld | ./collect-ld$build_exeext) ;;
22322   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22323  ;;
22324 esac
22325
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22327 $as_echo_n "checking what linker to use... " >&6; }
22328 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22329    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22330         # Single tree build which includes ld.  We want to prefer it
22331         # over whatever linker top-level may have detected, since
22332         # we'll use what we're building after installation anyway.
22333         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22334 $as_echo "newly built ld" >&6; }
22335         in_tree_ld=yes
22336         in_tree_ld_is_elf=no
22337         if (grep 'EMUL = .*elf' ../ld/Makefile \
22338             || grep 'EMUL = .*linux' ../ld/Makefile \
22339             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22340           in_tree_ld_is_elf=yes
22341         elif test "$ld_is_gold" = yes; then
22342           in_tree_ld_is_elf=yes
22343         fi
22344         for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.ac $gcc_cv_ld_gld_srcdir/Makefile.in
22345         do
22346                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22347                 if test x$gcc_cv_gld_version != x; then
22348                         break
22349                 fi
22350         done
22351         case $gcc_cv_gld_version in
22352           VERSION=[0-9]*) ;;
22353           *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22354         esac
22355         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22356         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22357         ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22358         ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22359 else
22360         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22361 $as_echo "$gcc_cv_ld" >&6; }
22362         in_tree_ld=no
22363         gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22364         ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22365         ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22366 fi
22367
22368
22369
22370
22371 # Figure out what nm we will be using.
22372 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22373 if ${gcc_cv_nm+:} false; then :
22374
22375 else
22376
22377 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22378      && test -f ../binutils/Makefile \
22379      && test x$build = x$host; then
22380         gcc_cv_nm=../binutils/nm-new$build_exeext
22381 elif test -x nm$build_exeext; then
22382         gcc_cv_nm=./nm$build_exeext
22383 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22384         gcc_cv_nm="$NM_FOR_TARGET"
22385 else
22386         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22387 set dummy $NM_FOR_TARGET; ac_word=$2
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22389 $as_echo_n "checking for $ac_word... " >&6; }
22390 if ${ac_cv_path_gcc_cv_nm+:} false; then :
22391   $as_echo_n "(cached) " >&6
22392 else
22393   case $gcc_cv_nm in
22394   [\\/]* | ?:[\\/]*)
22395   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22396   ;;
22397   *)
22398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22399 for as_dir in $PATH
22400 do
22401   IFS=$as_save_IFS
22402   test -z "$as_dir" && as_dir=.
22403     for ac_exec_ext in '' $ac_executable_extensions; do
22404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22405     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22407     break 2
22408   fi
22409 done
22410   done
22411 IFS=$as_save_IFS
22412
22413   ;;
22414 esac
22415 fi
22416 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22417 if test -n "$gcc_cv_nm"; then
22418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22419 $as_echo "$gcc_cv_nm" >&6; }
22420 else
22421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22422 $as_echo "no" >&6; }
22423 fi
22424
22425
22426 fi
22427 fi
22428
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22430 $as_echo_n "checking what nm to use... " >&6; }
22431 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22432         # Single tree build which includes binutils.
22433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22434 $as_echo "newly built nm" >&6; }
22435         in_tree_nm=yes
22436 else
22437         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22438 $as_echo "$gcc_cv_nm" >&6; }
22439         in_tree_nm=no
22440 fi
22441
22442 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22443
22444 case "$ORIGINAL_NM_FOR_TARGET" in
22445   ./nm | ./nm$build_exeext) ;;
22446   *) ac_config_files="$ac_config_files nm:exec-tool.in"
22447  ;;
22448 esac
22449
22450
22451 # Figure out what objdump we will be using.
22452 if ${gcc_cv_objdump+:} false; then :
22453
22454 else
22455
22456 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22457      && test -f ../binutils/Makefile \
22458      && test x$build = x$host; then
22459         # Single tree build which includes binutils.
22460         gcc_cv_objdump=../binutils/objdump$build_exeext
22461 elif test -x objdump$build_exeext; then
22462         gcc_cv_objdump=./objdump$build_exeext
22463 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22464         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22465 else
22466         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22467 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22469 $as_echo_n "checking for $ac_word... " >&6; }
22470 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22471   $as_echo_n "(cached) " >&6
22472 else
22473   case $gcc_cv_objdump in
22474   [\\/]* | ?:[\\/]*)
22475   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22476   ;;
22477   *)
22478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22479 for as_dir in $PATH
22480 do
22481   IFS=$as_save_IFS
22482   test -z "$as_dir" && as_dir=.
22483     for ac_exec_ext in '' $ac_executable_extensions; do
22484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22485     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22487     break 2
22488   fi
22489 done
22490   done
22491 IFS=$as_save_IFS
22492
22493   ;;
22494 esac
22495 fi
22496 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22497 if test -n "$gcc_cv_objdump"; then
22498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22499 $as_echo "$gcc_cv_objdump" >&6; }
22500 else
22501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22502 $as_echo "no" >&6; }
22503 fi
22504
22505
22506 fi
22507 fi
22508
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22510 $as_echo_n "checking what objdump to use... " >&6; }
22511 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22512         # Single tree build which includes binutils.
22513         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22514 $as_echo "newly built objdump" >&6; }
22515 elif test x$gcc_cv_objdump = x; then
22516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22517 $as_echo "not found" >&6; }
22518 else
22519         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22520 $as_echo "$gcc_cv_objdump" >&6; }
22521 fi
22522
22523 # Figure out what readelf we will be using.
22524 if ${gcc_cv_readelf+:} false; then :
22525
22526 else
22527
22528 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22529      && test -f ../binutils/Makefile \
22530      && test x$build = x$host; then
22531         # Single tree build which includes binutils.
22532         gcc_cv_readelf=../binutils/readelf$build_exeext
22533 elif test -x readelf$build_exeext; then
22534         gcc_cv_readelf=./readelf$build_exeext
22535 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22536         gcc_cv_readelf="$READELF_FOR_TARGET"
22537 else
22538         # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22539 set dummy $READELF_FOR_TARGET; ac_word=$2
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22541 $as_echo_n "checking for $ac_word... " >&6; }
22542 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22543   $as_echo_n "(cached) " >&6
22544 else
22545   case $gcc_cv_readelf in
22546   [\\/]* | ?:[\\/]*)
22547   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22548   ;;
22549   *)
22550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22551 for as_dir in $PATH
22552 do
22553   IFS=$as_save_IFS
22554   test -z "$as_dir" && as_dir=.
22555     for ac_exec_ext in '' $ac_executable_extensions; do
22556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22557     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22559     break 2
22560   fi
22561 done
22562   done
22563 IFS=$as_save_IFS
22564
22565   ;;
22566 esac
22567 fi
22568 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22569 if test -n "$gcc_cv_readelf"; then
22570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22571 $as_echo "$gcc_cv_readelf" >&6; }
22572 else
22573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22574 $as_echo "no" >&6; }
22575 fi
22576
22577
22578 fi
22579 fi
22580
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22582 $as_echo_n "checking what readelf to use... " >&6; }
22583 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22584         # Single tree build which includes binutils.
22585         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22586 $as_echo "newly built readelf" >&6; }
22587 elif test x$gcc_cv_readelf = x; then
22588         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22589 $as_echo "not found" >&6; }
22590 else
22591         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22592 $as_echo "$gcc_cv_readelf" >&6; }
22593 fi
22594
22595 # Figure out what otool we will be using.
22596 if ${gcc_cv_otool+:} false; then :
22597
22598 else
22599
22600 if test -x otool$build_exeext; then
22601         gcc_cv_otool=./otool$build_exeext
22602 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22603         gcc_cv_otool="$OTOOL_FOR_TARGET"
22604 else
22605         # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22606 set dummy $OTOOL_FOR_TARGET; ac_word=$2
22607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22608 $as_echo_n "checking for $ac_word... " >&6; }
22609 if ${ac_cv_path_gcc_cv_otool+:} false; then :
22610   $as_echo_n "(cached) " >&6
22611 else
22612   case $gcc_cv_otool in
22613   [\\/]* | ?:[\\/]*)
22614   ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
22615   ;;
22616   *)
22617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22618 for as_dir in $PATH
22619 do
22620   IFS=$as_save_IFS
22621   test -z "$as_dir" && as_dir=.
22622     for ac_exec_ext in '' $ac_executable_extensions; do
22623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22624     ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
22625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22626     break 2
22627   fi
22628 done
22629   done
22630 IFS=$as_save_IFS
22631
22632   ;;
22633 esac
22634 fi
22635 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
22636 if test -n "$gcc_cv_otool"; then
22637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22638 $as_echo "$gcc_cv_otool" >&6; }
22639 else
22640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22641 $as_echo "no" >&6; }
22642 fi
22643
22644
22645 fi
22646 fi
22647
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22649 $as_echo_n "checking what otool to use... " >&6; }
22650 if test x$gcc_cv_otool = x; then
22651         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22652 $as_echo "not found" >&6; }
22653 else
22654         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22655 $as_echo "$gcc_cv_otool" >&6; }
22656 fi
22657
22658 # Figure out what assembler alignment features are present.
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22660 $as_echo_n "checking assembler flags... " >&6; }
22661 if ${gcc_cv_as_flags+:} false; then :
22662   $as_echo_n "(cached) " >&6
22663 else
22664    case "$target" in
22665   i[34567]86-*-linux*)
22666         gcc_cv_as_flags=--32
22667     ;;
22668   x86_64-*-linux-gnux32)
22669         gcc_cv_as_flags=--x32
22670     ;;
22671   x86_64-*-linux*)
22672         gcc_cv_as_flags=--64
22673     ;;
22674   powerpc*-*-darwin*)
22675         gcc_cv_as_flags="-arch ppc"
22676     ;;
22677   *)
22678     gcc_cv_as_flags=" "
22679     ;;
22680   esac
22681 fi
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22683 $as_echo "$gcc_cv_as_flags" >&6; }
22684
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22686 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22687 if ${gcc_cv_as_balign_and_p2align+:} false; then :
22688   $as_echo_n "(cached) " >&6
22689 else
22690   gcc_cv_as_balign_and_p2align=no
22691     if test $in_tree_gas = yes; then
22692     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22693   then gcc_cv_as_balign_and_p2align=yes
22694 fi
22695   elif test x$gcc_cv_as != x; then
22696     $as_echo '.balign 4
22697 .p2align 2' > conftest.s
22698     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22699   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22700   (eval $ac_try) 2>&5
22701   ac_status=$?
22702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22703   test $ac_status = 0; }; }
22704     then
22705         gcc_cv_as_balign_and_p2align=yes
22706     else
22707       echo "configure: failed program was" >&5
22708       cat conftest.s >&5
22709     fi
22710     rm -f conftest.o conftest.s
22711   fi
22712 fi
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22714 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22715 if test $gcc_cv_as_balign_and_p2align = yes; then
22716
22717 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22718
22719 fi
22720
22721
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22723 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22724 if ${gcc_cv_as_max_skip_p2align+:} false; then :
22725   $as_echo_n "(cached) " >&6
22726 else
22727   gcc_cv_as_max_skip_p2align=no
22728     if test $in_tree_gas = yes; then
22729     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22730   then gcc_cv_as_max_skip_p2align=yes
22731 fi
22732   elif test x$gcc_cv_as != x; then
22733     $as_echo '.p2align 4,,7' > conftest.s
22734     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22735   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22736   (eval $ac_try) 2>&5
22737   ac_status=$?
22738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22739   test $ac_status = 0; }; }
22740     then
22741         gcc_cv_as_max_skip_p2align=yes
22742     else
22743       echo "configure: failed program was" >&5
22744       cat conftest.s >&5
22745     fi
22746     rm -f conftest.o conftest.s
22747   fi
22748 fi
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22750 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22751 if test $gcc_cv_as_max_skip_p2align = yes; then
22752
22753 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22754
22755 fi
22756
22757
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22759 $as_echo_n "checking assembler for .literal16... " >&6; }
22760 if ${gcc_cv_as_literal16+:} false; then :
22761   $as_echo_n "(cached) " >&6
22762 else
22763   gcc_cv_as_literal16=no
22764     if test $in_tree_gas = yes; then
22765     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22766   then gcc_cv_as_literal16=yes
22767 fi
22768   elif test x$gcc_cv_as != x; then
22769     $as_echo '.literal16' > conftest.s
22770     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22771   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22772   (eval $ac_try) 2>&5
22773   ac_status=$?
22774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22775   test $ac_status = 0; }; }
22776     then
22777         gcc_cv_as_literal16=yes
22778     else
22779       echo "configure: failed program was" >&5
22780       cat conftest.s >&5
22781     fi
22782     rm -f conftest.o conftest.s
22783   fi
22784 fi
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22786 $as_echo "$gcc_cv_as_literal16" >&6; }
22787 if test $gcc_cv_as_literal16 = yes; then
22788
22789 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22790
22791 fi
22792
22793
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22795 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22796 if ${gcc_cv_as_subsection_m1+:} false; then :
22797   $as_echo_n "(cached) " >&6
22798 else
22799   gcc_cv_as_subsection_m1=no
22800     if test $in_tree_gas = yes; then
22801     if test $in_tree_gas_is_elf = yes \
22802   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22803   then gcc_cv_as_subsection_m1=yes
22804 fi
22805   elif test x$gcc_cv_as != x; then
22806     $as_echo 'conftest_label1: .word 0
22807 .subsection -1
22808 conftest_label2: .word 0
22809 .previous' > conftest.s
22810     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22811   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22812   (eval $ac_try) 2>&5
22813   ac_status=$?
22814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22815   test $ac_status = 0; }; }
22816     then
22817         if test x$gcc_cv_nm != x; then
22818     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22819     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22820     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22821     then :
22822     else gcc_cv_as_subsection_m1=yes
22823     fi
22824     rm -f conftest.nm1 conftest.nm2
22825   fi
22826     else
22827       echo "configure: failed program was" >&5
22828       cat conftest.s >&5
22829     fi
22830     rm -f conftest.o conftest.s
22831   fi
22832 fi
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22834 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22835 if test $gcc_cv_as_subsection_m1 = yes; then
22836
22837 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22838
22839 fi
22840
22841
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22843 $as_echo_n "checking assembler for .weak... " >&6; }
22844 if ${gcc_cv_as_weak+:} false; then :
22845   $as_echo_n "(cached) " >&6
22846 else
22847   gcc_cv_as_weak=no
22848     if test $in_tree_gas = yes; then
22849     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22850   then gcc_cv_as_weak=yes
22851 fi
22852   elif test x$gcc_cv_as != x; then
22853     $as_echo '  .weak foobar' > conftest.s
22854     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22855   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22856   (eval $ac_try) 2>&5
22857   ac_status=$?
22858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22859   test $ac_status = 0; }; }
22860     then
22861         gcc_cv_as_weak=yes
22862     else
22863       echo "configure: failed program was" >&5
22864       cat conftest.s >&5
22865     fi
22866     rm -f conftest.o conftest.s
22867   fi
22868 fi
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22870 $as_echo "$gcc_cv_as_weak" >&6; }
22871 if test $gcc_cv_as_weak = yes; then
22872
22873 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22874
22875 fi
22876
22877
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22879 $as_echo_n "checking assembler for .weakref... " >&6; }
22880 if ${gcc_cv_as_weakref+:} false; then :
22881   $as_echo_n "(cached) " >&6
22882 else
22883   gcc_cv_as_weakref=no
22884     if test $in_tree_gas = yes; then
22885     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22886   then gcc_cv_as_weakref=yes
22887 fi
22888   elif test x$gcc_cv_as != x; then
22889     $as_echo '  .weakref foobar, barfnot' > conftest.s
22890     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22891   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22892   (eval $ac_try) 2>&5
22893   ac_status=$?
22894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22895   test $ac_status = 0; }; }
22896     then
22897         gcc_cv_as_weakref=yes
22898     else
22899       echo "configure: failed program was" >&5
22900       cat conftest.s >&5
22901     fi
22902     rm -f conftest.o conftest.s
22903   fi
22904 fi
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22906 $as_echo "$gcc_cv_as_weakref" >&6; }
22907 if test $gcc_cv_as_weakref = yes; then
22908
22909 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22910
22911 fi
22912
22913
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22915 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22916 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
22917   $as_echo_n "(cached) " >&6
22918 else
22919   gcc_cv_as_nsubspa_comdat=no
22920     if test $in_tree_gas = yes; then
22921     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22922   then gcc_cv_as_nsubspa_comdat=yes
22923 fi
22924   elif test x$gcc_cv_as != x; then
22925     $as_echo '  .SPACE $TEXT$
22926         .NSUBSPA $CODE$,COMDAT' > conftest.s
22927     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22928   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22929   (eval $ac_try) 2>&5
22930   ac_status=$?
22931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22932   test $ac_status = 0; }; }
22933     then
22934         gcc_cv_as_nsubspa_comdat=yes
22935     else
22936       echo "configure: failed program was" >&5
22937       cat conftest.s >&5
22938     fi
22939     rm -f conftest.o conftest.s
22940   fi
22941 fi
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22943 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22944 if test $gcc_cv_as_nsubspa_comdat = yes; then
22945
22946 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22947
22948 fi
22949
22950
22951 # .hidden needs to be supported in both the assembler and the linker,
22952 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22953 # This is irritatingly difficult to feature test for; we have to check the
22954 # date string after the version number.  If we've got an in-tree
22955 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22956 # to be safe.
22957 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22958 case "${target}" in
22959   *-*-aix*)
22960     conftest_s='        .globl foobar,hidden'
22961     ;;
22962   *)
22963     conftest_s='        .hidden foobar
22964 foobar:'
22965     ;;
22966 esac
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22968 $as_echo_n "checking assembler for .hidden... " >&6; }
22969 if ${gcc_cv_as_hidden+:} false; then :
22970   $as_echo_n "(cached) " >&6
22971 else
22972   gcc_cv_as_hidden=no
22973     if test $in_tree_gas = yes; then
22974     if test $in_tree_gas_is_elf = yes \
22975   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22976   then gcc_cv_as_hidden=yes
22977 fi
22978   elif test x$gcc_cv_as != x; then
22979     $as_echo "$conftest_s" > conftest.s
22980     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22981   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22982   (eval $ac_try) 2>&5
22983   ac_status=$?
22984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22985   test $ac_status = 0; }; }
22986     then
22987         gcc_cv_as_hidden=yes
22988     else
22989       echo "configure: failed program was" >&5
22990       cat conftest.s >&5
22991     fi
22992     rm -f conftest.o conftest.s
22993   fi
22994 fi
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22996 $as_echo "$gcc_cv_as_hidden" >&6; }
22997
22998
22999 case "${target}" in
23000   *-*-darwin*)
23001     # Darwin as has some visibility support, though with a different syntax.
23002     gcc_cv_as_hidden=yes
23003     ;;
23004 esac
23005
23006 # gnu_indirect_function type is an extension proposed at
23007 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23008 # selection of function implementation
23009 # Check whether --enable-gnu-indirect-function was given.
23010 if test "${enable_gnu_indirect_function+set}" = set; then :
23011   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23012     yes | no) ;;
23013     *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23014 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23015   esac
23016 else
23017   enable_gnu_indirect_function="$default_gnu_indirect_function"
23018 fi
23019
23020
23021 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23022
23023 cat >>confdefs.h <<_ACEOF
23024 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23025 _ACEOF
23026
23027
23028
23029 if test $in_tree_ld != yes ; then
23030   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23031   if echo "$ld_ver" | grep GNU > /dev/null; then
23032     if test x"$ld_is_gold" = xyes; then
23033       # GNU gold --version looks like this:
23034       #
23035       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23036       #
23037       # We extract the binutils version which is more familiar and specific
23038       # than the gold version.
23039       ld_vers=`echo $ld_ver | sed -n \
23040           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23041     else
23042       # GNU ld --version looks like this:
23043       #
23044       # GNU ld (GNU Binutils) 2.21.51.20110225
23045       ld_vers=`echo $ld_ver | sed -n \
23046           -e 's,^.*[     ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23047     fi
23048     ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
23049     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23050     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23051     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23052   else
23053     case "${target}" in
23054       *-*-solaris2*)
23055         # Solaris 2 ld -V output looks like this for a regular version:
23056         #
23057         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23058         #
23059         # but test versions add stuff at the end:
23060         #
23061         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23062         #
23063         # In Solaris 11.4, this was changed to
23064         #
23065         # ld: Solaris ELF Utilities: 11.4-1.3123
23066         #
23067         # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23068         # numbers can be used in ld.so.1 feature checks even if a different
23069         # linker is configured.
23070         ld_ver=`$gcc_cv_ld -V 2>&1`
23071         if echo "$ld_ver" | $EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev/null; then
23072           ld_vers=`echo $ld_ver | sed -n \
23073             -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
23074           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23075           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23076         fi
23077         ;;
23078     esac
23079   fi
23080 fi
23081
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23083 $as_echo_n "checking linker for .hidden support... " >&6; }
23084 if ${gcc_cv_ld_hidden+:} false; then :
23085   $as_echo_n "(cached) " >&6
23086 else
23087   if test $in_tree_ld = yes ; then
23088   gcc_cv_ld_hidden=no
23089   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
23090      && test $in_tree_ld_is_elf = yes; then
23091      gcc_cv_ld_hidden=yes
23092   fi
23093 else
23094   gcc_cv_ld_hidden=yes
23095   if test x"$ld_is_gold" = xyes; then
23096     :
23097   elif echo "$ld_ver" | grep GNU > /dev/null; then
23098     case "${target}" in
23099       mmix-knuth-mmixware)
23100         # The linker emits by default mmo, not ELF, so "no" is appropriate.
23101         gcc_cv_ld_hidden=no
23102         ;;
23103     esac
23104     if test 0"$ld_date" -lt 20020404; then
23105       if test -n "$ld_date"; then
23106         # If there was date string, but was earlier than 2002-04-04, fail
23107         gcc_cv_ld_hidden=no
23108       elif test -z "$ld_vers"; then
23109         # If there was no date string nor ld version number, something is wrong
23110         gcc_cv_ld_hidden=no
23111       else
23112         test -z "$ld_vers_patch" && ld_vers_patch=0
23113         if test "$ld_vers_major" -lt 2; then
23114           gcc_cv_ld_hidden=no
23115         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23116           gcc_cv_ld_hidden="no"
23117         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23118           gcc_cv_ld_hidden=no
23119         fi
23120       fi
23121     fi
23122   else
23123     case "${target}" in
23124       *-*-aix[789]*)
23125         gcc_cv_ld_hidden=yes
23126         ;;
23127       *-*-darwin*)
23128         # Darwin ld has some visibility support.
23129         gcc_cv_ld_hidden=yes
23130         ;;
23131       hppa64*-*-hpux* | ia64*-*-hpux*)
23132         gcc_cv_ld_hidden=yes
23133         ;;
23134       *-*-solaris2.1[0-9]*)
23135         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23136         # .symbolic was only added in Solaris 9 12/02.
23137         gcc_cv_ld_hidden=yes
23138         ;;
23139       *)
23140         gcc_cv_ld_hidden=no
23141         ;;
23142     esac
23143   fi
23144 fi
23145 fi
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23147 $as_echo "$gcc_cv_ld_hidden" >&6; }
23148 libgcc_visibility=no
23149
23150
23151 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23152   libgcc_visibility=yes
23153
23154 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23155
23156 fi
23157
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23159 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23160 gcc_cv_ld_ro_rw_mix=unknown
23161 if test $in_tree_ld = yes ; then
23162   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
23163      && test $in_tree_ld_is_elf = yes; then
23164     gcc_cv_ld_ro_rw_mix=read-write
23165   fi
23166 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23167   echo '.section myfoosect, "a"' > conftest1.s
23168   echo '.section myfoosect, "aw"' > conftest2.s
23169   echo '.byte 1' >> conftest2.s
23170   echo '.section myfoosect, "a"' > conftest3.s
23171   echo '.byte 0' >> conftest3.s
23172   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23173      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23174      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23175      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23176         conftest2.o conftest3.o > /dev/null 2>&1; then
23177     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23178                          | sed -e '/myfoosect/!d' -e N`
23179     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23180       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23181         gcc_cv_ld_ro_rw_mix=read-only
23182       else
23183         gcc_cv_ld_ro_rw_mix=read-write
23184       fi
23185     fi
23186   fi
23187   rm -f conftest.* conftest[123].*
23188 fi
23189 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23190
23191 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23192
23193 fi
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23195 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23196
23197 # Check whether --enable-initfini-array was given.
23198 if test "${enable_initfini_array+set}" = set; then :
23199   enableval=$enable_initfini_array;
23200 else
23201
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23203 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23204 if ${gcc_cv_initfini_array+:} false; then :
23205   $as_echo_n "(cached) " >&6
23206 else
23207     if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23208     case "${target}" in
23209       ia64-*)
23210         if test "$cross_compiling" = yes; then :
23211   gcc_cv_initfini_array=no
23212 else
23213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23214 /* end confdefs.h.  */
23215
23216 #ifndef __ELF__
23217 #error Not an ELF OS
23218 #endif
23219 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23220    if it can be used.  */
23221 static int x = -1;
23222 int main (void) { return x; }
23223 int foo (void) { x = 0; }
23224 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23225
23226 _ACEOF
23227 if ac_fn_cxx_try_run "$LINENO"; then :
23228   gcc_cv_initfini_array=yes
23229 else
23230   gcc_cv_initfini_array=no
23231 fi
23232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23233   conftest.$ac_objext conftest.beam conftest.$ac_ext
23234 fi
23235 ;;
23236       *)
23237         gcc_cv_initfini_array=no
23238         if test $in_tree_ld = yes ; then
23239           if test "$gcc_cv_gld_major_version" -eq 2 \
23240              -a "$gcc_cv_gld_minor_version" -ge 22 \
23241              -o "$gcc_cv_gld_major_version" -gt 2 \
23242              && test $in_tree_ld_is_elf = yes; then
23243             gcc_cv_initfini_array=yes
23244           fi
23245         elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23246           case $target:$gas in
23247             *:yes)
23248               sh_flags='"a"'
23249               sh_type='%progbits'
23250               ;;
23251             i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23252               sh_flags='"a"'
23253               sh_type='@progbits'
23254               ;;
23255             sparc*-*-solaris2*:no)
23256               sh_flags='#alloc'
23257               sh_type='#progbits'
23258               sh_quote='"'
23259               ;;
23260           esac
23261           case "$target:$gnu_ld" in
23262             *:yes)
23263               cat > conftest.s <<EOF
23264 .section .dtors,$sh_flags,$sh_type
23265 .balign 4
23266 .byte 'A', 'A', 'A', 'A'
23267 .section .ctors,$sh_flags,$sh_type
23268 .balign 4
23269 .byte 'B', 'B', 'B', 'B'
23270 .section .fini_array.65530,$sh_flags,$sh_type
23271 .balign 4
23272 .byte 'C', 'C', 'C', 'C'
23273 .section .init_array.65530,$sh_flags,$sh_type
23274 .balign 4
23275 .byte 'D', 'D', 'D', 'D'
23276 .section .dtors.64528,$sh_flags,$sh_type
23277 .balign 4
23278 .byte 'E', 'E', 'E', 'E'
23279 .section .ctors.64528,$sh_flags,$sh_type
23280 .balign 4
23281 .byte 'F', 'F', 'F', 'F'
23282 .section .fini_array.01005,$sh_flags,$sh_type
23283 .balign 4
23284 .byte 'G', 'G', 'G', 'G'
23285 .section .init_array.01005,$sh_flags,$sh_type
23286 .balign 4
23287 .byte 'H', 'H', 'H', 'H'
23288 .text
23289 .globl _start
23290 _start:
23291 EOF
23292               if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23293                  && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23294                  && $gcc_cv_objdump -s -j .init_array conftest \
23295                     | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23296                  && $gcc_cv_objdump -s -j .fini_array conftest \
23297                     | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23298                 gcc_cv_initfini_array=yes
23299               fi
23300               ;;
23301             *-*-solaris2*:no)
23302               # When Solaris ld added constructor priority support, it was
23303               # decided to only handle .init_array.N/.fini_array.N since
23304               # there was no need for backwards compatibility with
23305               # .ctors.N/.dtors.N.  .ctors/.dtors remain as separate
23306               # sections with correct execution order resp. to
23307               # .init_array/.fini_array, while gld merges them into
23308               # .init_array/.fini_array.
23309               cat > conftest.s <<EOF
23310 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23311 .align 4
23312 .byte 'C', 'C', 'C', 'C'
23313 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23314 .align 4
23315 .byte 'D', 'D', 'D', 'D'
23316 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23317 .align 4
23318 .byte 'G', 'G', 'G', 'G'
23319 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23320 .align 4
23321 .byte 'H', 'H', 'H', 'H'
23322 .text
23323 .globl _start
23324 _start:
23325 EOF
23326               if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23327                  && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23328                  && $gcc_cv_objdump -s -j .init_array conftest \
23329                     | grep HHHHDDDD > /dev/null 2>&1 \
23330                  && $gcc_cv_objdump -s -j .fini_array conftest \
23331                     | grep GGGGCCCC > /dev/null 2>&1; then
23332                 gcc_cv_initfini_array=yes
23333               fi
23334               ;;
23335             esac
23336           rm -f conftest conftest.*
23337         fi
23338         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23339 /* end confdefs.h.  */
23340
23341 #ifndef __ELF__
23342 # error Not an ELF OS
23343 #endif
23344 #include <stdlib.h>
23345 #if defined __GLIBC_PREREQ
23346 # if __GLIBC_PREREQ (2, 4)
23347 # else
23348 #  error GLIBC 2.4 required
23349 # endif
23350 #else
23351 # if defined __sun__ && defined __svr4__
23352    /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8.  */
23353 # else
23354 #  error The C library not known to support .init_array/.fini_array
23355 # endif
23356 #endif
23357
23358 _ACEOF
23359 if ac_fn_cxx_try_cpp "$LINENO"; then :
23360
23361 else
23362   gcc_cv_initfini_array=no
23363 fi
23364 rm -f conftest.err conftest.i conftest.$ac_ext;;
23365     esac
23366   else
23367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23368 $as_echo_n "checking cross compile... guessing... " >&6; }
23369     gcc_cv_initfini_array=no
23370   fi
23371 fi
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23373 $as_echo "$gcc_cv_initfini_array" >&6; }
23374   enable_initfini_array=$gcc_cv_initfini_array
23375
23376 fi
23377
23378
23379 cat >>confdefs.h <<_ACEOF
23380 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23381 _ACEOF
23382
23383
23384
23385 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23387 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23388 if ${gcc_cv_as_leb128+:} false; then :
23389   $as_echo_n "(cached) " >&6
23390 else
23391   gcc_cv_as_leb128=no
23392     if test $in_tree_gas = yes; then
23393     if test $in_tree_gas_is_elf = yes \
23394   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23395   then gcc_cv_as_leb128=yes
23396 fi
23397   elif test x$gcc_cv_as != x; then
23398     $as_echo '  .data
23399         .uleb128 L2 - L1
23400 L1:
23401         .uleb128 1280
23402         .sleb128 -1010
23403 L2:' > conftest.s
23404     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23405   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23406   (eval $ac_try) 2>&5
23407   ac_status=$?
23408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23409   test $ac_status = 0; }; }
23410     then
23411         # GAS versions before 2.11 do not support uleb128,
23412   # despite appearing to.
23413   # ??? There exists an elf-specific test that will crash
23414   # the assembler.  Perhaps it's better to figure out whether
23415   # arbitrary sections are supported and try the test.
23416   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23417   if echo "$as_ver" | grep GNU > /dev/null; then
23418     as_vers=`echo $as_ver | sed -n \
23419         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23420     as_major=`expr "$as_vers" : '\([0-9]*\)'`
23421     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23422     if test $as_major -eq 2 && test $as_minor -lt 11
23423     then :
23424     else gcc_cv_as_leb128=yes
23425     fi
23426   fi
23427     else
23428       echo "configure: failed program was" >&5
23429       cat conftest.s >&5
23430     fi
23431     rm -f conftest.o conftest.s
23432   fi
23433 fi
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23435 $as_echo "$gcc_cv_as_leb128" >&6; }
23436 if test $gcc_cv_as_leb128 = yes; then
23437
23438 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23439
23440 fi
23441 if test $gcc_cv_as_leb128 != yes; then
23442
23443 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23444
23445 fi
23446
23447 # Determine if an .eh_frame section is read-only.
23448 gcc_fn_eh_frame_ro () {
23449   $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23450     $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23451     sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23452 }
23453
23454 # Check if we have assembler support for unwind directives.
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23456 $as_echo_n "checking assembler for cfi directives... " >&6; }
23457 if ${gcc_cv_as_cfi_directive+:} false; then :
23458   $as_echo_n "(cached) " >&6
23459 else
23460   gcc_cv_as_cfi_directive=no
23461   if test x$gcc_cv_as != x; then
23462     $as_echo '  .text
23463         .cfi_startproc
23464         .cfi_offset 0, 0
23465         .cfi_same_value 1
23466         .cfi_def_cfa 1, 2
23467         .cfi_escape 1, 2, 3, 4, 5
23468         .cfi_endproc' > conftest.s
23469     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23470   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23471   (eval $ac_try) 2>&5
23472   ac_status=$?
23473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23474   test $ac_status = 0; }; }
23475     then
23476         case "$target" in
23477   *-*-solaris*)
23478     # If the linker used on Solaris (like Sun ld) isn't capable of merging
23479     # read-only and read-write sections, we need to make sure that the
23480     # assembler used emits read-write .eh_frame sections.
23481     if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23482       gcc_cv_as_cfi_directive=yes
23483     elif test "x$gcc_cv_objdump" = x; then
23484       # No objdump, err on the side of caution.
23485       gcc_cv_as_cfi_directive=no
23486     else
23487       if test x$gas = xyes; then
23488         as_32_opt="--32"
23489         as_64_opt="--64"
23490       else
23491         as_32_opt="-m32"
23492         as_64_opt="-m64"
23493       fi
23494       case "$target" in
23495         sparc*-*-solaris2.*)
23496           # On Solaris/SPARC, .eh_frame sections should always be read-write.
23497           if gcc_fn_eh_frame_ro $as_32_opt \
23498              || gcc_fn_eh_frame_ro $as_64_opt; then
23499             gcc_cv_as_cfi_directive=no
23500           else
23501             gcc_cv_as_cfi_directive=yes
23502           fi
23503           ;;
23504         i?86-*-solaris2.* | x86_64-*-solaris2.*)
23505           # On Solaris/x86, make sure that GCC and assembler agree on using
23506           # read-only .eh_frame sections for 64-bit.
23507           if gcc_fn_eh_frame_ro $as_32_opt; then
23508             gcc_cv_as_cfi_directive=no
23509           elif gcc_fn_eh_frame_ro $as_64_opt; then
23510             gcc_cv_as_cfi_directive=yes
23511           else
23512             gcc_cv_as_cfi_directive=no
23513           fi
23514           ;;
23515       esac
23516     fi
23517     ;;
23518   *-*-*)
23519     gcc_cv_as_cfi_directive=yes
23520     ;;
23521 esac
23522     else
23523       echo "configure: failed program was" >&5
23524       cat conftest.s >&5
23525     fi
23526     rm -f conftest.o conftest.s
23527   fi
23528 fi
23529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23530 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23531
23532
23533 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23535 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23536 if ${gcc_cv_as_cfi_advance_working+:} false; then :
23537   $as_echo_n "(cached) " >&6
23538 else
23539   gcc_cv_as_cfi_advance_working=no
23540   if test x$gcc_cv_as != x; then
23541     $as_echo '  .text
23542         .cfi_startproc
23543         .cfi_adjust_cfa_offset 64
23544         .skip 75040, 0
23545         .cfi_adjust_cfa_offset 128
23546         .cfi_endproc' > conftest.s
23547     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23548   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23549   (eval $ac_try) 2>&5
23550   ac_status=$?
23551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23552   test $ac_status = 0; }; }
23553     then
23554
23555 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23556     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
23557    gcc_cv_as_cfi_advance_working=yes
23558 fi
23559
23560     else
23561       echo "configure: failed program was" >&5
23562       cat conftest.s >&5
23563     fi
23564     rm -f conftest.o conftest.s
23565   fi
23566 fi
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23568 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23569
23570
23571 else
23572   # no objdump, err on the side of caution
23573   gcc_cv_as_cfi_advance_working=no
23574 fi
23575
23576
23577 cat >>confdefs.h <<_ACEOF
23578 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23579        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23580 _ACEOF
23581
23582
23583
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23585 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23586 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23587   $as_echo_n "(cached) " >&6
23588 else
23589   gcc_cv_as_cfi_personality_directive=no
23590   if test x$gcc_cv_as != x; then
23591     $as_echo '  .text
23592         .cfi_startproc
23593         .cfi_personality 0, symbol
23594         .cfi_endproc' > conftest.s
23595     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23596   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23597   (eval $ac_try) 2>&5
23598   ac_status=$?
23599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23600   test $ac_status = 0; }; }
23601     then
23602         gcc_cv_as_cfi_personality_directive=yes
23603     else
23604       echo "configure: failed program was" >&5
23605       cat conftest.s >&5
23606     fi
23607     rm -f conftest.o conftest.s
23608   fi
23609 fi
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23611 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23612
23613
23614
23615 cat >>confdefs.h <<_ACEOF
23616 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23617 _ACEOF
23618
23619
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23621 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23622 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
23623   $as_echo_n "(cached) " >&6
23624 else
23625   gcc_cv_as_cfi_sections_directive=no
23626   if test x$gcc_cv_as != x; then
23627     $as_echo '  .text
23628         .cfi_sections .debug_frame, .eh_frame
23629         .cfi_startproc
23630         .cfi_endproc' > conftest.s
23631     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23632   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23633   (eval $ac_try) 2>&5
23634   ac_status=$?
23635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23636   test $ac_status = 0; }; }
23637     then
23638         case $target_os in
23639   win32 | pe | cygwin* | mingw32*)
23640     # Need to check that we generated the correct relocation for the
23641     # .debug_frame section.  This was fixed for binutils 2.21.
23642     gcc_cv_as_cfi_sections_directive=no
23643     if test "x$gcc_cv_objdump" != x; then
23644      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23645         grep secrel > /dev/null; then
23646       gcc_cv_as_cfi_sections_directive=yes
23647      fi
23648     fi
23649     ;;
23650   *)
23651     gcc_cv_as_cfi_sections_directive=yes
23652     ;;
23653 esac
23654     else
23655       echo "configure: failed program was" >&5
23656       cat conftest.s >&5
23657     fi
23658     rm -f conftest.o conftest.s
23659   fi
23660 fi
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23662 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23663
23664
23665
23666
23667 cat >>confdefs.h <<_ACEOF
23668 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23669 _ACEOF
23670
23671
23672 # GAS versions up to and including 2.11.0 may mis-optimize
23673 # .eh_frame data.
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23675 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23676 if ${gcc_cv_as_eh_frame+:} false; then :
23677   $as_echo_n "(cached) " >&6
23678 else
23679   gcc_cv_as_eh_frame=no
23680     if test $in_tree_gas = yes; then
23681     if test $in_tree_gas_is_elf = yes \
23682   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23683   then gcc_cv_as_eh_frame=yes
23684 fi
23685   elif test x$gcc_cv_as != x; then
23686     $as_echo '  .text
23687 .LFB1:
23688         .4byte  0
23689 .L1:
23690         .4byte  0
23691 .LFE1:
23692         .section        .eh_frame,"aw",@progbits
23693 __FRAME_BEGIN__:
23694         .4byte  .LECIE1-.LSCIE1
23695 .LSCIE1:
23696         .4byte  0x0
23697         .byte   0x1
23698         .ascii "z\0"
23699         .byte   0x1
23700         .byte   0x78
23701         .byte   0x1a
23702         .byte   0x0
23703         .byte   0x4
23704         .4byte  1
23705         .p2align 1
23706 .LECIE1:
23707 .LSFDE1:
23708         .4byte  .LEFDE1-.LASFDE1
23709 .LASFDE1:
23710         .4byte  .LASFDE1-__FRAME_BEGIN__
23711         .4byte  .LFB1
23712         .4byte  .LFE1-.LFB1
23713         .byte   0x4
23714         .4byte  .LFE1-.LFB1
23715         .byte   0x4
23716         .4byte  .L1-.LFB1
23717 .LEFDE1:' > conftest.s
23718     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23719   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23720   (eval $ac_try) 2>&5
23721   ac_status=$?
23722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23723   test $ac_status = 0; }; }
23724     then
23725           cat > conftest.lit <<EOF
23726  0000 10000000 00000000 017a0001 781a0004  .........z..x...
23727  0010 01000000 12000000 18000000 00000000  ................
23728  0020 08000000 04080000 0044               .........D      
23729 EOF
23730 cat > conftest.big <<EOF
23731  0000 00000010 00000000 017a0001 781a0004  .........z..x...
23732  0010 00000001 00000012 00000018 00000000  ................
23733  0020 00000008 04000000 0844               .........D      
23734 EOF
23735   # If the assembler didn't choke, and we can objdump,
23736   # and we got the correct data, then succeed.
23737   # The text in the here-document typically retains its unix-style line
23738   # endings, while the output of objdump will use host line endings.
23739   # Therefore, use diff -b for the comparisons.
23740   if test x$gcc_cv_objdump != x \
23741   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23742      | tail -3 > conftest.got \
23743   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23744     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23745   then
23746     gcc_cv_as_eh_frame=yes
23747   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23748   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23749   (eval $ac_try) 2>&5
23750   ac_status=$?
23751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23752   test $ac_status = 0; }; }; then
23753     gcc_cv_as_eh_frame=buggy
23754   else
23755     # Uh oh, what do we do now?
23756     gcc_cv_as_eh_frame=no
23757   fi
23758     else
23759       echo "configure: failed program was" >&5
23760       cat conftest.s >&5
23761     fi
23762     rm -f conftest.o conftest.s
23763   fi
23764 fi
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23766 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23767
23768
23769
23770 if test $gcc_cv_as_eh_frame = buggy; then
23771
23772 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23773
23774 fi
23775
23776 # Test if the assembler supports the section flag 'e' or #exclude for
23777 # specifying an excluded section.
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23779 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23780 if ${gcc_cv_as_section_exclude_e+:} false; then :
23781   $as_echo_n "(cached) " >&6
23782 else
23783   gcc_cv_as_section_exclude_e=no
23784     if test $in_tree_gas = yes; then
23785     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23786   then gcc_cv_as_section_exclude_e=yes
23787 fi
23788   elif test x$gcc_cv_as != x; then
23789     $as_echo '.section foo1,"e"
23790   .byte 0,0,0,0' > conftest.s
23791     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23792   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23793   (eval $ac_try) 2>&5
23794   ac_status=$?
23795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23796   test $ac_status = 0; }; }
23797     then
23798         gcc_cv_as_section_exclude_e=yes
23799     else
23800       echo "configure: failed program was" >&5
23801       cat conftest.s >&5
23802     fi
23803     rm -f conftest.o conftest.s
23804   fi
23805 fi
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23807 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23808
23809
23810 if test $gcc_cv_as_section_exclude_e = no; then
23811   case "${target}" in
23812     # Solaris as uses #exclude instead.
23813     *-*-solaris2*)
23814       case "${target}" in
23815         sparc*-*-solaris2*)
23816           conftest_s='.section "foo1", #exclude'
23817           ;;
23818         i?86-*-solaris2* | x86_64-*-solaris2*)
23819           conftest_s='.section foo1, #exclude'
23820           ;;
23821       esac
23822       ;;
23823     esac
23824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23825 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23826 if ${gcc_cv_as_section_exclude_hash+:} false; then :
23827   $as_echo_n "(cached) " >&6
23828 else
23829   gcc_cv_as_section_exclude_hash=no
23830   if test x$gcc_cv_as != x; then
23831     $as_echo "$conftest_s
23832      .byte 0,0,0,0" > conftest.s
23833     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23834   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23835   (eval $ac_try) 2>&5
23836   ac_status=$?
23837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23838   test $ac_status = 0; }; }
23839     then
23840         gcc_cv_as_section_exclude_hash=yes
23841     else
23842       echo "configure: failed program was" >&5
23843       cat conftest.s >&5
23844     fi
23845     rm -f conftest.o conftest.s
23846   fi
23847 fi
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
23849 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23850
23851
23852 fi
23853
23854 cat >>confdefs.h <<_ACEOF
23855 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_exclude_e = yes || test $gcc_cv_as_section_exclude_hash = yes; then echo 1; else echo 0; fi`
23856 _ACEOF
23857
23858
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23860 $as_echo_n "checking assembler for section merging support... " >&6; }
23861 if ${gcc_cv_as_shf_merge+:} false; then :
23862   $as_echo_n "(cached) " >&6
23863 else
23864   gcc_cv_as_shf_merge=no
23865     if test $in_tree_gas = yes; then
23866     if test $in_tree_gas_is_elf = yes \
23867   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23868   then gcc_cv_as_shf_merge=yes
23869 fi
23870   elif test x$gcc_cv_as != x; then
23871     $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23872     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23873   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23874   (eval $ac_try) 2>&5
23875   ac_status=$?
23876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23877   test $ac_status = 0; }; }
23878     then
23879         gcc_cv_as_shf_merge=yes
23880     else
23881       echo "configure: failed program was" >&5
23882       cat conftest.s >&5
23883     fi
23884     rm -f conftest.o conftest.s
23885   fi
23886 fi
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23888 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23889
23890
23891 if test $gcc_cv_as_shf_merge = no; then
23892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23893 $as_echo_n "checking assembler for section merging support... " >&6; }
23894 if ${gcc_cv_as_shf_merge+:} false; then :
23895   $as_echo_n "(cached) " >&6
23896 else
23897   gcc_cv_as_shf_merge=no
23898     if test $in_tree_gas = yes; then
23899     if test $in_tree_gas_is_elf = yes \
23900   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23901   then gcc_cv_as_shf_merge=yes
23902 fi
23903   elif test x$gcc_cv_as != x; then
23904     $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23905     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23906   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23907   (eval $ac_try) 2>&5
23908   ac_status=$?
23909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23910   test $ac_status = 0; }; }
23911     then
23912         gcc_cv_as_shf_merge=yes
23913     else
23914       echo "configure: failed program was" >&5
23915       cat conftest.s >&5
23916     fi
23917     rm -f conftest.o conftest.s
23918   fi
23919 fi
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23921 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23922
23923
23924 fi
23925 case "$target" in
23926   i?86-*-solaris2.10* | x86_64-*-solaris2.10*)
23927     # SHF_MERGE support in Solaris 10/x86 ld is broken.
23928     if test x"$gnu_ld" = xno; then
23929       gcc_cv_as_shf_merge=no
23930     fi
23931     ;;
23932 esac
23933
23934 cat >>confdefs.h <<_ACEOF
23935 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23936 _ACEOF
23937
23938
23939 gcc_cv_ld_aligned_shf_merge=yes
23940 case "$target" in
23941   # While Solaris 10/SPARC ld isn't affected, disable to avoid problems
23942   # relinking on Solaris 11 < 11.4.
23943   sparc*-*-solaris2.10*)
23944     if test x"$gnu_ld" = xno; then
23945       gcc_cv_ld_aligned_shf_merge=no
23946     fi
23947     ;;
23948   # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
23949   # alignment > 1.
23950   sparc*-*-solaris2.11*)
23951     if test x"$gnu_ld" = xno \
23952        && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
23953       gcc_cv_ld_aligned_shf_merge=no
23954     fi
23955     ;;
23956 esac
23957
23958 cat >>confdefs.h <<_ACEOF
23959 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
23960 _ACEOF
23961
23962
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23964 $as_echo_n "checking assembler for stabs directive... " >&6; }
23965 if ${gcc_cv_as_stabs_directive+:} false; then :
23966   $as_echo_n "(cached) " >&6
23967 else
23968   gcc_cv_as_stabs_directive=no
23969   if test x$gcc_cv_as != x; then
23970     $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23971     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23972   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23973   (eval $ac_try) 2>&5
23974   ac_status=$?
23975   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23976   test $ac_status = 0; }; }
23977     then
23978         gcc_cv_as_stabs_directive=yes
23979     else
23980       echo "configure: failed program was" >&5
23981       cat conftest.s >&5
23982     fi
23983     rm -f conftest.o conftest.s
23984   fi
23985 fi
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23987 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23988 if test $gcc_cv_as_stabs_directive = yes; then
23989
23990 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23991
23992 fi
23993
23994
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23996 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23997 if ${gcc_cv_as_comdat_group+:} false; then :
23998   $as_echo_n "(cached) " >&6
23999 else
24000   gcc_cv_as_comdat_group=no
24001     if test $in_tree_gas = yes; then
24002     if test $in_tree_gas_is_elf = yes \
24003   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24004   then gcc_cv_as_comdat_group=yes
24005 fi
24006   elif test x$gcc_cv_as != x; then
24007     $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24008     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24009   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24010   (eval $ac_try) 2>&5
24011   ac_status=$?
24012   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24013   test $ac_status = 0; }; }
24014     then
24015         gcc_cv_as_comdat_group=yes
24016     else
24017       echo "configure: failed program was" >&5
24018       cat conftest.s >&5
24019     fi
24020     rm -f conftest.o conftest.s
24021   fi
24022 fi
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24024 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24025
24026
24027 if test $gcc_cv_as_comdat_group = yes; then
24028   gcc_cv_as_comdat_group_percent=no
24029   gcc_cv_as_comdat_group_group=no
24030 else
24031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24032 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24033 if ${gcc_cv_as_comdat_group_percent+:} false; then :
24034   $as_echo_n "(cached) " >&6
24035 else
24036   gcc_cv_as_comdat_group_percent=no
24037     if test $in_tree_gas = yes; then
24038     if test $in_tree_gas_is_elf = yes \
24039   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24040   then gcc_cv_as_comdat_group_percent=yes
24041 fi
24042   elif test x$gcc_cv_as != x; then
24043     $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24044     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24045   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24046   (eval $ac_try) 2>&5
24047   ac_status=$?
24048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24049   test $ac_status = 0; }; }
24050     then
24051         gcc_cv_as_comdat_group_percent=yes
24052     else
24053       echo "configure: failed program was" >&5
24054       cat conftest.s >&5
24055     fi
24056     rm -f conftest.o conftest.s
24057   fi
24058 fi
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24060 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24061
24062
24063  if test $gcc_cv_as_comdat_group_percent = yes; then
24064    gcc_cv_as_comdat_group_group=no
24065  else
24066    case "${target}" in
24067      # Sun as uses a completely different syntax.
24068      *-*-solaris2*)
24069        case "${target}" in
24070          sparc*-*-solaris2*)
24071            conftest_s='
24072                .group foo,".text%foo",#comdat
24073                .section ".text%foo", #alloc,#execinstr,#progbits
24074                .globl foo
24075              foo:
24076              '
24077            ;;
24078          i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
24079            conftest_s='
24080                .group foo,.text%foo,#comdat
24081                .section .text%foo, "ax", @progbits
24082                .globl  foo
24083              foo:
24084              '
24085            ;;
24086        esac
24087        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24088 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24089 if ${gcc_cv_as_comdat_group_group+:} false; then :
24090   $as_echo_n "(cached) " >&6
24091 else
24092   gcc_cv_as_comdat_group_group=no
24093   if test x$gcc_cv_as != x; then
24094     $as_echo "$conftest_s" > conftest.s
24095     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24096   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24097   (eval $ac_try) 2>&5
24098   ac_status=$?
24099   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24100   test $ac_status = 0; }; }
24101     then
24102         gcc_cv_as_comdat_group_group=yes
24103     else
24104       echo "configure: failed program was" >&5
24105       cat conftest.s >&5
24106     fi
24107     rm -f conftest.o conftest.s
24108   fi
24109 fi
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24111 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24112
24113
24114        ;;
24115    esac
24116    if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24117      gcc_cv_as_comdat_group_group=no
24118    fi
24119  fi
24120 fi
24121 if test x"$ld_is_gold" = xyes; then
24122   comdat_group=yes
24123 elif test $in_tree_ld = yes ; then
24124   comdat_group=no
24125   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
24126      && test $in_tree_ld_is_elf = yes; then
24127      comdat_group=yes
24128   fi
24129 elif echo "$ld_ver" | grep GNU > /dev/null; then
24130   comdat_group=yes
24131   if test 0"$ld_date" -lt 20050308; then
24132     if test -n "$ld_date"; then
24133       # If there was date string, but was earlier than 2005-03-08, fail
24134       comdat_group=no
24135     elif test "$ld_vers_major" -lt 2; then
24136       comdat_group=no
24137     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24138       comdat_group=no
24139     fi
24140   fi
24141 else
24142   case "${target}" in
24143     *-*-solaris2.1[1-9]*)
24144       comdat_group=no
24145       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24146       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24147       # version 1.688.
24148       #
24149       # If using Sun as for COMDAT group as emitted by GCC, one needs at
24150       # least ld version 1.2267.
24151       if test "$ld_vers_major" -gt 1; then
24152         comdat_group=yes
24153       elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24154         comdat_group=yes
24155       elif test "$ld_vers_minor" -ge 2267; then
24156         comdat_group=yes
24157       fi
24158       ;;
24159     *)
24160       # Assume linkers other than GNU ld don't support COMDAT group.
24161       comdat_group=no
24162       ;;
24163   esac
24164 fi
24165 # Allow overriding the automatic COMDAT group tests above.
24166 # Check whether --enable-comdat was given.
24167 if test "${enable_comdat+set}" = set; then :
24168   enableval=$enable_comdat; comdat_group="$enable_comdat"
24169 fi
24170
24171 if test $comdat_group = no; then
24172   gcc_cv_as_comdat_group=no
24173   gcc_cv_as_comdat_group_percent=no
24174   gcc_cv_as_comdat_group_group=no
24175 fi
24176
24177 cat >>confdefs.h <<_ACEOF
24178 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24179     || test $gcc_cv_as_comdat_group_percent = yes \
24180     || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24181 _ACEOF
24182
24183
24184 # Restrict this test to Solaris/x86: other targets define this statically.
24185 case "${target}" in
24186   i?86-*-solaris2* | x86_64-*-solaris2*)
24187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24188 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24189     if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24190       hidden_linkonce=yes
24191     else
24192       case "${target}" in
24193         # Full support for hidden thunks in linkonce sections only appeared in
24194         # Solaris 11/OpenSolaris.
24195         *-*-solaris2.1[1-9]*)
24196           hidden_linkonce=yes
24197           ;;
24198         *)
24199           hidden_linkonce=no
24200           ;;
24201       esac
24202     fi
24203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24204 $as_echo "$hidden_linkonce" >&6; }
24205
24206 cat >>confdefs.h <<_ACEOF
24207 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24208 _ACEOF
24209
24210   ;;
24211 esac
24212
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24214 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24215 if ${gcc_cv_as_is_stmt+:} false; then :
24216   $as_echo_n "(cached) " >&6
24217 else
24218   gcc_cv_as_is_stmt=no
24219     if test $in_tree_gas = yes; then
24220     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24221   then gcc_cv_as_is_stmt=yes
24222 fi
24223   elif test x$gcc_cv_as != x; then
24224     $as_echo '  .text
24225         .file 1 "conf.c"
24226         .loc 1 1 0 is_stmt 1' > conftest.s
24227     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24228   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24229   (eval $ac_try) 2>&5
24230   ac_status=$?
24231   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24232   test $ac_status = 0; }; }
24233     then
24234         gcc_cv_as_is_stmt=yes
24235     else
24236       echo "configure: failed program was" >&5
24237       cat conftest.s >&5
24238     fi
24239     rm -f conftest.o conftest.s
24240   fi
24241 fi
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24243 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24244 if test $gcc_cv_as_is_stmt = yes; then
24245
24246 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24247
24248 fi
24249
24250
24251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24252 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24253 if ${gcc_cv_as_discriminator+:} false; then :
24254   $as_echo_n "(cached) " >&6
24255 else
24256   gcc_cv_as_discriminator=no
24257     if test $in_tree_gas = yes; then
24258     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24259   then gcc_cv_as_discriminator=yes
24260 fi
24261   elif test x$gcc_cv_as != x; then
24262     $as_echo '  .text
24263         .file 1 "conf.c"
24264         .loc 1 1 0 discriminator 1' > conftest.s
24265     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24266   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24267   (eval $ac_try) 2>&5
24268   ac_status=$?
24269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24270   test $ac_status = 0; }; }
24271     then
24272         gcc_cv_as_discriminator=yes
24273     else
24274       echo "configure: failed program was" >&5
24275       cat conftest.s >&5
24276     fi
24277     rm -f conftest.o conftest.s
24278   fi
24279 fi
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24281 $as_echo "$gcc_cv_as_discriminator" >&6; }
24282 if test $gcc_cv_as_discriminator = yes; then
24283
24284 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24285
24286 fi
24287
24288
24289 # Thread-local storage - the check is heavily parameterized.
24290 conftest_s=
24291 tls_first_major=
24292 tls_first_minor=
24293 tls_as_opt=
24294 case "$target" in
24295   alpha*-*-*)
24296     conftest_s='
24297         .section ".tdata","awT",@progbits
24298 foo:    .long   25
24299         .text
24300         ldq     $27,__tls_get_addr($29)         !literal!1
24301         lda     $16,foo($29)                    !tlsgd!1
24302         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
24303         ldq     $27,__tls_get_addr($29)         !literal!2
24304         lda     $16,foo($29)                    !tlsldm!2
24305         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
24306         ldq     $1,foo($29)                     !gotdtprel
24307         ldah    $2,foo($29)                     !dtprelhi
24308         lda     $3,foo($2)                      !dtprello
24309         lda     $4,foo($29)                     !dtprel
24310         ldq     $1,foo($29)                     !gottprel
24311         ldah    $2,foo($29)                     !tprelhi
24312         lda     $3,foo($2)                      !tprello
24313         lda     $4,foo($29)                     !tprel'
24314         tls_first_major=2
24315         tls_first_minor=13
24316         tls_as_opt=--fatal-warnings
24317         ;;
24318   arc*-*-*)
24319     conftest_s='
24320         add_s r0,r0, @foo@tpoff'
24321         tls_first_major=2
24322         tls_first_minor=23
24323         ;;
24324   cris-*-*|crisv32-*-*)
24325     conftest_s='
24326         .section ".tdata","awT",@progbits
24327 x:      .long   25
24328         .text
24329         move.d x:IE,$r10
24330         nop'
24331         tls_first_major=2
24332         tls_first_minor=20
24333         tls_as_opt=--fatal-warnings
24334         ;;
24335   frv*-*-*)
24336     conftest_s='
24337         .section ".tdata","awT",@progbits
24338 x:      .long   25
24339         .text
24340         call    #gettlsoff(x)'
24341         tls_first_major=2
24342         tls_first_minor=14
24343         ;;
24344   hppa*-*-linux*)
24345     conftest_s='
24346 t1:     .reg    %r20
24347 t2:     .reg    %r21
24348 gp:     .reg    %r19
24349         .section ".tdata","awT",@progbits
24350 foo:    .long   25
24351         .text
24352         .align  4
24353         addil LT%foo-$tls_gdidx$,gp
24354         ldo RT%foo-$tls_gdidx$(%r1),%arg0
24355         b __tls_get_addr
24356         nop
24357         addil LT%foo-$tls_ldidx$,gp
24358         b __tls_get_addr
24359         ldo RT%foo-$tls_ldidx$(%r1),%arg0
24360         addil LR%foo-$tls_dtpoff$,%ret0
24361         ldo RR%foo-$tls_dtpoff$(%r1),%t1
24362         mfctl %cr27,%t1
24363         addil LT%foo-$tls_ieoff$,gp
24364         ldw RT%foo-$tls_ieoff$(%r1),%t2
24365         add %t1,%t2,%t3
24366         mfctl %cr27,%t1
24367         addil LR%foo-$tls_leoff$,%t1
24368         ldo RR%foo-$tls_leoff$(%r1),%t2'
24369         tls_first_major=2
24370         tls_first_minor=15
24371         tls_as_opt=--fatal-warnings
24372         ;;
24373   arm*-*-*)
24374     conftest_s='
24375         .section ".tdata","awT",%progbits
24376 foo:    .long   25
24377         .text
24378 .word foo(gottpoff)
24379 .word foo(tpoff)
24380 .word foo(tlsgd)
24381 .word foo(tlsldm)
24382 .word foo(tlsldo)'
24383         tls_first_major=2
24384         tls_first_minor=17
24385         ;;
24386   i[34567]86-*-* | x86_64-*-*)
24387     case "$target" in
24388       i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
24389         on_solaris=yes
24390         ;;
24391       *)
24392         on_solaris=no
24393         ;;
24394     esac
24395     if test x$on_solaris = xyes && test x$gas_flag = xno; then
24396       conftest_s='
24397         .section .tdata,"awt",@progbits'
24398       tls_first_major=0
24399       tls_first_minor=0
24400       tls_section_flag=t
24401
24402 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24403
24404     else
24405       conftest_s='
24406         .section ".tdata","awT",@progbits'
24407       tls_first_major=2
24408       tls_first_minor=14
24409       tls_section_flag=T
24410       tls_as_opt="--fatal-warnings"
24411     fi
24412     case "$target" in
24413       i[34567]86-*-*)
24414         conftest_s="$conftest_s
24415 foo:    .long   25
24416         .text
24417         movl    %gs:0, %eax
24418         leal    foo@tlsgd(,%ebx,1), %eax
24419         leal    foo@tlsldm(%ebx), %eax
24420         leal    foo@dtpoff(%eax), %edx
24421         movl    foo@gottpoff(%ebx), %eax
24422         subl    foo@gottpoff(%ebx), %eax
24423         addl    foo@gotntpoff(%ebx), %eax
24424         movl    foo@indntpoff, %eax
24425         movl    \$foo@tpoff, %eax
24426         subl    \$foo@tpoff, %eax
24427         leal    foo@ntpoff(%ecx), %eax"
24428         ;;
24429       x86_64-*-*)
24430         if test x$on_solaris = xyes; then
24431           case $gas_flag in
24432             yes) tls_as_opt="$tls_as_opt --64" ;;
24433             no)  tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24434           esac
24435         fi
24436         conftest_s="$conftest_s
24437 foo:    .long   25
24438         .text
24439         movq    %fs:0, %rax
24440         leaq    foo@tlsgd(%rip), %rdi
24441         leaq    foo@tlsld(%rip), %rdi
24442         leaq    foo@dtpoff(%rax), %rdx
24443         movq    foo@gottpoff(%rip), %rax
24444         movq    \$foo@tpoff, %rax"
24445         ;;
24446     esac
24447     ;;
24448   ia64-*-*)
24449     conftest_s='
24450         .section ".tdata","awT",@progbits
24451 foo:    data8   25
24452         .text
24453         addl    r16 = @ltoff(@dtpmod(foo#)), gp
24454         addl    r17 = @ltoff(@dtprel(foo#)), gp
24455         addl    r18 = @ltoff(@tprel(foo#)), gp
24456         addl    r19 = @dtprel(foo#), gp
24457         adds    r21 = @dtprel(foo#), r13
24458         movl    r23 = @dtprel(foo#)
24459         addl    r20 = @tprel(foo#), gp
24460         adds    r22 = @tprel(foo#), r13
24461         movl    r24 = @tprel(foo#)'
24462         tls_first_major=2
24463         tls_first_minor=13
24464         tls_as_opt=--fatal-warnings
24465         ;;
24466   microblaze*-*-*)
24467     conftest_s='
24468         .section .tdata,"awT",@progbits
24469 x:
24470         .word 2
24471         .text
24472         addik r5,r20,x@TLSGD
24473         addik r5,r20,x@TLSLDM'
24474         tls_first_major=2
24475         tls_first_minor=20
24476         tls_as_opt='--fatal-warnings'
24477         ;;
24478   mips*-*-*)
24479     conftest_s='
24480         .section .tdata,"awT",@progbits
24481 x:
24482         .word 2
24483         .text
24484         addiu $4, $28, %tlsgd(x)
24485         addiu $4, $28, %tlsldm(x)
24486         lui $4, %dtprel_hi(x)
24487         addiu $4, $4, %dtprel_lo(x)
24488         lw $4, %gottprel(x)($28)
24489         lui $4, %tprel_hi(x)
24490         addiu $4, $4, %tprel_lo(x)'
24491         tls_first_major=2
24492         tls_first_minor=16
24493         tls_as_opt='-32 --fatal-warnings'
24494         ;;
24495   m68k-*-*)
24496     conftest_s='
24497         .section .tdata,"awT",@progbits
24498 x:
24499         .word 2
24500         .text
24501 foo:
24502         move.l x@TLSGD(%a5),%a0
24503         move.l x@TLSLDM(%a5),%a0
24504         move.l x@TLSLDO(%a5),%a0
24505         move.l x@TLSIE(%a5),%a0
24506         move.l x@TLSLE(%a5),%a0'
24507         tls_first_major=2
24508         tls_first_minor=19
24509         tls_as_opt='--fatal-warnings'
24510         ;;
24511   nios2-*-*)
24512       conftest_s='
24513         .section ".tdata","awT",@progbits'
24514         tls_first_major=2
24515         tls_first_minor=23
24516         tls_as_opt="--fatal-warnings"
24517         ;;
24518   aarch64*-*-*)
24519     conftest_s='
24520         .section ".tdata","awT",%progbits
24521 foo:    .long   25
24522         .text
24523         adrp  x0, :tlsgd:x
24524         add   x0, x0, #:tlsgd_lo12:x
24525         bl    __tls_get_addr
24526         nop'
24527         tls_first_major=2
24528         tls_first_minor=20
24529         tls_as_opt='--fatal-warnings'
24530         ;;
24531   or1k*-*-*)
24532     conftest_s='
24533         .section ".tdata","awT",@progbits
24534 foo:    .long   25
24535         .text
24536         l.movhi r3, tpoffha(foo)
24537         l.add   r3, r3, r10
24538         l.lwz   r4, tpofflo(foo)(r3)'
24539     tls_first_major=2
24540     tls_first_minor=30
24541     tls_as_opt=--fatal-warnings
24542     ;;
24543   powerpc-ibm-aix*)
24544     conftest_s='
24545         .extern __get_tpointer
24546         .toc
24547 LC..1:
24548         .tc a[TC],a[TL]@le
24549         .csect .text[PR]
24550 .tlstest:
24551         lwz 9,LC..1(2)
24552         bla __get_tpointer
24553         lwzx 3,9,3
24554         .globl a
24555         .csect a[TL],4
24556 a:
24557         .space 4'
24558         tls_first_major=0
24559         tls_first_minor=0
24560         ;;
24561   powerpc64*-*-*)
24562     conftest_s='
24563         .section ".tdata","awT",@progbits
24564         .align 3
24565 ld0:    .space 8
24566 ld1:    .space 8
24567 x1:     .space 8
24568 x2:     .space 8
24569 x3:     .space 8
24570         .text
24571         addi 3,2,ld0@got@tlsgd
24572         bl .__tls_get_addr
24573         nop
24574         addi 3,2,ld1@toc
24575         bl .__tls_get_addr
24576         nop
24577         addi 3,2,x1@got@tlsld
24578         bl .__tls_get_addr
24579         nop
24580         addi 9,3,x1@dtprel
24581         bl .__tls_get_addr
24582         nop
24583         addis 9,3,x2@dtprel@ha
24584         addi 9,9,x2@dtprel@l
24585         bl .__tls_get_addr
24586         nop
24587         ld 9,x3@got@dtprel(2)
24588         add 9,9,3
24589         bl .__tls_get_addr
24590         nop'
24591         tls_first_major=2
24592         tls_first_minor=14
24593         tls_as_opt="-a64 --fatal-warnings"
24594         ;;
24595   powerpc*-*-*)
24596     conftest_s='
24597         .section ".tdata","awT",@progbits
24598         .align 2
24599 ld0:    .space 4
24600 ld1:    .space 4
24601 x1:     .space 4
24602 x2:     .space 4
24603 x3:     .space 4
24604         .text
24605         addi 3,31,ld0@got@tlsgd
24606         bl __tls_get_addr
24607         addi 3,31,x1@got@tlsld
24608         bl __tls_get_addr
24609         addi 9,3,x1@dtprel
24610         addis 9,3,x2@dtprel@ha
24611         addi 9,9,x2@dtprel@l
24612         lwz 9,x3@got@tprel(31)
24613         add 9,9,x@tls
24614         addi 9,2,x1@tprel
24615         addis 9,2,x2@tprel@ha
24616         addi 9,9,x2@tprel@l'
24617         tls_first_major=2
24618         tls_first_minor=14
24619         tls_as_opt="-a32 --fatal-warnings"
24620         ;;
24621   riscv*-*-*)
24622     conftest_s='
24623         .section .tdata,"awT",@progbits
24624 x:      .word 2
24625         .text
24626         la.tls.gd a0,x
24627         call __tls_get_addr'
24628         tls_first_major=2
24629         tls_first_minor=21
24630         tls_as_opt='--fatal-warnings'
24631         ;;
24632   s390-*-*)
24633     conftest_s='
24634         .section ".tdata","awT",@progbits
24635 foo:    .long   25
24636         .text
24637         .long   foo@TLSGD
24638         .long   foo@TLSLDM
24639         .long   foo@DTPOFF
24640         .long   foo@NTPOFF
24641         .long   foo@GOTNTPOFF
24642         .long   foo@INDNTPOFF
24643         l       %r1,foo@GOTNTPOFF(%r12)
24644         l       %r1,0(%r1):tls_load:foo
24645         bas     %r14,0(%r1,%r13):tls_gdcall:foo
24646         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
24647         tls_first_major=2
24648         tls_first_minor=14
24649         tls_as_opt="-m31 --fatal-warnings"
24650         ;;
24651   s390x-*-*)
24652     conftest_s='
24653         .section ".tdata","awT",@progbits
24654 foo:    .long   25
24655         .text
24656         .quad   foo@TLSGD
24657         .quad   foo@TLSLDM
24658         .quad   foo@DTPOFF
24659         .quad   foo@NTPOFF
24660         .quad   foo@GOTNTPOFF
24661         lg      %r1,foo@GOTNTPOFF(%r12)
24662         larl    %r1,foo@INDNTPOFF
24663         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
24664         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24665         tls_first_major=2
24666         tls_first_minor=14
24667         tls_as_opt="-m64 -Aesame --fatal-warnings"
24668         ;;
24669   sh-*-* | sh[123456789lbe]*-*-*)
24670     conftest_s='
24671         .section ".tdata","awT",@progbits
24672 foo:    .long   25
24673         .text
24674         .long   foo@TLSGD
24675         .long   foo@TLSLDM
24676         .long   foo@DTPOFF
24677         .long   foo@GOTTPOFF
24678         .long   foo@TPOFF'
24679         tls_first_major=2
24680         tls_first_minor=13
24681         tls_as_opt=--fatal-warnings
24682         ;;
24683   sparc*-*-*)
24684     case "$target" in
24685       sparc*-sun-solaris2.*)
24686         on_solaris=yes
24687         ;;
24688       *)
24689         on_solaris=no
24690         ;;
24691     esac
24692     if test x$on_solaris = xyes && test x$gas_flag = xno; then
24693       conftest_s='
24694         .section ".tdata",#alloc,#write,#tls'
24695         tls_first_major=0
24696         tls_first_minor=0
24697     else
24698       conftest_s='
24699         .section ".tdata","awT",@progbits'
24700         tls_first_major=2
24701         tls_first_minor=14
24702         tls_as_opt="-32 --fatal-warnings"
24703     fi
24704     conftest_s="$conftest_s
24705 foo:    .long   25
24706         .text
24707         sethi   %tgd_hi22(foo), %o0
24708         add     %o0, %tgd_lo10(foo), %o1
24709         add     %l7, %o1, %o0, %tgd_add(foo)
24710         call    __tls_get_addr, %tgd_call(foo)
24711         sethi   %tldm_hi22(foo), %l1
24712         add     %l1, %tldm_lo10(foo), %l2
24713         add     %l7, %l2, %o0, %tldm_add(foo)
24714         call    __tls_get_addr, %tldm_call(foo)
24715         sethi   %tldo_hix22(foo), %l3
24716         xor     %l3, %tldo_lox10(foo), %l4
24717         add     %o0, %l4, %l5, %tldo_add(foo)
24718         sethi   %tie_hi22(foo), %o3
24719         add     %o3, %tie_lo10(foo), %o3
24720         ld      [%l7 + %o3], %o2, %tie_ld(foo)
24721         add     %g7, %o2, %o4, %tie_add(foo)
24722         sethi   %tle_hix22(foo), %l1
24723         xor     %l1, %tle_lox10(foo), %o5
24724         ld      [%g7 + %o5], %o1"
24725         ;;
24726   tilepro*-*-*)
24727       conftest_s='
24728         .section ".tdata","awT",@progbits
24729 foo:    .long   25
24730         .text
24731         addli   r0, zero, tls_gd(foo)
24732         auli    r0, zero, tls_gd_ha16(foo)
24733         addli   r0, r0, tls_gd_lo16(foo)
24734         jal     __tls_get_addr
24735         addli   r0, zero, tls_ie(foo)
24736         auli    r0, r0, tls_ie_ha16(foo)
24737         addli   r0, r0, tls_ie_lo16(foo)'
24738         tls_first_major=2
24739         tls_first_minor=22
24740         tls_as_opt="--fatal-warnings"
24741         ;;
24742   tilegx*-*-*)
24743       conftest_s='
24744         .section ".tdata","awT",@progbits
24745 foo:    .long   25
24746         .text
24747         shl16insli r0, zero, hw0_last_tls_gd(foo)
24748         shl16insli r0, zero, hw1_last_tls_gd(foo)
24749         shl16insli r0, r0,   hw0_tls_gd(foo)
24750         jal        __tls_get_addr
24751         shl16insli r0, zero, hw1_last_tls_ie(foo)
24752         shl16insli r0, r0,   hw0_tls_ie(foo)'
24753         tls_first_major=2
24754         tls_first_minor=22
24755         tls_as_opt="--fatal-warnings"
24756         ;;
24757   xtensa*-*-*)
24758     conftest_s='
24759         .section ".tdata","awT",@progbits
24760 foo:    .long   25
24761         .text
24762         movi    a8, foo@TLSFUNC
24763         movi    a10, foo@TLSARG
24764         callx8.tls a8, foo@TLSCALL'
24765         tls_first_major=2
24766         tls_first_minor=19
24767         ;;
24768 esac
24769 set_have_as_tls=no
24770 if test "x$enable_tls" = xno ; then
24771   : # TLS explicitly disabled.
24772 elif test "x$enable_tls" = xyes ; then
24773   set_have_as_tls=yes # TLS explicitly enabled.
24774 elif test -z "$tls_first_major"; then
24775   : # If we don't have a check, assume no support.
24776 else
24777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24778 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24779 if ${gcc_cv_as_tls+:} false; then :
24780   $as_echo_n "(cached) " >&6
24781 else
24782   gcc_cv_as_tls=no
24783     if test $in_tree_gas = yes; then
24784     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24785   then gcc_cv_as_tls=yes
24786 fi
24787   elif test x$gcc_cv_as != x; then
24788     $as_echo "$conftest_s" > conftest.s
24789     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24790   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24791   (eval $ac_try) 2>&5
24792   ac_status=$?
24793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24794   test $ac_status = 0; }; }
24795     then
24796         gcc_cv_as_tls=yes
24797     else
24798       echo "configure: failed program was" >&5
24799       cat conftest.s >&5
24800     fi
24801     rm -f conftest.o conftest.s
24802   fi
24803 fi
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24805 $as_echo "$gcc_cv_as_tls" >&6; }
24806 if test $gcc_cv_as_tls = yes; then
24807   set_have_as_tls=yes
24808 fi
24809
24810 fi
24811 if test $set_have_as_tls = yes ; then
24812
24813 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24814
24815 fi
24816
24817 # Target-specific assembler checks.
24818
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24820 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24821 gcc_cv_ld_static_dynamic=no
24822 gcc_cv_ld_static_option='-Bstatic'
24823 gcc_cv_ld_dynamic_option='-Bdynamic'
24824 if test $in_tree_ld = yes ; then
24825   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2; then
24826     gcc_cv_ld_static_dynamic=yes
24827   fi
24828 elif test x$gcc_cv_ld != x; then
24829   # Check if linker supports -Bstatic/-Bdynamic option
24830   if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24831      && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24832       gcc_cv_ld_static_dynamic=yes
24833   else
24834     case "$target" in
24835       # AIX ld uses -b flags
24836       *-*-aix4.[23]* | *-*-aix[5-9]*)
24837         gcc_cv_ld_static_dynamic=yes
24838         gcc_cv_ld_static_option="-bstatic"
24839         gcc_cv_ld_dynamic_option="-bdynamic"
24840         ;;
24841       # HP-UX ld uses -a flags to select between shared and archive.
24842       *-*-hpux*)
24843         if test x"$gnu_ld" = xno; then
24844           gcc_cv_ld_static_dynamic=yes
24845           gcc_cv_ld_static_option="-aarchive_shared"
24846           gcc_cv_ld_dynamic_option="-adefault"
24847         fi
24848         ;;
24849       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24850       *-*-solaris2*)
24851         gcc_cv_ld_static_dynamic=yes
24852         ;;
24853     esac
24854   fi
24855 fi
24856 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24857
24858 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24859
24860
24861 cat >>confdefs.h <<_ACEOF
24862 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24863 _ACEOF
24864
24865
24866 cat >>confdefs.h <<_ACEOF
24867 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24868 _ACEOF
24869
24870 fi
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24872 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24873
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24875 $as_echo_n "checking linker --version-script option... " >&6; }
24876 gcc_cv_ld_version_script=no
24877 ld_version_script_option=''
24878 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24879   gcc_cv_ld_version_script=yes
24880   ld_version_script_option='--version-script'
24881 elif test x$gcc_cv_ld != x; then
24882   case "$target" in
24883     # Solaris 2 ld always supports -M.  It also supports a subset of
24884     # --version-script since Solaris 11.4, but requires
24885     # -z gnu-version-script-compat to activate.
24886     *-*-solaris2*)
24887       gcc_cv_ld_version_script=yes
24888       ld_version_script_option='-M'
24889       ;;
24890   esac
24891 fi
24892 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24894 $as_echo "$gcc_cv_ld_version_script" >&6; }
24895
24896
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24898 $as_echo_n "checking linker soname option... " >&6; }
24899 gcc_cv_ld_soname=no
24900 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24901   gcc_cv_ld_soname=yes
24902   ld_soname_option='-soname'
24903 elif test x$gcc_cv_ld != x; then
24904   case "$target" in
24905     *-*-darwin*)
24906       gcc_cv_ld_soname=yes
24907       ld_soname_option='-install_name'
24908       ;;
24909     # Solaris 2 ld always supports -h.  It also supports --soname for GNU
24910     # ld compatiblity since some Solaris 10 update.
24911     *-*-solaris2*)
24912       gcc_cv_ld_soname=yes
24913       ld_soname_option='-h'
24914       ;;
24915   esac
24916 fi
24917 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24919 $as_echo "$gcc_cv_ld_soname" >&6; }
24920
24921
24922 if test x"$demangler_in_ld" = xyes; then
24923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24924 $as_echo_n "checking linker --demangle support... " >&6; }
24925   gcc_cv_ld_demangle=no
24926   if test $in_tree_ld = yes; then
24927     if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
24928       gcc_cv_ld_demangle=yes
24929     fi
24930   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24931     # Check if the GNU linker supports --demangle option
24932     if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24933       gcc_cv_ld_demangle=yes
24934     fi
24935   fi
24936   if test x"$gcc_cv_ld_demangle" = xyes; then
24937
24938 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24939
24940   fi
24941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24942 $as_echo "$gcc_cv_ld_demangle" >&6; }
24943 fi
24944
24945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24946 $as_echo_n "checking linker plugin support... " >&6; }
24947 gcc_cv_lto_plugin=0
24948 if test -f liblto_plugin.la; then
24949   save_ld_ver="$ld_ver"
24950   save_ld_vers_major="$ld_vers_major"
24951   save_ld_vers_minor="$ld_vers_minor"
24952   save_ld_is_gold="$ld_is_gold"
24953
24954   ld_is_gold=no
24955
24956   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24957     ld_ver="GNU ld"
24958     # FIXME: ld_is_gold?
24959     ld_vers_major="$gcc_cv_gld_major_version"
24960     ld_vers_minor="$gcc_cv_gld_minor_version"
24961   else
24962     # Determine plugin linker version.
24963     # FIXME: Partial duplicate from above, generalize.
24964     ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24965     if echo "$ld_ver" | grep GNU > /dev/null; then
24966       if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24967         ld_is_gold=yes
24968         ld_vers=`echo $ld_ver | sed -n \
24969             -e 's,^[^)]*[        ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24970       else
24971         ld_vers=`echo $ld_ver | sed -n \
24972             -e 's,^.*[   ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24973       fi
24974       ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24975       ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24976     fi
24977   fi
24978
24979   # Determine plugin support.
24980   if echo "$ld_ver" | grep GNU > /dev/null; then
24981     # Require GNU ld or gold 2.21+ for plugin support by default.
24982     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24983       gcc_cv_lto_plugin=2
24984     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24985     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24986       gcc_cv_lto_plugin=1
24987     fi
24988   fi
24989
24990   ld_ver="$save_ld_ver"
24991   ld_vers_major="$save_ld_vers_major"
24992   ld_vers_minor="$save_ld_vers_minor"
24993   ld_is_gold="$save_ld_is_gold"
24994 fi
24995
24996 cat >>confdefs.h <<_ACEOF
24997 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24998 _ACEOF
24999
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25001 $as_echo "$gcc_cv_lto_plugin" >&6; }
25002
25003 # Target OS-specific assembler checks.
25004
25005 case "$target_os" in
25006   darwin*)
25007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25008 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25009 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25010   $as_echo_n "(cached) " >&6
25011 else
25012   gcc_cv_as_mmacosx_version_min=no
25013   if test x$gcc_cv_as != x; then
25014     $as_echo '.text' > conftest.s
25015     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25016   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25017   (eval $ac_try) 2>&5
25018   ac_status=$?
25019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25020   test $ac_status = 0; }; }
25021     then
25022         gcc_cv_as_mmacosx_version_min=yes
25023     else
25024       echo "configure: failed program was" >&5
25025       cat conftest.s >&5
25026     fi
25027     rm -f conftest.o conftest.s
25028   fi
25029 fi
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25031 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25032 if test $gcc_cv_as_mmacosx_version_min = yes; then
25033
25034 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25035
25036 fi
25037
25038     ;;
25039 esac
25040
25041 # Target CPU-specific assembler checks.
25042
25043 case "$target" in
25044   aarch64*-*-*)
25045     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25046 $as_echo_n "checking assembler for -mabi option... " >&6; }
25047 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25048   $as_echo_n "(cached) " >&6
25049 else
25050   gcc_cv_as_aarch64_mabi=no
25051   if test x$gcc_cv_as != x; then
25052     $as_echo '.text' > conftest.s
25053     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25054   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25055   (eval $ac_try) 2>&5
25056   ac_status=$?
25057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25058   test $ac_status = 0; }; }
25059     then
25060         gcc_cv_as_aarch64_mabi=yes
25061     else
25062       echo "configure: failed program was" >&5
25063       cat conftest.s >&5
25064     fi
25065     rm -f conftest.o conftest.s
25066   fi
25067 fi
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25069 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25070
25071
25072     if test x$gcc_cv_as_aarch64_mabi = xyes; then
25073
25074 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25075
25076     else
25077       if test x$with_abi = xilp32; then
25078         as_fn_error $? "Assembler does not support -mabi=ilp32.\
25079                      Upgrade the Assembler." "$LINENO" 5
25080       fi
25081       if test x"$with_multilib_list" = xdefault; then
25082         TM_MULTILIB_CONFIG=lp64
25083       else
25084         aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25085         for aarch64_multilib in ${aarch64_multilibs}; do
25086           case ${aarch64_multilib} in
25087             ilp32)
25088               as_fn_error $? "Assembler does not support -mabi=ilp32.\
25089                             Upgrade the Assembler." "$LINENO" 5
25090               ;;
25091             *)
25092               ;;
25093           esac
25094         done
25095       fi
25096     fi
25097     # Check if we have binutils support for relocations types needed by -fpic
25098     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25099 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25100 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25101   $as_echo_n "(cached) " >&6
25102 else
25103   gcc_cv_as_aarch64_picreloc=no
25104   if test x$gcc_cv_as != x; then
25105     $as_echo '
25106         .text
25107         ldr     x0, [x2, #:gotpage_lo15:globalsym]
25108     ' > conftest.s
25109     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25110   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25111   (eval $ac_try) 2>&5
25112   ac_status=$?
25113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25114   test $ac_status = 0; }; }
25115     then
25116         gcc_cv_as_aarch64_picreloc=yes
25117     else
25118       echo "configure: failed program was" >&5
25119       cat conftest.s >&5
25120     fi
25121     rm -f conftest.o conftest.s
25122   fi
25123 fi
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25125 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25126 if test $gcc_cv_as_aarch64_picreloc = yes; then
25127
25128 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25129
25130 fi
25131
25132     # Enable Branch Target Identification Mechanism and Return Address
25133     # Signing by default.
25134     # Check whether --enable-standard-branch-protection was given.
25135 if test "${enable_standard_branch_protection+set}" = set; then :
25136   enableval=$enable_standard_branch_protection;
25137         case $enableval in
25138           yes)
25139             tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25140             ;;
25141           no)
25142             ;;
25143           *)
25144             as_fn_error "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25145   Valid choices are 'yes' and 'no'." "$LINENO" 5
25146             ;;
25147         esac
25148
25149 fi
25150
25151     # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25152     # Check whether --enable-fix-cortex-a53-835769 was given.
25153 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25154   enableval=$enable_fix_cortex_a53_835769;
25155         case $enableval in
25156           yes)
25157             tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25158             ;;
25159           no)
25160             ;;
25161           *)
25162             as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25163   Valid choices are 'yes' and 'no'." "$LINENO" 5
25164             ;;
25165
25166         esac
25167
25168 fi
25169
25170     # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25171     # Check whether --enable-fix-cortex-a53-843419 was given.
25172 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25173   enableval=$enable_fix_cortex_a53_843419;
25174         case $enableval in
25175           yes)
25176             tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25177             ;;
25178           no)
25179             ;;
25180           *)
25181             as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25182   Valid choices are 'yes' and 'no'." "$LINENO" 5
25183             ;;
25184
25185         esac
25186
25187 fi
25188
25189     ;;
25190
25191   # All TARGET_ABI_OSF targets.
25192   alpha*-*-linux* | alpha*-*-*bsd*)
25193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25194 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25195 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25196   $as_echo_n "(cached) " >&6
25197 else
25198   gcc_cv_as_alpha_explicit_relocs=no
25199     if test $in_tree_gas = yes; then
25200     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25201   then gcc_cv_as_alpha_explicit_relocs=yes
25202 fi
25203   elif test x$gcc_cv_as != x; then
25204     $as_echo '  .set nomacro
25205         .text
25206         extbl   $3, $2, $3      !lituse_bytoff!1
25207         ldq     $2, a($29)      !literal!1
25208         ldq     $4, b($29)      !literal!2
25209         ldq_u   $3, 0($2)       !lituse_base!1
25210         ldq     $27, f($29)     !literal!5
25211         jsr     $26, ($27), f   !lituse_jsr!5
25212         ldah    $29, 0($26)     !gpdisp!3
25213         lda     $0, c($29)      !gprel
25214         ldah    $1, d($29)      !gprelhigh
25215         lda     $1, d($1)       !gprellow
25216         lda     $29, 0($29)     !gpdisp!3' > conftest.s
25217     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25218   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25219   (eval $ac_try) 2>&5
25220   ac_status=$?
25221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25222   test $ac_status = 0; }; }
25223     then
25224         gcc_cv_as_alpha_explicit_relocs=yes
25225     else
25226       echo "configure: failed program was" >&5
25227       cat conftest.s >&5
25228     fi
25229     rm -f conftest.o conftest.s
25230   fi
25231 fi
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25233 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25234 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25235
25236 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25237
25238 fi
25239
25240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25241 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25242 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25243   $as_echo_n "(cached) " >&6
25244 else
25245   gcc_cv_as_alpha_jsrdirect_relocs=no
25246     if test $in_tree_gas = yes; then
25247     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25248   then gcc_cv_as_alpha_jsrdirect_relocs=yes
25249 fi
25250   elif test x$gcc_cv_as != x; then
25251     $as_echo '  .set nomacro
25252         .text
25253         ldq     $27, a($29)     !literal!1
25254         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
25255     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25256   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25257   (eval $ac_try) 2>&5
25258   ac_status=$?
25259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25260   test $ac_status = 0; }; }
25261     then
25262         gcc_cv_as_alpha_jsrdirect_relocs=yes
25263     else
25264       echo "configure: failed program was" >&5
25265       cat conftest.s >&5
25266     fi
25267     rm -f conftest.o conftest.s
25268   fi
25269 fi
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25271 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25272 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25273
25274 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25275
25276 fi
25277
25278     ;;
25279
25280   avr-*-*)
25281     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25282 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25283 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25284   $as_echo_n "(cached) " >&6
25285 else
25286   gcc_cv_as_avr_mlink_relax=no
25287   if test x$gcc_cv_as != x; then
25288     $as_echo '.text' > conftest.s
25289     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25290   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25291   (eval $ac_try) 2>&5
25292   ac_status=$?
25293   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25294   test $ac_status = 0; }; }
25295     then
25296         gcc_cv_as_avr_mlink_relax=yes
25297     else
25298       echo "configure: failed program was" >&5
25299       cat conftest.s >&5
25300     fi
25301     rm -f conftest.o conftest.s
25302   fi
25303 fi
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25305 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25306 if test $gcc_cv_as_avr_mlink_relax = yes; then
25307
25308 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25309
25310 fi
25311
25312
25313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25314 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25315 if ${gcc_cv_as_avr_mrmw+:} false; then :
25316   $as_echo_n "(cached) " >&6
25317 else
25318   gcc_cv_as_avr_mrmw=no
25319   if test x$gcc_cv_as != x; then
25320     $as_echo '.text' > conftest.s
25321     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25322   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25323   (eval $ac_try) 2>&5
25324   ac_status=$?
25325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25326   test $ac_status = 0; }; }
25327     then
25328         gcc_cv_as_avr_mrmw=yes
25329     else
25330       echo "configure: failed program was" >&5
25331       cat conftest.s >&5
25332     fi
25333     rm -f conftest.o conftest.s
25334   fi
25335 fi
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25337 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25338 if test $gcc_cv_as_avr_mrmw = yes; then
25339
25340 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25341
25342 fi
25343
25344
25345     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25346 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25347 if ${gcc_cv_as_avr_mgccisr+:} false; then :
25348   $as_echo_n "(cached) " >&6
25349 else
25350   gcc_cv_as_avr_mgccisr=no
25351   if test x$gcc_cv_as != x; then
25352     $as_echo '.text
25353                     __gcc_isr 1
25354                     __gcc_isr 2
25355                     __gcc_isr 0,r24
25356                    ' > conftest.s
25357     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25358   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25359   (eval $ac_try) 2>&5
25360   ac_status=$?
25361   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362   test $ac_status = 0; }; }
25363     then
25364         gcc_cv_as_avr_mgccisr=yes
25365     else
25366       echo "configure: failed program was" >&5
25367       cat conftest.s >&5
25368     fi
25369     rm -f conftest.o conftest.s
25370   fi
25371 fi
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25373 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25374 if test $gcc_cv_as_avr_mgccisr = yes; then
25375
25376 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25377
25378 fi
25379
25380
25381     # Check how default linker description file implements .rodata for
25382     # avrxmega3 (PR21472).  avr-gcc assumes .rodata is *not* loaded to
25383     # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25385 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25386     cat > conftest.s <<EOF
25387         .section .rodata,"a",@progbits
25388         .global xxvaryy
25389     ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25390     xxvaryy:
25391         .word 1
25392 EOF
25393     rm -f conftest.nm
25394     { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25395   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25396   (eval $ac_try) 2>&5
25397   ac_status=$?
25398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25399   test $ac_status = 0; }; }
25400     { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25401   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25402   (eval $ac_try) 2>&5
25403   ac_status=$?
25404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25405   test $ac_status = 0; }; }
25406     { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25407   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25408   (eval $ac_try) 2>&5
25409   ac_status=$?
25410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25411   test $ac_status = 0; }; }
25412     if test -s conftest.nm
25413     then
25414         if grep ' R xxvaryy' conftest.nm > /dev/null; then
25415             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25416 $as_echo "yes" >&6; }
25417
25418 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25419
25420         else
25421             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25422 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25423             echo "$as_me: nm output was" >&5
25424             cat conftest.nm >&5
25425             avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25426             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
25427 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25428         fi
25429     else
25430         { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25431 $as_echo "test failed" >&6; }
25432         echo "$as_me: failed program was" >&5
25433         cat conftest.s >&5
25434         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25435 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25436     fi
25437     rm -f conftest.s conftest.o conftest.elf conftest.nm
25438     ;;
25439
25440   cris-*-*)
25441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25442 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25443 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25444   $as_echo_n "(cached) " >&6
25445 else
25446   gcc_cv_as_cris_no_mul_bug=no
25447     if test $in_tree_gas = yes; then
25448     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25449   then gcc_cv_as_cris_no_mul_bug=yes
25450 fi
25451   elif test x$gcc_cv_as != x; then
25452     $as_echo '.text' > conftest.s
25453     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25454   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25455   (eval $ac_try) 2>&5
25456   ac_status=$?
25457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25458   test $ac_status = 0; }; }
25459     then
25460         gcc_cv_as_cris_no_mul_bug=yes
25461     else
25462       echo "configure: failed program was" >&5
25463       cat conftest.s >&5
25464     fi
25465     rm -f conftest.o conftest.s
25466   fi
25467 fi
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25469 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25470 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25471
25472 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25473
25474 fi
25475
25476     ;;
25477
25478   sparc*-*-*)
25479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25480 $as_echo_n "checking assembler for -relax option... " >&6; }
25481 if ${gcc_cv_as_sparc_relax+:} false; then :
25482   $as_echo_n "(cached) " >&6
25483 else
25484   gcc_cv_as_sparc_relax=no
25485   if test x$gcc_cv_as != x; then
25486     $as_echo '.text' > conftest.s
25487     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25488   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25489   (eval $ac_try) 2>&5
25490   ac_status=$?
25491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25492   test $ac_status = 0; }; }
25493     then
25494         gcc_cv_as_sparc_relax=yes
25495     else
25496       echo "configure: failed program was" >&5
25497       cat conftest.s >&5
25498     fi
25499     rm -f conftest.o conftest.s
25500   fi
25501 fi
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25503 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25504 if test $gcc_cv_as_sparc_relax = yes; then
25505
25506 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25507
25508 fi
25509
25510
25511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25512 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25513 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25514   $as_echo_n "(cached) " >&6
25515 else
25516   gcc_cv_as_sparc_gotdata_op=no
25517   if test x$gcc_cv_as != x; then
25518     $as_echo '.text
25519 .align 4
25520 foo:
25521         nop
25522 bar:
25523         sethi %gdop_hix22(foo), %g1
25524         xor    %g1, %gdop_lox10(foo), %g1
25525         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25526     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25527   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25528   (eval $ac_try) 2>&5
25529   ac_status=$?
25530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25531   test $ac_status = 0; }; }
25532     then
25533         if test x$gcc_cv_ld != x \
25534        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25535          if test x$gcc_cv_objdump != x; then
25536            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25537               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25538                gcc_cv_as_sparc_gotdata_op=no
25539            else
25540                gcc_cv_as_sparc_gotdata_op=yes
25541            fi
25542          fi
25543        fi
25544        rm -f conftest
25545     else
25546       echo "configure: failed program was" >&5
25547       cat conftest.s >&5
25548     fi
25549     rm -f conftest.o conftest.s
25550   fi
25551 fi
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25553 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25554 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25555
25556 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25557
25558 fi
25559
25560
25561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25562 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25563 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25564   $as_echo_n "(cached) " >&6
25565 else
25566   gcc_cv_as_sparc_ua_pcrel=no
25567   if test x$gcc_cv_as != x; then
25568     $as_echo '.text
25569 foo:
25570         nop
25571 .data
25572 .align 4
25573 .byte 0
25574 .uaword %r_disp32(foo)' > conftest.s
25575     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25576   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25577   (eval $ac_try) 2>&5
25578   ac_status=$?
25579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25580   test $ac_status = 0; }; }
25581     then
25582         if test x$gcc_cv_ld != x \
25583        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25584          gcc_cv_as_sparc_ua_pcrel=yes
25585        fi
25586        rm -f conftest
25587     else
25588       echo "configure: failed program was" >&5
25589       cat conftest.s >&5
25590     fi
25591     rm -f conftest.o conftest.s
25592   fi
25593 fi
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25595 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25596 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25597
25598 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25599
25600
25601       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25602 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25603 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25604   $as_echo_n "(cached) " >&6
25605 else
25606   gcc_cv_as_sparc_ua_pcrel_hidden=no
25607   if test x$gcc_cv_as != x; then
25608     $as_echo '.data
25609 .align 4
25610 .byte 0x31
25611 .uaword %r_disp32(foo)
25612 .byte 0x32, 0x33, 0x34
25613 .global foo
25614 .hidden foo
25615 foo:
25616 .skip 4' > conftest.s
25617     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25618   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25619   (eval $ac_try) 2>&5
25620   ac_status=$?
25621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25622   test $ac_status = 0; }; }
25623     then
25624         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25625          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25626          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25627             | grep ' 31000000 07323334' > /dev/null 2>&1; then
25628             if $gcc_cv_objdump -R conftest 2> /dev/null \
25629                | grep 'DISP32' > /dev/null 2>&1; then
25630                 :
25631             else
25632                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25633             fi
25634          fi
25635          rm -f conftest
25636     else
25637       echo "configure: failed program was" >&5
25638       cat conftest.s >&5
25639     fi
25640     rm -f conftest.o conftest.s
25641   fi
25642 fi
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25644 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25645 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25646
25647 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25648
25649 fi
25650
25651
25652 fi
25653  # unaligned pcrel relocs
25654
25655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25656 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25657 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
25658   $as_echo_n "(cached) " >&6
25659 else
25660   gcc_cv_as_sparc_offsetable_lo10=no
25661   if test x$gcc_cv_as != x; then
25662     $as_echo '.text
25663         or %g1, %lo(ab) + 12, %g1
25664         or %g1, %lo(ab + 12), %g1' > conftest.s
25665     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25666   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25667   (eval $ac_try) 2>&5
25668   ac_status=$?
25669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25670   test $ac_status = 0; }; }
25671     then
25672         if test x$gcc_cv_objdump != x \
25673        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25674           | grep ' 82106000 82106000' > /dev/null 2>&1; then
25675          gcc_cv_as_sparc_offsetable_lo10=yes
25676        fi
25677     else
25678       echo "configure: failed program was" >&5
25679       cat conftest.s >&5
25680     fi
25681     rm -f conftest.o conftest.s
25682   fi
25683 fi
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25685 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25686 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25687
25688 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25689
25690 fi
25691
25692
25693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25694 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25695 if ${gcc_cv_as_sparc_fmaf+:} false; then :
25696   $as_echo_n "(cached) " >&6
25697 else
25698   gcc_cv_as_sparc_fmaf=no
25699   if test x$gcc_cv_as != x; then
25700     $as_echo '.text
25701        .register %g2, #scratch
25702        .register %g3, #scratch
25703        .align 4
25704        fmaddd %f0, %f2, %f4, %f6
25705        addxccc %g1, %g2, %g3
25706        fsrl32 %f2, %f4, %f8
25707        fnaddd %f10, %f12, %f14' > conftest.s
25708     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25709   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25710   (eval $ac_try) 2>&5
25711   ac_status=$?
25712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25713   test $ac_status = 0; }; }
25714     then
25715         gcc_cv_as_sparc_fmaf=yes
25716     else
25717       echo "configure: failed program was" >&5
25718       cat conftest.s >&5
25719     fi
25720     rm -f conftest.o conftest.s
25721   fi
25722 fi
25723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25724 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25725 if test $gcc_cv_as_sparc_fmaf = yes; then
25726
25727 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25728
25729 fi
25730
25731
25732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25733 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25734 if ${gcc_cv_as_sparc_sparc4+:} false; then :
25735   $as_echo_n "(cached) " >&6
25736 else
25737   gcc_cv_as_sparc_sparc4=no
25738   if test x$gcc_cv_as != x; then
25739     $as_echo '.text
25740        .register %g2, #scratch
25741        .register %g3, #scratch
25742        .align 4
25743        cxbe %g2, %g3, 1f
25744 1:     cwbneg %g2, %g3, 1f
25745 1:     sha1
25746        md5
25747        aes_kexpand0 %f4, %f6, %f8
25748        des_round %f38, %f40, %f42, %f44
25749        camellia_f %f54, %f56, %f58, %f60
25750        kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25751     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25752   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25753   (eval $ac_try) 2>&5
25754   ac_status=$?
25755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25756   test $ac_status = 0; }; }
25757     then
25758         gcc_cv_as_sparc_sparc4=yes
25759     else
25760       echo "configure: failed program was" >&5
25761       cat conftest.s >&5
25762     fi
25763     rm -f conftest.o conftest.s
25764   fi
25765 fi
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25767 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25768 if test $gcc_cv_as_sparc_sparc4 = yes; then
25769
25770 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25771
25772 fi
25773
25774
25775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25776 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25777 if ${gcc_cv_as_sparc_sparc5+:} false; then :
25778   $as_echo_n "(cached) " >&6
25779 else
25780   gcc_cv_as_sparc_sparc5=no
25781   if test x$gcc_cv_as != x; then
25782     $as_echo '.text
25783        .register %g2, #scratch
25784        .register %g3, #scratch
25785        .align 4
25786        subxc %g1, %g2, %g3
25787        fpadd8 %f0, %f2, %f4' > conftest.s
25788     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25789   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25790   (eval $ac_try) 2>&5
25791   ac_status=$?
25792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25793   test $ac_status = 0; }; }
25794     then
25795         gcc_cv_as_sparc_sparc5=yes
25796     else
25797       echo "configure: failed program was" >&5
25798       cat conftest.s >&5
25799     fi
25800     rm -f conftest.o conftest.s
25801   fi
25802 fi
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25804 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25805 if test $gcc_cv_as_sparc_sparc5 = yes; then
25806
25807 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25808
25809 fi
25810
25811
25812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25813 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25814 if ${gcc_cv_as_sparc_sparc6+:} false; then :
25815   $as_echo_n "(cached) " >&6
25816 else
25817   gcc_cv_as_sparc_sparc6=no
25818   if test x$gcc_cv_as != x; then
25819     $as_echo '.text
25820        .register %g2, #scratch
25821        .register %g3, #scratch
25822        .align 4
25823        rd %entropy, %g1
25824        fpsll64x %f0, %f2, %f4' > conftest.s
25825     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25826   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25827   (eval $ac_try) 2>&5
25828   ac_status=$?
25829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25830   test $ac_status = 0; }; }
25831     then
25832         gcc_cv_as_sparc_sparc6=yes
25833     else
25834       echo "configure: failed program was" >&5
25835       cat conftest.s >&5
25836     fi
25837     rm -f conftest.o conftest.s
25838   fi
25839 fi
25840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25841 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25842 if test $gcc_cv_as_sparc_sparc6 = yes; then
25843
25844 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25845
25846 fi
25847
25848
25849     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25850 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25851 if ${gcc_cv_as_sparc_leon+:} false; then :
25852   $as_echo_n "(cached) " >&6
25853 else
25854   gcc_cv_as_sparc_leon=no
25855   if test x$gcc_cv_as != x; then
25856     $as_echo '.text
25857        .register %g2, #scratch
25858        .register %g3, #scratch
25859        .align 4
25860        smac %g2, %g3, %g1
25861        umac %g2, %g3, %g1
25862        casa [%g2] 0xb, %g3, %g1' > conftest.s
25863     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25864   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25865   (eval $ac_try) 2>&5
25866   ac_status=$?
25867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25868   test $ac_status = 0; }; }
25869     then
25870         gcc_cv_as_sparc_leon=yes
25871     else
25872       echo "configure: failed program was" >&5
25873       cat conftest.s >&5
25874     fi
25875     rm -f conftest.o conftest.s
25876   fi
25877 fi
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25879 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25880 if test $gcc_cv_as_sparc_leon = yes; then
25881
25882 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25883
25884 fi
25885
25886     ;;
25887
25888   i[34567]86-*-* | x86_64-*-*)
25889     case $target_os in
25890       cygwin*)
25891         # Full C++ conformance when using a shared libstdc++-v3 requires some
25892         # support from the Cygwin DLL, which in more recent versions exports
25893         # wrappers to aid in interposing and redirecting operators new, delete,
25894         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
25895         # are configuring for a version of Cygwin that exports the wrappers.
25896         if test x$host = x$target && test x$host_cpu = xi686; then
25897           ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25898 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
25899   gcc_ac_cygwin_dll_wrappers=yes
25900 else
25901   gcc_ac_cygwin_dll_wrappers=no
25902 fi
25903
25904         else
25905           # Can't check presence of libc functions during cross-compile, so
25906           # we just have to assume we're building for an up-to-date target.
25907           gcc_ac_cygwin_dll_wrappers=yes
25908         fi
25909
25910 cat >>confdefs.h <<_ACEOF
25911 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25912 _ACEOF
25913
25914     esac
25915     case $target_os in
25916       cygwin* | pe | mingw32*)
25917         # Recent binutils allows the three-operand form of ".comm" on PE.  This
25918         # definition is used unconditionally to initialise the default state of
25919         # the target option variable that governs usage of the feature.
25920         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25921 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25922 if ${gcc_cv_as_comm_has_align+:} false; then :
25923   $as_echo_n "(cached) " >&6
25924 else
25925   gcc_cv_as_comm_has_align=no
25926     if test $in_tree_gas = yes; then
25927     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25928   then gcc_cv_as_comm_has_align=yes
25929 fi
25930   elif test x$gcc_cv_as != x; then
25931     $as_echo '.comm foo,1,32' > conftest.s
25932     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25933   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25934   (eval $ac_try) 2>&5
25935   ac_status=$?
25936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25937   test $ac_status = 0; }; }
25938     then
25939         gcc_cv_as_comm_has_align=yes
25940     else
25941       echo "configure: failed program was" >&5
25942       cat conftest.s >&5
25943     fi
25944     rm -f conftest.o conftest.s
25945   fi
25946 fi
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25948 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25949
25950
25951
25952 cat >>confdefs.h <<_ACEOF
25953 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25954 _ACEOF
25955
25956         # Used for DWARF 2 in PE
25957         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25958 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25959 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
25960   $as_echo_n "(cached) " >&6
25961 else
25962   gcc_cv_as_ix86_pe_secrel32=no
25963     if test $in_tree_gas = yes; then
25964     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25965   then gcc_cv_as_ix86_pe_secrel32=yes
25966 fi
25967   elif test x$gcc_cv_as != x; then
25968     $as_echo '.text
25969 foo:    nop
25970 .data
25971         .secrel32 foo' > conftest.s
25972     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25973   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25974   (eval $ac_try) 2>&5
25975   ac_status=$?
25976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25977   test $ac_status = 0; }; }
25978     then
25979         if test x$gcc_cv_ld != x \
25980            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25981              gcc_cv_as_ix86_pe_secrel32=yes
25982            fi
25983            rm -f conftest
25984     else
25985       echo "configure: failed program was" >&5
25986       cat conftest.s >&5
25987     fi
25988     rm -f conftest.o conftest.s
25989   fi
25990 fi
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25992 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25993 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25994
25995 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25996
25997 fi
25998
25999         # Test if the assembler supports the extended form of the .section
26000         # directive that specifies section alignment.  LTO support uses this,
26001         # but normally only after installation, so we warn but don't fail the
26002         # configure if LTO is enabled but the assembler does not support it.
26003         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26004 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26005 if ${gcc_cv_as_section_has_align+:} false; then :
26006   $as_echo_n "(cached) " >&6
26007 else
26008   gcc_cv_as_section_has_align=no
26009     if test $in_tree_gas = yes; then
26010     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26011   then gcc_cv_as_section_has_align=yes
26012 fi
26013   elif test x$gcc_cv_as != x; then
26014     $as_echo '.section lto_test,"dr0"' > conftest.s
26015     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26016   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26017   (eval $ac_try) 2>&5
26018   ac_status=$?
26019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26020   test $ac_status = 0; }; }
26021     then
26022         gcc_cv_as_section_has_align=yes
26023     else
26024       echo "configure: failed program was" >&5
26025       cat conftest.s >&5
26026     fi
26027     rm -f conftest.o conftest.s
26028   fi
26029 fi
26030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26031 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26032
26033
26034         if test x$gcc_cv_as_section_has_align != xyes; then
26035           case ",$enable_languages," in
26036             *,lto,*)
26037               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
26038 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
26039               ;;
26040           esac
26041         fi
26042         ;;
26043     esac
26044
26045     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26046 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26047 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26048   $as_echo_n "(cached) " >&6
26049 else
26050   gcc_cv_as_ix86_xbrace_comment=no
26051   if test x$gcc_cv_as != x; then
26052     $as_echo '.text' > conftest.s
26053     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26054   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26055   (eval $ac_try) 2>&5
26056   ac_status=$?
26057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26058   test $ac_status = 0; }; }
26059     then
26060         gcc_cv_as_ix86_xbrace_comment=yes
26061     else
26062       echo "configure: failed program was" >&5
26063       cat conftest.s >&5
26064     fi
26065     rm -f conftest.o conftest.s
26066   fi
26067 fi
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26069 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26070 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26071
26072 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26073
26074 fi
26075
26076
26077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26078 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26079 if ${gcc_cv_as_ix86_filds+:} false; then :
26080   $as_echo_n "(cached) " >&6
26081 else
26082   gcc_cv_as_ix86_filds=no
26083   if test x$gcc_cv_as != x; then
26084     $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26085     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26086   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26087   (eval $ac_try) 2>&5
26088   ac_status=$?
26089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26090   test $ac_status = 0; }; }
26091     then
26092         gcc_cv_as_ix86_filds=yes
26093     else
26094       echo "configure: failed program was" >&5
26095       cat conftest.s >&5
26096     fi
26097     rm -f conftest.o conftest.s
26098   fi
26099 fi
26100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26101 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26102 if test $gcc_cv_as_ix86_filds = yes; then
26103
26104 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26105
26106 fi
26107
26108
26109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26110 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26111 if ${gcc_cv_as_ix86_fildq+:} false; then :
26112   $as_echo_n "(cached) " >&6
26113 else
26114   gcc_cv_as_ix86_fildq=no
26115   if test x$gcc_cv_as != x; then
26116     $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26117     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26118   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26119   (eval $ac_try) 2>&5
26120   ac_status=$?
26121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26122   test $ac_status = 0; }; }
26123     then
26124         gcc_cv_as_ix86_fildq=yes
26125     else
26126       echo "configure: failed program was" >&5
26127       cat conftest.s >&5
26128     fi
26129     rm -f conftest.o conftest.s
26130   fi
26131 fi
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26133 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26134 if test $gcc_cv_as_ix86_fildq = yes; then
26135
26136 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26137
26138 fi
26139
26140
26141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26142 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26143 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26144   $as_echo_n "(cached) " >&6
26145 else
26146   gcc_cv_as_ix86_cmov_sun_syntax=no
26147   if test x$gcc_cv_as != x; then
26148     $as_echo 'cmovl.l %edx, %eax' > conftest.s
26149     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26150   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26151   (eval $ac_try) 2>&5
26152   ac_status=$?
26153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26154   test $ac_status = 0; }; }
26155     then
26156         gcc_cv_as_ix86_cmov_sun_syntax=yes
26157     else
26158       echo "configure: failed program was" >&5
26159       cat conftest.s >&5
26160     fi
26161     rm -f conftest.o conftest.s
26162   fi
26163 fi
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26165 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26166 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26167
26168 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26169
26170 fi
26171
26172
26173     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26174 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26175 if ${gcc_cv_as_ix86_ffreep+:} false; then :
26176   $as_echo_n "(cached) " >&6
26177 else
26178   gcc_cv_as_ix86_ffreep=no
26179   if test x$gcc_cv_as != x; then
26180     $as_echo 'ffreep %st(1)' > conftest.s
26181     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26182   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26183   (eval $ac_try) 2>&5
26184   ac_status=$?
26185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26186   test $ac_status = 0; }; }
26187     then
26188         gcc_cv_as_ix86_ffreep=yes
26189     else
26190       echo "configure: failed program was" >&5
26191       cat conftest.s >&5
26192     fi
26193     rm -f conftest.o conftest.s
26194   fi
26195 fi
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26197 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26198 if test $gcc_cv_as_ix86_ffreep = yes; then
26199
26200 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26201
26202 fi
26203
26204
26205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26206 $as_echo_n "checking assembler for .quad directive... " >&6; }
26207 if ${gcc_cv_as_ix86_quad+:} false; then :
26208   $as_echo_n "(cached) " >&6
26209 else
26210   gcc_cv_as_ix86_quad=no
26211   if test x$gcc_cv_as != x; then
26212     $as_echo '.quad 0' > conftest.s
26213     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26214   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26215   (eval $ac_try) 2>&5
26216   ac_status=$?
26217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26218   test $ac_status = 0; }; }
26219     then
26220         gcc_cv_as_ix86_quad=yes
26221     else
26222       echo "configure: failed program was" >&5
26223       cat conftest.s >&5
26224     fi
26225     rm -f conftest.o conftest.s
26226   fi
26227 fi
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26229 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26230 if test $gcc_cv_as_ix86_quad = yes; then
26231
26232 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26233
26234 fi
26235
26236
26237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26238 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26239 if ${gcc_cv_as_ix86_sahf+:} false; then :
26240   $as_echo_n "(cached) " >&6
26241 else
26242   gcc_cv_as_ix86_sahf=no
26243   if test x$gcc_cv_as != x; then
26244     $as_echo '.code64
26245        sahf' > conftest.s
26246     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26247   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26248   (eval $ac_try) 2>&5
26249   ac_status=$?
26250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26251   test $ac_status = 0; }; }
26252     then
26253         gcc_cv_as_ix86_sahf=yes
26254     else
26255       echo "configure: failed program was" >&5
26256       cat conftest.s >&5
26257     fi
26258     rm -f conftest.o conftest.s
26259   fi
26260 fi
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26262 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26263 if test $gcc_cv_as_ix86_sahf = yes; then
26264
26265 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26266
26267 fi
26268
26269
26270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26271 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26272 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26273   $as_echo_n "(cached) " >&6
26274 else
26275   gcc_cv_as_ix86_interunit_movq=no
26276   if test x$gcc_cv_as != x; then
26277     $as_echo '.code64
26278        movq %mm0, %rax
26279        movq %rax, %xmm0' > conftest.s
26280     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26281   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26282   (eval $ac_try) 2>&5
26283   ac_status=$?
26284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26285   test $ac_status = 0; }; }
26286     then
26287         gcc_cv_as_ix86_interunit_movq=yes
26288     else
26289       echo "configure: failed program was" >&5
26290       cat conftest.s >&5
26291     fi
26292     rm -f conftest.o conftest.s
26293   fi
26294 fi
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26296 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26297
26298
26299
26300 cat >>confdefs.h <<_ACEOF
26301 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26302 _ACEOF
26303
26304
26305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26306 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26307 if ${gcc_cv_as_ix86_hle+:} false; then :
26308   $as_echo_n "(cached) " >&6
26309 else
26310   gcc_cv_as_ix86_hle=no
26311   if test x$gcc_cv_as != x; then
26312     $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26313     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26314   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26315   (eval $ac_try) 2>&5
26316   ac_status=$?
26317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26318   test $ac_status = 0; }; }
26319     then
26320         gcc_cv_as_ix86_hle=yes
26321     else
26322       echo "configure: failed program was" >&5
26323       cat conftest.s >&5
26324     fi
26325     rm -f conftest.o conftest.s
26326   fi
26327 fi
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26329 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26330 if test $gcc_cv_as_ix86_hle = yes; then
26331
26332 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26333
26334 fi
26335
26336
26337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26338 $as_echo_n "checking assembler for swap suffix... " >&6; }
26339 if ${gcc_cv_as_ix86_swap+:} false; then :
26340   $as_echo_n "(cached) " >&6
26341 else
26342   gcc_cv_as_ix86_swap=no
26343   if test x$gcc_cv_as != x; then
26344     $as_echo 'movl.s %esp, %ebp' > conftest.s
26345     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26346   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26347   (eval $ac_try) 2>&5
26348   ac_status=$?
26349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26350   test $ac_status = 0; }; }
26351     then
26352         gcc_cv_as_ix86_swap=yes
26353     else
26354       echo "configure: failed program was" >&5
26355       cat conftest.s >&5
26356     fi
26357     rm -f conftest.o conftest.s
26358   fi
26359 fi
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26361 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26362 if test $gcc_cv_as_ix86_swap = yes; then
26363
26364 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26365
26366 fi
26367
26368
26369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26370 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26371 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26372   $as_echo_n "(cached) " >&6
26373 else
26374   gcc_cv_as_ix86_diff_sect_delta=no
26375   if test x$gcc_cv_as != x; then
26376     $as_echo '.section .rodata
26377 .L1:
26378         .long .L2-.L1
26379         .long .L3-.L1
26380         .text
26381 .L3:    nop
26382 .L2:    nop' > conftest.s
26383     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26384   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26385   (eval $ac_try) 2>&5
26386   ac_status=$?
26387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26388   test $ac_status = 0; }; }
26389     then
26390         gcc_cv_as_ix86_diff_sect_delta=yes
26391     else
26392       echo "configure: failed program was" >&5
26393       cat conftest.s >&5
26394     fi
26395     rm -f conftest.o conftest.s
26396   fi
26397 fi
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26399 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26400 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26401
26402 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26403
26404 fi
26405
26406
26407     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26408 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26409 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26410   $as_echo_n "(cached) " >&6
26411 else
26412   gcc_cv_as_ix86_rep_lock_prefix=no
26413   if test x$gcc_cv_as != x; then
26414     $as_echo 'rep movsl
26415          rep ret
26416          rep nop
26417          rep bsf %ecx, %eax
26418          rep bsr %ecx, %eax
26419          lock addl %edi, (%eax,%esi)
26420          lock orl $0, (%esp)' > conftest.s
26421     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26422   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26423   (eval $ac_try) 2>&5
26424   ac_status=$?
26425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26426   test $ac_status = 0; }; }
26427     then
26428         gcc_cv_as_ix86_rep_lock_prefix=yes
26429     else
26430       echo "configure: failed program was" >&5
26431       cat conftest.s >&5
26432     fi
26433     rm -f conftest.o conftest.s
26434   fi
26435 fi
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26437 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26438 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26439
26440 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26441
26442 fi
26443
26444
26445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26446 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26447 if ${gcc_cv_as_ix86_ud2+:} false; then :
26448   $as_echo_n "(cached) " >&6
26449 else
26450   gcc_cv_as_ix86_ud2=no
26451   if test x$gcc_cv_as != x; then
26452     $as_echo 'ud2' > conftest.s
26453     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26454   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26455   (eval $ac_try) 2>&5
26456   ac_status=$?
26457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26458   test $ac_status = 0; }; }
26459     then
26460         gcc_cv_as_ix86_ud2=yes
26461     else
26462       echo "configure: failed program was" >&5
26463       cat conftest.s >&5
26464     fi
26465     rm -f conftest.o conftest.s
26466   fi
26467 fi
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26469 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26470 if test $gcc_cv_as_ix86_ud2 = yes; then
26471
26472 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26473
26474 fi
26475
26476
26477     # Enforce 32-bit output with gas and gld.
26478     if test x$gas = xyes; then
26479       as_ix86_gas_32_opt="--32"
26480     fi
26481     if echo "$ld_ver" | grep GNU > /dev/null; then
26482       if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26483         ld_ix86_gld_32_opt="-melf_i386_sol2"
26484       else
26485         ld_ix86_gld_32_opt="-melf_i386"
26486       fi
26487     fi
26488
26489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26490 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26491 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26492   $as_echo_n "(cached) " >&6
26493 else
26494   gcc_cv_as_ix86_tlsgdplt=no
26495   if test x$gcc_cv_as != x; then
26496     $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
26497     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26498   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26499   (eval $ac_try) 2>&5
26500   ac_status=$?
26501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26502   test $ac_status = 0; }; }
26503     then
26504         if test x$gcc_cv_ld != x \
26505          && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26506            gcc_cv_as_ix86_tlsgdplt=yes
26507          fi
26508          rm -f conftest
26509     else
26510       echo "configure: failed program was" >&5
26511       cat conftest.s >&5
26512     fi
26513     rm -f conftest.o conftest.s
26514   fi
26515 fi
26516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26517 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26518 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26519
26520 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26521
26522 fi
26523
26524
26525     conftest_s='
26526         .section .tdata,"aw'$tls_section_flag'",@progbits
26527 tls_ld:
26528         .section .text,"ax",@progbits
26529          call    tls_ld@tlsldmplt'
26530
26531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26532 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26533 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26534   $as_echo_n "(cached) " >&6
26535 else
26536   gcc_cv_as_ix86_tlsldmplt=no
26537   if test x$gcc_cv_as != x; then
26538     $as_echo "$conftest_s" > conftest.s
26539     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26540   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26541   (eval $ac_try) 2>&5
26542   ac_status=$?
26543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26544   test $ac_status = 0; }; }
26545     then
26546         if test x$gcc_cv_ld != x \
26547          && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26548            gcc_cv_as_ix86_tlsldmplt=yes
26549          fi
26550          rm -f conftest
26551     else
26552       echo "configure: failed program was" >&5
26553       cat conftest.s >&5
26554     fi
26555     rm -f conftest.o conftest.s
26556   fi
26557 fi
26558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26559 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26560
26561
26562
26563 cat >>confdefs.h <<_ACEOF
26564 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26565 _ACEOF
26566
26567
26568     conftest_s='
26569         .section .text,"ax",@progbits
26570         .globl  _start
26571         .type   _start, @function
26572 _start:
26573         leal    value@tlsldm(%ebx), %eax
26574         call    ___tls_get_addr@plt
26575
26576         .section .tdata,"aw'$tls_section_flag'",@progbits
26577         .type   value, @object
26578 value:'
26579     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26580 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26581 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26582   $as_echo_n "(cached) " >&6
26583 else
26584   gcc_cv_as_ix86_tlsldm=no
26585   if test x$gcc_cv_as != x; then
26586     $as_echo "$conftest_s" > conftest.s
26587     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26588   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26589   (eval $ac_try) 2>&5
26590   ac_status=$?
26591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26592   test $ac_status = 0; }; }
26593     then
26594         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26595             && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26596            if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26597               || dis conftest 2>/dev/null | grep nop > /dev/null; then
26598              gcc_cv_as_ix86_tlsldm=yes
26599            fi
26600          fi
26601          rm -f conftest
26602     else
26603       echo "configure: failed program was" >&5
26604       cat conftest.s >&5
26605     fi
26606     rm -f conftest.o conftest.s
26607   fi
26608 fi
26609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26610 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26611
26612
26613
26614 cat >>confdefs.h <<_ACEOF
26615 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26616 _ACEOF
26617
26618
26619     conftest_s='
26620         .data
26621 bar:
26622         .byte 1
26623         .text
26624         .global _start
26625 _start:
26626          cmpl $0, bar@GOT
26627          jmp *_start@GOT'
26628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26629 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26630 if ${gcc_cv_as_ix86_got32x+:} false; then :
26631   $as_echo_n "(cached) " >&6
26632 else
26633   gcc_cv_as_ix86_got32x=no
26634   if test x$gcc_cv_as != x; then
26635     $as_echo "$conftest_s" > conftest.s
26636     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26637   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26638   (eval $ac_try) 2>&5
26639   ac_status=$?
26640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26641   test $ac_status = 0; }; }
26642     then
26643         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26644             && test x$gcc_cv_readelf != x \
26645             && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26646                | grep R_386_GOT32X > /dev/null 2>&1 \
26647             && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26648            if $gcc_cv_objdump -dw conftest 2>&1 \
26649               | grep 0xffffff > /dev/null 2>&1; then
26650              gcc_cv_as_ix86_got32x=no
26651            else
26652              gcc_cv_as_ix86_got32x=yes
26653            fi
26654          fi
26655          rm -f conftest
26656     else
26657       echo "configure: failed program was" >&5
26658       cat conftest.s >&5
26659     fi
26660     rm -f conftest.o conftest.s
26661   fi
26662 fi
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26664 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26665
26666
26667
26668 cat >>confdefs.h <<_ACEOF
26669 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26670 _ACEOF
26671
26672
26673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26674 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26675 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
26676   $as_echo_n "(cached) " >&6
26677 else
26678   gcc_cv_as_ix86_gotoff_in_data=no
26679     if test $in_tree_gas = yes; then
26680     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26681   then gcc_cv_as_ix86_gotoff_in_data=yes
26682 fi
26683   elif test x$gcc_cv_as != x; then
26684     $as_echo '  .text
26685 .L0:
26686         nop
26687         .data
26688         .long .L0@GOTOFF' > conftest.s
26689     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26690   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26691   (eval $ac_try) 2>&5
26692   ac_status=$?
26693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26694   test $ac_status = 0; }; }
26695     then
26696         gcc_cv_as_ix86_gotoff_in_data=yes
26697     else
26698       echo "configure: failed program was" >&5
26699       cat conftest.s >&5
26700     fi
26701     rm -f conftest.o conftest.s
26702   fi
26703 fi
26704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26705 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26706
26707
26708
26709 cat >>confdefs.h <<_ACEOF
26710 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26711 _ACEOF
26712
26713
26714     conftest_s='
26715         .section .text,"ax",@progbits
26716         .globl  _start
26717         .type   _start, @function
26718 _start:
26719         leal    ld@tlsldm(%ecx), %eax
26720         call    *___tls_get_addr@GOT(%ecx)
26721         leal    gd@tlsgd(%ecx), %eax
26722         call    *___tls_get_addr@GOT(%ecx)
26723
26724         .section .tdata,"aw'$tls_section_flag'",@progbits
26725         .type   ld, @object
26726 ld:
26727         .byte 0
26728         .globl  gd
26729         .type   gd, @object
26730 gd:
26731         .byte 0'
26732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26733 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26734 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
26735   $as_echo_n "(cached) " >&6
26736 else
26737   gcc_cv_as_ix86_tls_get_addr_via_got=no
26738   if test x$gcc_cv_as != x; then
26739     $as_echo "$conftest_s" > conftest.s
26740     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26741   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26742   (eval $ac_try) 2>&5
26743   ac_status=$?
26744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26745   test $ac_status = 0; }; }
26746     then
26747         if test x$gcc_cv_ld != x \
26748             && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26749            gcc_cv_as_ix86_tls_get_addr_via_got=yes
26750          fi
26751          rm -f conftest
26752     else
26753       echo "configure: failed program was" >&5
26754       cat conftest.s >&5
26755     fi
26756     rm -f conftest.o conftest.s
26757   fi
26758 fi
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26760 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26761
26762
26763
26764 cat >>confdefs.h <<_ACEOF
26765 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
26766 _ACEOF
26767
26768     ;;
26769
26770   ia64*-*-*)
26771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26772 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26773 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
26774   $as_echo_n "(cached) " >&6
26775 else
26776   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26777     if test $in_tree_gas = yes; then
26778     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26779   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26780 fi
26781   elif test x$gcc_cv_as != x; then
26782     $as_echo '  .text
26783         addl r15 = @ltoffx(x#), gp
26784         ;;
26785         ld8.mov r16 = [r15], x#
26786 ' > conftest.s
26787     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26788   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26789   (eval $ac_try) 2>&5
26790   ac_status=$?
26791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26792   test $ac_status = 0; }; }
26793     then
26794         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26795     else
26796       echo "configure: failed program was" >&5
26797       cat conftest.s >&5
26798     fi
26799     rm -f conftest.o conftest.s
26800   fi
26801 fi
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26803 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26804 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26805
26806 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26807
26808 fi
26809
26810
26811     ;;
26812
26813   powerpc*-*-*)
26814
26815     case $target in
26816       *-*-darwin*)
26817         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26818 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26819 if ${gcc_cv_as_machine_directive+:} false; then :
26820   $as_echo_n "(cached) " >&6
26821 else
26822   gcc_cv_as_machine_directive=no
26823   if test x$gcc_cv_as != x; then
26824     $as_echo '  .machine ppc7400' > conftest.s
26825     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26826   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26827   (eval $ac_try) 2>&5
26828   ac_status=$?
26829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26830   test $ac_status = 0; }; }
26831     then
26832         gcc_cv_as_machine_directive=yes
26833     else
26834       echo "configure: failed program was" >&5
26835       cat conftest.s >&5
26836     fi
26837     rm -f conftest.o conftest.s
26838   fi
26839 fi
26840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26841 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26842
26843
26844         if test x$gcc_cv_as_machine_directive != xyes; then
26845           echo "*** This target requires an assembler supporting \".machine\"" >&2
26846           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26847           test x$build = x$target && exit 1
26848         fi
26849         ;;
26850     esac
26851
26852     case $target in
26853       *-*-aix*) conftest_s='    .machine "pwr5"
26854         .csect .text[PR]
26855         mfcr 3,128';;
26856       *-*-darwin*) conftest_s=' .text
26857         mfcr r3,128';;
26858       *) conftest_s='   .machine power4
26859         .text
26860         mfcr 3,128';;
26861     esac
26862
26863     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26864 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26865 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
26866   $as_echo_n "(cached) " >&6
26867 else
26868   gcc_cv_as_powerpc_mfcrf=no
26869     if test $in_tree_gas = yes; then
26870     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26871   then gcc_cv_as_powerpc_mfcrf=yes
26872 fi
26873   elif test x$gcc_cv_as != x; then
26874     $as_echo "$conftest_s" > conftest.s
26875     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26876   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26877   (eval $ac_try) 2>&5
26878   ac_status=$?
26879   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26880   test $ac_status = 0; }; }
26881     then
26882         gcc_cv_as_powerpc_mfcrf=yes
26883     else
26884       echo "configure: failed program was" >&5
26885       cat conftest.s >&5
26886     fi
26887     rm -f conftest.o conftest.s
26888   fi
26889 fi
26890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26891 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26892 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26893
26894 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26895
26896 fi
26897
26898
26899     case $target in
26900       *-*-aix*) conftest_s='    .csect .text[PR]
26901 LCF..0:
26902         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26903       *-*-darwin*)
26904         conftest_s='    .text
26905 LCF0:
26906         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26907       *) conftest_s='   .text
26908 .LCF0:
26909         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26910     esac
26911
26912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26913 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26914 if ${gcc_cv_as_powerpc_rel16+:} false; then :
26915   $as_echo_n "(cached) " >&6
26916 else
26917   gcc_cv_as_powerpc_rel16=no
26918     if test $in_tree_gas = yes; then
26919     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26920   then gcc_cv_as_powerpc_rel16=yes
26921 fi
26922   elif test x$gcc_cv_as != x; then
26923     $as_echo "$conftest_s" > conftest.s
26924     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26925   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26926   (eval $ac_try) 2>&5
26927   ac_status=$?
26928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26929   test $ac_status = 0; }; }
26930     then
26931         gcc_cv_as_powerpc_rel16=yes
26932     else
26933       echo "configure: failed program was" >&5
26934       cat conftest.s >&5
26935     fi
26936     rm -f conftest.o conftest.s
26937   fi
26938 fi
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26940 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26941 if test $gcc_cv_as_powerpc_rel16 = yes; then
26942
26943 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26944
26945 fi
26946
26947
26948     case $target in
26949       *-*-aix*) conftest_s='    .machine "pwr7"
26950         .csect .text[PR]
26951         lxvd2x 1,2,3';;
26952       *) conftest_s='   .machine power7
26953         .text
26954         lxvd2x 1,2,3';;
26955     esac
26956
26957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26958 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26959 if ${gcc_cv_as_powerpc_vsx+:} false; then :
26960   $as_echo_n "(cached) " >&6
26961 else
26962   gcc_cv_as_powerpc_vsx=no
26963     if test $in_tree_gas = yes; then
26964     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26965   then gcc_cv_as_powerpc_vsx=yes
26966 fi
26967   elif test x$gcc_cv_as != x; then
26968     $as_echo "$conftest_s" > conftest.s
26969     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26970   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26971   (eval $ac_try) 2>&5
26972   ac_status=$?
26973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26974   test $ac_status = 0; }; }
26975     then
26976         gcc_cv_as_powerpc_vsx=yes
26977     else
26978       echo "configure: failed program was" >&5
26979       cat conftest.s >&5
26980     fi
26981     rm -f conftest.o conftest.s
26982   fi
26983 fi
26984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26985 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26986 if test $gcc_cv_as_powerpc_vsx = yes; then
26987
26988 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26989
26990 fi
26991
26992
26993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26994 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26995 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
26996   $as_echo_n "(cached) " >&6
26997 else
26998   gcc_cv_as_powerpc_gnu_attribute=no
26999     if test $in_tree_gas = yes; then
27000     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27001   then gcc_cv_as_powerpc_gnu_attribute=yes
27002 fi
27003   elif test x$gcc_cv_as != x; then
27004     $as_echo '.gnu_attribute 4,1' > conftest.s
27005     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27006   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27007   (eval $ac_try) 2>&5
27008   ac_status=$?
27009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27010   test $ac_status = 0; }; }
27011     then
27012         gcc_cv_as_powerpc_gnu_attribute=yes
27013     else
27014       echo "configure: failed program was" >&5
27015       cat conftest.s >&5
27016     fi
27017     rm -f conftest.o conftest.s
27018   fi
27019 fi
27020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27021 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27022 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27023
27024 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27025
27026 fi
27027
27028
27029     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27030 $as_echo_n "checking assembler for tls marker support... " >&6; }
27031 if ${gcc_cv_as_powerpc_tls_markers+:} false; then :
27032   $as_echo_n "(cached) " >&6
27033 else
27034   gcc_cv_as_powerpc_tls_markers=no
27035     if test $in_tree_gas = yes; then
27036     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27037   then gcc_cv_as_powerpc_tls_markers=yes
27038 fi
27039   elif test x$gcc_cv_as != x; then
27040     $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27041     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27042   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27043   (eval $ac_try) 2>&5
27044   ac_status=$?
27045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27046   test $ac_status = 0; }; }
27047     then
27048         gcc_cv_as_powerpc_tls_markers=yes
27049     else
27050       echo "configure: failed program was" >&5
27051       cat conftest.s >&5
27052     fi
27053     rm -f conftest.o conftest.s
27054   fi
27055 fi
27056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27057 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27058 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27059
27060 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27061
27062 fi
27063
27064
27065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27066 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27067 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27068   $as_echo_n "(cached) " >&6
27069 else
27070   gcc_cv_as_powerpc_entry_markers=no
27071     if test $in_tree_gas = yes; then
27072     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27073   then gcc_cv_as_powerpc_entry_markers=yes
27074 fi
27075   elif test x$gcc_cv_as != x; then
27076     $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27077     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27078   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27079   (eval $ac_try) 2>&5
27080   ac_status=$?
27081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27082   test $ac_status = 0; }; }
27083     then
27084         gcc_cv_as_powerpc_entry_markers=yes
27085     else
27086       echo "configure: failed program was" >&5
27087       cat conftest.s >&5
27088     fi
27089     rm -f conftest.o conftest.s
27090   fi
27091 fi
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27093 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27094 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27095
27096 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27097
27098 fi
27099
27100
27101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27102 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27103 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27104   $as_echo_n "(cached) " >&6
27105 else
27106   gcc_cv_as_powerpc_pltseq_markers=no
27107     if test $in_tree_gas = yes; then
27108     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27109   then gcc_cv_as_powerpc_pltseq_markers=yes
27110 fi
27111   elif test x$gcc_cv_as != x; then
27112     $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27113     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27114   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27115   (eval $ac_try) 2>&5
27116   ac_status=$?
27117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27118   test $ac_status = 0; }; }
27119     then
27120         gcc_cv_as_powerpc_pltseq_markers=yes
27121     else
27122       echo "configure: failed program was" >&5
27123       cat conftest.s >&5
27124     fi
27125     rm -f conftest.o conftest.s
27126   fi
27127 fi
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27129 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27130 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27131
27132 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27133
27134 fi
27135
27136
27137     case $target in
27138       *-*-aix*)
27139         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27140 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27141 if ${gcc_cv_as_aix_ref+:} false; then :
27142   $as_echo_n "(cached) " >&6
27143 else
27144   gcc_cv_as_aix_ref=no
27145     if test $in_tree_gas = yes; then
27146     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27147   then gcc_cv_as_aix_ref=yes
27148 fi
27149   elif test x$gcc_cv_as != x; then
27150     $as_echo '  .csect stuff[rw]
27151              stuff:
27152                 .long 1
27153                 .extern sym
27154                 .ref sym
27155           ' > conftest.s
27156     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27157   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27158   (eval $ac_try) 2>&5
27159   ac_status=$?
27160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27161   test $ac_status = 0; }; }
27162     then
27163         gcc_cv_as_aix_ref=yes
27164     else
27165       echo "configure: failed program was" >&5
27166       cat conftest.s >&5
27167     fi
27168     rm -f conftest.o conftest.s
27169   fi
27170 fi
27171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27172 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27173 if test $gcc_cv_as_aix_ref = yes; then
27174
27175 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27176
27177 fi
27178
27179
27180         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27181 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27182 if ${gcc_cv_as_aix_dwloc+:} false; then :
27183   $as_echo_n "(cached) " >&6
27184 else
27185   gcc_cv_as_aix_dwloc=no
27186     if test $in_tree_gas = yes; then
27187     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27188   then gcc_cv_as_aix_dwloc=yes
27189 fi
27190   elif test x$gcc_cv_as != x; then
27191     $as_echo '  .dwsect 0xA0000
27192         Lframe..0:
27193                 .vbyte 4,Lframe..0
27194           ' > conftest.s
27195     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27196   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27197   (eval $ac_try) 2>&5
27198   ac_status=$?
27199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27200   test $ac_status = 0; }; }
27201     then
27202         gcc_cv_as_aix_dwloc=yes
27203     else
27204       echo "configure: failed program was" >&5
27205       cat conftest.s >&5
27206     fi
27207     rm -f conftest.o conftest.s
27208   fi
27209 fi
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27211 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27212 if test $gcc_cv_as_aix_dwloc = yes; then
27213
27214 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27215
27216 fi
27217
27218         ;;
27219     esac
27220     ;;
27221
27222   mips*-*-*)
27223     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27224 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27225 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27226   $as_echo_n "(cached) " >&6
27227 else
27228   gcc_cv_as_mips_explicit_relocs=no
27229     if test $in_tree_gas = yes; then
27230     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27231   then gcc_cv_as_mips_explicit_relocs=yes
27232 fi
27233   elif test x$gcc_cv_as != x; then
27234     $as_echo '  lw $4,%gp_rel(foo)($4)' > conftest.s
27235     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27236   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27237   (eval $ac_try) 2>&5
27238   ac_status=$?
27239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27240   test $ac_status = 0; }; }
27241     then
27242         gcc_cv_as_mips_explicit_relocs=yes
27243     else
27244       echo "configure: failed program was" >&5
27245       cat conftest.s >&5
27246     fi
27247     rm -f conftest.o conftest.s
27248   fi
27249 fi
27250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27251 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27252 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27253   if test x$target_cpu_default = x
27254        then target_cpu_default=MASK_EXPLICIT_RELOCS
27255        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27256        fi
27257 fi
27258
27259
27260     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27261 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27262 if ${gcc_cv_as_mips_no_shared+:} false; then :
27263   $as_echo_n "(cached) " >&6
27264 else
27265   gcc_cv_as_mips_no_shared=no
27266     if test $in_tree_gas = yes; then
27267     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27268   then gcc_cv_as_mips_no_shared=yes
27269 fi
27270   elif test x$gcc_cv_as != x; then
27271     $as_echo 'nop' > conftest.s
27272     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27273   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27274   (eval $ac_try) 2>&5
27275   ac_status=$?
27276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27277   test $ac_status = 0; }; }
27278     then
27279         gcc_cv_as_mips_no_shared=yes
27280     else
27281       echo "configure: failed program was" >&5
27282       cat conftest.s >&5
27283     fi
27284     rm -f conftest.o conftest.s
27285   fi
27286 fi
27287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27288 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27289 if test $gcc_cv_as_mips_no_shared = yes; then
27290
27291 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27292
27293 fi
27294
27295
27296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27297 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27298 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27299   $as_echo_n "(cached) " >&6
27300 else
27301   gcc_cv_as_mips_gnu_attribute=no
27302     if test $in_tree_gas = yes; then
27303     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27304   then gcc_cv_as_mips_gnu_attribute=yes
27305 fi
27306   elif test x$gcc_cv_as != x; then
27307     $as_echo '.gnu_attribute 4,1' > conftest.s
27308     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27309   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27310   (eval $ac_try) 2>&5
27311   ac_status=$?
27312   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27313   test $ac_status = 0; }; }
27314     then
27315         gcc_cv_as_mips_gnu_attribute=yes
27316     else
27317       echo "configure: failed program was" >&5
27318       cat conftest.s >&5
27319     fi
27320     rm -f conftest.o conftest.s
27321   fi
27322 fi
27323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27324 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27325 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27326
27327 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27328
27329 fi
27330
27331
27332     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27333 $as_echo_n "checking assembler for .module support... " >&6; }
27334 if ${gcc_cv_as_mips_dot_module+:} false; then :
27335   $as_echo_n "(cached) " >&6
27336 else
27337   gcc_cv_as_mips_dot_module=no
27338   if test x$gcc_cv_as != x; then
27339     $as_echo '.module mips2
27340        .module fp=xx' > conftest.s
27341     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27342   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27343   (eval $ac_try) 2>&5
27344   ac_status=$?
27345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27346   test $ac_status = 0; }; }
27347     then
27348         gcc_cv_as_mips_dot_module=yes
27349     else
27350       echo "configure: failed program was" >&5
27351       cat conftest.s >&5
27352     fi
27353     rm -f conftest.o conftest.s
27354   fi
27355 fi
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27357 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27358 if test $gcc_cv_as_mips_dot_module = yes; then
27359
27360 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27361
27362 fi
27363
27364     if test x$gcc_cv_as_mips_dot_module = xno \
27365        && test x$with_fp_32 != x; then
27366       as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27367     fi
27368
27369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27370 $as_echo_n "checking assembler for .micromips support... " >&6; }
27371 if ${gcc_cv_as_micromips_support+:} false; then :
27372   $as_echo_n "(cached) " >&6
27373 else
27374   gcc_cv_as_micromips_support=no
27375   if test x$gcc_cv_as != x; then
27376     $as_echo '.set micromips' > conftest.s
27377     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27378   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27379   (eval $ac_try) 2>&5
27380   ac_status=$?
27381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27382   test $ac_status = 0; }; }
27383     then
27384         gcc_cv_as_micromips_support=yes
27385     else
27386       echo "configure: failed program was" >&5
27387       cat conftest.s >&5
27388     fi
27389     rm -f conftest.o conftest.s
27390   fi
27391 fi
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27393 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27394 if test $gcc_cv_as_micromips_support = yes; then
27395
27396 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27397
27398 fi
27399
27400
27401     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27402 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27403 if ${gcc_cv_as_mips_dtprelword+:} false; then :
27404   $as_echo_n "(cached) " >&6
27405 else
27406   gcc_cv_as_mips_dtprelword=no
27407     if test $in_tree_gas = yes; then
27408     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27409   then gcc_cv_as_mips_dtprelword=yes
27410 fi
27411   elif test x$gcc_cv_as != x; then
27412     $as_echo '.section .tdata,"awT",@progbits
27413 x:
27414         .word 2
27415         .text
27416         .dtprelword x+0x8000' > conftest.s
27417     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27418   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27419   (eval $ac_try) 2>&5
27420   ac_status=$?
27421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27422   test $ac_status = 0; }; }
27423     then
27424         gcc_cv_as_mips_dtprelword=yes
27425     else
27426       echo "configure: failed program was" >&5
27427       cat conftest.s >&5
27428     fi
27429     rm -f conftest.o conftest.s
27430   fi
27431 fi
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27433 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27434 if test $gcc_cv_as_mips_dtprelword = yes; then
27435
27436 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27437
27438 fi
27439
27440
27441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27442 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27443 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27444   $as_echo_n "(cached) " >&6
27445 else
27446   gcc_cv_as_mips_dspr1_mult=no
27447   if test x$gcc_cv_as != x; then
27448     $as_echo '  .set    mips32r2
27449         .set    nodspr2
27450         .set    dsp
27451         madd    $ac3,$4,$5
27452         maddu   $ac3,$4,$5
27453         msub    $ac3,$4,$5
27454         msubu   $ac3,$4,$5
27455         mult    $ac3,$4,$5
27456         multu   $ac3,$4,$5' > conftest.s
27457     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27458   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27459   (eval $ac_try) 2>&5
27460   ac_status=$?
27461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27462   test $ac_status = 0; }; }
27463     then
27464         gcc_cv_as_mips_dspr1_mult=yes
27465     else
27466       echo "configure: failed program was" >&5
27467       cat conftest.s >&5
27468     fi
27469     rm -f conftest.o conftest.s
27470   fi
27471 fi
27472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27473 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27474 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27475
27476 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27477
27478 fi
27479
27480
27481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27482 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27483     gcc_cv_as_ld_jalr_reloc=no
27484     if test $gcc_cv_as_mips_explicit_relocs = yes; then
27485       if test $in_tree_ld = yes ; then
27486         if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \
27487            && test $in_tree_ld_is_elf = yes; then
27488           gcc_cv_as_ld_jalr_reloc=yes
27489         fi
27490       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27491         echo '  .ent x' > conftest.s
27492         echo 'x:        lw $2,%got_disp(y)($3)' >> conftest.s
27493         echo '  lw $25,%call16(y)($28)' >> conftest.s
27494         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
27495         echo '1:        jalr $25' >> conftest.s
27496         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
27497         echo '1:        jalr $25' >> conftest.s
27498         echo '  .end x' >> conftest.s
27499         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27500            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27501           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27502              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27503             gcc_cv_as_ld_jalr_reloc=yes
27504           fi
27505         fi
27506         rm -f conftest.*
27507       fi
27508     fi
27509     if test $gcc_cv_as_ld_jalr_reloc = yes; then
27510       if test x$target_cpu_default = x; then
27511         target_cpu_default=MASK_RELAX_PIC_CALLS
27512       else
27513         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27514       fi
27515     fi
27516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27517 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27518
27519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27520 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27521 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27522   $as_echo_n "(cached) " >&6
27523 else
27524   gcc_cv_ld_mips_personality_relaxation=no
27525        if test $in_tree_ld = yes ; then
27526          if test "$gcc_cv_gld_major_version" -eq 2 \
27527                  -a "$gcc_cv_gld_minor_version" -ge 21 \
27528                  -o "$gcc_cv_gld_major_version" -gt 2; then
27529            gcc_cv_ld_mips_personality_relaxation=yes
27530          fi
27531        elif test x$gcc_cv_as != x \
27532                  -a x$gcc_cv_ld != x \
27533                  -a x$gcc_cv_readelf != x ; then
27534          cat > conftest.s <<EOF
27535         .cfi_startproc
27536         .cfi_personality 0x80,indirect_ptr
27537         .ent test
27538 test:
27539         nop
27540         .end test
27541         .cfi_endproc
27542
27543         .section .data,"aw",@progbits
27544 indirect_ptr:
27545         .dc.a personality
27546 EOF
27547          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27548             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27549            if $gcc_cv_readelf -d conftest 2>&1 \
27550               | grep TEXTREL > /dev/null 2>&1; then
27551              :
27552            elif $gcc_cv_readelf --relocs conftest 2>&1 \
27553                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27554              :
27555            else
27556              gcc_cv_ld_mips_personality_relaxation=yes
27557            fi
27558          fi
27559        fi
27560        rm -f conftest.s conftest.o conftest
27561 fi
27562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27563 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27564     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27565
27566 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27567
27568     fi
27569
27570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27571 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27572 if ${gcc_cv_as_mips_nan+:} false; then :
27573   $as_echo_n "(cached) " >&6
27574 else
27575   gcc_cv_as_mips_nan=no
27576   if test x$gcc_cv_as != x; then
27577     $as_echo '' > conftest.s
27578     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27579   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27580   (eval $ac_try) 2>&5
27581   ac_status=$?
27582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27583   test $ac_status = 0; }; }
27584     then
27585         gcc_cv_as_mips_nan=yes
27586     else
27587       echo "configure: failed program was" >&5
27588       cat conftest.s >&5
27589     fi
27590     rm -f conftest.o conftest.s
27591   fi
27592 fi
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27594 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27595 if test $gcc_cv_as_mips_nan = yes; then
27596
27597 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27598
27599 fi
27600
27601     if test x$gcc_cv_as_mips_nan = xno \
27602        && test x$with_nan != x; then
27603       as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27604     fi
27605     ;;
27606     s390*-*-*)
27607     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27608 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27609 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
27610   $as_echo_n "(cached) " >&6
27611 else
27612   gcc_cv_as_s390_gnu_attribute=no
27613     if test $in_tree_gas = yes; then
27614     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27615   then gcc_cv_as_s390_gnu_attribute=yes
27616 fi
27617   elif test x$gcc_cv_as != x; then
27618     $as_echo '.gnu_attribute 8,1' > conftest.s
27619     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27620   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27621   (eval $ac_try) 2>&5
27622   ac_status=$?
27623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27624   test $ac_status = 0; }; }
27625     then
27626         gcc_cv_as_s390_gnu_attribute=yes
27627     else
27628       echo "configure: failed program was" >&5
27629       cat conftest.s >&5
27630     fi
27631     rm -f conftest.o conftest.s
27632   fi
27633 fi
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27635 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27636 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27637
27638 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27639
27640 fi
27641
27642     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27643 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27644 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
27645   $as_echo_n "(cached) " >&6
27646 else
27647   gcc_cv_as_s390_machine_machinemode=no
27648     if test $in_tree_gas = yes; then
27649     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27650   then gcc_cv_as_s390_machine_machinemode=yes
27651 fi
27652   elif test x$gcc_cv_as != x; then
27653     $as_echo '  .machinemode push
27654         .machinemode pop
27655         .machine push
27656         .machine pop' > conftest.s
27657     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27658   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27659   (eval $ac_try) 2>&5
27660   ac_status=$?
27661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27662   test $ac_status = 0; }; }
27663     then
27664         gcc_cv_as_s390_machine_machinemode=yes
27665     else
27666       echo "configure: failed program was" >&5
27667       cat conftest.s >&5
27668     fi
27669     rm -f conftest.o conftest.s
27670   fi
27671 fi
27672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27673 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27674 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27675
27676 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27677
27678 fi
27679
27680     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27681 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27682 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
27683   $as_echo_n "(cached) " >&6
27684 else
27685   gcc_cv_as_s390_architecture_modifiers=no
27686     if test $in_tree_gas = yes; then
27687     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27688   then gcc_cv_as_s390_architecture_modifiers=yes
27689 fi
27690   elif test x$gcc_cv_as != x; then
27691     $as_echo '  .machine z13+vx ' > conftest.s
27692     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27693   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27694   (eval $ac_try) 2>&5
27695   ac_status=$?
27696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27697   test $ac_status = 0; }; }
27698     then
27699         gcc_cv_as_s390_architecture_modifiers=yes
27700     else
27701       echo "configure: failed program was" >&5
27702       cat conftest.s >&5
27703     fi
27704     rm -f conftest.o conftest.s
27705   fi
27706 fi
27707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27708 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27709 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27710
27711 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27712
27713 fi
27714
27715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
27716 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
27717 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
27718   $as_echo_n "(cached) " >&6
27719 else
27720   gcc_cv_as_s390_vector_loadstore_alignment_hints=no
27721     if test $in_tree_gas = yes; then
27722     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27723   then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
27724 fi
27725   elif test x$gcc_cv_as != x; then
27726     $as_echo '  vl %v24,0(%r15),3 ' > conftest.s
27727     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27728   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27729   (eval $ac_try) 2>&5
27730   ac_status=$?
27731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27732   test $ac_status = 0; }; }
27733     then
27734         gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
27735     else
27736       echo "configure: failed program was" >&5
27737       cat conftest.s >&5
27738     fi
27739     rm -f conftest.o conftest.s
27740   fi
27741 fi
27742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
27743 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
27744 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
27745
27746 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
27747
27748 fi
27749
27750
27751     ;;
27752 esac
27753
27754 # Mips and HP-UX need the GNU assembler.
27755 # Linux on IA64 might be able to use the Intel assembler.
27756
27757 case "$target" in
27758   mips*-*-* | *-*-hpux* )
27759     if test x$gas_flag = xyes \
27760        || test x"$host" != x"$build" \
27761        || test ! -x "$gcc_cv_as" \
27762        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27763       :
27764     else
27765       echo "*** This configuration requires the GNU assembler" >&2
27766       exit 1
27767     fi
27768     ;;
27769 esac
27770
27771 # ??? Not all targets support dwarf2 debug_line, even within a version
27772 # of gas.  Moreover, we need to emit a valid instruction to trigger any
27773 # info to the output file.  So, as supported targets are added to gas 2.11,
27774 # add some instruction here to (also) show we expect this might work.
27775 # ??? Once 2.11 is released, probably need to add first known working
27776 # version to the per-target configury.
27777 case "$cpu_type" in
27778   aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27779   | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27780   | tilegx | tilepro | visium | xstormy16 | xtensa)
27781     insn="nop"
27782     ;;
27783   ia64 | s390)
27784     insn="nop 0"
27785     ;;
27786   mmix)
27787     insn="swym 0"
27788     ;;
27789 esac
27790 if test x"$insn" != x; then
27791  conftest_s="\
27792         .file 1 \"conftest.s\"
27793         .loc 1 3 0
27794         $insn"
27795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27796 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27797 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
27798   $as_echo_n "(cached) " >&6
27799 else
27800   gcc_cv_as_dwarf2_debug_line=no
27801     if test $in_tree_gas = yes; then
27802     if test $in_tree_gas_is_elf = yes \
27803   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27804   then gcc_cv_as_dwarf2_debug_line=yes
27805 fi
27806   elif test x$gcc_cv_as != x; then
27807     $as_echo "$conftest_s" > conftest.s
27808     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27809   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27810   (eval $ac_try) 2>&5
27811   ac_status=$?
27812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27813   test $ac_status = 0; }; }
27814     then
27815         if test x$gcc_cv_objdump != x \
27816    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27817       | grep debug_line > /dev/null 2>&1; then
27818      gcc_cv_as_dwarf2_debug_line=yes
27819    elif test x$gcc_cv_otool != x \
27820    && $gcc_cv_otool -l conftest.o 2> /dev/null \
27821       | grep debug_line > /dev/null 2>&1; then
27822      gcc_cv_as_dwarf2_debug_line=yes
27823    fi
27824     else
27825       echo "configure: failed program was" >&5
27826       cat conftest.s >&5
27827     fi
27828     rm -f conftest.o conftest.s
27829   fi
27830 fi
27831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27832 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27833
27834
27835
27836 # The .debug_line file table must be in the exact order that
27837 # we specified the files, since these indices are also used
27838 # by DW_AT_decl_file.  Approximate this test by testing if
27839 # the assembler bitches if the same index is assigned twice.
27840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27841 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27842 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
27843   $as_echo_n "(cached) " >&6
27844 else
27845   gcc_cv_as_dwarf2_file_buggy=no
27846   if test x$gcc_cv_as != x; then
27847     $as_echo '  .file 1 "foo.s"
27848         .file 1 "bar.s"' > conftest.s
27849     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27850   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27851   (eval $ac_try) 2>&5
27852   ac_status=$?
27853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27854   test $ac_status = 0; }; }
27855     then
27856         gcc_cv_as_dwarf2_file_buggy=yes
27857     else
27858       echo "configure: failed program was" >&5
27859       cat conftest.s >&5
27860     fi
27861     rm -f conftest.o conftest.s
27862   fi
27863 fi
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27865 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27866
27867
27868
27869  if test $gcc_cv_as_dwarf2_debug_line = yes \
27870  && test $gcc_cv_as_dwarf2_file_buggy = no; then
27871
27872 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27873
27874
27875     if test $gcc_cv_as_leb128 = yes; then
27876         conftest_s="\
27877         .file 1 \"conftest.s\"
27878         .loc 1 3 0 view .LVU1
27879         $insn
27880         .data
27881         .uleb128 .LVU1
27882         .uleb128 .LVU1
27883 "
27884         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27885 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27886 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
27887   $as_echo_n "(cached) " >&6
27888 else
27889   gcc_cv_as_dwarf2_debug_view=no
27890     if test $in_tree_gas = yes; then
27891     if test $in_tree_gas_is_elf = yes \
27892   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27893   then gcc_cv_as_dwarf2_debug_view=yes
27894 fi
27895   elif test x$gcc_cv_as != x; then
27896     $as_echo "$conftest_s" > conftest.s
27897     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27898   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27899   (eval $ac_try) 2>&5
27900   ac_status=$?
27901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27902   test $ac_status = 0; }; }
27903     then
27904         gcc_cv_as_dwarf2_debug_view=yes
27905     else
27906       echo "configure: failed program was" >&5
27907       cat conftest.s >&5
27908     fi
27909     rm -f conftest.o conftest.s
27910   fi
27911 fi
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27913 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27914 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27915
27916 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27917
27918 fi
27919
27920     fi
27921  fi
27922
27923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27924 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27925 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
27926   $as_echo_n "(cached) " >&6
27927 else
27928   gcc_cv_as_gdwarf2_flag=no
27929     if test $in_tree_gas = yes; then
27930     if test $in_tree_gas_is_elf = yes \
27931   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27932   then gcc_cv_as_gdwarf2_flag=yes
27933 fi
27934   elif test x$gcc_cv_as != x; then
27935     $as_echo "$insn" > conftest.s
27936     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27937   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27938   (eval $ac_try) 2>&5
27939   ac_status=$?
27940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27941   test $ac_status = 0; }; }
27942     then
27943         gcc_cv_as_gdwarf2_flag=yes
27944     else
27945       echo "configure: failed program was" >&5
27946       cat conftest.s >&5
27947     fi
27948     rm -f conftest.o conftest.s
27949   fi
27950 fi
27951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27952 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27953 if test $gcc_cv_as_gdwarf2_flag = yes; then
27954
27955 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27956
27957 fi
27958
27959
27960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27961 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27962 if ${gcc_cv_as_gstabs_flag+:} false; then :
27963   $as_echo_n "(cached) " >&6
27964 else
27965   gcc_cv_as_gstabs_flag=no
27966     if test $in_tree_gas = yes; then
27967     if test $in_tree_gas_is_elf = yes \
27968   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27969   then gcc_cv_as_gstabs_flag=yes
27970 fi
27971   elif test x$gcc_cv_as != x; then
27972     $as_echo "$insn" > conftest.s
27973     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27974   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27975   (eval $ac_try) 2>&5
27976   ac_status=$?
27977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27978   test $ac_status = 0; }; }
27979     then
27980         gcc_cv_as_gstabs_flag=yes
27981     else
27982       echo "configure: failed program was" >&5
27983       cat conftest.s >&5
27984     fi
27985     rm -f conftest.o conftest.s
27986   fi
27987 fi
27988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27989 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27990 if test $gcc_cv_as_gstabs_flag = yes; then
27991
27992 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27993
27994 fi
27995
27996
27997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27998 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27999 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
28000   $as_echo_n "(cached) " >&6
28001 else
28002   gcc_cv_as_debug_prefix_map_flag=no
28003     if test $in_tree_gas = yes; then
28004     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28005   then gcc_cv_as_debug_prefix_map_flag=yes
28006 fi
28007   elif test x$gcc_cv_as != x; then
28008     $as_echo "$insn" > conftest.s
28009     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28010   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28011   (eval $ac_try) 2>&5
28012   ac_status=$?
28013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28014   test $ac_status = 0; }; }
28015     then
28016         gcc_cv_as_debug_prefix_map_flag=yes
28017     else
28018       echo "configure: failed program was" >&5
28019       cat conftest.s >&5
28020     fi
28021     rm -f conftest.o conftest.s
28022   fi
28023 fi
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28025 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28026 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28027
28028 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28029
28030 fi
28031
28032 fi
28033
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28035 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28036 if ${gcc_cv_as_compress_debug+:} false; then :
28037   $as_echo_n "(cached) " >&6
28038 else
28039   gcc_cv_as_compress_debug=no
28040   if test x$gcc_cv_as != x; then
28041     $as_echo '' > conftest.s
28042     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28043   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28044   (eval $ac_try) 2>&5
28045   ac_status=$?
28046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28047   test $ac_status = 0; }; }
28048     then
28049         # gas compiled without zlib cannot compress debug sections and warns
28050    # about it, but still exits successfully.  So check for this, too.
28051    if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28052    then
28053      gcc_cv_as_compress_debug=0
28054    # Since binutils 2.26, gas supports --compress-debug-sections=type,
28055    # defaulting to the ELF gABI format.
28056    elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28057    then
28058      gcc_cv_as_compress_debug=2
28059      gcc_cv_as_compress_debug_option="--compress-debug-sections"
28060      gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28061    # Before binutils 2.26, gas only supported --compress-debug-options and
28062    # emitted the traditional GNU format.
28063    elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28064    then
28065      gcc_cv_as_compress_debug=1
28066      gcc_cv_as_compress_debug_option="--compress-debug-sections"
28067      gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28068    else
28069      gcc_cv_as_compress_debug=0
28070    fi
28071     else
28072       echo "configure: failed program was" >&5
28073       cat conftest.s >&5
28074     fi
28075     rm -f conftest.o conftest.s
28076   fi
28077 fi
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28079 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28080
28081
28082
28083 cat >>confdefs.h <<_ACEOF
28084 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28085 _ACEOF
28086
28087
28088 cat >>confdefs.h <<_ACEOF
28089 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28090 _ACEOF
28091
28092
28093 cat >>confdefs.h <<_ACEOF
28094 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28095 _ACEOF
28096
28097
28098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28099 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28100 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
28101   $as_echo_n "(cached) " >&6
28102 else
28103   gcc_cv_as_lcomm_with_alignment=no
28104   if test x$gcc_cv_as != x; then
28105     $as_echo '.lcomm bar,4,16' > conftest.s
28106     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28107   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28108   (eval $ac_try) 2>&5
28109   ac_status=$?
28110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28111   test $ac_status = 0; }; }
28112     then
28113         gcc_cv_as_lcomm_with_alignment=yes
28114     else
28115       echo "configure: failed program was" >&5
28116       cat conftest.s >&5
28117     fi
28118     rm -f conftest.o conftest.s
28119   fi
28120 fi
28121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28122 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28123 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28124
28125 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28126
28127 fi
28128
28129
28130 if test x$with_sysroot = x && test x$host = x$target \
28131    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28132    && test "$prefix" != "NONE"; then
28133
28134 cat >>confdefs.h <<_ACEOF
28135 #define PREFIX_INCLUDE_DIR "$prefix/include"
28136 _ACEOF
28137
28138 fi
28139
28140 # Determine the version of glibc, if any, used on the target.
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28142 $as_echo_n "checking for target glibc version... " >&6; }
28143
28144 # Check whether --with-glibc-version was given.
28145 if test "${with_glibc_version+set}" = set; then :
28146   withval=$with_glibc_version;
28147 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28148   glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28149   glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28150 else
28151   as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28152 fi
28153 else
28154
28155 glibc_version_major=0
28156 glibc_version_minor=0
28157 if test -f $target_header_dir/features.h \
28158   && glibc_version_major_define=`$EGREP '^[     ]*#[    ]*define[       ]+__GLIBC__[    ]+[0-9]' $target_header_dir/features.h` \
28159   && glibc_version_minor_define=`$EGREP '^[     ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+[0-9]' $target_header_dir/features.h`; then
28160   glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[      ]*//'`
28161   glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[        ]*//'`
28162 fi
28163 fi
28164
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28166 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28167
28168 cat >>confdefs.h <<_ACEOF
28169 #define TARGET_GLIBC_MAJOR $glibc_version_major
28170 _ACEOF
28171
28172
28173 cat >>confdefs.h <<_ACEOF
28174 #define TARGET_GLIBC_MINOR $glibc_version_minor
28175 _ACEOF
28176
28177
28178 # Check whether --enable-gnu-unique-object was given.
28179 if test "${enable_gnu_unique_object+set}" = set; then :
28180   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28181     yes | no) ;;
28182     *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28183 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28184   esac
28185 else
28186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28187 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28188 if ${gcc_cv_as_gnu_unique_object+:} false; then :
28189   $as_echo_n "(cached) " >&6
28190 else
28191   gcc_cv_as_gnu_unique_object=no
28192     if test $in_tree_gas = yes; then
28193     if test $in_tree_gas_is_elf = yes \
28194   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28195   then gcc_cv_as_gnu_unique_object=yes
28196 fi
28197   elif test x$gcc_cv_as != x; then
28198     $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28199     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
28200   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28201   (eval $ac_try) 2>&5
28202   ac_status=$?
28203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28204   test $ac_status = 0; }; }
28205     then
28206         gcc_cv_as_gnu_unique_object=yes
28207     else
28208       echo "configure: failed program was" >&5
28209       cat conftest.s >&5
28210     fi
28211     rm -f conftest.o conftest.s
28212   fi
28213 fi
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28215 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28216 if test $gcc_cv_as_gnu_unique_object = yes; then
28217   # We need to unquote above to to use the definition from config.gcc.
28218 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28219
28220 if test $glibc_version_major -gt 2 \
28221   || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28222   enable_gnu_unique_object=yes
28223 fi
28224
28225 fi
28226
28227 fi
28228
28229 if test x$enable_gnu_unique_object = xyes; then
28230
28231 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28232
28233 fi
28234
28235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28236 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28237 if ${gcc_cv_as_line_zero+:} false; then :
28238   $as_echo_n "(cached) " >&6
28239 else
28240   gcc_cv_as_line_zero=no
28241   if test $in_tree_gas = yes; then
28242     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28243   then gcc_cv_as_line_zero=yes
28244 fi
28245   elif test "x$gcc_cv_as" != x; then
28246     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28247     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28248   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28249   (eval $ac_try) 2>&5
28250   ac_status=$?
28251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28252   test $ac_status = 0; }; } &&
28253        test "x`cat conftest.out`" = x
28254     then
28255       gcc_cv_as_line_zero=yes
28256     else
28257       echo "configure: failed program was" >&5
28258       cat conftest.s >&5
28259       echo "configure: error output was" >&5
28260       cat conftest.out >&5
28261     fi
28262     rm -f conftest.o conftest.s conftest.out
28263   fi
28264 fi
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28266 $as_echo "$gcc_cv_as_line_zero" >&6; }
28267 if test "x$gcc_cv_as_line_zero" = xyes; then
28268
28269 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28270
28271 fi
28272
28273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28274 $as_echo_n "checking support for thin archives... " >&6; }
28275 thin_archive_support=no
28276 echo 'int main (void) { return 0; }' > conftest.c
28277 if ($AR --version | sed 1q | grep "GNU ar" \
28278     && $CC $CFLAGS -c conftest.c \
28279     && $AR rcT conftest.a conftest.o \
28280     && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28281   thin_archive_support=yes
28282 fi
28283 rm -f conftest.c conftest.o conftest.a conftest
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28285 $as_echo "$thin_archive_support" >&6; }
28286
28287
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28289 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28290 gcc_cv_ld_eh_frame_hdr=no
28291 if test $in_tree_ld = yes ; then
28292   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
28293      && test $in_tree_ld_is_elf = yes; then
28294     gcc_cv_ld_eh_frame_hdr=yes
28295   fi
28296 elif test x$gcc_cv_ld != x; then
28297   if echo "$ld_ver" | grep GNU > /dev/null; then
28298     # Check if linker supports --eh-frame-hdr option
28299     if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28300       gcc_cv_ld_eh_frame_hdr=yes
28301     fi
28302   else
28303     case "$target" in
28304       *-*-solaris2*)
28305         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28306         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28307           gcc_cv_ld_eh_frame_hdr=yes
28308         fi
28309         ;;
28310     esac
28311   fi
28312 fi
28313
28314 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28315
28316 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28317
28318 fi
28319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28320 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28321
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28323 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28324 gcc_cv_ld_eh_frame_ciev3=no
28325 if test $in_tree_ld = yes ; then
28326   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
28327      && test $in_tree_ld_is_elf = yes; then
28328     gcc_cv_ld_eh_frame_ciev3=yes
28329   fi
28330 elif test x$gcc_cv_ld != x; then
28331   if echo "$ld_ver" | grep GNU > /dev/null; then
28332     gcc_cv_ld_eh_frame_ciev3=yes
28333     if test 0"$ld_date" -lt 20040513; then
28334       if test -n "$ld_date"; then
28335         # If there was date string, but was earlier than 2004-05-13, fail
28336         gcc_cv_ld_eh_frame_ciev3=no
28337       elif test "$ld_vers_major" -lt 2; then
28338         gcc_cv_ld_eh_frame_ciev3=no
28339       elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28340         gcc_cv_ld_eh_frame_ciev3=no
28341       fi
28342     fi
28343   else
28344     case "$target" in
28345       *-*-solaris2*)
28346         # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28347         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28348           gcc_cv_ld_eh_frame_ciev3=yes
28349         fi
28350         ;;
28351     esac
28352   fi
28353 fi
28354
28355 cat >>confdefs.h <<_ACEOF
28356 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28357 _ACEOF
28358
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28360 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28361
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28363 $as_echo_n "checking linker position independent executable support... " >&6; }
28364 gcc_cv_ld_pie=no
28365 if test $in_tree_ld = yes ; then
28366   case "$target" in
28367     # Full PIE support on Solaris was only introduced in gld 2.26.
28368     *-*-solaris2*)  gcc_gld_pie_min_version=26 ;;
28369     *)              gcc_gld_pie_min_version=15 ;;
28370   esac
28371   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge "$gcc_gld_pie_min_version" -o "$gcc_cv_gld_major_version" -gt 2 \
28372      && test $in_tree_ld_is_elf = yes; then
28373     gcc_cv_ld_pie=yes
28374   fi
28375 elif test x$gcc_cv_ld != x; then
28376   # Check if linker supports -pie option
28377   if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28378     gcc_cv_ld_pie=yes
28379     case "$target" in
28380       *-*-solaris2*)
28381         if echo "$ld_ver" | grep GNU > /dev/null \
28382           && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28383           gcc_cv_ld_pie=no
28384         fi
28385         ;;
28386     esac
28387   else
28388     case "$target" in
28389       *-*-solaris2.1[1-9]*)
28390         # Solaris 11.3 added PIE support.
28391         if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28392           gcc_cv_ld_pie=yes
28393         fi
28394         ;;
28395     esac
28396   fi
28397 fi
28398 if test x"$gcc_cv_ld_pie" = xyes; then
28399
28400 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28401
28402 fi
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28404 $as_echo "$gcc_cv_ld_pie" >&6; }
28405
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28407 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28408 gcc_cv_ld_pie_copyreloc=no
28409 if test $gcc_cv_ld_pie = yes ; then
28410   if test $in_tree_ld = yes ; then
28411     if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
28412       gcc_cv_ld_pie_copyreloc=yes
28413     fi
28414   elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28415     # Check if linker supports -pie option with copy reloc
28416     case "$target" in
28417     i?86-*-linux* | x86_64-*-linux*)
28418       cat > conftest1.s <<EOF
28419         .globl  a_glob
28420         .data
28421         .type   a_glob, @object
28422         .size   a_glob, 4
28423 a_glob:
28424         .long   2
28425 EOF
28426       cat > conftest2.s <<EOF
28427         .text
28428         .globl  main
28429         .type   main, @function
28430 main:
28431         movl    %eax, a_glob(%rip)
28432         .size   main, .-main
28433         .globl  ptr
28434         .section        .data.rel,"aw",@progbits
28435         .type   ptr, @object
28436 ptr:
28437         .quad   a_glob
28438 EOF
28439       if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28440          && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28441          && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28442          && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28443         gcc_cv_ld_pie_copyreloc=yes
28444       fi
28445       rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28446       ;;
28447     esac
28448   fi
28449 fi
28450
28451 cat >>confdefs.h <<_ACEOF
28452 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28453 _ACEOF
28454
28455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28456 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28457
28458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28459 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28460 gcc_cv_ld_eh_gc_sections=no
28461 if test $in_tree_ld = yes ; then
28462   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
28463      && test $in_tree_ld_is_elf = yes; then
28464     gcc_cv_ld_eh_gc_sections=yes
28465   fi
28466 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28467   cat > conftest.s <<EOF
28468         .section        .text
28469 .globl _start
28470         .type _start, @function
28471 _start:
28472         .long foo
28473         .size _start, .-_start
28474         .section        .text.foo,"ax",@progbits
28475         .type foo, @function
28476 foo:
28477         .long 0
28478         .size foo, .-foo
28479         .section        .gcc_except_table.foo,"a",@progbits
28480 .L0:
28481         .long 0
28482         .section        .eh_frame,"a",@progbits
28483         .long .L0
28484 EOF
28485   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28486     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28487          | grep "gc-sections option ignored" > /dev/null; then
28488       gcc_cv_ld_eh_gc_sections=no
28489     elif $gcc_cv_objdump -h conftest 2> /dev/null \
28490          | grep gcc_except_table > /dev/null; then
28491       gcc_cv_ld_eh_gc_sections=yes
28492       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28493       if test x$gcc_cv_as_comdat_group != xyes; then
28494         gcc_cv_ld_eh_gc_sections=no
28495         cat > conftest.s <<EOF
28496         .section        .text
28497 .globl _start
28498         .type _start, @function
28499 _start:
28500         .long foo
28501         .size _start, .-_start
28502         .section        .gnu.linkonce.t.foo,"ax",@progbits
28503         .type foo, @function
28504 foo:
28505         .long 0
28506         .size foo, .-foo
28507         .section        .gcc_except_table.foo,"a",@progbits
28508 .L0:
28509         .long 0
28510         .section        .eh_frame,"a",@progbits
28511         .long .L0
28512 EOF
28513         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28514           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28515                | grep "gc-sections option ignored" > /dev/null; then
28516             gcc_cv_ld_eh_gc_sections=no
28517           elif $gcc_cv_objdump -h conftest 2> /dev/null \
28518                | grep gcc_except_table > /dev/null; then
28519             gcc_cv_ld_eh_gc_sections=yes
28520           fi
28521         fi
28522       fi
28523     fi
28524   fi
28525   rm -f conftest.s conftest.o conftest
28526 fi
28527 case "$target" in
28528   hppa*-*-linux*)
28529     # ??? This apparently exposes a binutils bug with PC-relative relocations.
28530     gcc_cv_ld_eh_gc_sections=no
28531     ;;
28532 esac
28533 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28534
28535 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28536
28537 fi
28538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28539 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28540
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28542 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28543 gcc_cv_ld_eh_gc_sections_bug=no
28544 if test $in_tree_ld = yes ; then
28545   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
28546      && test $in_tree_ld_is_elf = yes; then
28547     gcc_cv_ld_eh_gc_sections_bug=yes
28548   fi
28549 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
28550   gcc_cv_ld_eh_gc_sections_bug=yes
28551   cat > conftest.s <<EOF
28552         .section        .text
28553 .globl _start
28554         .type _start, @function
28555 _start:
28556         .long foo
28557         .size _start, .-_start
28558         .section        .text.startup.foo,"ax",@progbits
28559         .type foo, @function
28560 foo:
28561         .long 0
28562         .size foo, .-foo
28563         .section        .gcc_except_table.foo,"a",@progbits
28564 .L0:
28565         .long 0
28566         .section        .eh_frame,"a",@progbits
28567         .long .L0
28568 EOF
28569   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28570     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28571          | grep "gc-sections option ignored" > /dev/null; then
28572       :
28573     elif $gcc_cv_objdump -h conftest 2> /dev/null \
28574          | grep gcc_except_table > /dev/null; then
28575       gcc_cv_ld_eh_gc_sections_bug=no
28576     fi
28577   fi
28578   rm -f conftest.s conftest.o conftest
28579 fi
28580 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28581
28582 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28583
28584 fi
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28586 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28587
28588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28589 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28590 # gold/gld support compressed debug sections since binutils 2.19/2.21
28591 # In binutils 2.26, gld gained support for the ELF gABI format.
28592 if test $in_tree_ld = yes ; then
28593   gcc_cv_ld_compress_debug=0
28594   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
28595      && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28596     gcc_cv_ld_compress_debug=2
28597     gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28598   elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
28599      && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28600     gcc_cv_ld_compress_debug=3
28601     gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28602   elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
28603      && test $in_tree_ld_is_elf = yes; then
28604     gcc_cv_ld_compress_debug=1
28605   fi
28606 elif echo "$ld_ver" | grep GNU > /dev/null; then
28607   if test "$ld_vers_major" -lt 2 \
28608      || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28609     gcc_cv_ld_compress_debug=0
28610   elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28611     gcc_cv_ld_compress_debug=1
28612   else
28613     gcc_cv_ld_compress_debug=3
28614     gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28615   fi
28616   if test $ld_is_gold = yes; then
28617     gcc_cv_ld_compress_debug=2
28618     gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28619   fi
28620 else
28621   case "${target}" in
28622     *-*-solaris2*)
28623       # Introduced in Solaris 11.2.
28624       if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28625         gcc_cv_ld_compress_debug=3
28626         gcc_cv_ld_compress_debug_option="-z compress-sections"
28627       else
28628         gcc_cv_ld_compress_debug=0
28629       fi
28630       ;;
28631     *)
28632       # Assume linkers other than GNU ld don't support compessed debug
28633       # sections.
28634       gcc_cv_ld_compress_debug=0
28635       ;;
28636   esac
28637 fi
28638
28639 cat >>confdefs.h <<_ACEOF
28640 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28641 _ACEOF
28642
28643
28644 cat >>confdefs.h <<_ACEOF
28645 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28646 _ACEOF
28647
28648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28649 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28650
28651 if test x"$ld64_flag" = x"yes"; then
28652
28653   # Set defaults for possibly untestable items.
28654   gcc_cv_ld64_export_dynamic=0
28655
28656   if test "$build" = "$host"; then
28657     darwin_try_test=1
28658   else
28659     darwin_try_test=0
28660   fi
28661
28662   # On Darwin, because of FAT library support, it is often possible to execute
28663   # exes from compatible archs even when the host differs from the build system.
28664   case "$build","$host" in
28665     x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28666         darwin_try_test=1;;
28667     *) ;;
28668   esac
28669
28670   # If the configurer specified a minimum ld64 version to be supported, then use
28671   # that to determine feature support.
28672   if test x"${gcc_cv_ld64_version}" != x; then
28673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28674 $as_echo_n "checking ld64 specified version... " >&6; }
28675     gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28677 $as_echo "$gcc_cv_ld64_major" >&6; }
28678    if test "$gcc_cv_ld64_major" -ge 236; then
28679       gcc_cv_ld64_export_dynamic=1
28680     fi
28681   elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28682     # If the version was not specified, try to find it.
28683     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28684 $as_echo_n "checking linker version... " >&6; }
28685     if test x"${gcc_cv_ld64_version}" = x; then
28686       gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28687     fi
28688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28689 $as_echo "$gcc_cv_ld64_version" >&6; }
28690
28691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28692 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28693     gcc_cv_ld64_export_dynamic=1
28694     if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28695       gcc_cv_ld64_export_dynamic=0
28696     fi
28697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28698 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28699   fi
28700
28701   if test x"${gcc_cv_ld64_version}" != x; then
28702
28703 cat >>confdefs.h <<_ACEOF
28704 #define LD64_VERSION "${gcc_cv_ld64_version}"
28705 _ACEOF
28706
28707   fi
28708
28709
28710 cat >>confdefs.h <<_ACEOF
28711 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28712 _ACEOF
28713
28714 fi
28715
28716 # --------
28717 # UNSORTED
28718 # --------
28719
28720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28721 $as_echo_n "checking linker --as-needed support... " >&6; }
28722 if ${gcc_cv_ld_as_needed+:} false; then :
28723   $as_echo_n "(cached) " >&6
28724 else
28725   gcc_cv_ld_as_needed=no
28726 gcc_cv_ld_as_needed_option='--as-needed'
28727 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28728 if test $in_tree_ld = yes ; then
28729   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
28730      && test $in_tree_ld_is_elf = yes; then
28731     gcc_cv_ld_as_needed=yes
28732     if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28733       gcc_cv_ld_as_needed_option='--push-state --as-needed'
28734       gcc_cv_ld_no_as_needed_option='--pop-state'
28735     fi
28736   fi
28737 elif test x$gcc_cv_ld != x; then
28738   # Check if linker supports --as-needed and --no-as-needed options
28739   if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28740     gcc_cv_ld_as_needed=yes
28741     if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
28742        && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
28743        && echo "$ld_ver" | grep GNU > /dev/null \
28744        && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28745       # Use these options only when both ld.bfd and ld.gold support
28746       # --push-state/--pop-state, which unfortunately wasn't added
28747       # at the same time.
28748       gcc_cv_ld_as_needed_option='--push-state --as-needed'
28749       gcc_cv_ld_no_as_needed_option='--pop-state'
28750     fi
28751   fi
28752   case "$target:$gnu_ld" in
28753     *-*-solaris2*:no)
28754       # Solaris 2 ld always supports -z ignore/-z record.  Prefer the native
28755       # forms.
28756       gcc_cv_ld_as_needed=yes
28757       gcc_cv_ld_as_needed_option="-z ignore"
28758       gcc_cv_ld_no_as_needed_option="-z record"
28759       ;;
28760   esac
28761 fi
28762 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28763 # dl_iterate_phdr, i.e. since Solaris 11.
28764 case "$target" in
28765   *-*-solaris2.1[1-9]*)
28766     case "$target" in
28767     i?86-*-* | x86_64-*-*)
28768       if echo "$ld_ver" | grep GNU > /dev/null; then
28769         # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28770         gcc_cv_ld_as_needed=no
28771       fi
28772       ;;
28773     esac
28774     ;;
28775   *-*-solaris2*)
28776     gcc_cv_ld_as_needed=no
28777     ;;
28778 esac
28779
28780 fi
28781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28782 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28783 if test x"$gcc_cv_ld_as_needed" = xyes; then
28784
28785 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28786
28787
28788 cat >>confdefs.h <<_ACEOF
28789 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28790 _ACEOF
28791
28792
28793 cat >>confdefs.h <<_ACEOF
28794 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28795 _ACEOF
28796
28797 fi
28798
28799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28800 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28801 saved_LDFLAGS="$LDFLAGS"
28802 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28803   LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28805 /* end confdefs.h.  */
28806 int main(void) {return 0;}
28807 _ACEOF
28808 if ac_fn_cxx_try_link "$LINENO"; then :
28809   gcc_cv_ld_clearcap=yes; break
28810 else
28811   gcc_cv_ld_clearcap=no
28812 fi
28813 rm -f core conftest.err conftest.$ac_objext \
28814     conftest$ac_exeext conftest.$ac_ext
28815 done
28816 LDFLAGS="$saved_LDFLAGS"
28817 if test "x$gcc_cv_ld_clearcap" = xyes; then
28818
28819 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28820
28821   ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28822
28823 fi
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28825 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28826
28827 case "$target" in
28828   powerpc*-*-*)
28829     case "$target" in
28830       *le-*-linux*)
28831         emul_name="-melf32lppc"
28832         ;;
28833       *)
28834         emul_name="-melf32ppc"
28835         ;;
28836     esac
28837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28838 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28839 if ${gcc_cv_ld_ppc_attr+:} false; then :
28840   $as_echo_n "(cached) " >&6
28841 else
28842   gcc_cv_ld_ppc_attr=no
28843     if test x"$ld_is_gold" = xyes; then
28844       gcc_cv_ld_ppc_attr=yes
28845     elif test $in_tree_ld = yes ; then
28846       if test "$gcc_cv_gld_major_version" -eq 2 \
28847                 -a "$gcc_cv_gld_minor_version" -ge 28 \
28848                 -o "$gcc_cv_gld_major_version" -gt 2; then
28849         gcc_cv_ld_ppc_attr=yes
28850       fi
28851     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28852       # check that merging the long double .gnu_attribute doesn't warn
28853       cat > conftest1.s <<EOF
28854         .gnu_attribute 4,1
28855 EOF
28856       cat > conftest2.s <<EOF
28857         .gnu_attribute 4,9
28858 EOF
28859       if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28860          && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28861          && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28862          && test ! -s conftest.err; then
28863         gcc_cv_ld_ppc_attr=yes
28864       fi
28865       rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28866     fi
28867
28868 fi
28869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28870 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28871     if test x$gcc_cv_ld_ppc_attr = xyes; then
28872
28873 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28874
28875     fi
28876     ;;
28877 esac
28878
28879 case "$target:$tm_file" in
28880   powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28881   case "$target" in
28882      *le-*-linux*)
28883      emul_name="-melf64lppc"
28884       ;;
28885      *-*-linux*)
28886      emul_name="-melf64ppc"
28887       ;;
28888      *-*-freebsd*)
28889      emul_name="-melf64ppc_fbsd"
28890       ;;
28891   esac
28892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28893 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28894 if ${gcc_cv_ld_no_dot_syms+:} false; then :
28895   $as_echo_n "(cached) " >&6
28896 else
28897   gcc_cv_ld_no_dot_syms=no
28898     if test x"$ld_is_gold" = xyes; then
28899       gcc_cv_ld_no_dot_syms=yes
28900     elif test $in_tree_ld = yes ; then
28901       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
28902         gcc_cv_ld_no_dot_syms=yes
28903       fi
28904     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28905       cat > conftest1.s <<EOF
28906         .text
28907         bl .foo
28908 EOF
28909       cat > conftest2.s <<EOF
28910         .section ".opd","aw"
28911         .align 3
28912         .globl foo
28913         .type foo,@function
28914 foo:
28915         .quad .LEfoo,.TOC.@tocbase,0
28916         .text
28917 .LEfoo:
28918         blr
28919         .size foo,.-.LEfoo
28920 EOF
28921       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28922          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28923          && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28924         gcc_cv_ld_no_dot_syms=yes
28925       fi
28926       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28927     fi
28928
28929 fi
28930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28931 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28932     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28933
28934 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28935
28936     fi
28937
28938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28939 $as_echo_n "checking linker large toc support... " >&6; }
28940 if ${gcc_cv_ld_large_toc+:} false; then :
28941   $as_echo_n "(cached) " >&6
28942 else
28943   gcc_cv_ld_large_toc=no
28944     if test x"$ld_is_gold" = xyes; then
28945       gcc_cv_ld_large_toc=yes
28946     elif test $in_tree_ld = yes ; then
28947       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
28948         gcc_cv_ld_large_toc=yes
28949       fi
28950     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28951       cat > conftest.s <<EOF
28952         .section ".tbss","awT",@nobits
28953         .align 3
28954 ie0:    .space 8
28955         .global _start
28956         .text
28957 _start:
28958         addis 9,13,ie0@got@tprel@ha
28959         ld 9,ie0@got@tprel@l(9)
28960 EOF
28961       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28962          && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28963         gcc_cv_ld_large_toc=yes
28964       fi
28965       rm -f conftest conftest.o conftest.s
28966     fi
28967
28968 fi
28969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28970 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28971     if test x"$gcc_cv_ld_large_toc" = xyes; then
28972
28973 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28974
28975     fi
28976
28977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28978 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28979 if ${gcc_cv_ld_toc_align+:} false; then :
28980   $as_echo_n "(cached) " >&6
28981 else
28982   if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28983       cat > conftest.s <<EOF
28984         .global _start
28985         .text
28986 _start:
28987         addis 9,2,x@got@ha
28988         .section .data.rel.ro,"aw",@progbits
28989         .p2align 16
28990         .space 32768
28991 x:      .quad .TOC.
28992 EOF
28993       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28994          && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28995         gcc_cv_ld_toc_align=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
28996       fi
28997       rm -f conftest conftest.o conftest.s
28998     fi
28999
29000 fi
29001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29002 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29003     if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29004
29005 cat >>confdefs.h <<_ACEOF
29006 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29007 _ACEOF
29008
29009     fi
29010     ;;
29011 esac
29012
29013 case "$target" in
29014   *-*-aix*)
29015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29016 $as_echo_n "checking linker large toc support... " >&6; }
29017 if ${gcc_cv_ld_large_toc+:} false; then :
29018   $as_echo_n "(cached) " >&6
29019 else
29020   gcc_cv_ld_large_toc=no
29021     if test x$gcc_cv_as != x ; then
29022       cat > conftest.s <<EOF
29023         .toc
29024 LC..1:
29025         .tc a[TC],a[RW]
29026         .extern a[RW]
29027         .csect .text[PR]
29028 .largetoctest:
29029         addis 9,LC..1@u(2)
29030         ld 3,LC..1@l(9)
29031 EOF
29032       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29033         gcc_cv_ld_large_toc=yes
29034       fi
29035       rm -f conftest conftest.o conftest.s
29036     fi
29037
29038 fi
29039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29040 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29041     if test x"$gcc_cv_ld_large_toc" = xyes; then
29042
29043 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29044
29045     fi
29046     ;;
29047 esac
29048
29049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29050 $as_echo_n "checking linker --build-id support... " >&6; }
29051 if ${gcc_cv_ld_buildid+:} false; then :
29052   $as_echo_n "(cached) " >&6
29053 else
29054   gcc_cv_ld_buildid=no
29055   if test $in_tree_ld = yes ; then
29056     if test "$gcc_cv_gld_major_version" -eq 2 -a \
29057        "$gcc_cv_gld_minor_version" -ge 18 -o \
29058        "$gcc_cv_gld_major_version" -gt 2 \
29059        && test $in_tree_ld_is_elf = yes; then
29060       gcc_cv_ld_buildid=yes
29061     fi
29062   elif test x$gcc_cv_ld != x; then
29063     if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29064       gcc_cv_ld_buildid=yes
29065     fi
29066   fi
29067 fi
29068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29069 $as_echo "$gcc_cv_ld_buildid" >&6; }
29070 if test x"$gcc_cv_ld_buildid" = xyes; then
29071
29072 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29073
29074 fi
29075
29076 # Check whether --enable-linker-build-id was given.
29077 if test "${enable_linker_build_id+set}" = set; then :
29078   enableval=$enable_linker_build_id;
29079 else
29080   enable_linker_build_id=no
29081 fi
29082
29083
29084 if test x"$enable_linker_build_id" = xyes; then
29085   if test x"$gcc_cv_ld_buildid" = xyes; then
29086
29087 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29088
29089   else
29090     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29091 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29092   fi
29093 fi
29094
29095 # In binutils 2.21, GNU ld gained support for new emulations fully
29096 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
29097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29098 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29099 if ${gcc_cv_ld_sol2_emulation+:} false; then :
29100   $as_echo_n "(cached) " >&6
29101 else
29102   gcc_cv_ld_sol2_emulation=no
29103   if test $in_tree_ld = yes ; then
29104     if test "$gcc_cv_gld_major_version" -eq 2 -a \
29105        "$gcc_cv_gld_minor_version" -ge 21 -o \
29106        "$gcc_cv_gld_major_version" -gt 2 \
29107        && test $in_tree_ld_is_elf = yes; then
29108       gcc_cv_ld_sol2_emulation=yes
29109     fi
29110   elif test x$gcc_cv_ld != x; then
29111     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29112        grep _sol2 > /dev/null; then
29113       gcc_cv_ld_sol2_emulation=yes
29114     fi
29115   fi
29116 fi
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29118 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29119 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29120
29121 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29122
29123 fi
29124
29125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29126 $as_echo_n "checking linker --sysroot support... " >&6; }
29127 if ${gcc_cv_ld_sysroot+:} false; then :
29128   $as_echo_n "(cached) " >&6
29129 else
29130   gcc_cv_ld_sysroot=no
29131   if test $in_tree_ld = yes ; then
29132       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
29133         gcc_cv_ld_sysroot=yes
29134       fi
29135   elif test x$gcc_cv_ld != x; then
29136     if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29137       gcc_cv_ld_sysroot=yes
29138     fi
29139   fi
29140 fi
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29142 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29143 if test x"$gcc_cv_ld_sysroot" = xyes; then
29144
29145 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29146
29147 fi
29148
29149 case $target in
29150 *-*-solaris2*)
29151   # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29153 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29154 if ${gcc_cv_solaris_crts+:} false; then :
29155   $as_echo_n "(cached) " >&6
29156 else
29157   gcc_cv_solaris_crts=no
29158      if test x$host != x$target; then
29159        if test "x$with_sysroot" = xyes; then
29160          target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29161        else
29162          target_sysroot="${with_sysroot}"
29163        fi
29164      fi
29165      target_libdir="$target_sysroot/usr/lib"
29166      # At the time they were added, gcrt1.o became a symlink for backwards
29167      # compatibility on x86, while crt1.o was added on sparc, so check for that.
29168      case $target in
29169        i?86-*-solaris2* | x86_64-*-solaris2*)
29170          if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29171          ;;
29172        sparc*-*-solaris2*)
29173          if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29174          ;;
29175      esac
29176 fi
29177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29178 $as_echo "$gcc_cv_solaris_crts" >&6; }
29179   ;;
29180 esac
29181 if test x$gcc_cv_solaris_crts = xyes; then
29182
29183 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29184
29185 fi
29186
29187 # Check whether --enable-libssp was given.
29188 if test "${enable_libssp+set}" = set; then :
29189   enableval=$enable_libssp; case "${enableval}" in
29190   yes|no)
29191     ;;
29192   *)
29193     as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
29194     ;;
29195 esac
29196 fi
29197
29198
29199 # Test for stack protector support in target C library.
29200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29201 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29202 if ${gcc_cv_libc_provides_ssp+:} false; then :
29203   $as_echo_n "(cached) " >&6
29204 else
29205   gcc_cv_libc_provides_ssp=no
29206   if test "x$enable_libssp" = "xno"; then
29207     gcc_cv_libc_provides_ssp=yes
29208   elif test "x$enable_libssp" = "xyes"; then
29209     gcc_cv_libc_provides_ssp=no
29210   else
29211     case "$target" in
29212        *-*-musl*)
29213          # All versions of musl provide stack protector
29214          gcc_cv_libc_provides_ssp=yes;;
29215        *-*-linux* | *-*-kfreebsd*-gnu)
29216       # glibc 2.4 and later provides __stack_chk_fail and
29217       # either __stack_chk_guard, or TLS access to stack guard canary.
29218
29219 if test $glibc_version_major -gt 2 \
29220   || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29221   gcc_cv_libc_provides_ssp=yes
29222 else
29223
29224       if test -f $target_header_dir/features.h \
29225          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
29226             $target_header_dir/features.h > /dev/null; then
29227         if $EGREP '^[   ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
29228              $target_header_dir/features.h > /dev/null && \
29229              test -f $target_header_dir/bits/uClibc_config.h && \
29230              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
29231              $target_header_dir/bits/uClibc_config.h > /dev/null; then
29232           gcc_cv_libc_provides_ssp=yes
29233         fi
29234       # all versions of Bionic support stack protector
29235       elif test -f $target_header_dir/sys/cdefs.h \
29236         && $EGREP '^[  ]*#[    ]*define[       ]+__BIONIC__[   ]+1' \
29237            $target_header_dir/sys/cdefs.h > /dev/null; then
29238          gcc_cv_libc_provides_ssp=yes
29239       fi
29240 fi
29241         ;;
29242        *-*-gnu*)
29243          # Avoid complicated tests (see
29244          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29245          # simply assert that glibc does provide this, which is true for all
29246          # realistically usable GNU/Hurd configurations.
29247          # All supported versions of musl provide it as well
29248          gcc_cv_libc_provides_ssp=yes;;
29249        *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29250          ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29251 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29252   gcc_cv_libc_provides_ssp=yes
29253 else
29254   echo "no __stack_chk_fail on this target"
29255 fi
29256
29257         ;;
29258        *) gcc_cv_libc_provides_ssp=no ;;
29259     esac
29260   fi
29261 fi
29262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29263 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29264
29265 if test x$gcc_cv_libc_provides_ssp = xyes; then
29266
29267 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29268
29269 fi
29270
29271 # Check whether --enable-default-ssp was given.
29272 # Check whether --enable-default-ssp was given.
29273 if test "${enable_default_ssp+set}" = set; then :
29274   enableval=$enable_default_ssp;
29275 if test x$gcc_cv_libc_provides_ssp = xyes; then
29276   case "$target" in
29277     ia64*-*-*) enable_default_ssp=no ;;
29278     *) enable_default_ssp=$enableval ;;
29279   esac
29280 else
29281   enable_default_ssp=no
29282 fi
29283 else
29284   enable_default_ssp=no
29285 fi
29286
29287 if test x$enable_default_ssp = xyes ; then
29288
29289 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29290
29291 fi
29292
29293
29294 # Test for <sys/sdt.h> on the target.
29295
29296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29297 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29298 have_sys_sdt_h=no
29299 if test -f $target_header_dir/sys/sdt.h; then
29300   have_sys_sdt_h=yes
29301
29302 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29303
29304 fi
29305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29306 $as_echo "$have_sys_sdt_h" >&6; }
29307
29308 # Check if TFmode long double should be used by default or not.
29309 # Some glibc targets used DFmode long double, but with glibc 2.4
29310 # and later they can use TFmode.
29311 case "$target" in
29312   powerpc*-*-linux* | \
29313   sparc*-*-linux* | \
29314   s390*-*-linux* | \
29315   alpha*-*-linux*)
29316
29317 # Check whether --with-long-double-128 was given.
29318 if test "${with_long_double_128+set}" = set; then :
29319   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29320 else
29321
29322 if test $glibc_version_major -gt 2 \
29323   || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29324   gcc_cv_target_ldbl128=yes
29325 else
29326
29327       gcc_cv_target_ldbl128=no
29328       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29329         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29330       && gcc_cv_target_ldbl128=yes
29331
29332 fi
29333 fi
29334
29335     ;;
29336 esac
29337 if test x$gcc_cv_target_ldbl128 = xyes; then
29338
29339 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29340
29341 fi
29342
29343 # Check if TFmode long double target should use the IBM extended double or IEEE
29344 # 128-bit floating point formats if long doubles are 128-bits long.  The long
29345 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29346 # supported.  Other PowerPC systems do not build the IEEE 128-bit emulator in
29347 # libgcc.
29348
29349 # Check whether --with-long-double-format was given.
29350 if test "${with_long_double_format+set}" = set; then :
29351   withval=$with_long_double_format;
29352 case "$target:$with_long_double_format" in
29353   powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29354     :
29355     ;;
29356   powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29357     # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29358     case "$with_cpu" in
29359       power7 | power8 | power9 | power1*)
29360         :
29361         ;;
29362       *)
29363         as_fn_error $? "Configuration option --with-long-double-format is only \
29364 supported if the default cpu is power7 or newer" "$LINENO" 5
29365         with_long_double_format=""
29366         ;;
29367       esac
29368       ;;
29369   xpowerpc64*-*-linux*:*)
29370     as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29371     with_long_double_format=""
29372     ;;
29373   *)
29374     as_fn_error $? "Configure option --with-long-double-format is only supported \
29375 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29376     with_long_double_format=""
29377     ;;
29378 esac
29379 fi
29380
29381
29382 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29383 # values in the TCB.  Currently, only GLIBC 2.23 and later support this.
29384 gcc_cv_libc_provides_hwcap_in_tcb=no
29385 case "$target" in
29386   powerpc*-*-linux*)
29387
29388 if test $glibc_version_major -gt 2 \
29389   || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29390   gcc_cv_libc_provides_hwcap_in_tcb=yes
29391 fi
29392     ;;
29393 esac
29394 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29395
29396 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29397
29398 fi
29399
29400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29401 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29402 gcc_cv_target_dl_iterate_phdr=unknown
29403 case "$target" in
29404   # Restrict to Solaris 11+.  While most of the Solaris 11 linker changes
29405   # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29406   # libdl there, both complicating its use and breaking compatibility
29407   # between Solaris 10 updates.
29408   *-*-solaris2.1[1-9]*)
29409     # <link.h> needs both a dl_iterate_phdr declaration and support for
29410     # compilation with largefile support.
29411     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29412       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29413       gcc_cv_target_dl_iterate_phdr=yes
29414     else
29415       gcc_cv_target_dl_iterate_phdr=no
29416     fi
29417     ;;
29418   *-*-dragonfly* | *-*-freebsd*)
29419     if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29420       gcc_cv_target_dl_iterate_phdr=yes
29421     else
29422       gcc_cv_target_dl_iterate_phdr=no
29423     fi
29424     ;;
29425   *-linux-musl*)
29426     gcc_cv_target_dl_iterate_phdr=yes
29427     ;;
29428 esac
29429
29430 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29431
29432 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29433
29434 fi
29435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29436 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29437
29438 # We no longer support different GC mechanisms.  Emit an error if
29439 # the user configures with --with-gc.
29440
29441 # Check whether --with-gc was given.
29442 if test "${with_gc+set}" = set; then :
29443   withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29444 fi
29445
29446
29447 # Libraries to use on the host.  This will normally be set by the top
29448 # level Makefile.  Here we simply capture the value for our Makefile.
29449 if test -z "${HOST_LIBS+set}"; then
29450   HOST_LIBS=
29451 fi
29452
29453
29454 # Use the system's zlib library.
29455
29456   # Use the system's zlib library.
29457   zlibdir="-L\$(top_builddir)/../zlib"
29458   zlibinc="-I\$(top_srcdir)/../zlib"
29459
29460 # Check whether --with-system-zlib was given.
29461 if test "${with_system_zlib+set}" = set; then :
29462   withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29463     zlibdir=
29464     zlibinc=
29465   fi
29466
29467 fi
29468
29469
29470
29471
29472
29473
29474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29475 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29476     # Check whether --enable-maintainer-mode was given.
29477 if test "${enable_maintainer_mode+set}" = set; then :
29478   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29479 else
29480   maintainer_mode=no
29481 fi
29482
29483
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29485 $as_echo "$maintainer_mode" >&6; }
29486
29487 if test "$maintainer_mode" = "yes"; then
29488   MAINT=''
29489 else
29490   MAINT='#'
29491 fi
29492
29493
29494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29495 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29496   # Check whether --enable-link-mutex was given.
29497 if test "${enable_link_mutex+set}" = set; then :
29498   enableval=$enable_link_mutex; do_link_mutex=$enableval
29499 else
29500   do_link_mutex=no
29501 fi
29502
29503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29504 $as_echo "$do_link_mutex" >&6; }
29505
29506 if test "$do_link_mutex" = "yes"; then
29507    DO_LINK_MUTEX=true
29508 else
29509    DO_LINK_MUTEX=false
29510 fi
29511
29512
29513 # --------------
29514 # Language hooks
29515 # --------------
29516
29517 # Make empty files to contain the specs and options for each language.
29518 # Then add #include lines to for a compiler that has specs and/or options.
29519
29520 subdirs=
29521 lang_opt_files=
29522 lang_specs_files=
29523 lang_tree_files=
29524 # These (without "all_") are set in each config-lang.in.
29525 # `language' must be a single word so is spelled singularly.
29526 all_languages=
29527 all_compilers=
29528 all_outputs='Makefile'
29529 # List of language makefile fragments.
29530 all_lang_makefrags=
29531 # Additional files for gengtype
29532 all_gtfiles="$target_gtfiles"
29533
29534 # These are the languages that are set in --enable-languages,
29535 # and are available in the GCC tree.
29536 all_selected_languages=
29537
29538 # Add the language fragments.
29539 # Languages are added via two mechanisms.  Some information must be
29540 # recorded in makefile variables, these are defined in config-lang.in.
29541 # We accumulate them and plug them into the main Makefile.
29542 # The other mechanism is a set of hooks for each of the main targets
29543 # like `clean', `install', etc.
29544
29545 language_hooks="Make-hooks"
29546
29547 for lang in ${srcdir}/*/config-lang.in
29548 do
29549         test "$lang" = "${srcdir}/*/config-lang.in" && continue
29550
29551         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
29552         if test "x$lang_alias" = x
29553         then
29554               echo "$lang doesn't set \$language." 1>&2
29555               exit 1
29556         fi
29557         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29558         subdirs="$subdirs $subdir"
29559
29560         # $gcc_subdir is where the gcc integration files are to be found
29561         # for a language, both for internal compiler purposes (compiler
29562         # sources implementing front-end to GCC tree converters), and for
29563         # build infrastructure purposes (Make-lang.in, etc.)
29564         #
29565         # This will be <subdir> (relative to $srcdir) if a line like
29566         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29567         # is found in <langdir>/config-lang.in, and will remain <langdir>
29568         # otherwise.
29569         #
29570         # Except for the language alias (fetched above), the regular
29571         # "config-lang.in" contents are always retrieved from $gcc_subdir,
29572         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29573         # only this and the language alias.
29574
29575         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
29576         if [ "$gcc_subdir" = "" ]; then
29577            gcc_subdir="$subdir"
29578         fi
29579
29580         case ",$enable_languages," in
29581         *,$lang_alias,*)
29582             all_selected_languages="$all_selected_languages $lang_alias"
29583             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29584                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29585             fi
29586             ;;
29587         esac
29588
29589         language=
29590         boot_language=
29591         compilers=
29592         outputs=
29593         gtfiles=
29594         subdir_requires=
29595         . ${srcdir}/$gcc_subdir/config-lang.in
29596         if test "x$language" = x
29597         then
29598                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29599                 exit 1
29600         fi
29601
29602         ok=:
29603         case ",$enable_languages," in
29604                 *,$lang_alias,*) ;;
29605                 *)
29606                         for i in $subdir_requires; do
29607                                 test -f "${srcdir}/$i/config-lang.in" && continue
29608                                 ok=false
29609                                 break
29610                         done
29611                 ;;
29612         esac
29613         $ok || continue
29614
29615         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29616         if test -f $srcdir/$gcc_subdir/lang.opt; then
29617             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29618             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29619         fi
29620         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29621             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29622         fi
29623         all_languages="$all_languages $language"
29624         all_compilers="$all_compilers $compilers"
29625         all_outputs="$all_outputs $outputs"
29626         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29627         case ",$enable_languages," in
29628                 *,lto,*)
29629
29630 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29631
29632                     enable_lto=yes
29633
29634                     ;;
29635                 *) ;;
29636         esac
29637 done
29638
29639 check_languages=
29640 for language in $all_selected_languages
29641 do
29642         check_languages="$check_languages check-$language"
29643 done
29644
29645 selftest_languages=
29646 for language in $all_selected_languages
29647 do
29648         selftest_languages="$selftest_languages selftest-$language"
29649 done
29650
29651 # We link each language in with a set of hooks, reached indirectly via
29652 # lang.${target}.  Only do so for selected languages.
29653
29654 rm -f Make-hooks
29655 touch Make-hooks
29656 target_list="all.cross start.encap rest.encap tags \
29657         install-common install-man install-info install-pdf install-html dvi \
29658         pdf html uninstall info man srcextra srcman srcinfo \
29659         mostlyclean clean distclean maintainer-clean install-plugin"
29660
29661 for t in $target_list
29662 do
29663         x=
29664         for lang in $all_selected_languages
29665         do
29666                 x="$x $lang.$t"
29667         done
29668         echo "lang.$t: $x" >> Make-hooks
29669 done
29670
29671 # --------
29672 # Option include files
29673 # --------
29674
29675 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29676 option_includes="option-includes.mk"
29677
29678
29679 # --------
29680 # UNSORTED
29681 # --------
29682
29683 # Create .gdbinit.
29684
29685 echo "dir ." > .gdbinit
29686 echo "dir ${srcdir}" >> .gdbinit
29687 if test x$gdb_needs_out_file_path = xyes
29688 then
29689         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29690 fi
29691 if test "x$subdirs" != x; then
29692         for s in $subdirs
29693         do
29694                 echo "dir ${srcdir}/$s" >> .gdbinit
29695         done
29696 fi
29697 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29698 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29699
29700 # Put a breakpoint on __asan_report_error to help with debugging buffer
29701 # overflow.
29702 case "$CFLAGS" in
29703 *-fsanitize=address*)
29704   echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29705   ;;
29706 esac
29707
29708 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29709
29710
29711
29712 # Find a directory in which to install a shared libgcc.
29713
29714 # Check whether --enable-version-specific-runtime-libs was given.
29715 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29716   enableval=$enable_version_specific_runtime_libs;
29717 fi
29718
29719
29720 # Substitute configuration variables
29721
29722
29723
29724
29725
29726
29727
29728
29729
29730
29731
29732
29733
29734
29735
29736
29737
29738
29739
29740
29741
29742
29743
29744
29745
29746
29747
29748
29749
29750
29751
29752
29753
29754
29755
29756
29757
29758
29759
29760
29761
29762
29763
29764
29765
29766
29767
29768
29769
29770
29771
29772
29773
29774
29775
29776
29777
29778
29779
29780
29781
29782
29783
29784
29785
29786
29787 # Echo link setup.
29788 if test x${build} = x${host} ; then
29789   if test x${host} = x${target} ; then
29790     echo "Links are now set up to build a native compiler for ${target}." 1>&2
29791   else
29792     echo "Links are now set up to build a cross-compiler" 1>&2
29793     echo " from ${host} to ${target}." 1>&2
29794   fi
29795 else
29796   if test x${host} = x${target} ; then
29797     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29798     echo " for ${target}." 1>&2
29799   else
29800     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29801     echo " from ${host} to ${target}." 1>&2
29802   fi
29803 fi
29804
29805
29806
29807
29808
29809
29810 if test "x${ISLLIBS}" != "x" ; then
29811
29812 $as_echo "#define HAVE_isl 1" >>confdefs.h
29813
29814 fi
29815
29816 # Check for plugin support
29817    # Check whether --enable-plugin was given.
29818 if test "${enable_plugin+set}" = set; then :
29819   enableval=$enable_plugin; enable_plugin=$enableval
29820 else
29821   enable_plugin=yes; default_plugin=yes
29822 fi
29823
29824
29825    pluginlibs=
29826    plugin_check=yes
29827
29828    case "${host}" in
29829      *-*-mingw*)
29830        # Since plugin support under MinGW is not as straightforward as on
29831        # other platforms (e.g., we have to link import library, etc), we
29832        # only enable it if explicitly requested.
29833        if test x"$default_plugin" = x"yes"; then
29834          enable_plugin=no
29835        elif test x"$enable_plugin" = x"yes"; then
29836          # Use make's target variable to derive import library name.
29837          pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29838          plugin_check=no
29839        fi
29840      ;;
29841      *-*-darwin*)
29842        if test x$build = x$host; then
29843          export_sym_check="nm${exeext} -g"
29844        elif test x$host = x$target; then
29845          export_sym_check="$gcc_cv_nm -g"
29846        else
29847          export_sym_check=
29848        fi
29849      ;;
29850      *)
29851        if test x$build = x$host; then
29852          export_sym_check="objdump${exeext} -T"
29853        elif test x$host = x$target; then
29854          export_sym_check="$gcc_cv_objdump -T"
29855        else
29856          export_sym_check=
29857        fi
29858      ;;
29859    esac
29860
29861    if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
29862
29863      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29864 $as_echo_n "checking for exported symbols... " >&6; }
29865      if test "x$export_sym_check" != x; then
29866        echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29867        ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29868        if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29869          : # No need to use a flag
29870          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29871 $as_echo "yes" >&6; }
29872        else
29873          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29874 $as_echo "yes" >&6; }
29875          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29876 $as_echo_n "checking for -rdynamic... " >&6; }
29877          ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29878          if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29879            plugin_rdynamic=yes
29880            pluginlibs="-rdynamic"
29881          else
29882            plugin_rdynamic=no
29883            enable_plugin=no
29884          fi
29885          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29886 $as_echo "$plugin_rdynamic" >&6; }
29887        fi
29888      else
29889        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29890 $as_echo "unable to check" >&6; }
29891      fi
29892
29893      # Check -ldl
29894      saved_LIBS="$LIBS"
29895      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29896 $as_echo_n "checking for library containing dlopen... " >&6; }
29897 if ${ac_cv_search_dlopen+:} false; then :
29898   $as_echo_n "(cached) " >&6
29899 else
29900   ac_func_search_save_LIBS=$LIBS
29901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29902 /* end confdefs.h.  */
29903
29904 /* Override any GCC internal prototype to avoid an error.
29905    Use char because int might match the return type of a GCC
29906    builtin and then its argument prototype would still apply.  */
29907 #ifdef __cplusplus
29908 extern "C"
29909 #endif
29910 char dlopen ();
29911 int
29912 main ()
29913 {
29914 return dlopen ();
29915   ;
29916   return 0;
29917 }
29918 _ACEOF
29919 for ac_lib in '' dl; do
29920   if test -z "$ac_lib"; then
29921     ac_res="none required"
29922   else
29923     ac_res=-l$ac_lib
29924     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29925   fi
29926   if ac_fn_cxx_try_link "$LINENO"; then :
29927   ac_cv_search_dlopen=$ac_res
29928 fi
29929 rm -f core conftest.err conftest.$ac_objext \
29930     conftest$ac_exeext
29931   if ${ac_cv_search_dlopen+:} false; then :
29932   break
29933 fi
29934 done
29935 if ${ac_cv_search_dlopen+:} false; then :
29936
29937 else
29938   ac_cv_search_dlopen=no
29939 fi
29940 rm conftest.$ac_ext
29941 LIBS=$ac_func_search_save_LIBS
29942 fi
29943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29944 $as_echo "$ac_cv_search_dlopen" >&6; }
29945 ac_res=$ac_cv_search_dlopen
29946 if test "$ac_res" != no; then :
29947   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29948
29949 fi
29950
29951      if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29952        pluginlibs="$pluginlibs -ldl"
29953      fi
29954      LIBS="$saved_LIBS"
29955
29956      # Check that we can build shared objects with -fPIC -shared
29957      saved_LDFLAGS="$LDFLAGS"
29958      saved_CFLAGS="$CFLAGS"
29959      case "${host}" in
29960        *-*-darwin*)
29961          CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29962          CFLAGS="$CFLAGS -fPIC"
29963          LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29964        ;;
29965        *)
29966          CFLAGS="$CFLAGS -fPIC"
29967          LDFLAGS="$LDFLAGS -fPIC -shared"
29968        ;;
29969      esac
29970      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29971 $as_echo_n "checking for -fPIC -shared... " >&6; }
29972      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29973 /* end confdefs.h.  */
29974 extern int X;
29975 int
29976 main ()
29977 {
29978 return X == 0;
29979   ;
29980   return 0;
29981 }
29982 _ACEOF
29983 if ac_fn_cxx_try_link "$LINENO"; then :
29984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29985 $as_echo "yes" >&6; }; have_pic_shared=yes
29986 else
29987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29988 $as_echo "no" >&6; }; have_pic_shared=no
29989 fi
29990 rm -f core conftest.err conftest.$ac_objext \
29991     conftest$ac_exeext conftest.$ac_ext
29992      if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29993        pluginlibs=
29994        enable_plugin=no
29995      fi
29996      LDFLAGS="$saved_LDFLAGS"
29997      CFLAGS="$saved_CFLAGS"
29998
29999      # If plugin support had been requested but not available, fail.
30000      if test x"$enable_plugin" = x"no" ; then
30001        if test x"$default_plugin" != x"yes"; then
30002          as_fn_error $? "
30003    Building GCC with plugin support requires a host that supports
30004    -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30005        fi
30006      fi
30007    fi
30008
30009
30010
30011 if test x"$enable_plugin" = x"yes"; then
30012
30013 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30014
30015 fi
30016
30017
30018 # Enable --enable-host-shared
30019 # Check whether --enable-host-shared was given.
30020 if test "${enable_host_shared+set}" = set; then :
30021   enableval=$enable_host_shared; PICFLAG=-fPIC
30022 else
30023   PICFLAG=
30024 fi
30025
30026
30027
30028
30029
30030 # Check whether --enable-libquadmath-support was given.
30031 if test "${enable_libquadmath_support+set}" = set; then :
30032   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30033 else
30034   ENABLE_LIBQUADMATH_SUPPORT=yes
30035 fi
30036
30037 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30038
30039 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30040
30041 fi
30042
30043
30044 # Specify what hash style to use by default.
30045
30046 # Check whether --with-linker-hash-style was given.
30047 if test "${with_linker_hash_style+set}" = set; then :
30048   withval=$with_linker_hash_style; case x"$withval" in
30049    xsysv)
30050      LINKER_HASH_STYLE=sysv
30051      ;;
30052    xgnu)
30053      LINKER_HASH_STYLE=gnu
30054      ;;
30055    xboth)
30056      LINKER_HASH_STYLE=both
30057      ;;
30058    *)
30059      as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30060      ;;
30061  esac
30062 else
30063   LINKER_HASH_STYLE=''
30064 fi
30065
30066 if test x"${LINKER_HASH_STYLE}" != x; then
30067
30068 cat >>confdefs.h <<_ACEOF
30069 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30070 _ACEOF
30071
30072 fi
30073
30074 # Specify what should be the default of -fdiagnostics-color option.
30075
30076 # Check whether --with-diagnostics-color was given.
30077 if test "${with_diagnostics_color+set}" = set; then :
30078   withval=$with_diagnostics_color; case x"$withval" in
30079    xnever)
30080      DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30081      ;;
30082    xauto)
30083      DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30084      ;;
30085    xauto-if-env)
30086      DIAGNOSTICS_COLOR_DEFAULT=-1
30087      ;;
30088    xalways)
30089      DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30090      ;;
30091    *)
30092      as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30093      ;;
30094  esac
30095 else
30096   DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30097 fi
30098
30099
30100 cat >>confdefs.h <<_ACEOF
30101 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30102 _ACEOF
30103
30104
30105 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30106 # of jit/jit-playback.c.
30107 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30108 echo "gcc_driver_version: ${gcc_driver_version}"
30109 cat > gcc-driver-name.h <<EOF
30110 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30111 EOF
30112
30113 # Check whether --enable-default-pie was given.
30114 # Check whether --enable-default-pie was given.
30115 if test "${enable_default_pie+set}" = set; then :
30116   enableval=$enable_default_pie; enable_default_pie=$enableval
30117 else
30118   enable_default_pie=no
30119 fi
30120
30121 if test x$enable_default_pie = xyes ; then
30122
30123 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30124
30125 fi
30126
30127
30128 # Check if -fno-PIE works.
30129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30130 $as_echo_n "checking for -fno-PIE option... " >&6; }
30131 if ${gcc_cv_c_no_fpie+:} false; then :
30132   $as_echo_n "(cached) " >&6
30133 else
30134   saved_CXXFLAGS="$CXXFLAGS"
30135    CXXFLAGS="$CXXFLAGS -fno-PIE"
30136    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30137 /* end confdefs.h.  */
30138 int main(void) {return 0;}
30139 _ACEOF
30140 if ac_fn_cxx_try_compile "$LINENO"; then :
30141   gcc_cv_c_no_fpie=yes
30142 else
30143   gcc_cv_c_no_fpie=no
30144 fi
30145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30146    CXXFLAGS="$saved_CXXFLAGS"
30147 fi
30148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30149 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30150 if test "$gcc_cv_c_no_fpie" = "yes"; then
30151   NO_PIE_CFLAGS="-fno-PIE"
30152 fi
30153
30154
30155 # Check if -no-pie works.
30156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30157 $as_echo_n "checking for -no-pie option... " >&6; }
30158 if ${gcc_cv_no_pie+:} false; then :
30159   $as_echo_n "(cached) " >&6
30160 else
30161   saved_LDFLAGS="$LDFLAGS"
30162    LDFLAGS="$LDFLAGS -no-pie"
30163    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30164 /* end confdefs.h.  */
30165 int main(void) {return 0;}
30166 _ACEOF
30167 if ac_fn_cxx_try_link "$LINENO"; then :
30168   gcc_cv_no_pie=yes
30169 else
30170   gcc_cv_no_pie=no
30171 fi
30172 rm -f core conftest.err conftest.$ac_objext \
30173     conftest$ac_exeext conftest.$ac_ext
30174    LDFLAGS="$saved_LDFLAGS"
30175 fi
30176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30177 $as_echo "$gcc_cv_no_pie" >&6; }
30178 if test "$gcc_cv_no_pie" = "yes"; then
30179   NO_PIE_FLAG="-no-pie"
30180 fi
30181
30182
30183 # Check linker supports '-z bndplt'
30184 ld_bndplt_support=no
30185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30186 $as_echo_n "checking linker -z bndplt option... " >&6; }
30187 if test x"$ld_is_gold" = xno; then
30188   if test $in_tree_ld = yes ; then
30189     if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
30190       ld_bndplt_support=yes
30191     fi
30192   elif test x$gcc_cv_ld != x; then
30193     # Check if linker supports -a bndplt option
30194     if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30195       ld_bndplt_support=yes
30196     fi
30197   fi
30198 fi
30199 if test x"$ld_bndplt_support" = xyes; then
30200
30201 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30202
30203 fi
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30205 $as_echo "$ld_bndplt_support" >&6; }
30206
30207 # Check linker supports '--push-state'/'--pop-state'
30208 ld_pushpopstate_support=no
30209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30210 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30211 if test x"$ld_is_gold" = xno; then
30212   if test $in_tree_ld = yes ; then
30213     if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
30214       ld_pushpopstate_support=yes
30215     fi
30216   elif test x$gcc_cv_ld != x; then
30217     # Check if linker supports --push-state/--pop-state options
30218     if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30219       ld_pushpopstate_support=yes
30220     fi
30221   fi
30222 fi
30223 if test x"$ld_pushpopstate_support" = xyes; then
30224
30225 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30226
30227 fi
30228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30229 $as_echo "$ld_pushpopstate_support" >&6; }
30230
30231 # Configure the subdirectories
30232 # AC_CONFIG_SUBDIRS($subdirs)
30233
30234 # Create the Makefile
30235 # and configure language subdirectories
30236 ac_config_files="$ac_config_files $all_outputs"
30237
30238
30239 ac_config_commands="$ac_config_commands default"
30240
30241 cat >confcache <<\_ACEOF
30242 # This file is a shell script that caches the results of configure
30243 # tests run on this system so they can be shared between configure
30244 # scripts and configure runs, see configure's option --config-cache.
30245 # It is not useful on other systems.  If it contains results you don't
30246 # want to keep, you may remove or edit it.
30247 #
30248 # config.status only pays attention to the cache file if you give it
30249 # the --recheck option to rerun configure.
30250 #
30251 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30252 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30253 # following values.
30254
30255 _ACEOF
30256
30257 # The following way of writing the cache mishandles newlines in values,
30258 # but we know of no workaround that is simple, portable, and efficient.
30259 # So, we kill variables containing newlines.
30260 # Ultrix sh set writes to stderr and can't be redirected directly,
30261 # and sets the high bit in the cache file unless we assign to the vars.
30262 (
30263   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30264     eval ac_val=\$$ac_var
30265     case $ac_val in #(
30266     *${as_nl}*)
30267       case $ac_var in #(
30268       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30269 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30270       esac
30271       case $ac_var in #(
30272       _ | IFS | as_nl) ;; #(
30273       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30274       *) { eval $ac_var=; unset $ac_var;} ;;
30275       esac ;;
30276     esac
30277   done
30278
30279   (set) 2>&1 |
30280     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30281     *${as_nl}ac_space=\ *)
30282       # `set' does not quote correctly, so add quotes: double-quote
30283       # substitution turns \\\\ into \\, and sed turns \\ into \.
30284       sed -n \
30285         "s/'/'\\\\''/g;
30286           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30287       ;; #(
30288     *)
30289       # `set' quotes correctly as required by POSIX, so do not add quotes.
30290       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30291       ;;
30292     esac |
30293     sort
30294 ) |
30295   sed '
30296      /^ac_cv_env_/b end
30297      t clear
30298      :clear
30299      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30300      t end
30301      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30302      :end' >>confcache
30303 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30304   if test -w "$cache_file"; then
30305     if test "x$cache_file" != "x/dev/null"; then
30306       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30307 $as_echo "$as_me: updating cache $cache_file" >&6;}
30308       if test ! -f "$cache_file" || test -h "$cache_file"; then
30309         cat confcache >"$cache_file"
30310       else
30311         case $cache_file in #(
30312         */* | ?:*)
30313           mv -f confcache "$cache_file"$$ &&
30314           mv -f "$cache_file"$$ "$cache_file" ;; #(
30315         *)
30316           mv -f confcache "$cache_file" ;;
30317         esac
30318       fi
30319     fi
30320   else
30321     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30322 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30323   fi
30324 fi
30325 rm -f confcache
30326
30327 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30328 # Let make expand exec_prefix.
30329 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30330
30331 DEFS=-DHAVE_CONFIG_H
30332
30333 ac_libobjs=
30334 ac_ltlibobjs=
30335 U=
30336 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30337   # 1. Remove the extension, and $U if already installed.
30338   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30339   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30340   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30341   #    will be set to the directory where LIBOBJS objects are built.
30342   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30343   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30344 done
30345 LIBOBJS=$ac_libobjs
30346
30347 LTLIBOBJS=$ac_ltlibobjs
30348
30349
30350
30351
30352 : "${CONFIG_STATUS=./config.status}"
30353 ac_write_fail=0
30354 ac_clean_files_save=$ac_clean_files
30355 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30356 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30357 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30358 as_write_fail=0
30359 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30360 #! $SHELL
30361 # Generated by $as_me.
30362 # Run this file to recreate the current configuration.
30363 # Compiler output produced by configure, useful for debugging
30364 # configure, is in config.log if it exists.
30365
30366 debug=false
30367 ac_cs_recheck=false
30368 ac_cs_silent=false
30369
30370 SHELL=\${CONFIG_SHELL-$SHELL}
30371 export SHELL
30372 _ASEOF
30373 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30374 ## -------------------- ##
30375 ## M4sh Initialization. ##
30376 ## -------------------- ##
30377
30378 # Be more Bourne compatible
30379 DUALCASE=1; export DUALCASE # for MKS sh
30380 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30381   emulate sh
30382   NULLCMD=:
30383   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30384   # is contrary to our usage.  Disable this feature.
30385   alias -g '${1+"$@"}'='"$@"'
30386   setopt NO_GLOB_SUBST
30387 else
30388   case `(set -o) 2>/dev/null` in #(
30389   *posix*) :
30390     set -o posix ;; #(
30391   *) :
30392      ;;
30393 esac
30394 fi
30395
30396
30397 as_nl='
30398 '
30399 export as_nl
30400 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30401 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30402 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30403 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30404 # Prefer a ksh shell builtin over an external printf program on Solaris,
30405 # but without wasting forks for bash or zsh.
30406 if test -z "$BASH_VERSION$ZSH_VERSION" \
30407     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30408   as_echo='print -r --'
30409   as_echo_n='print -rn --'
30410 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30411   as_echo='printf %s\n'
30412   as_echo_n='printf %s'
30413 else
30414   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30415     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30416     as_echo_n='/usr/ucb/echo -n'
30417   else
30418     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30419     as_echo_n_body='eval
30420       arg=$1;
30421       case $arg in #(
30422       *"$as_nl"*)
30423         expr "X$arg" : "X\\(.*\\)$as_nl";
30424         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30425       esac;
30426       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30427     '
30428     export as_echo_n_body
30429     as_echo_n='sh -c $as_echo_n_body as_echo'
30430   fi
30431   export as_echo_body
30432   as_echo='sh -c $as_echo_body as_echo'
30433 fi
30434
30435 # The user is always right.
30436 if test "${PATH_SEPARATOR+set}" != set; then
30437   PATH_SEPARATOR=:
30438   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30439     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30440       PATH_SEPARATOR=';'
30441   }
30442 fi
30443
30444
30445 # IFS
30446 # We need space, tab and new line, in precisely that order.  Quoting is
30447 # there to prevent editors from complaining about space-tab.
30448 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30449 # splitting by setting IFS to empty value.)
30450 IFS=" ""        $as_nl"
30451
30452 # Find who we are.  Look in the path if we contain no directory separator.
30453 as_myself=
30454 case $0 in #((
30455   *[\\/]* ) as_myself=$0 ;;
30456   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30457 for as_dir in $PATH
30458 do
30459   IFS=$as_save_IFS
30460   test -z "$as_dir" && as_dir=.
30461     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30462   done
30463 IFS=$as_save_IFS
30464
30465      ;;
30466 esac
30467 # We did not find ourselves, most probably we were run as `sh COMMAND'
30468 # in which case we are not to be found in the path.
30469 if test "x$as_myself" = x; then
30470   as_myself=$0
30471 fi
30472 if test ! -f "$as_myself"; then
30473   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30474   exit 1
30475 fi
30476
30477 # Unset variables that we do not need and which cause bugs (e.g. in
30478 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
30479 # suppresses any "Segmentation fault" message there.  '((' could
30480 # trigger a bug in pdksh 5.2.14.
30481 for as_var in BASH_ENV ENV MAIL MAILPATH
30482 do eval test x\${$as_var+set} = xset \
30483   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30484 done
30485 PS1='$ '
30486 PS2='> '
30487 PS4='+ '
30488
30489 # NLS nuisances.
30490 LC_ALL=C
30491 export LC_ALL
30492 LANGUAGE=C
30493 export LANGUAGE
30494
30495 # CDPATH.
30496 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30497
30498
30499 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30500 # ----------------------------------------
30501 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30502 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30503 # script with STATUS, using 1 if that was 0.
30504 as_fn_error ()
30505 {
30506   as_status=$1; test $as_status -eq 0 && as_status=1
30507   if test "$4"; then
30508     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30509     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30510   fi
30511   $as_echo "$as_me: error: $2" >&2
30512   as_fn_exit $as_status
30513 } # as_fn_error
30514
30515
30516 # as_fn_set_status STATUS
30517 # -----------------------
30518 # Set $? to STATUS, without forking.
30519 as_fn_set_status ()
30520 {
30521   return $1
30522 } # as_fn_set_status
30523
30524 # as_fn_exit STATUS
30525 # -----------------
30526 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30527 as_fn_exit ()
30528 {
30529   set +e
30530   as_fn_set_status $1
30531   exit $1
30532 } # as_fn_exit
30533
30534 # as_fn_unset VAR
30535 # ---------------
30536 # Portably unset VAR.
30537 as_fn_unset ()
30538 {
30539   { eval $1=; unset $1;}
30540 }
30541 as_unset=as_fn_unset
30542 # as_fn_append VAR VALUE
30543 # ----------------------
30544 # Append the text in VALUE to the end of the definition contained in VAR. Take
30545 # advantage of any shell optimizations that allow amortized linear growth over
30546 # repeated appends, instead of the typical quadratic growth present in naive
30547 # implementations.
30548 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30549   eval 'as_fn_append ()
30550   {
30551     eval $1+=\$2
30552   }'
30553 else
30554   as_fn_append ()
30555   {
30556     eval $1=\$$1\$2
30557   }
30558 fi # as_fn_append
30559
30560 # as_fn_arith ARG...
30561 # ------------------
30562 # Perform arithmetic evaluation on the ARGs, and store the result in the
30563 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30564 # must be portable across $(()) and expr.
30565 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30566   eval 'as_fn_arith ()
30567   {
30568     as_val=$(( $* ))
30569   }'
30570 else
30571   as_fn_arith ()
30572   {
30573     as_val=`expr "$@" || test $? -eq 1`
30574   }
30575 fi # as_fn_arith
30576
30577
30578 if expr a : '\(a\)' >/dev/null 2>&1 &&
30579    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30580   as_expr=expr
30581 else
30582   as_expr=false
30583 fi
30584
30585 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30586   as_basename=basename
30587 else
30588   as_basename=false
30589 fi
30590
30591 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30592   as_dirname=dirname
30593 else
30594   as_dirname=false
30595 fi
30596
30597 as_me=`$as_basename -- "$0" ||
30598 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30599          X"$0" : 'X\(//\)$' \| \
30600          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30601 $as_echo X/"$0" |
30602     sed '/^.*\/\([^/][^/]*\)\/*$/{
30603             s//\1/
30604             q
30605           }
30606           /^X\/\(\/\/\)$/{
30607             s//\1/
30608             q
30609           }
30610           /^X\/\(\/\).*/{
30611             s//\1/
30612             q
30613           }
30614           s/.*/./; q'`
30615
30616 # Avoid depending upon Character Ranges.
30617 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30618 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30619 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30620 as_cr_digits='0123456789'
30621 as_cr_alnum=$as_cr_Letters$as_cr_digits
30622
30623 ECHO_C= ECHO_N= ECHO_T=
30624 case `echo -n x` in #(((((
30625 -n*)
30626   case `echo 'xy\c'` in
30627   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30628   xy)  ECHO_C='\c';;
30629   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
30630        ECHO_T=' ';;
30631   esac;;
30632 *)
30633   ECHO_N='-n';;
30634 esac
30635
30636 rm -f conf$$ conf$$.exe conf$$.file
30637 if test -d conf$$.dir; then
30638   rm -f conf$$.dir/conf$$.file
30639 else
30640   rm -f conf$$.dir
30641   mkdir conf$$.dir 2>/dev/null
30642 fi
30643 if (echo >conf$$.file) 2>/dev/null; then
30644   if ln -s conf$$.file conf$$ 2>/dev/null; then
30645     as_ln_s='ln -s'
30646     # ... but there are two gotchas:
30647     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30648     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30649     # In both cases, we have to default to `cp -pR'.
30650     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30651       as_ln_s='cp -pR'
30652   elif ln conf$$.file conf$$ 2>/dev/null; then
30653     as_ln_s=ln
30654   else
30655     as_ln_s='cp -pR'
30656   fi
30657 else
30658   as_ln_s='cp -pR'
30659 fi
30660 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30661 rmdir conf$$.dir 2>/dev/null
30662
30663
30664 # as_fn_mkdir_p
30665 # -------------
30666 # Create "$as_dir" as a directory, including parents if necessary.
30667 as_fn_mkdir_p ()
30668 {
30669
30670   case $as_dir in #(
30671   -*) as_dir=./$as_dir;;
30672   esac
30673   test -d "$as_dir" || eval $as_mkdir_p || {
30674     as_dirs=
30675     while :; do
30676       case $as_dir in #(
30677       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30678       *) as_qdir=$as_dir;;
30679       esac
30680       as_dirs="'$as_qdir' $as_dirs"
30681       as_dir=`$as_dirname -- "$as_dir" ||
30682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30683          X"$as_dir" : 'X\(//\)[^/]' \| \
30684          X"$as_dir" : 'X\(//\)$' \| \
30685          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30686 $as_echo X"$as_dir" |
30687     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30688             s//\1/
30689             q
30690           }
30691           /^X\(\/\/\)[^/].*/{
30692             s//\1/
30693             q
30694           }
30695           /^X\(\/\/\)$/{
30696             s//\1/
30697             q
30698           }
30699           /^X\(\/\).*/{
30700             s//\1/
30701             q
30702           }
30703           s/.*/./; q'`
30704       test -d "$as_dir" && break
30705     done
30706     test -z "$as_dirs" || eval "mkdir $as_dirs"
30707   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30708
30709
30710 } # as_fn_mkdir_p
30711 if mkdir -p . 2>/dev/null; then
30712   as_mkdir_p='mkdir -p "$as_dir"'
30713 else
30714   test -d ./-p && rmdir ./-p
30715   as_mkdir_p=false
30716 fi
30717
30718
30719 # as_fn_executable_p FILE
30720 # -----------------------
30721 # Test if FILE is an executable regular file.
30722 as_fn_executable_p ()
30723 {
30724   test -f "$1" && test -x "$1"
30725 } # as_fn_executable_p
30726 as_test_x='test -x'
30727 as_executable_p=as_fn_executable_p
30728
30729 # Sed expression to map a string onto a valid CPP name.
30730 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30731
30732 # Sed expression to map a string onto a valid variable name.
30733 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30734
30735
30736 exec 6>&1
30737 ## ----------------------------------- ##
30738 ## Main body of $CONFIG_STATUS script. ##
30739 ## ----------------------------------- ##
30740 _ASEOF
30741 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30742
30743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30744 # Save the log message, to keep $0 and so on meaningful, and to
30745 # report actual input values of CONFIG_FILES etc. instead of their
30746 # values after options handling.
30747 ac_log="
30748 This file was extended by $as_me, which was
30749 generated by GNU Autoconf 2.69.  Invocation command line was
30750
30751   CONFIG_FILES    = $CONFIG_FILES
30752   CONFIG_HEADERS  = $CONFIG_HEADERS
30753   CONFIG_LINKS    = $CONFIG_LINKS
30754   CONFIG_COMMANDS = $CONFIG_COMMANDS
30755   $ $0 $@
30756
30757 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30758 "
30759
30760 _ACEOF
30761
30762 case $ac_config_files in *"
30763 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30764 esac
30765
30766 case $ac_config_headers in *"
30767 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30768 esac
30769
30770
30771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30772 # Files that config.status was made for.
30773 config_files="$ac_config_files"
30774 config_headers="$ac_config_headers"
30775 config_links="$ac_config_links"
30776 config_commands="$ac_config_commands"
30777
30778 _ACEOF
30779
30780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30781 ac_cs_usage="\
30782 \`$as_me' instantiates files and other configuration actions
30783 from templates according to the current configuration.  Unless the files
30784 and actions are specified as TAGs, all are instantiated by default.
30785
30786 Usage: $0 [OPTION]... [TAG]...
30787
30788   -h, --help       print this help, then exit
30789   -V, --version    print version number and configuration settings, then exit
30790       --config     print configuration, then exit
30791   -q, --quiet, --silent
30792                    do not print progress messages
30793   -d, --debug      don't remove temporary files
30794       --recheck    update $as_me by reconfiguring in the same conditions
30795       --file=FILE[:TEMPLATE]
30796                    instantiate the configuration file FILE
30797       --header=FILE[:TEMPLATE]
30798                    instantiate the configuration header FILE
30799
30800 Configuration files:
30801 $config_files
30802
30803 Configuration headers:
30804 $config_headers
30805
30806 Configuration links:
30807 $config_links
30808
30809 Configuration commands:
30810 $config_commands
30811
30812 Report bugs to the package provider."
30813
30814 _ACEOF
30815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30816 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30817 ac_cs_version="\\
30818 config.status
30819 configured by $0, generated by GNU Autoconf 2.69,
30820   with options \\"\$ac_cs_config\\"
30821
30822 Copyright (C) 2012 Free Software Foundation, Inc.
30823 This config.status script is free software; the Free Software Foundation
30824 gives unlimited permission to copy, distribute and modify it."
30825
30826 ac_pwd='$ac_pwd'
30827 srcdir='$srcdir'
30828 AWK='$AWK'
30829 test -n "\$AWK" || AWK=awk
30830 _ACEOF
30831
30832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30833 # The default lists apply if the user does not specify any file.
30834 ac_need_defaults=:
30835 while test $# != 0
30836 do
30837   case $1 in
30838   --*=?*)
30839     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30840     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30841     ac_shift=:
30842     ;;
30843   --*=)
30844     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30845     ac_optarg=
30846     ac_shift=:
30847     ;;
30848   *)
30849     ac_option=$1
30850     ac_optarg=$2
30851     ac_shift=shift
30852     ;;
30853   esac
30854
30855   case $ac_option in
30856   # Handling of the options.
30857   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30858     ac_cs_recheck=: ;;
30859   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30860     $as_echo "$ac_cs_version"; exit ;;
30861   --config | --confi | --conf | --con | --co | --c )
30862     $as_echo "$ac_cs_config"; exit ;;
30863   --debug | --debu | --deb | --de | --d | -d )
30864     debug=: ;;
30865   --file | --fil | --fi | --f )
30866     $ac_shift
30867     case $ac_optarg in
30868     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30869     '') as_fn_error $? "missing file argument" ;;
30870     esac
30871     as_fn_append CONFIG_FILES " '$ac_optarg'"
30872     ac_need_defaults=false;;
30873   --header | --heade | --head | --hea )
30874     $ac_shift
30875     case $ac_optarg in
30876     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30877     esac
30878     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30879     ac_need_defaults=false;;
30880   --he | --h)
30881     # Conflict between --help and --header
30882     as_fn_error $? "ambiguous option: \`$1'
30883 Try \`$0 --help' for more information.";;
30884   --help | --hel | -h )
30885     $as_echo "$ac_cs_usage"; exit ;;
30886   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30887   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30888     ac_cs_silent=: ;;
30889
30890   # This is an error.
30891   -*) as_fn_error $? "unrecognized option: \`$1'
30892 Try \`$0 --help' for more information." ;;
30893
30894   *) as_fn_append ac_config_targets " $1"
30895      ac_need_defaults=false ;;
30896
30897   esac
30898   shift
30899 done
30900
30901 ac_configure_extra_args=
30902
30903 if $ac_cs_silent; then
30904   exec 6>/dev/null
30905   ac_configure_extra_args="$ac_configure_extra_args --silent"
30906 fi
30907
30908 _ACEOF
30909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30910 if \$ac_cs_recheck; then
30911   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30912   shift
30913   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30914   CONFIG_SHELL='$SHELL'
30915   export CONFIG_SHELL
30916   exec "\$@"
30917 fi
30918
30919 _ACEOF
30920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30921 exec 5>>config.log
30922 {
30923   echo
30924   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30925 ## Running $as_me. ##
30926 _ASBOX
30927   $as_echo "$ac_log"
30928 } >&5
30929
30930 _ACEOF
30931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30932 #
30933 # INIT-COMMANDS
30934 #
30935 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30936 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30937 subdirs='$subdirs'
30938
30939 _ACEOF
30940
30941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30942
30943 # Handling of arguments.
30944 for ac_config_target in $ac_config_targets
30945 do
30946   case $ac_config_target in
30947     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30948     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30949     "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30950     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30951     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30952     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30953     "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30954     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30955     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30956
30957   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30958   esac
30959 done
30960
30961
30962 # If the user did not use the arguments to specify the items to instantiate,
30963 # then the envvar interface is used.  Set only those that are not.
30964 # We use the long form for the default assignment because of an extremely
30965 # bizarre bug on SunOS 4.1.3.
30966 if $ac_need_defaults; then
30967   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30968   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30969   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30970   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30971 fi
30972
30973 # Have a temporary directory for convenience.  Make it in the build tree
30974 # simply because there is no reason against having it here, and in addition,
30975 # creating and moving files from /tmp can sometimes cause problems.
30976 # Hook for its removal unless debugging.
30977 # Note that there is a small window in which the directory will not be cleaned:
30978 # after its creation but before its name has been assigned to `$tmp'.
30979 $debug ||
30980 {
30981   tmp= ac_tmp=
30982   trap 'exit_status=$?
30983   : "${ac_tmp:=$tmp}"
30984   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30985 ' 0
30986   trap 'as_fn_exit 1' 1 2 13 15
30987 }
30988 # Create a (secure) tmp directory for tmp files.
30989
30990 {
30991   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30992   test -d "$tmp"
30993 }  ||
30994 {
30995   tmp=./conf$$-$RANDOM
30996   (umask 077 && mkdir "$tmp")
30997 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30998 ac_tmp=$tmp
30999
31000 # Set up the scripts for CONFIG_FILES section.
31001 # No need to generate them if there are no CONFIG_FILES.
31002 # This happens for instance with `./config.status config.h'.
31003 if test -n "$CONFIG_FILES"; then
31004
31005 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31006   ac_cs_awk_getline=:
31007   ac_cs_awk_pipe_init=
31008   ac_cs_awk_read_file='
31009       while ((getline aline < (F[key])) > 0)
31010         print(aline)
31011       close(F[key])'
31012   ac_cs_awk_pipe_fini=
31013 else
31014   ac_cs_awk_getline=false
31015   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31016   ac_cs_awk_read_file='
31017       print "|#_!!_#|"
31018       print "cat " F[key] " &&"
31019       '$ac_cs_awk_pipe_init
31020   # The final `:' finishes the AND list.
31021   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31022 fi
31023 ac_cr=`echo X | tr X '\015'`
31024 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31025 # But we know of no other shell where ac_cr would be empty at this
31026 # point, so we can use a bashism as a fallback.
31027 if test "x$ac_cr" = x; then
31028   eval ac_cr=\$\'\\r\'
31029 fi
31030 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31031 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31032   ac_cs_awk_cr='\\r'
31033 else
31034   ac_cs_awk_cr=$ac_cr
31035 fi
31036
31037 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31038 _ACEOF
31039
31040 # Create commands to substitute file output variables.
31041 {
31042   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31043   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31044   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31045   echo "_ACAWK" &&
31046   echo "_ACEOF"
31047 } >conf$$files.sh &&
31048 . ./conf$$files.sh ||
31049   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31050 rm -f conf$$files.sh
31051
31052 {
31053   echo "cat >conf$$subs.awk <<_ACEOF" &&
31054   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31055   echo "_ACEOF"
31056 } >conf$$subs.sh ||
31057   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31058 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31059 ac_delim='%!_!# '
31060 for ac_last_try in false false false false false :; do
31061   . ./conf$$subs.sh ||
31062     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31063
31064   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31065   if test $ac_delim_n = $ac_delim_num; then
31066     break
31067   elif $ac_last_try; then
31068     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31069   else
31070     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31071   fi
31072 done
31073 rm -f conf$$subs.sh
31074
31075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31076 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31077 _ACEOF
31078 sed -n '
31079 h
31080 s/^/S["/; s/!.*/"]=/
31081 p
31082 g
31083 s/^[^!]*!//
31084 :repl
31085 t repl
31086 s/'"$ac_delim"'$//
31087 t delim
31088 :nl
31089 h
31090 s/\(.\{148\}\)..*/\1/
31091 t more1
31092 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31093 p
31094 n
31095 b repl
31096 :more1
31097 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31098 p
31099 g
31100 s/.\{148\}//
31101 t nl
31102 :delim
31103 h
31104 s/\(.\{148\}\)..*/\1/
31105 t more2
31106 s/["\\]/\\&/g; s/^/"/; s/$/"/
31107 p
31108 b
31109 :more2
31110 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31111 p
31112 g
31113 s/.\{148\}//
31114 t delim
31115 ' <conf$$subs.awk | sed '
31116 /^[^""]/{
31117   N
31118   s/\n//
31119 }
31120 ' >>$CONFIG_STATUS || ac_write_fail=1
31121 rm -f conf$$subs.awk
31122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31123 _ACAWK
31124 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31125   for (key in S) S_is_set[key] = 1
31126   FS = "\a"
31127   \$ac_cs_awk_pipe_init
31128 }
31129 {
31130   line = $ 0
31131   nfields = split(line, field, "@")
31132   substed = 0
31133   len = length(field[1])
31134   for (i = 2; i < nfields; i++) {
31135     key = field[i]
31136     keylen = length(key)
31137     if (S_is_set[key]) {
31138       value = S[key]
31139       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31140       len += length(value) + length(field[++i])
31141       substed = 1
31142     } else
31143       len += 1 + keylen
31144   }
31145   if (nfields == 3 && !substed) {
31146     key = field[2]
31147     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
31148       \$ac_cs_awk_read_file
31149       next
31150     }
31151   }
31152   print line
31153 }
31154 \$ac_cs_awk_pipe_fini
31155 _ACAWK
31156 _ACEOF
31157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31158 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31159   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31160 else
31161   cat
31162 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31163   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31164 _ACEOF
31165
31166 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31167 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31168 # trailing colons and then remove the whole line if VPATH becomes empty
31169 # (actually we leave an empty line to preserve line numbers).
31170 if test "x$srcdir" = x.; then
31171   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
31172 h
31173 s///
31174 s/^/:/
31175 s/[      ]*$/:/
31176 s/:\$(srcdir):/:/g
31177 s/:\${srcdir}:/:/g
31178 s/:@srcdir@:/:/g
31179 s/^:*//
31180 s/:*$//
31181 x
31182 s/\(=[   ]*\).*/\1/
31183 G
31184 s/\n//
31185 s/^[^=]*=[       ]*$//
31186 }'
31187 fi
31188
31189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31190 fi # test -n "$CONFIG_FILES"
31191
31192 # Set up the scripts for CONFIG_HEADERS section.
31193 # No need to generate them if there are no CONFIG_HEADERS.
31194 # This happens for instance with `./config.status Makefile'.
31195 if test -n "$CONFIG_HEADERS"; then
31196 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31197 BEGIN {
31198 _ACEOF
31199
31200 # Transform confdefs.h into an awk script `defines.awk', embedded as
31201 # here-document in config.status, that substitutes the proper values into
31202 # config.h.in to produce config.h.
31203
31204 # Create a delimiter string that does not exist in confdefs.h, to ease
31205 # handling of long lines.
31206 ac_delim='%!_!# '
31207 for ac_last_try in false false :; do
31208   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31209   if test -z "$ac_tt"; then
31210     break
31211   elif $ac_last_try; then
31212     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31213   else
31214     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31215   fi
31216 done
31217
31218 # For the awk script, D is an array of macro values keyed by name,
31219 # likewise P contains macro parameters if any.  Preserve backslash
31220 # newline sequences.
31221
31222 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31223 sed -n '
31224 s/.\{148\}/&'"$ac_delim"'/g
31225 t rset
31226 :rset
31227 s/^[     ]*#[    ]*define[       ][      ]*/ /
31228 t def
31229 d
31230 :def
31231 s/\\$//
31232 t bsnl
31233 s/["\\]/\\&/g
31234 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31235 D["\1"]=" \3"/p
31236 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
31237 d
31238 :bsnl
31239 s/["\\]/\\&/g
31240 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31241 D["\1"]=" \3\\\\\\n"\\/p
31242 t cont
31243 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31244 t cont
31245 d
31246 :cont
31247 n
31248 s/.\{148\}/&'"$ac_delim"'/g
31249 t clear
31250 :clear
31251 s/\\$//
31252 t bsnlc
31253 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31254 d
31255 :bsnlc
31256 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31257 b cont
31258 ' <confdefs.h | sed '
31259 s/'"$ac_delim"'/"\\\
31260 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31261
31262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31263   for (key in D) D_is_set[key] = 1
31264   FS = "\a"
31265 }
31266 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31267   line = \$ 0
31268   split(line, arg, " ")
31269   if (arg[1] == "#") {
31270     defundef = arg[2]
31271     mac1 = arg[3]
31272   } else {
31273     defundef = substr(arg[1], 2)
31274     mac1 = arg[2]
31275   }
31276   split(mac1, mac2, "(") #)
31277   macro = mac2[1]
31278   prefix = substr(line, 1, index(line, defundef) - 1)
31279   if (D_is_set[macro]) {
31280     # Preserve the white space surrounding the "#".
31281     print prefix "define", macro P[macro] D[macro]
31282     next
31283   } else {
31284     # Replace #undef with comments.  This is necessary, for example,
31285     # in the case of _POSIX_SOURCE, which is predefined and required
31286     # on some systems where configure will not decide to define it.
31287     if (defundef == "undef") {
31288       print "/*", prefix defundef, macro, "*/"
31289       next
31290     }
31291   }
31292 }
31293 { print }
31294 _ACAWK
31295 _ACEOF
31296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31297   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31298 fi # test -n "$CONFIG_HEADERS"
31299
31300
31301 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
31302 shift
31303 for ac_tag
31304 do
31305   case $ac_tag in
31306   :[FHLC]) ac_mode=$ac_tag; continue;;
31307   esac
31308   case $ac_mode$ac_tag in
31309   :[FHL]*:*);;
31310   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31311   :[FH]-) ac_tag=-:-;;
31312   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31313   esac
31314   ac_save_IFS=$IFS
31315   IFS=:
31316   set x $ac_tag
31317   IFS=$ac_save_IFS
31318   shift
31319   ac_file=$1
31320   shift
31321
31322   case $ac_mode in
31323   :L) ac_source=$1;;
31324   :[FH])
31325     ac_file_inputs=
31326     for ac_f
31327     do
31328       case $ac_f in
31329       -) ac_f="$ac_tmp/stdin";;
31330       *) # Look for the file first in the build tree, then in the source tree
31331          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31332          # because $ac_f cannot contain `:'.
31333          test -f "$ac_f" ||
31334            case $ac_f in
31335            [\\/$]*) false;;
31336            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31337            esac ||
31338            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31339       esac
31340       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31341       as_fn_append ac_file_inputs " '$ac_f'"
31342     done
31343
31344     # Let's still pretend it is `configure' which instantiates (i.e., don't
31345     # use $as_me), people would be surprised to read:
31346     #    /* config.h.  Generated by config.status.  */
31347     configure_input='Generated from '`
31348           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31349         `' by configure.'
31350     if test x"$ac_file" != x-; then
31351       configure_input="$ac_file.  $configure_input"
31352       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31353 $as_echo "$as_me: creating $ac_file" >&6;}
31354     fi
31355     # Neutralize special characters interpreted by sed in replacement strings.
31356     case $configure_input in #(
31357     *\&* | *\|* | *\\* )
31358        ac_sed_conf_input=`$as_echo "$configure_input" |
31359        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31360     *) ac_sed_conf_input=$configure_input;;
31361     esac
31362
31363     case $ac_tag in
31364     *:-:* | *:-) cat >"$ac_tmp/stdin" \
31365       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31366     esac
31367     ;;
31368   esac
31369
31370   ac_dir=`$as_dirname -- "$ac_file" ||
31371 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31372          X"$ac_file" : 'X\(//\)[^/]' \| \
31373          X"$ac_file" : 'X\(//\)$' \| \
31374          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31375 $as_echo X"$ac_file" |
31376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31377             s//\1/
31378             q
31379           }
31380           /^X\(\/\/\)[^/].*/{
31381             s//\1/
31382             q
31383           }
31384           /^X\(\/\/\)$/{
31385             s//\1/
31386             q
31387           }
31388           /^X\(\/\).*/{
31389             s//\1/
31390             q
31391           }
31392           s/.*/./; q'`
31393   as_dir="$ac_dir"; as_fn_mkdir_p
31394   ac_builddir=.
31395
31396 case "$ac_dir" in
31397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31398 *)
31399   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31400   # A ".." for each directory in $ac_dir_suffix.
31401   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31402   case $ac_top_builddir_sub in
31403   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31404   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31405   esac ;;
31406 esac
31407 ac_abs_top_builddir=$ac_pwd
31408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31409 # for backward compatibility:
31410 ac_top_builddir=$ac_top_build_prefix
31411
31412 case $srcdir in
31413   .)  # We are building in place.
31414     ac_srcdir=.
31415     ac_top_srcdir=$ac_top_builddir_sub
31416     ac_abs_top_srcdir=$ac_pwd ;;
31417   [\\/]* | ?:[\\/]* )  # Absolute name.
31418     ac_srcdir=$srcdir$ac_dir_suffix;
31419     ac_top_srcdir=$srcdir
31420     ac_abs_top_srcdir=$srcdir ;;
31421   *) # Relative name.
31422     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31423     ac_top_srcdir=$ac_top_build_prefix$srcdir
31424     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31425 esac
31426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31427
31428
31429   case $ac_mode in
31430   :F)
31431   #
31432   # CONFIG_FILE
31433   #
31434
31435 _ACEOF
31436
31437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31438 # If the template does not know about datarootdir, expand it.
31439 # FIXME: This hack should be removed a few years after 2.60.
31440 ac_datarootdir_hack=; ac_datarootdir_seen=
31441 ac_sed_dataroot='
31442 /datarootdir/ {
31443   p
31444   q
31445 }
31446 /@datadir@/p
31447 /@docdir@/p
31448 /@infodir@/p
31449 /@localedir@/p
31450 /@mandir@/p'
31451 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31452 *datarootdir*) ac_datarootdir_seen=yes;;
31453 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31454   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31455 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31456 _ACEOF
31457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31458   ac_datarootdir_hack='
31459   s&@datadir@&$datadir&g
31460   s&@docdir@&$docdir&g
31461   s&@infodir@&$infodir&g
31462   s&@localedir@&$localedir&g
31463   s&@mandir@&$mandir&g
31464   s&\\\${datarootdir}&$datarootdir&g' ;;
31465 esac
31466 _ACEOF
31467
31468 # Neutralize VPATH when `$srcdir' = `.'.
31469 # Shell code in configure.ac might set extrasub.
31470 # FIXME: do we really want to maintain this feature?
31471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31472 ac_sed_extra="$ac_vpsub
31473 $extrasub
31474 _ACEOF
31475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31476 :t
31477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31478 s|@configure_input@|$ac_sed_conf_input|;t t
31479 s&@top_builddir@&$ac_top_builddir_sub&;t t
31480 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31481 s&@srcdir@&$ac_srcdir&;t t
31482 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31483 s&@top_srcdir@&$ac_top_srcdir&;t t
31484 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31485 s&@builddir@&$ac_builddir&;t t
31486 s&@abs_builddir@&$ac_abs_builddir&;t t
31487 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31488 $ac_datarootdir_hack
31489 "
31490 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31491 if $ac_cs_awk_getline; then
31492   $AWK -f "$ac_tmp/subs.awk"
31493 else
31494   $AWK -f "$ac_tmp/subs.awk" | $SHELL
31495 fi \
31496   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31497
31498 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31499   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31500   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
31501       "$ac_tmp/out"`; test -z "$ac_out"; } &&
31502   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31503 which seems to be undefined.  Please make sure it is defined" >&5
31504 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31505 which seems to be undefined.  Please make sure it is defined" >&2;}
31506
31507   rm -f "$ac_tmp/stdin"
31508   case $ac_file in
31509   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31510   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31511   esac \
31512   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31513  ;;
31514   :H)
31515   #
31516   # CONFIG_HEADER
31517   #
31518   if test x"$ac_file" != x-; then
31519     {
31520       $as_echo "/* $configure_input  */" \
31521       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31522     } >"$ac_tmp/config.h" \
31523       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31524     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31525       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31526 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31527     else
31528       rm -f "$ac_file"
31529       mv "$ac_tmp/config.h" "$ac_file" \
31530         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31531     fi
31532   else
31533     $as_echo "/* $configure_input  */" \
31534       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31535       || as_fn_error $? "could not create -" "$LINENO" 5
31536   fi
31537  ;;
31538   :L)
31539   #
31540   # CONFIG_LINK
31541   #
31542
31543   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31544     :
31545   else
31546     # Prefer the file from the source tree if names are identical.
31547     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31548       ac_source=$srcdir/$ac_source
31549     fi
31550
31551     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31552 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31553
31554     if test ! -r "$ac_source"; then
31555       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31556     fi
31557     rm -f "$ac_file"
31558
31559     # Try a relative symlink, then a hard link, then a copy.
31560     case $ac_source in
31561     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31562         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31563     esac
31564     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31565       ln "$ac_source" "$ac_file" 2>/dev/null ||
31566       cp -p "$ac_source" "$ac_file" ||
31567       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31568   fi
31569  ;;
31570   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31571 $as_echo "$as_me: executing $ac_file commands" >&6;}
31572  ;;
31573   esac
31574
31575
31576   case $ac_file$ac_mode in
31577     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31578     "gccdepdir":C)
31579   ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31580   for lang in $subdirs c-family common
31581   do
31582       ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31583   done ;;
31584     "as":F) chmod +x as ;;
31585     "collect-ld":F) chmod +x collect-ld ;;
31586     "nm":F) chmod +x nm ;;
31587     "default":C)
31588 case ${CONFIG_HEADERS} in
31589   *auto-host.h:config.in*)
31590   echo > cstamp-h ;;
31591 esac
31592 # Make sure all the subdirs exist.
31593 for d in $subdirs doc build common c-family
31594 do
31595     test -d $d || mkdir $d
31596 done
31597  ;;
31598
31599   esac
31600 done # for ac_tag
31601
31602
31603 as_fn_exit 0
31604 _ACEOF
31605 ac_clean_files=$ac_clean_files_save
31606
31607 test $ac_write_fail = 0 ||
31608   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31609
31610
31611 # configure is writing to config.log, and then calls config.status.
31612 # config.status does its own redirection, appending to config.log.
31613 # Unfortunately, on DOS this fails, as config.log is still kept open
31614 # by configure, so config.status won't be able to write to it; its
31615 # output is simply discarded.  So we exec the FD to /dev/null,
31616 # effectively closing config.log, so it can be properly (re)opened and
31617 # appended to by config.status.  When coming back to configure, we
31618 # need to make the FD available again.
31619 if test "$no_create" != yes; then
31620   ac_cs_success=:
31621   ac_config_status_args=
31622   test "$silent" = yes &&
31623     ac_config_status_args="$ac_config_status_args --quiet"
31624   exec 5>/dev/null
31625   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31626   exec 5>>config.log
31627   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31628   # would make configure fail if this is the last instruction.
31629   $ac_cs_success || as_fn_exit 1
31630 fi
31631 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31632   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31633 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31634 fi
31635
31636