OSDN Git Service

Regenerate tree using Autoconf 2.64 and Automake 1.11.
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
530
531 case X$lt_ECHO in
532 X*--fallback-echo)
533   # Remove one level of quotation (which was required for Make).
534   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535   ;;
536 esac
537
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540   # Discard the --no-reexec flag, and continue.
541   shift
542 elif test "X$1" = X--fallback-echo; then
543   # Avoid inline document here, it may be left over
544   :
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546   # Yippee, $ECHO works!
547   :
548 else
549   # Restart under the correct shell.
550   exec $SHELL "$0" --no-reexec ${1+"$@"}
551 fi
552
553 if test "X$1" = X--fallback-echo; then
554   # used as fallback echo
555   shift
556   cat <<_LT_EOF
557 $*
558 _LT_EOF
559   exit 0
560 fi
561
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
563 # if CDPATH is set.
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566 if test -z "$lt_ECHO"; then
567   if test "X${echo_test_string+set}" != Xset; then
568     # find a string as large as possible, as long as the shell can cope with it
569     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573       then
574         break
575       fi
576     done
577   fi
578
579   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581      test "X$echo_testing_string" = "X$echo_test_string"; then
582     :
583   else
584     # The Solaris, AIX, and Digital Unix default echo programs unquote
585     # backslashes.  This makes it impossible to quote backslashes using
586     #   echo "$something" | sed 's/\\/\\\\/g'
587     #
588     # So, first we look for a working echo in the user's PATH.
589
590     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591     for dir in $PATH /usr/ucb; do
592       IFS="$lt_save_ifs"
593       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596          test "X$echo_testing_string" = "X$echo_test_string"; then
597         ECHO="$dir/echo"
598         break
599       fi
600     done
601     IFS="$lt_save_ifs"
602
603     if test "X$ECHO" = Xecho; then
604       # We didn't find a better echo, so look for alternatives.
605       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607          test "X$echo_testing_string" = "X$echo_test_string"; then
608         # This shell has a builtin print -r that does the trick.
609         ECHO='print -r'
610       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611            test "X$CONFIG_SHELL" != X/bin/ksh; then
612         # If we have ksh, try running configure again with it.
613         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614         export ORIGINAL_CONFIG_SHELL
615         CONFIG_SHELL=/bin/ksh
616         export CONFIG_SHELL
617         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618       else
619         # Try using printf.
620         ECHO='printf %s\n'
621         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623            test "X$echo_testing_string" = "X$echo_test_string"; then
624           # Cool, printf works
625           :
626         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627              test "X$echo_testing_string" = 'X\t' &&
628              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629              test "X$echo_testing_string" = "X$echo_test_string"; then
630           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631           export CONFIG_SHELL
632           SHELL="$CONFIG_SHELL"
633           export SHELL
634           ECHO="$CONFIG_SHELL $0 --fallback-echo"
635         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636              test "X$echo_testing_string" = 'X\t' &&
637              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638              test "X$echo_testing_string" = "X$echo_test_string"; then
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         else
641           # maybe with a smaller string...
642           prev=:
643
644           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646             then
647               break
648             fi
649             prev="$cmd"
650           done
651
652           if test "$prev" != 'sed 50q "$0"'; then
653             echo_test_string=`eval $prev`
654             export echo_test_string
655             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656           else
657             # Oops.  We lost completely, so just stick with echo.
658             ECHO=echo
659           fi
660         fi
661       fi
662     fi
663   fi
664 fi
665
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671 fi
672
673
674
675
676 exec 7<&0 </dev/null 6>&1
677
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
683 #
684 # Initializations.
685 #
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIBOBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
694
695 # Identity of this package.
696 PACKAGE_NAME=
697 PACKAGE_TARNAME=
698 PACKAGE_VERSION=
699 PACKAGE_STRING=
700 PACKAGE_BUGREPORT=
701 PACKAGE_URL=
702
703 ac_unique_file="tree.c"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
706 #include <stdio.h>
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
709 #endif
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
712 #endif
713 #ifdef STDC_HEADERS
714 # include <stdlib.h>
715 # include <stddef.h>
716 #else
717 # ifdef HAVE_STDLIB_H
718 #  include <stdlib.h>
719 # endif
720 #endif
721 #ifdef HAVE_STRING_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723 #  include <memory.h>
724 # endif
725 # include <string.h>
726 #endif
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
729 #endif
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
732 #endif
733 #ifdef HAVE_STDINT_H
734 # include <stdint.h>
735 #endif
736 #ifdef HAVE_UNISTD_H
737 # include <unistd.h>
738 #endif"
739
740 ac_subst_vars='LTLIBOBJS
741 LIBOBJS
742 enable_plugin
743 pluginlibs
744 CLOOGINC
745 CLOOGLIBS
746 PPLINC
747 PPLLIBS
748 GMPINC
749 GMPLIBS
750 target_cpu_default
751 fortran_target_objs
752 cxx_target_objs
753 c_target_objs
754 use_gcc_stdint
755 xm_defines
756 xm_include_list
757 xm_file_list
758 tm_p_include_list
759 tm_p_file_list
760 tm_defines
761 tm_include_list
762 tm_file_list
763 thread_file
764 out_object_file
765 out_file
766 objc_boehm_gc
767 md_file
768 local_prefix
769 lang_tree_files
770 lang_specs_files
771 lang_opt_files
772 install
773 out_host_hook_obj
774 host_xm_defines
775 host_xm_include_list
776 host_xm_file_list
777 host_exeext
778 gcc_gxx_include_dir
779 gcc_config_arguments
780 float_h_file
781 extra_programs
782 extra_passes
783 extra_parts
784 extra_objs
785 extra_headers_list
786 extra_gcc_objs
787 TM_MULTILIB_EXCEPTIONS_CONFIG
788 TM_MULTILIB_CONFIG
789 TM_ENDIAN_CONFIG
790 tmake_file
791 xmake_file
792 cpp_install_dir
793 check_languages
794 build_file_translate
795 build_xm_defines
796 build_xm_include_list
797 build_xm_file_list
798 build_install_headers_dir
799 build_exeext
800 all_selected_languages
801 all_languages
802 all_lang_makefiles
803 all_lang_makefrags
804 all_gtfiles
805 all_compilers
806 srcdir
807 subdirs
808 slibdir
809 dollar
810 gcc_tooldir
811 MAINT
812 zlibinc
813 zlibdir
814 HOST_LIBS
815 GGC
816 libgcc_visibility
817 gcc_cv_readelf
818 gcc_cv_objdump
819 ORIGINAL_NM_FOR_TARGET
820 gcc_cv_nm
821 ORIGINAL_LD_FOR_TARGET
822 gcc_cv_ld
823 ORIGINAL_AS_FOR_TARGET
824 gcc_cv_as
825 enable_fast_install
826 objdir
827 CXXCPP
828 OTOOL64
829 OTOOL
830 LIPO
831 NMEDIT
832 DSYMUTIL
833 lt_ECHO
834 STRIP
835 OBJDUMP
836 ac_ct_DUMPBIN
837 DUMPBIN
838 LD
839 FGREP
840 SED
841 LIBTOOL
842 collect2
843 STMP_FIXINC
844 BUILD_LDFLAGS
845 BUILD_CFLAGS
846 CC_FOR_BUILD
847 inhibit_libc
848 SYSTEM_HEADER_DIR
849 ALL
850 CROSS
851 CATOBJEXT
852 GENCAT
853 INSTOBJEXT
854 DATADIRNAME
855 CATALOGS
856 POSUB
857 GMSGFMT
858 XGETTEXT
859 INCINTL
860 LIBINTL_DEP
861 LIBINTL
862 USE_NLS
863 extra_opt_files
864 extra_modes_file
865 gthread_flags
866 objext
867 manext
868 LIBICONV_DEP
869 LTLIBICONV
870 LIBICONV
871 LDEXP_LIB
872 GNAT_LIBEXC
873 COLLECT2_LIBS
874 AR
875 NM
876 BISON
877 FLEX
878 GENERATED_MANPAGES
879 BUILD_INFO
880 MAKEINFO
881 have_mktemp_command
882 make_compare_target
883 INSTALL_DATA
884 INSTALL_PROGRAM
885 INSTALL
886 ranlib_flags
887 RANLIB
888 LN
889 LN_S
890 AWK
891 SET_MAKE
892 REPORT_BUGS_TEXI
893 REPORT_BUGS_TO
894 PKGVERSION
895 onestep
896 CROSS_SYSTEM_HEADER_DIR
897 TARGET_SYSTEM_ROOT_DEFINE
898 TARGET_SYSTEM_ROOT
899 enable_shared
900 enable_fixed_point
901 enable_decimal_float
902 enable_multilib
903 ENABLE_BUILD_WITH_CXX
904 coverage_flags
905 valgrind_command
906 valgrind_path_defines
907 valgrind_path
908 TREEBROWSER
909 nocommon_flag
910 warn_cxxflags
911 warn_cflags
912 c_strict_warn
913 strict_warn
914 c_loose_warn
915 loose_warn
916 EGREP
917 GREP
918 CPP
919 OUTPUT_OPTION
920 NO_MINUS_C_MINUS_O
921 GNATMAKE
922 GNATBIND
923 ac_ct_CXX
924 CXXFLAGS
925 CXX
926 OBJEXT
927 EXEEXT
928 ac_ct_CC
929 CPPFLAGS
930 LDFLAGS
931 CFLAGS
932 CC
933 GENINSRC
934 target_subdir
935 host_subdir
936 build_subdir
937 build_libsubdir
938 target_noncanonical
939 target_os
940 target_vendor
941 target_cpu
942 target
943 host_os
944 host_vendor
945 host_cpu
946 host
947 build_os
948 build_vendor
949 build_cpu
950 build
951 target_alias
952 host_alias
953 build_alias
954 LIBS
955 ECHO_T
956 ECHO_N
957 ECHO_C
958 DEFS
959 mandir
960 localedir
961 libdir
962 psdir
963 pdfdir
964 dvidir
965 htmldir
966 infodir
967 docdir
968 oldincludedir
969 includedir
970 localstatedir
971 sharedstatedir
972 sysconfdir
973 datadir
974 datarootdir
975 libexecdir
976 sbindir
977 bindir
978 program_transform_name
979 prefix
980 exec_prefix
981 PACKAGE_URL
982 PACKAGE_BUGREPORT
983 PACKAGE_STRING
984 PACKAGE_VERSION
985 PACKAGE_TARNAME
986 PACKAGE_NAME
987 PATH_SEPARATOR
988 SHELL'
989 ac_subst_files='language_hooks'
990 ac_user_opts='
991 enable_option_checking
992 with_build_libsubdir
993 with_local_prefix
994 with_gxx_include_dir
995 with_cpp_install_dir
996 enable_generated_files_in_srcdir
997 with_gnu_ld
998 with_ld
999 with_demangler_in_ld
1000 with_gnu_as
1001 with_as
1002 enable_werror_always
1003 enable_checking
1004 enable_coverage
1005 enable_gather_detailed_mem_stats
1006 enable_build_with_cxx
1007 with_stabs
1008 enable_multilib
1009 enable___cxa_atexit
1010 enable_decimal_float
1011 enable_fixed_point
1012 enable_threads
1013 enable_tls
1014 enable_objc_gc
1015 with_dwarf2
1016 enable_shared
1017 with_build_sysroot
1018 with_sysroot
1019 enable_intermodule
1020 with_pkgversion
1021 with_bugurl
1022 enable_languages
1023 with_multilib_list
1024 enable_rpath
1025 with_libiconv_prefix
1026 enable_initfini_array
1027 enable_sjlj_exceptions
1028 with_system_libunwind
1029 enable_secureplt
1030 enable_cld
1031 enable_win32_registry
1032 enable_static
1033 with_pic
1034 enable_fast_install
1035 enable_libtool_lock
1036 enable_gnu_unique_object
1037 enable_linker_build_id
1038 with_long_double_128
1039 with_gc
1040 with_system_zlib
1041 enable_maintainer_mode
1042 enable_version_specific_runtime_libs
1043 with_slibdir
1044 with_datarootdir
1045 with_docdir
1046 with_htmldir
1047 enable_plugin
1048 '
1049       ac_precious_vars='build_alias
1050 host_alias
1051 target_alias
1052 CC
1053 CFLAGS
1054 LDFLAGS
1055 LIBS
1056 CPPFLAGS
1057 CXX
1058 CXXFLAGS
1059 CCC
1060 CPP
1061 CXXCPP
1062 GMPLIBS
1063 GMPINC
1064 PPLLIBS
1065 PPLINC
1066 CLOOGLIBS
1067 CLOOGINC'
1068
1069
1070 # Initialize some variables set by options.
1071 ac_init_help=
1072 ac_init_version=false
1073 ac_unrecognized_opts=
1074 ac_unrecognized_sep=
1075 # The variables have the same names as the options, with
1076 # dashes changed to underlines.
1077 cache_file=/dev/null
1078 exec_prefix=NONE
1079 no_create=
1080 no_recursion=
1081 prefix=NONE
1082 program_prefix=NONE
1083 program_suffix=NONE
1084 program_transform_name=s,x,x,
1085 silent=
1086 site=
1087 srcdir=
1088 verbose=
1089 x_includes=NONE
1090 x_libraries=NONE
1091
1092 # Installation directory options.
1093 # These are left unexpanded so users can "make install exec_prefix=/foo"
1094 # and all the variables that are supposed to be based on exec_prefix
1095 # by default will actually change.
1096 # Use braces instead of parens because sh, perl, etc. also accept them.
1097 # (The list follows the same order as the GNU Coding Standards.)
1098 bindir='${exec_prefix}/bin'
1099 sbindir='${exec_prefix}/sbin'
1100 libexecdir='${exec_prefix}/libexec'
1101 datarootdir='${prefix}/share'
1102 datadir='${datarootdir}'
1103 sysconfdir='${prefix}/etc'
1104 sharedstatedir='${prefix}/com'
1105 localstatedir='${prefix}/var'
1106 includedir='${prefix}/include'
1107 oldincludedir='/usr/include'
1108 docdir='${datarootdir}/doc/${PACKAGE}'
1109 infodir='${datarootdir}/info'
1110 htmldir='${docdir}'
1111 dvidir='${docdir}'
1112 pdfdir='${docdir}'
1113 psdir='${docdir}'
1114 libdir='${exec_prefix}/lib'
1115 localedir='${datarootdir}/locale'
1116 mandir='${datarootdir}/man'
1117
1118 ac_prev=
1119 ac_dashdash=
1120 for ac_option
1121 do
1122   # If the previous option needs an argument, assign it.
1123   if test -n "$ac_prev"; then
1124     eval $ac_prev=\$ac_option
1125     ac_prev=
1126     continue
1127   fi
1128
1129   case $ac_option in
1130   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1131   *)    ac_optarg=yes ;;
1132   esac
1133
1134   # Accept the important Cygnus configure options, so we can diagnose typos.
1135
1136   case $ac_dashdash$ac_option in
1137   --)
1138     ac_dashdash=yes ;;
1139
1140   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1141     ac_prev=bindir ;;
1142   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1143     bindir=$ac_optarg ;;
1144
1145   -build | --build | --buil | --bui | --bu)
1146     ac_prev=build_alias ;;
1147   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1148     build_alias=$ac_optarg ;;
1149
1150   -cache-file | --cache-file | --cache-fil | --cache-fi \
1151   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1152     ac_prev=cache_file ;;
1153   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1154   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1155     cache_file=$ac_optarg ;;
1156
1157   --config-cache | -C)
1158     cache_file=config.cache ;;
1159
1160   -datadir | --datadir | --datadi | --datad)
1161     ac_prev=datadir ;;
1162   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1163     datadir=$ac_optarg ;;
1164
1165   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1166   | --dataroo | --dataro | --datar)
1167     ac_prev=datarootdir ;;
1168   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1169   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1170     datarootdir=$ac_optarg ;;
1171
1172   -disable-* | --disable-*)
1173     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1174     # Reject names that are not valid shell variable names.
1175     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176       as_fn_error "invalid feature name: $ac_useropt"
1177     ac_useropt_orig=$ac_useropt
1178     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179     case $ac_user_opts in
1180       *"
1181 "enable_$ac_useropt"
1182 "*) ;;
1183       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1184          ac_unrecognized_sep=', ';;
1185     esac
1186     eval enable_$ac_useropt=no ;;
1187
1188   -docdir | --docdir | --docdi | --doc | --do)
1189     ac_prev=docdir ;;
1190   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1191     docdir=$ac_optarg ;;
1192
1193   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1194     ac_prev=dvidir ;;
1195   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1196     dvidir=$ac_optarg ;;
1197
1198   -enable-* | --enable-*)
1199     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1200     # Reject names that are not valid shell variable names.
1201     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202       as_fn_error "invalid feature name: $ac_useropt"
1203     ac_useropt_orig=$ac_useropt
1204     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205     case $ac_user_opts in
1206       *"
1207 "enable_$ac_useropt"
1208 "*) ;;
1209       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1210          ac_unrecognized_sep=', ';;
1211     esac
1212     eval enable_$ac_useropt=\$ac_optarg ;;
1213
1214   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1215   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1216   | --exec | --exe | --ex)
1217     ac_prev=exec_prefix ;;
1218   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1219   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1220   | --exec=* | --exe=* | --ex=*)
1221     exec_prefix=$ac_optarg ;;
1222
1223   -gas | --gas | --ga | --g)
1224     # Obsolete; use --with-gas.
1225     with_gas=yes ;;
1226
1227   -help | --help | --hel | --he | -h)
1228     ac_init_help=long ;;
1229   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1230     ac_init_help=recursive ;;
1231   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1232     ac_init_help=short ;;
1233
1234   -host | --host | --hos | --ho)
1235     ac_prev=host_alias ;;
1236   -host=* | --host=* | --hos=* | --ho=*)
1237     host_alias=$ac_optarg ;;
1238
1239   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1240     ac_prev=htmldir ;;
1241   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1242   | --ht=*)
1243     htmldir=$ac_optarg ;;
1244
1245   -includedir | --includedir | --includedi | --included | --include \
1246   | --includ | --inclu | --incl | --inc)
1247     ac_prev=includedir ;;
1248   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1249   | --includ=* | --inclu=* | --incl=* | --inc=*)
1250     includedir=$ac_optarg ;;
1251
1252   -infodir | --infodir | --infodi | --infod | --info | --inf)
1253     ac_prev=infodir ;;
1254   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1255     infodir=$ac_optarg ;;
1256
1257   -libdir | --libdir | --libdi | --libd)
1258     ac_prev=libdir ;;
1259   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1260     libdir=$ac_optarg ;;
1261
1262   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1263   | --libexe | --libex | --libe)
1264     ac_prev=libexecdir ;;
1265   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1266   | --libexe=* | --libex=* | --libe=*)
1267     libexecdir=$ac_optarg ;;
1268
1269   -localedir | --localedir | --localedi | --localed | --locale)
1270     ac_prev=localedir ;;
1271   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1272     localedir=$ac_optarg ;;
1273
1274   -localstatedir | --localstatedir | --localstatedi | --localstated \
1275   | --localstate | --localstat | --localsta | --localst | --locals)
1276     ac_prev=localstatedir ;;
1277   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1278   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1279     localstatedir=$ac_optarg ;;
1280
1281   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1282     ac_prev=mandir ;;
1283   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1284     mandir=$ac_optarg ;;
1285
1286   -nfp | --nfp | --nf)
1287     # Obsolete; use --without-fp.
1288     with_fp=no ;;
1289
1290   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1291   | --no-cr | --no-c | -n)
1292     no_create=yes ;;
1293
1294   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1295   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1296     no_recursion=yes ;;
1297
1298   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1299   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1300   | --oldin | --oldi | --old | --ol | --o)
1301     ac_prev=oldincludedir ;;
1302   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1303   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1304   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1305     oldincludedir=$ac_optarg ;;
1306
1307   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1308     ac_prev=prefix ;;
1309   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1310     prefix=$ac_optarg ;;
1311
1312   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1313   | --program-pre | --program-pr | --program-p)
1314     ac_prev=program_prefix ;;
1315   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1316   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1317     program_prefix=$ac_optarg ;;
1318
1319   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1320   | --program-suf | --program-su | --program-s)
1321     ac_prev=program_suffix ;;
1322   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1323   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1324     program_suffix=$ac_optarg ;;
1325
1326   -program-transform-name | --program-transform-name \
1327   | --program-transform-nam | --program-transform-na \
1328   | --program-transform-n | --program-transform- \
1329   | --program-transform | --program-transfor \
1330   | --program-transfo | --program-transf \
1331   | --program-trans | --program-tran \
1332   | --progr-tra | --program-tr | --program-t)
1333     ac_prev=program_transform_name ;;
1334   -program-transform-name=* | --program-transform-name=* \
1335   | --program-transform-nam=* | --program-transform-na=* \
1336   | --program-transform-n=* | --program-transform-=* \
1337   | --program-transform=* | --program-transfor=* \
1338   | --program-transfo=* | --program-transf=* \
1339   | --program-trans=* | --program-tran=* \
1340   | --progr-tra=* | --program-tr=* | --program-t=*)
1341     program_transform_name=$ac_optarg ;;
1342
1343   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1344     ac_prev=pdfdir ;;
1345   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1346     pdfdir=$ac_optarg ;;
1347
1348   -psdir | --psdir | --psdi | --psd | --ps)
1349     ac_prev=psdir ;;
1350   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1351     psdir=$ac_optarg ;;
1352
1353   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1354   | -silent | --silent | --silen | --sile | --sil)
1355     silent=yes ;;
1356
1357   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1358     ac_prev=sbindir ;;
1359   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1360   | --sbi=* | --sb=*)
1361     sbindir=$ac_optarg ;;
1362
1363   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1364   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1365   | --sharedst | --shareds | --shared | --share | --shar \
1366   | --sha | --sh)
1367     ac_prev=sharedstatedir ;;
1368   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1369   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1370   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1371   | --sha=* | --sh=*)
1372     sharedstatedir=$ac_optarg ;;
1373
1374   -site | --site | --sit)
1375     ac_prev=site ;;
1376   -site=* | --site=* | --sit=*)
1377     site=$ac_optarg ;;
1378
1379   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1380     ac_prev=srcdir ;;
1381   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1382     srcdir=$ac_optarg ;;
1383
1384   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1385   | --syscon | --sysco | --sysc | --sys | --sy)
1386     ac_prev=sysconfdir ;;
1387   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1388   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1389     sysconfdir=$ac_optarg ;;
1390
1391   -target | --target | --targe | --targ | --tar | --ta | --t)
1392     ac_prev=target_alias ;;
1393   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1394     target_alias=$ac_optarg ;;
1395
1396   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1397     verbose=yes ;;
1398
1399   -version | --version | --versio | --versi | --vers | -V)
1400     ac_init_version=: ;;
1401
1402   -with-* | --with-*)
1403     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1404     # Reject names that are not valid shell variable names.
1405     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1406       as_fn_error "invalid package name: $ac_useropt"
1407     ac_useropt_orig=$ac_useropt
1408     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1409     case $ac_user_opts in
1410       *"
1411 "with_$ac_useropt"
1412 "*) ;;
1413       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1414          ac_unrecognized_sep=', ';;
1415     esac
1416     eval with_$ac_useropt=\$ac_optarg ;;
1417
1418   -without-* | --without-*)
1419     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1420     # Reject names that are not valid shell variable names.
1421     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1422       as_fn_error "invalid package name: $ac_useropt"
1423     ac_useropt_orig=$ac_useropt
1424     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1425     case $ac_user_opts in
1426       *"
1427 "with_$ac_useropt"
1428 "*) ;;
1429       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1430          ac_unrecognized_sep=', ';;
1431     esac
1432     eval with_$ac_useropt=no ;;
1433
1434   --x)
1435     # Obsolete; use --with-x.
1436     with_x=yes ;;
1437
1438   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1439   | --x-incl | --x-inc | --x-in | --x-i)
1440     ac_prev=x_includes ;;
1441   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1442   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1443     x_includes=$ac_optarg ;;
1444
1445   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1446   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1447     ac_prev=x_libraries ;;
1448   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1449   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1450     x_libraries=$ac_optarg ;;
1451
1452   -*) as_fn_error "unrecognized option: \`$ac_option'
1453 Try \`$0 --help' for more information."
1454     ;;
1455
1456   *=*)
1457     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1458     # Reject names that are not valid shell variable names.
1459     case $ac_envvar in #(
1460       '' | [0-9]* | *[!_$as_cr_alnum]* )
1461       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1462     esac
1463     eval $ac_envvar=\$ac_optarg
1464     export $ac_envvar ;;
1465
1466   *)
1467     # FIXME: should be removed in autoconf 3.0.
1468     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1469     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1470       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1471     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1472     ;;
1473
1474   esac
1475 done
1476
1477 if test -n "$ac_prev"; then
1478   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1479   as_fn_error "missing argument to $ac_option"
1480 fi
1481
1482 if test -n "$ac_unrecognized_opts"; then
1483   case $enable_option_checking in
1484     no) ;;
1485     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1486     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1487   esac
1488 fi
1489
1490 # Check all directory arguments for consistency.
1491 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1492                 datadir sysconfdir sharedstatedir localstatedir includedir \
1493                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1494                 libdir localedir mandir
1495 do
1496   eval ac_val=\$$ac_var
1497   # Remove trailing slashes.
1498   case $ac_val in
1499     */ )
1500       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1501       eval $ac_var=\$ac_val;;
1502   esac
1503   # Be sure to have absolute directory names.
1504   case $ac_val in
1505     [\\/$]* | ?:[\\/]* )  continue;;
1506     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1507   esac
1508   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1509 done
1510
1511 # There might be people who depend on the old broken behavior: `$host'
1512 # used to hold the argument of --host etc.
1513 # FIXME: To remove some day.
1514 build=$build_alias
1515 host=$host_alias
1516 target=$target_alias
1517
1518 # FIXME: To remove some day.
1519 if test "x$host_alias" != x; then
1520   if test "x$build_alias" = x; then
1521     cross_compiling=maybe
1522     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1523     If a cross compiler is detected then cross compile mode will be used." >&2
1524   elif test "x$build_alias" != "x$host_alias"; then
1525     cross_compiling=yes
1526   fi
1527 fi
1528
1529 ac_tool_prefix=
1530 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1531
1532 test "$silent" = yes && exec 6>/dev/null
1533
1534
1535 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1536 ac_ls_di=`ls -di .` &&
1537 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1538   as_fn_error "working directory cannot be determined"
1539 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1540   as_fn_error "pwd does not report name of working directory"
1541
1542
1543 # Find the source files, if location was not specified.
1544 if test -z "$srcdir"; then
1545   ac_srcdir_defaulted=yes
1546   # Try the directory containing this script, then the parent directory.
1547   ac_confdir=`$as_dirname -- "$as_myself" ||
1548 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1549          X"$as_myself" : 'X\(//\)[^/]' \| \
1550          X"$as_myself" : 'X\(//\)$' \| \
1551          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1552 $as_echo X"$as_myself" |
1553     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1554             s//\1/
1555             q
1556           }
1557           /^X\(\/\/\)[^/].*/{
1558             s//\1/
1559             q
1560           }
1561           /^X\(\/\/\)$/{
1562             s//\1/
1563             q
1564           }
1565           /^X\(\/\).*/{
1566             s//\1/
1567             q
1568           }
1569           s/.*/./; q'`
1570   srcdir=$ac_confdir
1571   if test ! -r "$srcdir/$ac_unique_file"; then
1572     srcdir=..
1573   fi
1574 else
1575   ac_srcdir_defaulted=no
1576 fi
1577 if test ! -r "$srcdir/$ac_unique_file"; then
1578   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1579   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1580 fi
1581 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1582 ac_abs_confdir=`(
1583         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1584         pwd)`
1585 # When building in place, set srcdir=.
1586 if test "$ac_abs_confdir" = "$ac_pwd"; then
1587   srcdir=.
1588 fi
1589 # Remove unnecessary trailing slashes from srcdir.
1590 # Double slashes in file names in object file debugging info
1591 # mess up M-x gdb in Emacs.
1592 case $srcdir in
1593 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1594 esac
1595 for ac_var in $ac_precious_vars; do
1596   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1597   eval ac_env_${ac_var}_value=\$${ac_var}
1598   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1599   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1600 done
1601
1602 #
1603 # Report the --help message.
1604 #
1605 if test "$ac_init_help" = "long"; then
1606   # Omit some internal or obsolete options to make the list less imposing.
1607   # This message is too long to be a string in the A/UX 3.1 sh.
1608   cat <<_ACEOF
1609 \`configure' configures this package to adapt to many kinds of systems.
1610
1611 Usage: $0 [OPTION]... [VAR=VALUE]...
1612
1613 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1614 VAR=VALUE.  See below for descriptions of some of the useful variables.
1615
1616 Defaults for the options are specified in brackets.
1617
1618 Configuration:
1619   -h, --help              display this help and exit
1620       --help=short        display options specific to this package
1621       --help=recursive    display the short help of all the included packages
1622   -V, --version           display version information and exit
1623   -q, --quiet, --silent   do not print \`checking...' messages
1624       --cache-file=FILE   cache test results in FILE [disabled]
1625   -C, --config-cache      alias for \`--cache-file=config.cache'
1626   -n, --no-create         do not create output files
1627       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1628
1629 Installation directories:
1630   --prefix=PREFIX         install architecture-independent files in PREFIX
1631                           [$ac_default_prefix]
1632   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1633                           [PREFIX]
1634
1635 By default, \`make install' will install all the files in
1636 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1637 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1638 for instance \`--prefix=\$HOME'.
1639
1640 For better control, use the options below.
1641
1642 Fine tuning of the installation directories:
1643   --bindir=DIR            user executables [EPREFIX/bin]
1644   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1645   --libexecdir=DIR        program executables [EPREFIX/libexec]
1646   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1647   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1648   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1649   --libdir=DIR            object code libraries [EPREFIX/lib]
1650   --includedir=DIR        C header files [PREFIX/include]
1651   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1652   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1653   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1654   --infodir=DIR           info documentation [DATAROOTDIR/info]
1655   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1656   --mandir=DIR            man documentation [DATAROOTDIR/man]
1657   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1658   --htmldir=DIR           html documentation [DOCDIR]
1659   --dvidir=DIR            dvi documentation [DOCDIR]
1660   --pdfdir=DIR            pdf documentation [DOCDIR]
1661   --psdir=DIR             ps documentation [DOCDIR]
1662 _ACEOF
1663
1664   cat <<\_ACEOF
1665
1666 Program names:
1667   --program-prefix=PREFIX            prepend PREFIX to installed program names
1668   --program-suffix=SUFFIX            append SUFFIX to installed program names
1669   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1670
1671 System types:
1672   --build=BUILD     configure for building on BUILD [guessed]
1673   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1674   --target=TARGET   configure for building compilers for TARGET [HOST]
1675 _ACEOF
1676 fi
1677
1678 if test -n "$ac_init_help"; then
1679
1680   cat <<\_ACEOF
1681
1682 Optional Features:
1683   --disable-option-checking  ignore unrecognized --enable/--with options
1684   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1685   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1686   --enable-generated-files-in-srcdir
1687                           put copies of generated files in source dir
1688                           intended for creating source tarballs for users
1689                           without texinfo bison or flex.
1690   --enable-werror-always  enable -Werror despite compiler version
1691   --enable-checking=LIST
1692                           enable expensive run-time checks.  With LIST,
1693                           enable only specific categories of checks.
1694                           Categories are: yes,no,all,none,release.
1695                           Flags are: assert,df,fold,gc,gcac,gimple,misc,
1696                           rtlflag,rtl,runtime,tree,valgrind,types.
1697   --enable-coverage=LEVEL
1698                           enable compiler's code coverage collection.
1699                           Use to measure compiler performance and locate
1700                           unused parts of the compiler. With LEVEL, specify
1701                           optimization. Values are opt, noopt,
1702                           default is noopt
1703   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1704   --enable-build-with-cxx build with C++ compiler instead of C compiler
1705   --enable-multilib       enable library support for multiple ABIs
1706   --enable-__cxa_atexit   enable __cxa_atexit for C++
1707   --enable-decimal-float={no,yes,bid,dpd}
1708                         enable decimal float extension to C.  Selecting 'bid'
1709                         or 'dpd' choses which decimal floating point format
1710                         to use
1711   --enable-fixed-point    enable fixed-point arithmetic extension to C
1712   --enable-threads        enable thread usage for target GCC
1713   --enable-threads=LIB    use LIB thread package for target GCC
1714   --enable-tls            enable or disable generation of tls code
1715                           overriding the assembler check for tls support
1716   --enable-objc-gc        enable the use of Boehm's garbage collector with
1717                           the GNU Objective-C runtime
1718   --disable-shared        don't provide a shared libgcc
1719   --enable-intermodule    build the compiler in one step
1720   --enable-languages=LIST specify which front-ends to build
1721   --disable-rpath         do not hardcode runtime library paths
1722   --enable-initfini-array       use .init_array/.fini_array sections
1723   --enable-sjlj-exceptions
1724                           arrange to use setjmp/longjmp exception handling
1725   --enable-secureplt      enable -msecure-plt by default for PowerPC
1726   --enable-cld            enable -mcld by default for 32bit x86
1727   --disable-win32-registry
1728                           disable lookup of installation paths in the
1729                           Registry on Windows hosts
1730   --enable-win32-registry enable registry lookup (default)
1731   --enable-win32-registry=KEY
1732                           use KEY instead of GCC version as the last portion
1733                           of the registry key
1734   --enable-shared[=PKGS]  build shared libraries [default=yes]
1735   --enable-static[=PKGS]  build static libraries [default=yes]
1736   --enable-fast-install[=PKGS]
1737                           optimize for fast installation [default=yes]
1738   --disable-libtool-lock  avoid locking (might break parallel builds)
1739   --enable-gnu-unique-object    enable the use of the @gnu_unique_object ELF extension on
1740                                 glibc systems
1741   --enable-linker-build-id
1742                           compiler will always pass --build-id to linker
1743   --enable-maintainer-mode
1744                           enable make rules and dependencies not useful
1745                           (and sometimes confusing) to the casual installer
1746   --enable-version-specific-runtime-libs
1747                           specify that runtime libraries should be
1748                           installed in a compiler-specific directory
1749   --enable-plugin         enable plugin support
1750
1751 Optional Packages:
1752   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1753   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1754   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1755   --with-local-prefix=DIR specifies directory to put local include
1756   --with-gxx-include-dir=DIR
1757                           specifies directory to put g++ header files
1758   --with-cpp-install-dir=DIR
1759                           install the user visible C preprocessor in DIR
1760                           (relative to PREFIX) as well as PREFIX/bin
1761   --with-gnu-ld           arrange to work with GNU ld.
1762   --with-ld               arrange to use the specified ld (full pathname)
1763   --with-demangler-in-ld  try to use demangler in GNU ld.
1764   --with-gnu-as           arrange to work with GNU as
1765   --with-as               arrange to use the specified as (full pathname)
1766   --with-stabs            arrange to use stabs instead of host debug format
1767   --with-dwarf2           force the default debug format to be DWARF 2
1768   --with-build-sysroot=sysroot
1769                           use sysroot as the system root during the build
1770   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1771   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1772   --with-bugurl=URL       Direct users to URL to report a bug
1773   --with-multilib-list    Select multilibs (SH only)
1774   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1775   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1776   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1777   --with-system-libunwind use installed libunwind
1778   --with-pic              try to use only PIC/non-PIC objects [default=use
1779                           both]
1780   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1781   --with-long-double-128  Use 128-bit long double by default.
1782   --with-gc={page,zone}   choose the garbage collection mechanism to use
1783                           with the compiler
1784   --with-system-zlib      use installed libz
1785   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1786   --with-datarootdir=DIR  Use DIR as the data root [PREFIX/share]
1787   --with-docdir=DIR       Install documentation in DIR [DATAROOTDIR]
1788   --with-htmldir=DIR      html documentation in in DIR [DOCDIR]
1789
1790 Some influential environment variables:
1791   CC          C compiler command
1792   CFLAGS      C compiler flags
1793   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1794               nonstandard directory <lib dir>
1795   LIBS        libraries to pass to the linker, e.g. -l<library>
1796   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1797               you have headers in a nonstandard directory <include dir>
1798   CXX         C++ compiler command
1799   CXXFLAGS    C++ compiler flags
1800   CPP         C preprocessor
1801   CXXCPP      C++ preprocessor
1802   GMPLIBS     How to link GMP
1803   GMPINC      How to find GMP include files
1804   PPLLIBS     How to link PPL
1805   PPLINC      How to find PPL include files
1806   CLOOGLIBS   How to link CLOOG
1807   CLOOGINC    How to find CLOOG include files
1808
1809 Use these variables to override the choices made by `configure' or to help
1810 it to find libraries and programs with nonstandard names/locations.
1811
1812 Report bugs to the package provider.
1813 _ACEOF
1814 ac_status=$?
1815 fi
1816
1817 if test "$ac_init_help" = "recursive"; then
1818   # If there are subdirs, report their specific --help.
1819   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1820     test -d "$ac_dir" ||
1821       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1822       continue
1823     ac_builddir=.
1824
1825 case "$ac_dir" in
1826 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1827 *)
1828   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1829   # A ".." for each directory in $ac_dir_suffix.
1830   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1831   case $ac_top_builddir_sub in
1832   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1833   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1834   esac ;;
1835 esac
1836 ac_abs_top_builddir=$ac_pwd
1837 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1838 # for backward compatibility:
1839 ac_top_builddir=$ac_top_build_prefix
1840
1841 case $srcdir in
1842   .)  # We are building in place.
1843     ac_srcdir=.
1844     ac_top_srcdir=$ac_top_builddir_sub
1845     ac_abs_top_srcdir=$ac_pwd ;;
1846   [\\/]* | ?:[\\/]* )  # Absolute name.
1847     ac_srcdir=$srcdir$ac_dir_suffix;
1848     ac_top_srcdir=$srcdir
1849     ac_abs_top_srcdir=$srcdir ;;
1850   *) # Relative name.
1851     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1852     ac_top_srcdir=$ac_top_build_prefix$srcdir
1853     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1854 esac
1855 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1856
1857     cd "$ac_dir" || { ac_status=$?; continue; }
1858     # Check for guested configure.
1859     if test -f "$ac_srcdir/configure.gnu"; then
1860       echo &&
1861       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1862     elif test -f "$ac_srcdir/configure"; then
1863       echo &&
1864       $SHELL "$ac_srcdir/configure" --help=recursive
1865     else
1866       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1867     fi || ac_status=$?
1868     cd "$ac_pwd" || { ac_status=$?; break; }
1869   done
1870 fi
1871
1872 test -n "$ac_init_help" && exit $ac_status
1873 if $ac_init_version; then
1874   cat <<\_ACEOF
1875 configure
1876 generated by GNU Autoconf 2.64
1877
1878 Copyright (C) 2009 Free Software Foundation, Inc.
1879 This configure script is free software; the Free Software Foundation
1880 gives unlimited permission to copy, distribute and modify it.
1881 _ACEOF
1882   exit
1883 fi
1884
1885 ## ------------------------ ##
1886 ## Autoconf initialization. ##
1887 ## ------------------------ ##
1888
1889 # ac_fn_c_try_compile LINENO
1890 # --------------------------
1891 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1892 ac_fn_c_try_compile ()
1893 {
1894   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895   rm -f conftest.$ac_objext
1896   if { { ac_try="$ac_compile"
1897 case "(($ac_try" in
1898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899   *) ac_try_echo=$ac_try;;
1900 esac
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903   (eval "$ac_compile") 2>conftest.err
1904   ac_status=$?
1905   if test -s conftest.err; then
1906     grep -v '^ *+' conftest.err >conftest.er1
1907     cat conftest.er1 >&5
1908     mv -f conftest.er1 conftest.err
1909   fi
1910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911   test $ac_status = 0; } && {
1912          test -z "$ac_c_werror_flag" ||
1913          test ! -s conftest.err
1914        } && test -s conftest.$ac_objext; then :
1915   ac_retval=0
1916 else
1917   $as_echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1919
1920         ac_retval=1
1921 fi
1922   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1923   return $ac_retval
1924
1925 } # ac_fn_c_try_compile
1926
1927 # ac_fn_cxx_try_compile LINENO
1928 # ----------------------------
1929 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1930 ac_fn_cxx_try_compile ()
1931 {
1932   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933   rm -f conftest.$ac_objext
1934   if { { ac_try="$ac_compile"
1935 case "(($ac_try" in
1936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937   *) ac_try_echo=$ac_try;;
1938 esac
1939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941   (eval "$ac_compile") 2>conftest.err
1942   ac_status=$?
1943   if test -s conftest.err; then
1944     grep -v '^ *+' conftest.err >conftest.er1
1945     cat conftest.er1 >&5
1946     mv -f conftest.er1 conftest.err
1947   fi
1948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949   test $ac_status = 0; } && {
1950          test -z "$ac_cxx_werror_flag" ||
1951          test ! -s conftest.err
1952        } && test -s conftest.$ac_objext; then :
1953   ac_retval=0
1954 else
1955   $as_echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1957
1958         ac_retval=1
1959 fi
1960   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1961   return $ac_retval
1962
1963 } # ac_fn_cxx_try_compile
1964
1965 # ac_fn_c_try_cpp LINENO
1966 # ----------------------
1967 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1968 ac_fn_c_try_cpp ()
1969 {
1970   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971   if { { ac_try="$ac_cpp conftest.$ac_ext"
1972 case "(($ac_try" in
1973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974   *) ac_try_echo=$ac_try;;
1975 esac
1976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977 $as_echo "$ac_try_echo"; } >&5
1978   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1979   ac_status=$?
1980   if test -s conftest.err; then
1981     grep -v '^ *+' conftest.err >conftest.er1
1982     cat conftest.er1 >&5
1983     mv -f conftest.er1 conftest.err
1984   fi
1985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986   test $ac_status = 0; } >/dev/null && {
1987          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1988          test ! -s conftest.err
1989        }; then :
1990   ac_retval=0
1991 else
1992   $as_echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1994
1995     ac_retval=1
1996 fi
1997   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1998   return $ac_retval
1999
2000 } # ac_fn_c_try_cpp
2001
2002 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2003 # -------------------------------------------------------
2004 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2005 # the include files in INCLUDES and setting the cache variable VAR
2006 # accordingly.
2007 ac_fn_c_check_header_mongrel ()
2008 {
2009   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2014   $as_echo_n "(cached) " >&6
2015 fi
2016 eval ac_res=\$$3
2017                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 else
2020   # Is the header compilable?
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2022 $as_echo_n "checking $2 usability... " >&6; }
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h.  */
2025 $4
2026 #include <$2>
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029   ac_header_compiler=yes
2030 else
2031   ac_header_compiler=no
2032 fi
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2035 $as_echo "$ac_header_compiler" >&6; }
2036
2037 # Is the header present?
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2039 $as_echo_n "checking $2 presence... " >&6; }
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h.  */
2042 #include <$2>
2043 _ACEOF
2044 if ac_fn_c_try_cpp "$LINENO"; then :
2045   ac_header_preproc=yes
2046 else
2047   ac_header_preproc=no
2048 fi
2049 rm -f conftest.err conftest.$ac_ext
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2051 $as_echo "$ac_header_preproc" >&6; }
2052
2053 # So?  What about this header?
2054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2055   yes:no: )
2056     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2057 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2058     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2059 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2060     ;;
2061   no:yes:* )
2062     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2063 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2064     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2065 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2066     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2067 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2068     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2069 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2070     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2071 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2072     ;;
2073 esac
2074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2075 $as_echo_n "checking for $2... " >&6; }
2076 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2077   $as_echo_n "(cached) " >&6
2078 else
2079   eval "$3=\$ac_header_compiler"
2080 fi
2081 eval ac_res=\$$3
2082                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 fi
2085   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086
2087 } # ac_fn_c_check_header_mongrel
2088
2089 # ac_fn_c_try_run LINENO
2090 # ----------------------
2091 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2092 # that executables *can* be run.
2093 ac_fn_c_try_run ()
2094 {
2095   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096   if { { ac_try="$ac_link"
2097 case "(($ac_try" in
2098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099   *) ac_try_echo=$ac_try;;
2100 esac
2101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2102 $as_echo "$ac_try_echo"; } >&5
2103   (eval "$ac_link") 2>&5
2104   ac_status=$?
2105   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2106   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2107   { { case "(($ac_try" in
2108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109   *) ac_try_echo=$ac_try;;
2110 esac
2111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2112 $as_echo "$ac_try_echo"; } >&5
2113   (eval "$ac_try") 2>&5
2114   ac_status=$?
2115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116   test $ac_status = 0; }; }; then :
2117   ac_retval=0
2118 else
2119   $as_echo "$as_me: program exited with status $ac_status" >&5
2120        $as_echo "$as_me: failed program was:" >&5
2121 sed 's/^/| /' conftest.$ac_ext >&5
2122
2123        ac_retval=$ac_status
2124 fi
2125   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2126   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2127   return $ac_retval
2128
2129 } # ac_fn_c_try_run
2130
2131 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2132 # -------------------------------------------------------
2133 # Tests whether HEADER exists and can be compiled using the include files in
2134 # INCLUDES, setting the cache variable VAR accordingly.
2135 ac_fn_c_check_header_compile ()
2136 {
2137   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2141   $as_echo_n "(cached) " >&6
2142 else
2143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h.  */
2145 $4
2146 #include <$2>
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149   eval "$3=yes"
2150 else
2151   eval "$3=no"
2152 fi
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 fi
2155 eval ac_res=\$$3
2156                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157 $as_echo "$ac_res" >&6; }
2158   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2159
2160 } # ac_fn_c_check_header_compile
2161
2162 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2163 # --------------------------------------------
2164 # Tries to find the compile-time value of EXPR in a program that includes
2165 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2166 # computed
2167 ac_fn_c_compute_int ()
2168 {
2169   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170   if test "$cross_compiling" = yes; then
2171     # Depending upon the size, compute the lo and hi bounds.
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h.  */
2174 $4
2175 int
2176 main ()
2177 {
2178 static int test_array [1 - 2 * !(($2) >= 0)];
2179 test_array [0] = 0
2180
2181   ;
2182   return 0;
2183 }
2184 _ACEOF
2185 if ac_fn_c_try_compile "$LINENO"; then :
2186   ac_lo=0 ac_mid=0
2187   while :; do
2188     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h.  */
2190 $4
2191 int
2192 main ()
2193 {
2194 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2195 test_array [0] = 0
2196
2197   ;
2198   return 0;
2199 }
2200 _ACEOF
2201 if ac_fn_c_try_compile "$LINENO"; then :
2202   ac_hi=$ac_mid; break
2203 else
2204   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2205                         if test $ac_lo -le $ac_mid; then
2206                           ac_lo= ac_hi=
2207                           break
2208                         fi
2209                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2210 fi
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212   done
2213 else
2214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h.  */
2216 $4
2217 int
2218 main ()
2219 {
2220 static int test_array [1 - 2 * !(($2) < 0)];
2221 test_array [0] = 0
2222
2223   ;
2224   return 0;
2225 }
2226 _ACEOF
2227 if ac_fn_c_try_compile "$LINENO"; then :
2228   ac_hi=-1 ac_mid=-1
2229   while :; do
2230     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h.  */
2232 $4
2233 int
2234 main ()
2235 {
2236 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2237 test_array [0] = 0
2238
2239   ;
2240   return 0;
2241 }
2242 _ACEOF
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244   ac_lo=$ac_mid; break
2245 else
2246   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2247                         if test $ac_mid -le $ac_hi; then
2248                           ac_lo= ac_hi=
2249                           break
2250                         fi
2251                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2252 fi
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254   done
2255 else
2256   ac_lo= ac_hi=
2257 fi
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 fi
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 # Binary search between lo and hi bounds.
2262 while test "x$ac_lo" != "x$ac_hi"; do
2263   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h.  */
2266 $4
2267 int
2268 main ()
2269 {
2270 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2271 test_array [0] = 0
2272
2273   ;
2274   return 0;
2275 }
2276 _ACEOF
2277 if ac_fn_c_try_compile "$LINENO"; then :
2278   ac_hi=$ac_mid
2279 else
2280   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2281 fi
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 done
2284 case $ac_lo in #((
2285 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2286 '') ac_retval=1 ;;
2287 esac
2288   else
2289     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h.  */
2291 $4
2292 static long int longval () { return $2; }
2293 static unsigned long int ulongval () { return $2; }
2294 #include <stdio.h>
2295 #include <stdlib.h>
2296 int
2297 main ()
2298 {
2299
2300   FILE *f = fopen ("conftest.val", "w");
2301   if (! f)
2302     return 1;
2303   if (($2) < 0)
2304     {
2305       long int i = longval ();
2306       if (i != ($2))
2307         return 1;
2308       fprintf (f, "%ld", i);
2309     }
2310   else
2311     {
2312       unsigned long int i = ulongval ();
2313       if (i != ($2))
2314         return 1;
2315       fprintf (f, "%lu", i);
2316     }
2317   /* Do not output a trailing newline, as this causes \r\n confusion
2318      on some platforms.  */
2319   return ferror (f) || fclose (f) != 0;
2320
2321   ;
2322   return 0;
2323 }
2324 _ACEOF
2325 if ac_fn_c_try_run "$LINENO"; then :
2326   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2327 else
2328   ac_retval=1
2329 fi
2330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2331   conftest.$ac_objext conftest.beam conftest.$ac_ext
2332 rm -f conftest.val
2333
2334   fi
2335   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2336   return $ac_retval
2337
2338 } # ac_fn_c_compute_int
2339
2340 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2341 # -------------------------------------------
2342 # Tests whether TYPE exists after having included INCLUDES, setting cache
2343 # variable VAR accordingly.
2344 ac_fn_c_check_type ()
2345 {
2346   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2348 $as_echo_n "checking for $2... " >&6; }
2349 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2350   $as_echo_n "(cached) " >&6
2351 else
2352   eval "$3=no"
2353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h.  */
2355 $4
2356 int
2357 main ()
2358 {
2359 if (sizeof ($2))
2360          return 0;
2361   ;
2362   return 0;
2363 }
2364 _ACEOF
2365 if ac_fn_c_try_compile "$LINENO"; then :
2366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h.  */
2368 $4
2369 int
2370 main ()
2371 {
2372 if (sizeof (($2)))
2373             return 0;
2374   ;
2375   return 0;
2376 }
2377 _ACEOF
2378 if ac_fn_c_try_compile "$LINENO"; then :
2379
2380 else
2381   eval "$3=yes"
2382 fi
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 fi
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 fi
2387 eval ac_res=\$$3
2388                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389 $as_echo "$ac_res" >&6; }
2390   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2391
2392 } # ac_fn_c_check_type
2393
2394 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2395 # ----------------------------------------------
2396 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2397 ac_fn_c_check_header_preproc ()
2398 {
2399   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2401 $as_echo_n "checking for $2... " >&6; }
2402 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2403   $as_echo_n "(cached) " >&6
2404 else
2405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h.  */
2407 #include <$2>
2408 _ACEOF
2409 if ac_fn_c_try_cpp "$LINENO"; then :
2410   eval "$3=yes"
2411 else
2412   eval "$3=no"
2413 fi
2414 rm -f conftest.err conftest.$ac_ext
2415 fi
2416 eval ac_res=\$$3
2417                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2420
2421 } # ac_fn_c_check_header_preproc
2422
2423 # ac_fn_c_try_link LINENO
2424 # -----------------------
2425 # Try to link conftest.$ac_ext, and return whether this succeeded.
2426 ac_fn_c_try_link ()
2427 {
2428   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2429   rm -f conftest.$ac_objext conftest$ac_exeext
2430   if { { ac_try="$ac_link"
2431 case "(($ac_try" in
2432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433   *) ac_try_echo=$ac_try;;
2434 esac
2435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2436 $as_echo "$ac_try_echo"; } >&5
2437   (eval "$ac_link") 2>conftest.err
2438   ac_status=$?
2439   if test -s conftest.err; then
2440     grep -v '^ *+' conftest.err >conftest.er1
2441     cat conftest.er1 >&5
2442     mv -f conftest.er1 conftest.err
2443   fi
2444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2445   test $ac_status = 0; } && {
2446          test -z "$ac_c_werror_flag" ||
2447          test ! -s conftest.err
2448        } && test -s conftest$ac_exeext && {
2449          test "$cross_compiling" = yes ||
2450          $as_test_x conftest$ac_exeext
2451        }; then :
2452   ac_retval=0
2453 else
2454   $as_echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2456
2457         ac_retval=1
2458 fi
2459   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2460   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2461   # interfere with the next link command; also delete a directory that is
2462   # left behind by Apple's compiler.  We do this before executing the actions.
2463   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2464   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2465   return $ac_retval
2466
2467 } # ac_fn_c_try_link
2468
2469 # ac_fn_c_check_func LINENO FUNC VAR
2470 # ----------------------------------
2471 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2472 ac_fn_c_check_func ()
2473 {
2474   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2476 $as_echo_n "checking for $2... " >&6; }
2477 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2478   $as_echo_n "(cached) " >&6
2479 else
2480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h.  */
2482 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2484 #define $2 innocuous_$2
2485
2486 /* System header to define __stub macros and hopefully few prototypes,
2487     which can conflict with char $2 (); below.
2488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2489     <limits.h> exists even on freestanding compilers.  */
2490
2491 #ifdef __STDC__
2492 # include <limits.h>
2493 #else
2494 # include <assert.h>
2495 #endif
2496
2497 #undef $2
2498
2499 /* Override any GCC internal prototype to avoid an error.
2500    Use char because int might match the return type of a GCC
2501    builtin and then its argument prototype would still apply.  */
2502 #ifdef __cplusplus
2503 extern "C"
2504 #endif
2505 char $2 ();
2506 /* The GNU C library defines this for functions which it implements
2507     to always fail with ENOSYS.  Some functions are actually named
2508     something starting with __ and the normal name is an alias.  */
2509 #if defined __stub_$2 || defined __stub___$2
2510 choke me
2511 #endif
2512
2513 int
2514 main ()
2515 {
2516 return $2 ();
2517   ;
2518   return 0;
2519 }
2520 _ACEOF
2521 if ac_fn_c_try_link "$LINENO"; then :
2522   eval "$3=yes"
2523 else
2524   eval "$3=no"
2525 fi
2526 rm -f core conftest.err conftest.$ac_objext \
2527     conftest$ac_exeext conftest.$ac_ext
2528 fi
2529 eval ac_res=\$$3
2530                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2531 $as_echo "$ac_res" >&6; }
2532   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2533
2534 } # ac_fn_c_check_func
2535
2536 # ac_fn_cxx_try_cpp LINENO
2537 # ------------------------
2538 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2539 ac_fn_cxx_try_cpp ()
2540 {
2541   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542   if { { ac_try="$ac_cpp conftest.$ac_ext"
2543 case "(($ac_try" in
2544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545   *) ac_try_echo=$ac_try;;
2546 esac
2547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2548 $as_echo "$ac_try_echo"; } >&5
2549   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2550   ac_status=$?
2551   if test -s conftest.err; then
2552     grep -v '^ *+' conftest.err >conftest.er1
2553     cat conftest.er1 >&5
2554     mv -f conftest.er1 conftest.err
2555   fi
2556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2557   test $ac_status = 0; } >/dev/null && {
2558          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2559          test ! -s conftest.err
2560        }; then :
2561   ac_retval=0
2562 else
2563   $as_echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566     ac_retval=1
2567 fi
2568   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569   return $ac_retval
2570
2571 } # ac_fn_cxx_try_cpp
2572
2573 # ac_fn_cxx_try_link LINENO
2574 # -------------------------
2575 # Try to link conftest.$ac_ext, and return whether this succeeded.
2576 ac_fn_cxx_try_link ()
2577 {
2578   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579   rm -f conftest.$ac_objext conftest$ac_exeext
2580   if { { ac_try="$ac_link"
2581 case "(($ac_try" in
2582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583   *) ac_try_echo=$ac_try;;
2584 esac
2585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2586 $as_echo "$ac_try_echo"; } >&5
2587   (eval "$ac_link") 2>conftest.err
2588   ac_status=$?
2589   if test -s conftest.err; then
2590     grep -v '^ *+' conftest.err >conftest.er1
2591     cat conftest.er1 >&5
2592     mv -f conftest.er1 conftest.err
2593   fi
2594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595   test $ac_status = 0; } && {
2596          test -z "$ac_cxx_werror_flag" ||
2597          test ! -s conftest.err
2598        } && test -s conftest$ac_exeext && {
2599          test "$cross_compiling" = yes ||
2600          $as_test_x conftest$ac_exeext
2601        }; then :
2602   ac_retval=0
2603 else
2604   $as_echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2606
2607         ac_retval=1
2608 fi
2609   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2610   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2611   # interfere with the next link command; also delete a directory that is
2612   # left behind by Apple's compiler.  We do this before executing the actions.
2613   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2614   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2615   return $ac_retval
2616
2617 } # ac_fn_cxx_try_link
2618 cat >config.log <<_ACEOF
2619 This file contains any messages produced by compilers while
2620 running configure, to aid debugging if configure makes a mistake.
2621
2622 It was created by $as_me, which was
2623 generated by GNU Autoconf 2.64.  Invocation command line was
2624
2625   $ $0 $@
2626
2627 _ACEOF
2628 exec 5>>config.log
2629 {
2630 cat <<_ASUNAME
2631 ## --------- ##
2632 ## Platform. ##
2633 ## --------- ##
2634
2635 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2636 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2637 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2638 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2639 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2640
2641 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2642 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2643
2644 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2645 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2646 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2647 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2648 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2649 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2650 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2651
2652 _ASUNAME
2653
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657   IFS=$as_save_IFS
2658   test -z "$as_dir" && as_dir=.
2659     $as_echo "PATH: $as_dir"
2660   done
2661 IFS=$as_save_IFS
2662
2663 } >&5
2664
2665 cat >&5 <<_ACEOF
2666
2667
2668 ## ----------- ##
2669 ## Core tests. ##
2670 ## ----------- ##
2671
2672 _ACEOF
2673
2674
2675 # Keep a trace of the command line.
2676 # Strip out --no-create and --no-recursion so they do not pile up.
2677 # Strip out --silent because we don't want to record it for future runs.
2678 # Also quote any args containing shell meta-characters.
2679 # Make two passes to allow for proper duplicate-argument suppression.
2680 ac_configure_args=
2681 ac_configure_args0=
2682 ac_configure_args1=
2683 ac_must_keep_next=false
2684 for ac_pass in 1 2
2685 do
2686   for ac_arg
2687   do
2688     case $ac_arg in
2689     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2690     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2691     | -silent | --silent | --silen | --sile | --sil)
2692       continue ;;
2693     *\'*)
2694       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2695     esac
2696     case $ac_pass in
2697     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2698     2)
2699       as_fn_append ac_configure_args1 " '$ac_arg'"
2700       if test $ac_must_keep_next = true; then
2701         ac_must_keep_next=false # Got value, back to normal.
2702       else
2703         case $ac_arg in
2704           *=* | --config-cache | -C | -disable-* | --disable-* \
2705           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2706           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2707           | -with-* | --with-* | -without-* | --without-* | --x)
2708             case "$ac_configure_args0 " in
2709               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2710             esac
2711             ;;
2712           -* ) ac_must_keep_next=true ;;
2713         esac
2714       fi
2715       as_fn_append ac_configure_args " '$ac_arg'"
2716       ;;
2717     esac
2718   done
2719 done
2720 { ac_configure_args0=; unset ac_configure_args0;}
2721 { ac_configure_args1=; unset ac_configure_args1;}
2722
2723 # When interrupted or exit'd, cleanup temporary files, and complete
2724 # config.log.  We remove comments because anyway the quotes in there
2725 # would cause problems or look ugly.
2726 # WARNING: Use '\'' to represent an apostrophe within the trap.
2727 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2728 trap 'exit_status=$?
2729   # Save into config.log some information that might help in debugging.
2730   {
2731     echo
2732
2733     cat <<\_ASBOX
2734 ## ---------------- ##
2735 ## Cache variables. ##
2736 ## ---------------- ##
2737 _ASBOX
2738     echo
2739     # The following way of writing the cache mishandles newlines in values,
2740 (
2741   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2742     eval ac_val=\$$ac_var
2743     case $ac_val in #(
2744     *${as_nl}*)
2745       case $ac_var in #(
2746       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2747 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2748       esac
2749       case $ac_var in #(
2750       _ | IFS | as_nl) ;; #(
2751       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2752       *) { eval $ac_var=; unset $ac_var;} ;;
2753       esac ;;
2754     esac
2755   done
2756   (set) 2>&1 |
2757     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2758     *${as_nl}ac_space=\ *)
2759       sed -n \
2760         "s/'\''/'\''\\\\'\'''\''/g;
2761           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2762       ;; #(
2763     *)
2764       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2765       ;;
2766     esac |
2767     sort
2768 )
2769     echo
2770
2771     cat <<\_ASBOX
2772 ## ----------------- ##
2773 ## Output variables. ##
2774 ## ----------------- ##
2775 _ASBOX
2776     echo
2777     for ac_var in $ac_subst_vars
2778     do
2779       eval ac_val=\$$ac_var
2780       case $ac_val in
2781       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2782       esac
2783       $as_echo "$ac_var='\''$ac_val'\''"
2784     done | sort
2785     echo
2786
2787     if test -n "$ac_subst_files"; then
2788       cat <<\_ASBOX
2789 ## ------------------- ##
2790 ## File substitutions. ##
2791 ## ------------------- ##
2792 _ASBOX
2793       echo
2794       for ac_var in $ac_subst_files
2795       do
2796         eval ac_val=\$$ac_var
2797         case $ac_val in
2798         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2799         esac
2800         $as_echo "$ac_var='\''$ac_val'\''"
2801       done | sort
2802       echo
2803     fi
2804
2805     if test -s confdefs.h; then
2806       cat <<\_ASBOX
2807 ## ----------- ##
2808 ## confdefs.h. ##
2809 ## ----------- ##
2810 _ASBOX
2811       echo
2812       cat confdefs.h
2813       echo
2814     fi
2815     test "$ac_signal" != 0 &&
2816       $as_echo "$as_me: caught signal $ac_signal"
2817     $as_echo "$as_me: exit $exit_status"
2818   } >&5
2819   rm -f core *.core core.conftest.* &&
2820     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2821     exit $exit_status
2822 ' 0
2823 for ac_signal in 1 2 13 15; do
2824   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2825 done
2826 ac_signal=0
2827
2828 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2829 rm -f -r conftest* confdefs.h
2830
2831 $as_echo "/* confdefs.h */" > confdefs.h
2832
2833 # Predefined preprocessor variables.
2834
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_NAME "$PACKAGE_NAME"
2837 _ACEOF
2838
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2841 _ACEOF
2842
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2845 _ACEOF
2846
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_STRING "$PACKAGE_STRING"
2849 _ACEOF
2850
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2853 _ACEOF
2854
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE_URL "$PACKAGE_URL"
2857 _ACEOF
2858
2859
2860 # Let the site file select an alternate cache file if it wants to.
2861 # Prefer an explicitly selected file to automatically selected ones.
2862 ac_site_file1=NONE
2863 ac_site_file2=NONE
2864 if test -n "$CONFIG_SITE"; then
2865   ac_site_file1=$CONFIG_SITE
2866 elif test "x$prefix" != xNONE; then
2867   ac_site_file1=$prefix/share/config.site
2868   ac_site_file2=$prefix/etc/config.site
2869 else
2870   ac_site_file1=$ac_default_prefix/share/config.site
2871   ac_site_file2=$ac_default_prefix/etc/config.site
2872 fi
2873 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2874 do
2875   test "x$ac_site_file" = xNONE && continue
2876   if test -r "$ac_site_file"; then
2877     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2878 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2879     sed 's/^/| /' "$ac_site_file" >&5
2880     . "$ac_site_file"
2881   fi
2882 done
2883
2884 if test -r "$cache_file"; then
2885   # Some versions of bash will fail to source /dev/null (special
2886   # files actually), so we avoid doing that.
2887   if test -f "$cache_file"; then
2888     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2889 $as_echo "$as_me: loading cache $cache_file" >&6;}
2890     case $cache_file in
2891       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2892       *)                      . "./$cache_file";;
2893     esac
2894   fi
2895 else
2896   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2897 $as_echo "$as_me: creating cache $cache_file" >&6;}
2898   >$cache_file
2899 fi
2900
2901 # Check that the precious variables saved in the cache have kept the same
2902 # value.
2903 ac_cache_corrupted=false
2904 for ac_var in $ac_precious_vars; do
2905   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2906   eval ac_new_set=\$ac_env_${ac_var}_set
2907   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2908   eval ac_new_val=\$ac_env_${ac_var}_value
2909   case $ac_old_set,$ac_new_set in
2910     set,)
2911       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2912 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2913       ac_cache_corrupted=: ;;
2914     ,set)
2915       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2916 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2917       ac_cache_corrupted=: ;;
2918     ,);;
2919     *)
2920       if test "x$ac_old_val" != "x$ac_new_val"; then
2921         # differences in whitespace do not lead to failure.
2922         ac_old_val_w=`echo x $ac_old_val`
2923         ac_new_val_w=`echo x $ac_new_val`
2924         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2925           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2926 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2927           ac_cache_corrupted=:
2928         else
2929           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2930 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2931           eval $ac_var=\$ac_old_val
2932         fi
2933         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2934 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2935         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2936 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2937       fi;;
2938   esac
2939   # Pass precious variables to config.status.
2940   if test "$ac_new_set" = set; then
2941     case $ac_new_val in
2942     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2943     *) ac_arg=$ac_var=$ac_new_val ;;
2944     esac
2945     case " $ac_configure_args " in
2946       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2947       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2948     esac
2949   fi
2950 done
2951 if $ac_cache_corrupted; then
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2954   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2955 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2956   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2957 fi
2958 ## -------------------- ##
2959 ## Main body of script. ##
2960 ## -------------------- ##
2961
2962 ac_ext=c
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967
2968
2969
2970
2971
2972
2973 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2974
2975
2976 gcc_version=`cat $srcdir/BASE-VER`
2977
2978 # Determine the host, build, and target systems
2979 ac_aux_dir=
2980 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2981   for ac_t in install-sh install.sh shtool; do
2982     if test -f "$ac_dir/$ac_t"; then
2983       ac_aux_dir=$ac_dir
2984       ac_install_sh="$ac_aux_dir/$ac_t -c"
2985       break 2
2986     fi
2987   done
2988 done
2989 if test -z "$ac_aux_dir"; then
2990   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2991 fi
2992
2993 # These three variables are undocumented and unsupported,
2994 # and are intended to be withdrawn in a future Autoconf release.
2995 # They can cause serious problems if a builder's source tree is in a directory
2996 # whose full name contains unusual characters.
2997 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2998 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2999 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3000
3001
3002 # Make sure we can run config.sub.
3003 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3004   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3005
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3007 $as_echo_n "checking build system type... " >&6; }
3008 if test "${ac_cv_build+set}" = set; then :
3009   $as_echo_n "(cached) " >&6
3010 else
3011   ac_build_alias=$build_alias
3012 test "x$ac_build_alias" = x &&
3013   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3014 test "x$ac_build_alias" = x &&
3015   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3016 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3017   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3018
3019 fi
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3021 $as_echo "$ac_cv_build" >&6; }
3022 case $ac_cv_build in
3023 *-*-*) ;;
3024 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3025 esac
3026 build=$ac_cv_build
3027 ac_save_IFS=$IFS; IFS='-'
3028 set x $ac_cv_build
3029 shift
3030 build_cpu=$1
3031 build_vendor=$2
3032 shift; shift
3033 # Remember, the first character of IFS is used to create $*,
3034 # except with old shells:
3035 build_os=$*
3036 IFS=$ac_save_IFS
3037 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3038
3039
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3041 $as_echo_n "checking host system type... " >&6; }
3042 if test "${ac_cv_host+set}" = set; then :
3043   $as_echo_n "(cached) " >&6
3044 else
3045   if test "x$host_alias" = x; then
3046   ac_cv_host=$ac_cv_build
3047 else
3048   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3049     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3050 fi
3051
3052 fi
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3054 $as_echo "$ac_cv_host" >&6; }
3055 case $ac_cv_host in
3056 *-*-*) ;;
3057 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3058 esac
3059 host=$ac_cv_host
3060 ac_save_IFS=$IFS; IFS='-'
3061 set x $ac_cv_host
3062 shift
3063 host_cpu=$1
3064 host_vendor=$2
3065 shift; shift
3066 # Remember, the first character of IFS is used to create $*,
3067 # except with old shells:
3068 host_os=$*
3069 IFS=$ac_save_IFS
3070 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3071
3072
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3074 $as_echo_n "checking target system type... " >&6; }
3075 if test "${ac_cv_target+set}" = set; then :
3076   $as_echo_n "(cached) " >&6
3077 else
3078   if test "x$target_alias" = x; then
3079   ac_cv_target=$ac_cv_host
3080 else
3081   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3082     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3083 fi
3084
3085 fi
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3087 $as_echo "$ac_cv_target" >&6; }
3088 case $ac_cv_target in
3089 *-*-*) ;;
3090 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3091 esac
3092 target=$ac_cv_target
3093 ac_save_IFS=$IFS; IFS='-'
3094 set x $ac_cv_target
3095 shift
3096 target_cpu=$1
3097 target_vendor=$2
3098 shift; shift
3099 # Remember, the first character of IFS is used to create $*,
3100 # except with old shells:
3101 target_os=$*
3102 IFS=$ac_save_IFS
3103 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3104
3105
3106 # The aliases save the names the user supplied, while $host etc.
3107 # will get canonicalized.
3108 test -n "$target_alias" &&
3109   test "$program_prefix$program_suffix$program_transform_name" = \
3110     NONENONEs,x,x, &&
3111   program_prefix=${target_alias}-
3112
3113 # Determine the noncanonical target name, for directory use.
3114  case ${build_alias} in
3115   "") build_noncanonical=${build} ;;
3116   *) build_noncanonical=${build_alias} ;;
3117 esac
3118
3119  case ${host_alias} in
3120   "") host_noncanonical=${build_noncanonical} ;;
3121   *) host_noncanonical=${host_alias} ;;
3122 esac
3123
3124  case ${target_alias} in
3125   "") target_noncanonical=${host_noncanonical} ;;
3126   *) target_noncanonical=${target_alias} ;;
3127 esac
3128
3129
3130
3131
3132 # Determine the target- and build-specific subdirectories
3133
3134 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3135 # have matching libraries, they should use host libraries: Makefile.tpl
3136 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3137 # However, they still use the build modules, because the corresponding
3138 # host modules (e.g. bison) are only built for the host when bootstrap
3139 # finishes. So:
3140 # - build_subdir is where we find build modules, and never changes.
3141 # - build_libsubdir is where we find build libraries, and can be overridden.
3142
3143 # Prefix 'build-' so this never conflicts with target_subdir.
3144 build_subdir="build-${build_noncanonical}"
3145
3146 # Check whether --with-build-libsubdir was given.
3147 if test "${with_build_libsubdir+set}" = set; then :
3148   withval=$with_build_libsubdir; build_libsubdir="$withval"
3149 else
3150   build_libsubdir="$build_subdir"
3151 fi
3152
3153 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3154 if ( test $srcdir = . && test -d gcc ) \
3155    || test -d $srcdir/../host-${host_noncanonical}; then
3156   host_subdir="host-${host_noncanonical}"
3157 else
3158   host_subdir=.
3159 fi
3160 # No prefix.
3161 target_subdir=${target_noncanonical}
3162
3163
3164 # Set program_transform_name
3165 test "$program_prefix" != NONE &&
3166   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3167 # Use a double $ so make ignores it.
3168 test "$program_suffix" != NONE &&
3169   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3170 # Double any \ or $.
3171 # By default was `s,x,x', remove it if useless.
3172 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3173 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3174
3175
3176 # Check for bogus environment variables.
3177 # Test if LIBRARY_PATH contains the notation for the current directory
3178 # since this would lead to problems installing/building glibc.
3179 # LIBRARY_PATH contains the current directory if one of the following
3180 # is true:
3181 # - one of the terminals (":" and ";") is the first or last sign
3182 # - two terminals occur directly after each other
3183 # - the path contains an element with a dot in it
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3185 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3186 case ${LIBRARY_PATH} in
3187   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3188     library_path_setting="contains current directory"
3189     ;;
3190   *)
3191     library_path_setting="ok"
3192     ;;
3193 esac
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3195 $as_echo "$library_path_setting" >&6; }
3196 if test "$library_path_setting" != "ok"; then
3197 as_fn_error "
3198 *** LIBRARY_PATH shouldn't contain the current directory when
3199 *** building gcc. Please change the environment variable
3200 *** and run configure again." "$LINENO" 5
3201 fi
3202
3203 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3204 # since this would lead to problems installing/building glibc.
3205 # GCC_EXEC_PREFIX contains the current directory if one of the following
3206 # is true:
3207 # - one of the terminals (":" and ";") is the first or last sign
3208 # - two terminals occur directly after each other
3209 # - the path contains an element with a dot in it
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3211 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3212 case ${GCC_EXEC_PREFIX} in
3213   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3214     gcc_exec_prefix_setting="contains current directory"
3215     ;;
3216   *)
3217     gcc_exec_prefix_setting="ok"
3218     ;;
3219 esac
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3221 $as_echo "$gcc_exec_prefix_setting" >&6; }
3222 if test "$gcc_exec_prefix_setting" != "ok"; then
3223 as_fn_error "
3224 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3225 *** building gcc. Please change the environment variable
3226 *** and run configure again." "$LINENO" 5
3227 fi
3228
3229 # -----------
3230 # Directories
3231 # -----------
3232
3233 # Specify the local prefix
3234 local_prefix=
3235
3236 # Check whether --with-local-prefix was given.
3237 if test "${with_local_prefix+set}" = set; then :
3238   withval=$with_local_prefix; case "${withval}" in
3239 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3240 no)     ;;
3241 *)      local_prefix=$with_local_prefix ;;
3242 esac
3243 fi
3244
3245
3246 # Default local prefix if it is empty
3247 if test x$local_prefix = x; then
3248         local_prefix=/usr/local
3249 fi
3250
3251 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3252 # passed in by the toplevel make and thus we'd get different behavior
3253 # depending on where we built the sources.
3254 gcc_gxx_include_dir=
3255 # Specify the g++ header file directory
3256
3257 # Check whether --with-gxx-include-dir was given.
3258 if test "${with_gxx_include_dir+set}" = set; then :
3259   withval=$with_gxx_include_dir; case "${withval}" in
3260 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3261 no)     ;;
3262 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3263 esac
3264 fi
3265
3266
3267 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3268 if test x${gcc_gxx_include_dir} = x; then
3269   if test x${enable_version_specific_runtime_libs} = xyes; then
3270     gcc_gxx_include_dir='${libsubdir}/include/c++'
3271   else
3272     libstdcxx_incdir='include/c++/$(version)'
3273     if test x$host != x$target; then
3274        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3275     fi
3276     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3277   fi
3278 fi
3279
3280
3281 # Check whether --with-cpp_install_dir was given.
3282 if test "${with_cpp_install_dir+set}" = set; then :
3283   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3284   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3285 elif test x$withval != xno; then
3286   cpp_install_dir=$withval
3287 fi
3288 fi
3289
3290
3291 # We would like to our source tree to be readonly.  However when releases or
3292 # pre-releases are generated, the flex/bison generated files as well as the
3293 # various formats of manuals need to be included along with the rest of the
3294 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3295 # just that.
3296
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3298 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3299     # Check whether --enable-generated-files-in-srcdir was given.
3300 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3301   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3302 else
3303   generated_files_in_srcdir=no
3304 fi
3305
3306
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3308 $as_echo "$generated_files_in_srcdir" >&6; }
3309
3310 if test "$generated_files_in_srcdir" = "yes"; then
3311   GENINSRC=''
3312 else
3313   GENINSRC='#'
3314 fi
3315
3316
3317 # -------------------
3318 # Find default linker
3319 # -------------------
3320
3321 # With GNU ld
3322
3323 # Check whether --with-gnu-ld was given.
3324 if test "${with_gnu_ld+set}" = set; then :
3325   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3326 else
3327   gnu_ld_flag=no
3328 fi
3329
3330
3331 # With pre-defined ld
3332
3333 # Check whether --with-ld was given.
3334 if test "${with_ld+set}" = set; then :
3335   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3336 fi
3337
3338 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3339   if test ! -x "$DEFAULT_LINKER"; then
3340     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3341   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3342     gnu_ld_flag=yes
3343   fi
3344
3345 cat >>confdefs.h <<_ACEOF
3346 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3347 _ACEOF
3348
3349 fi
3350
3351 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3352
3353 cat >>confdefs.h <<_ACEOF
3354 #define HAVE_GNU_LD $gnu_ld
3355 _ACEOF
3356
3357
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3359 $as_echo_n "checking whether a default linker was specified... " >&6; }
3360 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3361   if test x"$gnu_ld_flag" = x"no"; then
3362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3363 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3364   else
3365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3366 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3367   fi
3368 else
3369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3371 fi
3372
3373 # With demangler in GNU ld
3374
3375 # Check whether --with-demangler-in-ld was given.
3376 if test "${with_demangler_in_ld+set}" = set; then :
3377   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3378 else
3379   demangler_in_ld=no
3380 fi
3381
3382
3383 # ----------------------
3384 # Find default assembler
3385 # ----------------------
3386
3387 # With GNU as
3388
3389 # Check whether --with-gnu-as was given.
3390 if test "${with_gnu_as+set}" = set; then :
3391   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3392 else
3393   gas_flag=no
3394 fi
3395
3396
3397
3398 # Check whether --with-as was given.
3399 if test "${with_as+set}" = set; then :
3400   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3401 fi
3402
3403 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3404   if test ! -x "$DEFAULT_ASSEMBLER"; then
3405     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3406   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3407     gas_flag=yes
3408   fi
3409
3410 cat >>confdefs.h <<_ACEOF
3411 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3412 _ACEOF
3413
3414 fi
3415
3416 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3417
3418 cat >>confdefs.h <<_ACEOF
3419 #define HAVE_GNU_AS $gnu_as
3420 _ACEOF
3421
3422
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3424 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3425 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3426   if test x"$gas_flag" = x"no"; then
3427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3428 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3429   else
3430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3431 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3432   fi
3433 else
3434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 fi
3437
3438 # ---------------
3439 # Find C compiler
3440 # ---------------
3441
3442 # If a non-executable a.out is present (e.g. created by GNU as above even if
3443 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3444 # file, even when creating an executable, so an execution test fails.
3445 # Remove possible default executable files to avoid this.
3446 #
3447 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3448 # Autoconf includes it.
3449 rm -f a.out a.exe b.out
3450
3451 # Find the native compiler
3452 ac_ext=c
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 if test -n "$ac_tool_prefix"; then
3458   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3459 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if test "${ac_cv_prog_CC+set}" = set; then :
3463   $as_echo_n "(cached) " >&6
3464 else
3465   if test -n "$CC"; then
3466   ac_cv_prog_CC="$CC" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471   IFS=$as_save_IFS
3472   test -z "$as_dir" && as_dir=.
3473     for ac_exec_ext in '' $ac_executable_extensions; do
3474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477     break 2
3478   fi
3479 done
3480   done
3481 IFS=$as_save_IFS
3482
3483 fi
3484 fi
3485 CC=$ac_cv_prog_CC
3486 if test -n "$CC"; then
3487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488 $as_echo "$CC" >&6; }
3489 else
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3492 fi
3493
3494
3495 fi
3496 if test -z "$ac_cv_prog_CC"; then
3497   ac_ct_CC=$CC
3498   # Extract the first word of "gcc", so it can be a program name with args.
3499 set dummy gcc; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3503   $as_echo_n "(cached) " >&6
3504 else
3505   if test -n "$ac_ct_CC"; then
3506   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511   IFS=$as_save_IFS
3512   test -z "$as_dir" && as_dir=.
3513     for ac_exec_ext in '' $ac_executable_extensions; do
3514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515     ac_cv_prog_ac_ct_CC="gcc"
3516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517     break 2
3518   fi
3519 done
3520   done
3521 IFS=$as_save_IFS
3522
3523 fi
3524 fi
3525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3526 if test -n "$ac_ct_CC"; then
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3528 $as_echo "$ac_ct_CC" >&6; }
3529 else
3530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3532 fi
3533
3534   if test "x$ac_ct_CC" = x; then
3535     CC=""
3536   else
3537     case $cross_compiling:$ac_tool_warned in
3538 yes:)
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned=yes ;;
3542 esac
3543     CC=$ac_ct_CC
3544   fi
3545 else
3546   CC="$ac_cv_prog_CC"
3547 fi
3548
3549 if test -z "$CC"; then
3550           if test -n "$ac_tool_prefix"; then
3551     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3552 set dummy ${ac_tool_prefix}cc; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_CC+set}" = set; then :
3556   $as_echo_n "(cached) " >&6
3557 else
3558   if test -n "$CC"; then
3559   ac_cv_prog_CC="$CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564   IFS=$as_save_IFS
3565   test -z "$as_dir" && as_dir=.
3566     for ac_exec_ext in '' $ac_executable_extensions; do
3567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568     ac_cv_prog_CC="${ac_tool_prefix}cc"
3569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570     break 2
3571   fi
3572 done
3573   done
3574 IFS=$as_save_IFS
3575
3576 fi
3577 fi
3578 CC=$ac_cv_prog_CC
3579 if test -n "$CC"; then
3580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3582 else
3583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3585 fi
3586
3587
3588   fi
3589 fi
3590 if test -z "$CC"; then
3591   # Extract the first word of "cc", so it can be a program name with args.
3592 set dummy cc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_CC+set}" = set; then :
3596   $as_echo_n "(cached) " >&6
3597 else
3598   if test -n "$CC"; then
3599   ac_cv_prog_CC="$CC" # Let the user override the test.
3600 else
3601   ac_prog_rejected=no
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3604 do
3605   IFS=$as_save_IFS
3606   test -z "$as_dir" && as_dir=.
3607     for ac_exec_ext in '' $ac_executable_extensions; do
3608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3610        ac_prog_rejected=yes
3611        continue
3612      fi
3613     ac_cv_prog_CC="cc"
3614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615     break 2
3616   fi
3617 done
3618   done
3619 IFS=$as_save_IFS
3620
3621 if test $ac_prog_rejected = yes; then
3622   # We found a bogon in the path, so make sure we never use it.
3623   set dummy $ac_cv_prog_CC
3624   shift
3625   if test $# != 0; then
3626     # We chose a different compiler from the bogus one.
3627     # However, it has the same basename, so the bogon will be chosen
3628     # first if we set CC to just the basename; use the full file name.
3629     shift
3630     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3631   fi
3632 fi
3633 fi
3634 fi
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3639 else
3640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3642 fi
3643
3644
3645 fi
3646 if test -z "$CC"; then
3647   if test -n "$ac_tool_prefix"; then
3648   for ac_prog in cl.exe
3649   do
3650     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_CC+set}" = set; then :
3655   $as_echo_n "(cached) " >&6
3656 else
3657   if test -n "$CC"; then
3658   ac_cv_prog_CC="$CC" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3662 do
3663   IFS=$as_save_IFS
3664   test -z "$as_dir" && as_dir=.
3665     for ac_exec_ext in '' $ac_executable_extensions; do
3666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669     break 2
3670   fi
3671 done
3672   done
3673 IFS=$as_save_IFS
3674
3675 fi
3676 fi
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 $as_echo "$CC" >&6; }
3681 else
3682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3684 fi
3685
3686
3687     test -n "$CC" && break
3688   done
3689 fi
3690 if test -z "$CC"; then
3691   ac_ct_CC=$CC
3692   for ac_prog in cl.exe
3693 do
3694   # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy $ac_prog; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3699   $as_echo_n "(cached) " >&6
3700 else
3701   if test -n "$ac_ct_CC"; then
3702   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3706 do
3707   IFS=$as_save_IFS
3708   test -z "$as_dir" && as_dir=.
3709     for ac_exec_ext in '' $ac_executable_extensions; do
3710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711     ac_cv_prog_ac_ct_CC="$ac_prog"
3712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713     break 2
3714   fi
3715 done
3716   done
3717 IFS=$as_save_IFS
3718
3719 fi
3720 fi
3721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3722 if test -n "$ac_ct_CC"; then
3723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3724 $as_echo "$ac_ct_CC" >&6; }
3725 else
3726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3728 fi
3729
3730
3731   test -n "$ac_ct_CC" && break
3732 done
3733
3734   if test "x$ac_ct_CC" = x; then
3735     CC=""
3736   else
3737     case $cross_compiling:$ac_tool_warned in
3738 yes:)
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3741 ac_tool_warned=yes ;;
3742 esac
3743     CC=$ac_ct_CC
3744   fi
3745 fi
3746
3747 fi
3748
3749
3750 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error "no acceptable C compiler found in \$PATH
3753 See \`config.log' for more details." "$LINENO" 5; }
3754
3755 # Provide some information about the compiler.
3756 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3757 set X $ac_compile
3758 ac_compiler=$2
3759 for ac_option in --version -v -V -qversion; do
3760   { { ac_try="$ac_compiler $ac_option >&5"
3761 case "(($ac_try" in
3762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763   *) ac_try_echo=$ac_try;;
3764 esac
3765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766 $as_echo "$ac_try_echo"; } >&5
3767   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3768   ac_status=$?
3769   if test -s conftest.err; then
3770     sed '10a\
3771 ... rest of stderr output deleted ...
3772          10q' conftest.err >conftest.er1
3773     cat conftest.er1 >&5
3774     rm -f conftest.er1 conftest.err
3775   fi
3776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777   test $ac_status = 0; }
3778 done
3779
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h.  */
3782
3783 int
3784 main ()
3785 {
3786
3787   ;
3788   return 0;
3789 }
3790 _ACEOF
3791 ac_clean_files_save=$ac_clean_files
3792 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3793 # Try to create an executable without -o first, disregard a.out.
3794 # It will help us diagnose broken compilers, and finding out an intuition
3795 # of exeext.
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3797 $as_echo_n "checking for C compiler default output file name... " >&6; }
3798 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3799
3800 # The possible output files:
3801 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3802
3803 ac_rmfiles=
3804 for ac_file in $ac_files
3805 do
3806   case $ac_file in
3807     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3808     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3809   esac
3810 done
3811 rm -f $ac_rmfiles
3812
3813 if { { ac_try="$ac_link_default"
3814 case "(($ac_try" in
3815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816   *) ac_try_echo=$ac_try;;
3817 esac
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820   (eval "$ac_link_default") 2>&5
3821   ac_status=$?
3822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823   test $ac_status = 0; }; then :
3824   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3825 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3826 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3827 # so that the user can short-circuit this test for compilers unknown to
3828 # Autoconf.
3829 for ac_file in $ac_files ''
3830 do
3831   test -f "$ac_file" || continue
3832   case $ac_file in
3833     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3834         ;;
3835     [ab].out )
3836         # We found the default executable, but exeext='' is most
3837         # certainly right.
3838         break;;
3839     *.* )
3840         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3841         then :; else
3842            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3843         fi
3844         # We set ac_cv_exeext here because the later test for it is not
3845         # safe: cross compilers may not add the suffix if given an `-o'
3846         # argument, so we may need to know it at that point already.
3847         # Even if this section looks crufty: it has the advantage of
3848         # actually working.
3849         break;;
3850     * )
3851         break;;
3852   esac
3853 done
3854 test "$ac_cv_exeext" = no && ac_cv_exeext=
3855
3856 else
3857   ac_file=''
3858 fi
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3860 $as_echo "$ac_file" >&6; }
3861 if test -z "$ac_file"; then :
3862   $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3864
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 { as_fn_set_status 77
3868 as_fn_error "C compiler cannot create executables
3869 See \`config.log' for more details." "$LINENO" 5; }; }
3870 fi
3871 ac_exeext=$ac_cv_exeext
3872
3873 # Check that the compiler produces executables we can run.  If not, either
3874 # the compiler is broken, or we cross compile.
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3876 $as_echo_n "checking whether the C compiler works... " >&6; }
3877 # If not cross compiling, check that we can run a simple program.
3878 if test "$cross_compiling" != yes; then
3879   if { ac_try='./$ac_file'
3880   { { case "(($ac_try" in
3881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882   *) ac_try_echo=$ac_try;;
3883 esac
3884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3885 $as_echo "$ac_try_echo"; } >&5
3886   (eval "$ac_try") 2>&5
3887   ac_status=$?
3888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889   test $ac_status = 0; }; }; then
3890     cross_compiling=no
3891   else
3892     if test "$cross_compiling" = maybe; then
3893         cross_compiling=yes
3894     else
3895         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error "cannot run C compiled programs.
3898 If you meant to cross compile, use \`--host'.
3899 See \`config.log' for more details." "$LINENO" 5; }
3900     fi
3901   fi
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3904 $as_echo "yes" >&6; }
3905
3906 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3907 ac_clean_files=$ac_clean_files_save
3908 # Check that the compiler produces executables we can run.  If not, either
3909 # the compiler is broken, or we cross compile.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3911 $as_echo_n "checking whether we are cross compiling... " >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3913 $as_echo "$cross_compiling" >&6; }
3914
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3916 $as_echo_n "checking for suffix of executables... " >&6; }
3917 if { { ac_try="$ac_link"
3918 case "(($ac_try" in
3919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920   *) ac_try_echo=$ac_try;;
3921 esac
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924   (eval "$ac_link") 2>&5
3925   ac_status=$?
3926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927   test $ac_status = 0; }; then :
3928   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3929 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3930 # work properly (i.e., refer to `conftest.exe'), while it won't with
3931 # `rm'.
3932 for ac_file in conftest.exe conftest conftest.*; do
3933   test -f "$ac_file" || continue
3934   case $ac_file in
3935     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3936     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3937           break;;
3938     * ) break;;
3939   esac
3940 done
3941 else
3942   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 as_fn_error "cannot compute suffix of executables: cannot compile and link
3945 See \`config.log' for more details." "$LINENO" 5; }
3946 fi
3947 rm -f conftest$ac_cv_exeext
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3949 $as_echo "$ac_cv_exeext" >&6; }
3950
3951 rm -f conftest.$ac_ext
3952 EXEEXT=$ac_cv_exeext
3953 ac_exeext=$EXEEXT
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3955 $as_echo_n "checking for suffix of object files... " >&6; }
3956 if test "${ac_cv_objext+set}" = set; then :
3957   $as_echo_n "(cached) " >&6
3958 else
3959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h.  */
3961
3962 int
3963 main ()
3964 {
3965
3966   ;
3967   return 0;
3968 }
3969 _ACEOF
3970 rm -f conftest.o conftest.obj
3971 if { { ac_try="$ac_compile"
3972 case "(($ac_try" in
3973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974   *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 $as_echo "$ac_try_echo"; } >&5
3978   (eval "$ac_compile") 2>&5
3979   ac_status=$?
3980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981   test $ac_status = 0; }; then :
3982   for ac_file in conftest.o conftest.obj conftest.*; do
3983   test -f "$ac_file" || continue;
3984   case $ac_file in
3985     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3986     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3987        break;;
3988   esac
3989 done
3990 else
3991   $as_echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3993
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error "cannot compute suffix of object files: cannot compile
3997 See \`config.log' for more details." "$LINENO" 5; }
3998 fi
3999 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4000 fi
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4002 $as_echo "$ac_cv_objext" >&6; }
4003 OBJEXT=$ac_cv_objext
4004 ac_objext=$OBJEXT
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4006 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4007 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4008   $as_echo_n "(cached) " >&6
4009 else
4010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h.  */
4012
4013 int
4014 main ()
4015 {
4016 #ifndef __GNUC__
4017        choke me
4018 #endif
4019
4020   ;
4021   return 0;
4022 }
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025   ac_compiler_gnu=yes
4026 else
4027   ac_compiler_gnu=no
4028 fi
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4031
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4034 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4035 if test $ac_compiler_gnu = yes; then
4036   GCC=yes
4037 else
4038   GCC=
4039 fi
4040 ac_test_CFLAGS=${CFLAGS+set}
4041 ac_save_CFLAGS=$CFLAGS
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4043 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4044 if test "${ac_cv_prog_cc_g+set}" = set; then :
4045   $as_echo_n "(cached) " >&6
4046 else
4047   ac_save_c_werror_flag=$ac_c_werror_flag
4048    ac_c_werror_flag=yes
4049    ac_cv_prog_cc_g=no
4050    CFLAGS="-g"
4051    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h.  */
4053
4054 int
4055 main ()
4056 {
4057
4058   ;
4059   return 0;
4060 }
4061 _ACEOF
4062 if ac_fn_c_try_compile "$LINENO"; then :
4063   ac_cv_prog_cc_g=yes
4064 else
4065   CFLAGS=""
4066       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h.  */
4068
4069 int
4070 main ()
4071 {
4072
4073   ;
4074   return 0;
4075 }
4076 _ACEOF
4077 if ac_fn_c_try_compile "$LINENO"; then :
4078
4079 else
4080   ac_c_werror_flag=$ac_save_c_werror_flag
4081          CFLAGS="-g"
4082          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h.  */
4084
4085 int
4086 main ()
4087 {
4088
4089   ;
4090   return 0;
4091 }
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094   ac_cv_prog_cc_g=yes
4095 fi
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 fi
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 fi
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101    ac_c_werror_flag=$ac_save_c_werror_flag
4102 fi
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4104 $as_echo "$ac_cv_prog_cc_g" >&6; }
4105 if test "$ac_test_CFLAGS" = set; then
4106   CFLAGS=$ac_save_CFLAGS
4107 elif test $ac_cv_prog_cc_g = yes; then
4108   if test "$GCC" = yes; then
4109     CFLAGS="-g -O2"
4110   else
4111     CFLAGS="-g"
4112   fi
4113 else
4114   if test "$GCC" = yes; then
4115     CFLAGS="-O2"
4116   else
4117     CFLAGS=
4118   fi
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4121 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4122 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4123   $as_echo_n "(cached) " >&6
4124 else
4125   ac_cv_prog_cc_c89=no
4126 ac_save_CC=$CC
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h.  */
4129 #include <stdarg.h>
4130 #include <stdio.h>
4131 #include <sys/types.h>
4132 #include <sys/stat.h>
4133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4134 struct buf { int x; };
4135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4136 static char *e (p, i)
4137      char **p;
4138      int i;
4139 {
4140   return p[i];
4141 }
4142 static char *f (char * (*g) (char **, int), char **p, ...)
4143 {
4144   char *s;
4145   va_list v;
4146   va_start (v,p);
4147   s = g (p, va_arg (v,int));
4148   va_end (v);
4149   return s;
4150 }
4151
4152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4153    function prototypes and stuff, but not '\xHH' hex character constants.
4154    These don't provoke an error unfortunately, instead are silently treated
4155    as 'x'.  The following induces an error, until -std is added to get
4156    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4157    array size at least.  It's necessary to write '\x00'==0 to get something
4158    that's true only with -std.  */
4159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4160
4161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4162    inside strings and character constants.  */
4163 #define FOO(x) 'x'
4164 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4165
4166 int test (int i, double x);
4167 struct s1 {int (*f) (int a);};
4168 struct s2 {int (*f) (double a);};
4169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4170 int argc;
4171 char **argv;
4172 int
4173 main ()
4174 {
4175 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4176   ;
4177   return 0;
4178 }
4179 _ACEOF
4180 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4181         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4182 do
4183   CC="$ac_save_CC $ac_arg"
4184   if ac_fn_c_try_compile "$LINENO"; then :
4185   ac_cv_prog_cc_c89=$ac_arg
4186 fi
4187 rm -f core conftest.err conftest.$ac_objext
4188   test "x$ac_cv_prog_cc_c89" != "xno" && break
4189 done
4190 rm -f conftest.$ac_ext
4191 CC=$ac_save_CC
4192
4193 fi
4194 # AC_CACHE_VAL
4195 case "x$ac_cv_prog_cc_c89" in
4196   x)
4197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4198 $as_echo "none needed" >&6; } ;;
4199   xno)
4200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4201 $as_echo "unsupported" >&6; } ;;
4202   *)
4203     CC="$CC $ac_cv_prog_cc_c89"
4204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4205 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4206 esac
4207 if test "x$ac_cv_prog_cc_c89" != xno; then :
4208
4209 fi
4210
4211 ac_ext=c
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216
4217 if test "x$CC" != xcc; then
4218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4219 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4220 else
4221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4222 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4223 fi
4224 set dummy $CC; ac_cc=`$as_echo "$2" |
4225                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4226 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4227   $as_echo_n "(cached) " >&6
4228 else
4229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h.  */
4231
4232 int
4233 main ()
4234 {
4235
4236   ;
4237   return 0;
4238 }
4239 _ACEOF
4240 # Make sure it works both with $CC and with simple cc.
4241 # We do the test twice because some compilers refuse to overwrite an
4242 # existing .o file with -o, though they will create one.
4243 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4244 rm -f conftest2.*
4245 if { { case "(($ac_try" in
4246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247   *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251   (eval "$ac_try") 2>&5
4252   ac_status=$?
4253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254   test $ac_status = 0; } &&
4255    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257   *) ac_try_echo=$ac_try;;
4258 esac
4259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4260 $as_echo "$ac_try_echo"; } >&5
4261   (eval "$ac_try") 2>&5
4262   ac_status=$?
4263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264   test $ac_status = 0; };
4265 then
4266   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4267   if test "x$CC" != xcc; then
4268     # Test first that cc exists at all.
4269     if { ac_try='cc -c conftest.$ac_ext >&5'
4270   { { case "(($ac_try" in
4271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272   *) ac_try_echo=$ac_try;;
4273 esac
4274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4275 $as_echo "$ac_try_echo"; } >&5
4276   (eval "$ac_try") 2>&5
4277   ac_status=$?
4278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279   test $ac_status = 0; }; }; then
4280       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4281       rm -f conftest2.*
4282       if { { case "(($ac_try" in
4283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284   *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288   (eval "$ac_try") 2>&5
4289   ac_status=$?
4290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291   test $ac_status = 0; } &&
4292          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294   *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298   (eval "$ac_try") 2>&5
4299   ac_status=$?
4300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301   test $ac_status = 0; };
4302       then
4303         # cc works too.
4304         :
4305       else
4306         # cc exists but doesn't like -o.
4307         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4308       fi
4309     fi
4310   fi
4311 else
4312   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4313 fi
4314 rm -f core conftest*
4315
4316 fi
4317 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4319 $as_echo "yes" >&6; }
4320 else
4321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4323
4324 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4325
4326 fi
4327
4328 # expand $ac_aux_dir to an absolute path
4329 am_aux_dir=`cd $ac_aux_dir && pwd`
4330
4331 # FIXME: we rely on the cache variable name because
4332 # there is no other way.
4333 set dummy $CC
4334 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4335 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4336 if test "$am_t" != yes; then
4337    # Losing compiler, so override with the script.
4338    # FIXME: It is wrong to rewrite CC.
4339    # But if we don't then we get into trouble of one sort or another.
4340    # A longer-term fix would be to have automake use am__CC in this case,
4341    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4342    CC="$am_aux_dir/compile $CC"
4343 fi
4344
4345
4346 ac_ext=cpp
4347 ac_cpp='$CXXCPP $CPPFLAGS'
4348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4351 if test -z "$CXX"; then
4352   if test -n "$CCC"; then
4353     CXX=$CCC
4354   else
4355     if test -n "$ac_tool_prefix"; then
4356   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4357   do
4358     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if test "${ac_cv_prog_CXX+set}" = set; then :
4363   $as_echo_n "(cached) " >&6
4364 else
4365   if test -n "$CXX"; then
4366   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371   IFS=$as_save_IFS
4372   test -z "$as_dir" && as_dir=.
4373     for ac_exec_ext in '' $ac_executable_extensions; do
4374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377     break 2
4378   fi
4379 done
4380   done
4381 IFS=$as_save_IFS
4382
4383 fi
4384 fi
4385 CXX=$ac_cv_prog_CXX
4386 if test -n "$CXX"; then
4387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4388 $as_echo "$CXX" >&6; }
4389 else
4390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4392 fi
4393
4394
4395     test -n "$CXX" && break
4396   done
4397 fi
4398 if test -z "$CXX"; then
4399   ac_ct_CXX=$CXX
4400   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4401 do
4402   # Extract the first word of "$ac_prog", so it can be a program name with args.
4403 set dummy $ac_prog; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4407   $as_echo_n "(cached) " >&6
4408 else
4409   if test -n "$ac_ct_CXX"; then
4410   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4414 do
4415   IFS=$as_save_IFS
4416   test -z "$as_dir" && as_dir=.
4417     for ac_exec_ext in '' $ac_executable_extensions; do
4418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419     ac_cv_prog_ac_ct_CXX="$ac_prog"
4420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421     break 2
4422   fi
4423 done
4424   done
4425 IFS=$as_save_IFS
4426
4427 fi
4428 fi
4429 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4430 if test -n "$ac_ct_CXX"; then
4431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4432 $as_echo "$ac_ct_CXX" >&6; }
4433 else
4434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4436 fi
4437
4438
4439   test -n "$ac_ct_CXX" && break
4440 done
4441
4442   if test "x$ac_ct_CXX" = x; then
4443     CXX="g++"
4444   else
4445     case $cross_compiling:$ac_tool_warned in
4446 yes:)
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4449 ac_tool_warned=yes ;;
4450 esac
4451     CXX=$ac_ct_CXX
4452   fi
4453 fi
4454
4455   fi
4456 fi
4457 # Provide some information about the compiler.
4458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4459 set X $ac_compile
4460 ac_compiler=$2
4461 for ac_option in --version -v -V -qversion; do
4462   { { ac_try="$ac_compiler $ac_option >&5"
4463 case "(($ac_try" in
4464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465   *) ac_try_echo=$ac_try;;
4466 esac
4467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4468 $as_echo "$ac_try_echo"; } >&5
4469   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4470   ac_status=$?
4471   if test -s conftest.err; then
4472     sed '10a\
4473 ... rest of stderr output deleted ...
4474          10q' conftest.err >conftest.er1
4475     cat conftest.er1 >&5
4476     rm -f conftest.er1 conftest.err
4477   fi
4478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4479   test $ac_status = 0; }
4480 done
4481
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4483 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4484 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4485   $as_echo_n "(cached) " >&6
4486 else
4487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h.  */
4489
4490 int
4491 main ()
4492 {
4493 #ifndef __GNUC__
4494        choke me
4495 #endif
4496
4497   ;
4498   return 0;
4499 }
4500 _ACEOF
4501 if ac_fn_cxx_try_compile "$LINENO"; then :
4502   ac_compiler_gnu=yes
4503 else
4504   ac_compiler_gnu=no
4505 fi
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4508
4509 fi
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4511 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4512 if test $ac_compiler_gnu = yes; then
4513   GXX=yes
4514 else
4515   GXX=
4516 fi
4517 ac_test_CXXFLAGS=${CXXFLAGS+set}
4518 ac_save_CXXFLAGS=$CXXFLAGS
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4520 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4521 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4522   $as_echo_n "(cached) " >&6
4523 else
4524   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4525    ac_cxx_werror_flag=yes
4526    ac_cv_prog_cxx_g=no
4527    CXXFLAGS="-g"
4528    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h.  */
4530
4531 int
4532 main ()
4533 {
4534
4535   ;
4536   return 0;
4537 }
4538 _ACEOF
4539 if ac_fn_cxx_try_compile "$LINENO"; then :
4540   ac_cv_prog_cxx_g=yes
4541 else
4542   CXXFLAGS=""
4543       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h.  */
4545
4546 int
4547 main ()
4548 {
4549
4550   ;
4551   return 0;
4552 }
4553 _ACEOF
4554 if ac_fn_cxx_try_compile "$LINENO"; then :
4555
4556 else
4557   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4558          CXXFLAGS="-g"
4559          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h.  */
4561
4562 int
4563 main ()
4564 {
4565
4566   ;
4567   return 0;
4568 }
4569 _ACEOF
4570 if ac_fn_cxx_try_compile "$LINENO"; then :
4571   ac_cv_prog_cxx_g=yes
4572 fi
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 fi
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 fi
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4579 fi
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4581 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4582 if test "$ac_test_CXXFLAGS" = set; then
4583   CXXFLAGS=$ac_save_CXXFLAGS
4584 elif test $ac_cv_prog_cxx_g = yes; then
4585   if test "$GXX" = yes; then
4586     CXXFLAGS="-g -O2"
4587   else
4588     CXXFLAGS="-g"
4589   fi
4590 else
4591   if test "$GXX" = yes; then
4592     CXXFLAGS="-O2"
4593   else
4594     CXXFLAGS=
4595   fi
4596 fi
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602
4603
4604
4605
4606 if test -n "$ac_tool_prefix"; then
4607   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4608 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4612   $as_echo_n "(cached) " >&6
4613 else
4614   if test -n "$GNATBIND"; then
4615   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620   IFS=$as_save_IFS
4621   test -z "$as_dir" && as_dir=.
4622     for ac_exec_ext in '' $ac_executable_extensions; do
4623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626     break 2
4627   fi
4628 done
4629   done
4630 IFS=$as_save_IFS
4631
4632 fi
4633 fi
4634 GNATBIND=$ac_cv_prog_GNATBIND
4635 if test -n "$GNATBIND"; then
4636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4637 $as_echo "$GNATBIND" >&6; }
4638 else
4639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4641 fi
4642
4643
4644 fi
4645 if test -z "$ac_cv_prog_GNATBIND"; then
4646   ac_ct_GNATBIND=$GNATBIND
4647   # Extract the first word of "gnatbind", so it can be a program name with args.
4648 set dummy gnatbind; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4652   $as_echo_n "(cached) " >&6
4653 else
4654   if test -n "$ac_ct_GNATBIND"; then
4655   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660   IFS=$as_save_IFS
4661   test -z "$as_dir" && as_dir=.
4662     for ac_exec_ext in '' $ac_executable_extensions; do
4663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666     break 2
4667   fi
4668 done
4669   done
4670 IFS=$as_save_IFS
4671
4672 fi
4673 fi
4674 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4675 if test -n "$ac_ct_GNATBIND"; then
4676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4677 $as_echo "$ac_ct_GNATBIND" >&6; }
4678 else
4679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4681 fi
4682
4683   if test "x$ac_ct_GNATBIND" = x; then
4684     GNATBIND="no"
4685   else
4686     case $cross_compiling:$ac_tool_warned in
4687 yes:)
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690 ac_tool_warned=yes ;;
4691 esac
4692     GNATBIND=$ac_ct_GNATBIND
4693   fi
4694 else
4695   GNATBIND="$ac_cv_prog_GNATBIND"
4696 fi
4697
4698 if test -n "$ac_tool_prefix"; then
4699   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4700 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4704   $as_echo_n "(cached) " >&6
4705 else
4706   if test -n "$GNATMAKE"; then
4707   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714     for ac_exec_ext in '' $ac_executable_extensions; do
4715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721   done
4722 IFS=$as_save_IFS
4723
4724 fi
4725 fi
4726 GNATMAKE=$ac_cv_prog_GNATMAKE
4727 if test -n "$GNATMAKE"; then
4728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4729 $as_echo "$GNATMAKE" >&6; }
4730 else
4731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4733 fi
4734
4735
4736 fi
4737 if test -z "$ac_cv_prog_GNATMAKE"; then
4738   ac_ct_GNATMAKE=$GNATMAKE
4739   # Extract the first word of "gnatmake", so it can be a program name with args.
4740 set dummy gnatmake; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4744   $as_echo_n "(cached) " >&6
4745 else
4746   if test -n "$ac_ct_GNATMAKE"; then
4747   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754     for ac_exec_ext in '' $ac_executable_extensions; do
4755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761   done
4762 IFS=$as_save_IFS
4763
4764 fi
4765 fi
4766 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4767 if test -n "$ac_ct_GNATMAKE"; then
4768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4769 $as_echo "$ac_ct_GNATMAKE" >&6; }
4770 else
4771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4773 fi
4774
4775   if test "x$ac_ct_GNATMAKE" = x; then
4776     GNATMAKE="no"
4777   else
4778     case $cross_compiling:$ac_tool_warned in
4779 yes:)
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4782 ac_tool_warned=yes ;;
4783 esac
4784     GNATMAKE=$ac_ct_GNATMAKE
4785   fi
4786 else
4787   GNATMAKE="$ac_cv_prog_GNATMAKE"
4788 fi
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4791 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4792 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4793   $as_echo_n "(cached) " >&6
4794 else
4795   cat >conftest.adb <<EOF
4796 procedure conftest is begin null; end conftest;
4797 EOF
4798 acx_cv_cc_gcc_supports_ada=no
4799 # There is a bug in old released versions of GCC which causes the
4800 # driver to exit successfully when the appropriate language module
4801 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4802 # Therefore we must check for the error message as well as an
4803 # unsuccessful exit.
4804 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4805 # given a .adb file, but produce no object file.  So we must check
4806 # if an object file was really produced to guard against this.
4807 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4808 if test x"$errors" = x && test -f conftest.$ac_objext; then
4809   acx_cv_cc_gcc_supports_ada=yes
4810 fi
4811 rm -f conftest.*
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4814 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4815
4816 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4817   have_gnat=yes
4818 else
4819   have_gnat=no
4820 fi
4821
4822
4823 # autoconf is lame and doesn't give us any substitution variable for this.
4824 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4825   NO_MINUS_C_MINUS_O=yes
4826 else
4827   OUTPUT_OPTION='-o $@'
4828 fi
4829
4830
4831
4832 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4833 # optimizations to be activated explicitly by the toplevel.
4834 case "$CC" in
4835   */prev-gcc/xgcc*) ;;
4836   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4837 esac
4838
4839
4840 # -------------------------
4841 # Check C compiler features
4842 # -------------------------
4843
4844
4845 ac_ext=c
4846 ac_cpp='$CPP $CPPFLAGS'
4847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4851 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4852 # On Suns, sometimes $CPP names a directory.
4853 if test -n "$CPP" && test -d "$CPP"; then
4854   CPP=
4855 fi
4856 if test -z "$CPP"; then
4857   if test "${ac_cv_prog_CPP+set}" = set; then :
4858   $as_echo_n "(cached) " >&6
4859 else
4860       # Double quotes because CPP needs to be expanded
4861     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4862     do
4863       ac_preproc_ok=false
4864 for ac_c_preproc_warn_flag in '' yes
4865 do
4866   # Use a header file that comes with gcc, so configuring glibc
4867   # with a fresh cross-compiler works.
4868   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4869   # <limits.h> exists even on freestanding compilers.
4870   # On the NeXT, cc -E runs the code through the compiler's parser,
4871   # not just through cpp. "Syntax error" is here to catch this case.
4872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h.  */
4874 #ifdef __STDC__
4875 # include <limits.h>
4876 #else
4877 # include <assert.h>
4878 #endif
4879                      Syntax error
4880 _ACEOF
4881 if ac_fn_c_try_cpp "$LINENO"; then :
4882
4883 else
4884   # Broken: fails on valid input.
4885 continue
4886 fi
4887 rm -f conftest.err conftest.$ac_ext
4888
4889   # OK, works on sane cases.  Now check whether nonexistent headers
4890   # can be detected and how.
4891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h.  */
4893 #include <ac_nonexistent.h>
4894 _ACEOF
4895 if ac_fn_c_try_cpp "$LINENO"; then :
4896   # Broken: success on invalid input.
4897 continue
4898 else
4899   # Passes both tests.
4900 ac_preproc_ok=:
4901 break
4902 fi
4903 rm -f conftest.err conftest.$ac_ext
4904
4905 done
4906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4907 rm -f conftest.err conftest.$ac_ext
4908 if $ac_preproc_ok; then :
4909   break
4910 fi
4911
4912     done
4913     ac_cv_prog_CPP=$CPP
4914
4915 fi
4916   CPP=$ac_cv_prog_CPP
4917 else
4918   ac_cv_prog_CPP=$CPP
4919 fi
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4921 $as_echo "$CPP" >&6; }
4922 ac_preproc_ok=false
4923 for ac_c_preproc_warn_flag in '' yes
4924 do
4925   # Use a header file that comes with gcc, so configuring glibc
4926   # with a fresh cross-compiler works.
4927   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4928   # <limits.h> exists even on freestanding compilers.
4929   # On the NeXT, cc -E runs the code through the compiler's parser,
4930   # not just through cpp. "Syntax error" is here to catch this case.
4931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h.  */
4933 #ifdef __STDC__
4934 # include <limits.h>
4935 #else
4936 # include <assert.h>
4937 #endif
4938                      Syntax error
4939 _ACEOF
4940 if ac_fn_c_try_cpp "$LINENO"; then :
4941
4942 else
4943   # Broken: fails on valid input.
4944 continue
4945 fi
4946 rm -f conftest.err conftest.$ac_ext
4947
4948   # OK, works on sane cases.  Now check whether nonexistent headers
4949   # can be detected and how.
4950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h.  */
4952 #include <ac_nonexistent.h>
4953 _ACEOF
4954 if ac_fn_c_try_cpp "$LINENO"; then :
4955   # Broken: success on invalid input.
4956 continue
4957 else
4958   # Passes both tests.
4959 ac_preproc_ok=:
4960 break
4961 fi
4962 rm -f conftest.err conftest.$ac_ext
4963
4964 done
4965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4966 rm -f conftest.err conftest.$ac_ext
4967 if $ac_preproc_ok; then :
4968
4969 else
4970   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4972 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4973 See \`config.log' for more details." "$LINENO" 5; }
4974 fi
4975
4976 ac_ext=c
4977 ac_cpp='$CPP $CPPFLAGS'
4978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981
4982
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4984 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4985 if test "${ac_cv_path_GREP+set}" = set; then :
4986   $as_echo_n "(cached) " >&6
4987 else
4988   if test -z "$GREP"; then
4989   ac_path_GREP_found=false
4990   # Loop through the user's path and test for each of PROGNAME-LIST
4991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4993 do
4994   IFS=$as_save_IFS
4995   test -z "$as_dir" && as_dir=.
4996     for ac_prog in grep ggrep; do
4997     for ac_exec_ext in '' $ac_executable_extensions; do
4998       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4999       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5000 # Check for GNU ac_path_GREP and select it if it is found.
5001   # Check for GNU $ac_path_GREP
5002 case `"$ac_path_GREP" --version 2>&1` in
5003 *GNU*)
5004   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5005 *)
5006   ac_count=0
5007   $as_echo_n 0123456789 >"conftest.in"
5008   while :
5009   do
5010     cat "conftest.in" "conftest.in" >"conftest.tmp"
5011     mv "conftest.tmp" "conftest.in"
5012     cp "conftest.in" "conftest.nl"
5013     $as_echo 'GREP' >> "conftest.nl"
5014     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5015     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5016     as_fn_arith $ac_count + 1 && ac_count=$as_val
5017     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5018       # Best one so far, save it but keep looking for a better one
5019       ac_cv_path_GREP="$ac_path_GREP"
5020       ac_path_GREP_max=$ac_count
5021     fi
5022     # 10*(2^10) chars as input seems more than enough
5023     test $ac_count -gt 10 && break
5024   done
5025   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5026 esac
5027
5028       $ac_path_GREP_found && break 3
5029     done
5030   done
5031   done
5032 IFS=$as_save_IFS
5033   if test -z "$ac_cv_path_GREP"; then
5034     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5035   fi
5036 else
5037   ac_cv_path_GREP=$GREP
5038 fi
5039
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5042 $as_echo "$ac_cv_path_GREP" >&6; }
5043  GREP="$ac_cv_path_GREP"
5044
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5047 $as_echo_n "checking for egrep... " >&6; }
5048 if test "${ac_cv_path_EGREP+set}" = set; then :
5049   $as_echo_n "(cached) " >&6
5050 else
5051   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5052    then ac_cv_path_EGREP="$GREP -E"
5053    else
5054      if test -z "$EGREP"; then
5055   ac_path_EGREP_found=false
5056   # Loop through the user's path and test for each of PROGNAME-LIST
5057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5059 do
5060   IFS=$as_save_IFS
5061   test -z "$as_dir" && as_dir=.
5062     for ac_prog in egrep; do
5063     for ac_exec_ext in '' $ac_executable_extensions; do
5064       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5065       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5066 # Check for GNU ac_path_EGREP and select it if it is found.
5067   # Check for GNU $ac_path_EGREP
5068 case `"$ac_path_EGREP" --version 2>&1` in
5069 *GNU*)
5070   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5071 *)
5072   ac_count=0
5073   $as_echo_n 0123456789 >"conftest.in"
5074   while :
5075   do
5076     cat "conftest.in" "conftest.in" >"conftest.tmp"
5077     mv "conftest.tmp" "conftest.in"
5078     cp "conftest.in" "conftest.nl"
5079     $as_echo 'EGREP' >> "conftest.nl"
5080     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5081     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5082     as_fn_arith $ac_count + 1 && ac_count=$as_val
5083     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5084       # Best one so far, save it but keep looking for a better one
5085       ac_cv_path_EGREP="$ac_path_EGREP"
5086       ac_path_EGREP_max=$ac_count
5087     fi
5088     # 10*(2^10) chars as input seems more than enough
5089     test $ac_count -gt 10 && break
5090   done
5091   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5092 esac
5093
5094       $ac_path_EGREP_found && break 3
5095     done
5096   done
5097   done
5098 IFS=$as_save_IFS
5099   if test -z "$ac_cv_path_EGREP"; then
5100     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5101   fi
5102 else
5103   ac_cv_path_EGREP=$EGREP
5104 fi
5105
5106    fi
5107 fi
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5109 $as_echo "$ac_cv_path_EGREP" >&6; }
5110  EGREP="$ac_cv_path_EGREP"
5111
5112
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5114 $as_echo_n "checking for ANSI C header files... " >&6; }
5115 if test "${ac_cv_header_stdc+set}" = set; then :
5116   $as_echo_n "(cached) " >&6
5117 else
5118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h.  */
5120 #include <stdlib.h>
5121 #include <stdarg.h>
5122 #include <string.h>
5123 #include <float.h>
5124
5125 int
5126 main ()
5127 {
5128
5129   ;
5130   return 0;
5131 }
5132 _ACEOF
5133 if ac_fn_c_try_compile "$LINENO"; then :
5134   ac_cv_header_stdc=yes
5135 else
5136   ac_cv_header_stdc=no
5137 fi
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5139
5140 if test $ac_cv_header_stdc = yes; then
5141   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h.  */
5144 #include <string.h>
5145
5146 _ACEOF
5147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5148   $EGREP "memchr" >/dev/null 2>&1; then :
5149
5150 else
5151   ac_cv_header_stdc=no
5152 fi
5153 rm -f conftest*
5154
5155 fi
5156
5157 if test $ac_cv_header_stdc = yes; then
5158   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h.  */
5161 #include <stdlib.h>
5162
5163 _ACEOF
5164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5165   $EGREP "free" >/dev/null 2>&1; then :
5166
5167 else
5168   ac_cv_header_stdc=no
5169 fi
5170 rm -f conftest*
5171
5172 fi
5173
5174 if test $ac_cv_header_stdc = yes; then
5175   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5176   if test "$cross_compiling" = yes; then :
5177   :
5178 else
5179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h.  */
5181 #include <ctype.h>
5182 #include <stdlib.h>
5183 #if ((' ' & 0x0FF) == 0x020)
5184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5186 #else
5187 # define ISLOWER(c) \
5188                    (('a' <= (c) && (c) <= 'i') \
5189                      || ('j' <= (c) && (c) <= 'r') \
5190                      || ('s' <= (c) && (c) <= 'z'))
5191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5192 #endif
5193
5194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5195 int
5196 main ()
5197 {
5198   int i;
5199   for (i = 0; i < 256; i++)
5200     if (XOR (islower (i), ISLOWER (i))
5201         || toupper (i) != TOUPPER (i))
5202       return 2;
5203   return 0;
5204 }
5205 _ACEOF
5206 if ac_fn_c_try_run "$LINENO"; then :
5207
5208 else
5209   ac_cv_header_stdc=no
5210 fi
5211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5212   conftest.$ac_objext conftest.beam conftest.$ac_ext
5213 fi
5214
5215 fi
5216 fi
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5218 $as_echo "$ac_cv_header_stdc" >&6; }
5219 if test $ac_cv_header_stdc = yes; then
5220
5221 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5222
5223 fi
5224
5225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5226 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5227                   inttypes.h stdint.h unistd.h
5228 do :
5229   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5230 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5231 "
5232 eval as_val=\$$as_ac_Header
5233    if test "x$as_val" = x""yes; then :
5234   cat >>confdefs.h <<_ACEOF
5235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5236 _ACEOF
5237
5238 fi
5239
5240 done
5241
5242
5243
5244   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5245 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5246   MINIX=yes
5247 else
5248   MINIX=
5249 fi
5250
5251
5252   if test "$MINIX" = yes; then
5253
5254 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5255
5256
5257 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5258
5259
5260 $as_echo "#define _MINIX 1" >>confdefs.h
5261
5262   fi
5263
5264
5265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5266 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5267 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5268   $as_echo_n "(cached) " >&6
5269 else
5270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h.  */
5272
5273 #         define __EXTENSIONS__ 1
5274           $ac_includes_default
5275 int
5276 main ()
5277 {
5278
5279   ;
5280   return 0;
5281 }
5282 _ACEOF
5283 if ac_fn_c_try_compile "$LINENO"; then :
5284   ac_cv_safe_to_define___extensions__=yes
5285 else
5286   ac_cv_safe_to_define___extensions__=no
5287 fi
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 fi
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5291 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5292   test $ac_cv_safe_to_define___extensions__ = yes &&
5293     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5294
5295   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5296
5297   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5298
5299   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5300
5301   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5302
5303
5304 ac_ext=c
5305 ac_cpp='$CPP $CPPFLAGS'
5306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5310 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5311 # On Suns, sometimes $CPP names a directory.
5312 if test -n "$CPP" && test -d "$CPP"; then
5313   CPP=
5314 fi
5315 if test -z "$CPP"; then
5316   if test "${ac_cv_prog_CPP+set}" = set; then :
5317   $as_echo_n "(cached) " >&6
5318 else
5319       # Double quotes because CPP needs to be expanded
5320     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5321     do
5322       ac_preproc_ok=false
5323 for ac_c_preproc_warn_flag in '' yes
5324 do
5325   # Use a header file that comes with gcc, so configuring glibc
5326   # with a fresh cross-compiler works.
5327   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328   # <limits.h> exists even on freestanding compilers.
5329   # On the NeXT, cc -E runs the code through the compiler's parser,
5330   # not just through cpp. "Syntax error" is here to catch this case.
5331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h.  */
5333 #ifdef __STDC__
5334 # include <limits.h>
5335 #else
5336 # include <assert.h>
5337 #endif
5338                      Syntax error
5339 _ACEOF
5340 if ac_fn_c_try_cpp "$LINENO"; then :
5341
5342 else
5343   # Broken: fails on valid input.
5344 continue
5345 fi
5346 rm -f conftest.err conftest.$ac_ext
5347
5348   # OK, works on sane cases.  Now check whether nonexistent headers
5349   # can be detected and how.
5350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h.  */
5352 #include <ac_nonexistent.h>
5353 _ACEOF
5354 if ac_fn_c_try_cpp "$LINENO"; then :
5355   # Broken: success on invalid input.
5356 continue
5357 else
5358   # Passes both tests.
5359 ac_preproc_ok=:
5360 break
5361 fi
5362 rm -f conftest.err conftest.$ac_ext
5363
5364 done
5365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5366 rm -f conftest.err conftest.$ac_ext
5367 if $ac_preproc_ok; then :
5368   break
5369 fi
5370
5371     done
5372     ac_cv_prog_CPP=$CPP
5373
5374 fi
5375   CPP=$ac_cv_prog_CPP
5376 else
5377   ac_cv_prog_CPP=$CPP
5378 fi
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5380 $as_echo "$CPP" >&6; }
5381 ac_preproc_ok=false
5382 for ac_c_preproc_warn_flag in '' yes
5383 do
5384   # Use a header file that comes with gcc, so configuring glibc
5385   # with a fresh cross-compiler works.
5386   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5387   # <limits.h> exists even on freestanding compilers.
5388   # On the NeXT, cc -E runs the code through the compiler's parser,
5389   # not just through cpp. "Syntax error" is here to catch this case.
5390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h.  */
5392 #ifdef __STDC__
5393 # include <limits.h>
5394 #else
5395 # include <assert.h>
5396 #endif
5397                      Syntax error
5398 _ACEOF
5399 if ac_fn_c_try_cpp "$LINENO"; then :
5400
5401 else
5402   # Broken: fails on valid input.
5403 continue
5404 fi
5405 rm -f conftest.err conftest.$ac_ext
5406
5407   # OK, works on sane cases.  Now check whether nonexistent headers
5408   # can be detected and how.
5409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h.  */
5411 #include <ac_nonexistent.h>
5412 _ACEOF
5413 if ac_fn_c_try_cpp "$LINENO"; then :
5414   # Broken: success on invalid input.
5415 continue
5416 else
5417   # Passes both tests.
5418 ac_preproc_ok=:
5419 break
5420 fi
5421 rm -f conftest.err conftest.$ac_ext
5422
5423 done
5424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5425 rm -f conftest.err conftest.$ac_ext
5426 if $ac_preproc_ok; then :
5427
5428 else
5429   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5431 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5432 See \`config.log' for more details." "$LINENO" 5; }
5433 fi
5434
5435 ac_ext=c
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5440
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5442 $as_echo_n "checking for inline... " >&6; }
5443 if test "${ac_cv_c_inline+set}" = set; then :
5444   $as_echo_n "(cached) " >&6
5445 else
5446   ac_cv_c_inline=no
5447 for ac_kw in inline __inline__ __inline; do
5448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h.  */
5450 #ifndef __cplusplus
5451 typedef int foo_t;
5452 static $ac_kw foo_t static_foo () {return 0; }
5453 $ac_kw foo_t foo () {return 0; }
5454 #endif
5455
5456 _ACEOF
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458   ac_cv_c_inline=$ac_kw
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461   test "$ac_cv_c_inline" != no && break
5462 done
5463
5464 fi
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5466 $as_echo "$ac_cv_c_inline" >&6; }
5467
5468 case $ac_cv_c_inline in
5469   inline | yes) ;;
5470   *)
5471     case $ac_cv_c_inline in
5472       no) ac_val=;;
5473       *) ac_val=$ac_cv_c_inline;;
5474     esac
5475     cat >>confdefs.h <<_ACEOF
5476 #ifndef __cplusplus
5477 #define inline $ac_val
5478 #endif
5479 _ACEOF
5480     ;;
5481 esac
5482
5483
5484 # sizeof(char) is 1 by definition.
5485 # The cast to long int works around a bug in the HP C Compiler
5486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5488 # This bug is HP SR number 8606223364.
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5490 $as_echo_n "checking size of void *... " >&6; }
5491 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5492   $as_echo_n "(cached) " >&6
5493 else
5494   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5495
5496 else
5497   if test "$ac_cv_type_void_p" = yes; then
5498      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5500 { as_fn_set_status 77
5501 as_fn_error "cannot compute sizeof (void *)
5502 See \`config.log' for more details." "$LINENO" 5; }; }
5503    else
5504      ac_cv_sizeof_void_p=0
5505    fi
5506 fi
5507
5508 fi
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5510 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5511
5512
5513
5514 cat >>confdefs.h <<_ACEOF
5515 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5516 _ACEOF
5517
5518
5519 # The cast to long int works around a bug in the HP C Compiler
5520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5522 # This bug is HP SR number 8606223364.
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5524 $as_echo_n "checking size of short... " >&6; }
5525 if test "${ac_cv_sizeof_short+set}" = set; then :
5526   $as_echo_n "(cached) " >&6
5527 else
5528   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5529
5530 else
5531   if test "$ac_cv_type_short" = yes; then
5532      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5534 { as_fn_set_status 77
5535 as_fn_error "cannot compute sizeof (short)
5536 See \`config.log' for more details." "$LINENO" 5; }; }
5537    else
5538      ac_cv_sizeof_short=0
5539    fi
5540 fi
5541
5542 fi
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5544 $as_echo "$ac_cv_sizeof_short" >&6; }
5545
5546
5547
5548 cat >>confdefs.h <<_ACEOF
5549 #define SIZEOF_SHORT $ac_cv_sizeof_short
5550 _ACEOF
5551
5552
5553 # The cast to long int works around a bug in the HP C Compiler
5554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5556 # This bug is HP SR number 8606223364.
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5558 $as_echo_n "checking size of int... " >&6; }
5559 if test "${ac_cv_sizeof_int+set}" = set; then :
5560   $as_echo_n "(cached) " >&6
5561 else
5562   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5563
5564 else
5565   if test "$ac_cv_type_int" = yes; then
5566      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5568 { as_fn_set_status 77
5569 as_fn_error "cannot compute sizeof (int)
5570 See \`config.log' for more details." "$LINENO" 5; }; }
5571    else
5572      ac_cv_sizeof_int=0
5573    fi
5574 fi
5575
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5578 $as_echo "$ac_cv_sizeof_int" >&6; }
5579
5580
5581
5582 cat >>confdefs.h <<_ACEOF
5583 #define SIZEOF_INT $ac_cv_sizeof_int
5584 _ACEOF
5585
5586
5587 # The cast to long int works around a bug in the HP C Compiler
5588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5590 # This bug is HP SR number 8606223364.
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5592 $as_echo_n "checking size of long... " >&6; }
5593 if test "${ac_cv_sizeof_long+set}" = set; then :
5594   $as_echo_n "(cached) " >&6
5595 else
5596   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5597
5598 else
5599   if test "$ac_cv_type_long" = yes; then
5600      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5602 { as_fn_set_status 77
5603 as_fn_error "cannot compute sizeof (long)
5604 See \`config.log' for more details." "$LINENO" 5; }; }
5605    else
5606      ac_cv_sizeof_long=0
5607    fi
5608 fi
5609
5610 fi
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5612 $as_echo "$ac_cv_sizeof_long" >&6; }
5613
5614
5615
5616 cat >>confdefs.h <<_ACEOF
5617 #define SIZEOF_LONG $ac_cv_sizeof_long
5618 _ACEOF
5619
5620
5621 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5622 if test "x$ac_cv_type_long_long" = x""yes; then :
5623
5624 cat >>confdefs.h <<_ACEOF
5625 #define HAVE_LONG_LONG 1
5626 _ACEOF
5627
5628 # The cast to long int works around a bug in the HP C Compiler
5629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5631 # This bug is HP SR number 8606223364.
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5633 $as_echo_n "checking size of long long... " >&6; }
5634 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5635   $as_echo_n "(cached) " >&6
5636 else
5637   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5638
5639 else
5640   if test "$ac_cv_type_long_long" = yes; then
5641      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5643 { as_fn_set_status 77
5644 as_fn_error "cannot compute sizeof (long long)
5645 See \`config.log' for more details." "$LINENO" 5; }; }
5646    else
5647      ac_cv_sizeof_long_long=0
5648    fi
5649 fi
5650
5651 fi
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5653 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5654
5655
5656
5657 cat >>confdefs.h <<_ACEOF
5658 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5659 _ACEOF
5660
5661
5662 fi
5663
5664 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5665 if test "x$ac_cv_type___int64" = x""yes; then :
5666
5667 cat >>confdefs.h <<_ACEOF
5668 #define HAVE___INT64 1
5669 _ACEOF
5670
5671 # The cast to long int works around a bug in the HP C Compiler
5672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5674 # This bug is HP SR number 8606223364.
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5676 $as_echo_n "checking size of __int64... " >&6; }
5677 if test "${ac_cv_sizeof___int64+set}" = set; then :
5678   $as_echo_n "(cached) " >&6
5679 else
5680   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5681
5682 else
5683   if test "$ac_cv_type___int64" = yes; then
5684      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5686 { as_fn_set_status 77
5687 as_fn_error "cannot compute sizeof (__int64)
5688 See \`config.log' for more details." "$LINENO" 5; }; }
5689    else
5690      ac_cv_sizeof___int64=0
5691    fi
5692 fi
5693
5694 fi
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5696 $as_echo "$ac_cv_sizeof___int64" >&6; }
5697
5698
5699
5700 cat >>confdefs.h <<_ACEOF
5701 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5702 _ACEOF
5703
5704
5705 fi
5706
5707
5708 # ---------------------
5709 # Warnings and checking
5710 # ---------------------
5711
5712 # Check $CC warning features (if it's GCC).
5713 # We want to use -pedantic, but we don't want warnings about
5714 # * 'long long'
5715 # * variadic macros
5716 # * overlong strings
5717 # So, we only use -pedantic if we can disable those warnings.
5718
5719 loose_warn=
5720 save_CFLAGS="$CFLAGS"
5721 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
5722   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5723
5724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5725 $as_echo_n "checking whether $CC supports $option... " >&6; }
5726 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
5727   $as_echo_n "(cached) " >&6
5728 else
5729   CFLAGS="$option"
5730     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h.  */
5732
5733 int
5734 main ()
5735 {
5736
5737   ;
5738   return 0;
5739 }
5740 _ACEOF
5741 if ac_fn_c_try_compile "$LINENO"; then :
5742   eval "$as_acx_Woption=yes"
5743 else
5744   eval "$as_acx_Woption=no"
5745 fi
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747
5748 fi
5749 eval ac_res=\$$as_acx_Woption
5750                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5751 $as_echo "$ac_res" >&6; }
5752   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5753   loose_warn="$loose_warn${loose_warn:+ }$option"
5754 fi
5755   done
5756 CFLAGS="$save_CFLAGS"
5757
5758 c_loose_warn=
5759 save_CFLAGS="$CFLAGS"
5760 for option in -Wstrict-prototypes -Wmissing-prototypes; do
5761   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5762
5763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5764 $as_echo_n "checking whether $CC supports $option... " >&6; }
5765 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
5766   $as_echo_n "(cached) " >&6
5767 else
5768   CFLAGS="$option"
5769     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h.  */
5771
5772 int
5773 main ()
5774 {
5775
5776   ;
5777   return 0;
5778 }
5779 _ACEOF
5780 if ac_fn_c_try_compile "$LINENO"; then :
5781   eval "$as_acx_Woption=yes"
5782 else
5783   eval "$as_acx_Woption=no"
5784 fi
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786
5787 fi
5788 eval ac_res=\$$as_acx_Woption
5789                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5790 $as_echo "$ac_res" >&6; }
5791   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5792   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
5793 fi
5794   done
5795 CFLAGS="$save_CFLAGS"
5796
5797 strict_warn=
5798 save_CFLAGS="$CFLAGS"
5799 for option in -Wmissing-format-attribute; do
5800   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5801
5802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5803 $as_echo_n "checking whether $CC supports $option... " >&6; }
5804 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
5805   $as_echo_n "(cached) " >&6
5806 else
5807   CFLAGS="$option"
5808     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h.  */
5810
5811 int
5812 main ()
5813 {
5814
5815   ;
5816   return 0;
5817 }
5818 _ACEOF
5819 if ac_fn_c_try_compile "$LINENO"; then :
5820   eval "$as_acx_Woption=yes"
5821 else
5822   eval "$as_acx_Woption=no"
5823 fi
5824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825
5826 fi
5827 eval ac_res=\$$as_acx_Woption
5828                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5829 $as_echo "$ac_res" >&6; }
5830   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5831   strict_warn="$strict_warn${strict_warn:+ }$option"
5832 fi
5833   done
5834 CFLAGS="$save_CFLAGS"
5835
5836 c_strict_warn=
5837 save_CFLAGS="$CFLAGS"
5838 for option in -Wold-style-definition -Wc++-compat; do
5839   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5840
5841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5842 $as_echo_n "checking whether $CC supports $option... " >&6; }
5843 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
5844   $as_echo_n "(cached) " >&6
5845 else
5846   CFLAGS="$option"
5847     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h.  */
5849
5850 int
5851 main ()
5852 {
5853
5854   ;
5855   return 0;
5856 }
5857 _ACEOF
5858 if ac_fn_c_try_compile "$LINENO"; then :
5859   eval "$as_acx_Woption=yes"
5860 else
5861   eval "$as_acx_Woption=no"
5862 fi
5863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864
5865 fi
5866 eval ac_res=\$$as_acx_Woption
5867                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5868 $as_echo "$ac_res" >&6; }
5869   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5870   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
5871 fi
5872   done
5873 CFLAGS="$save_CFLAGS"
5874
5875 if test "$GCC" = yes; then :
5876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
5877 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
5878 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
5879   $as_echo_n "(cached) " >&6
5880 else
5881   save_CFLAGS="$CFLAGS"
5882 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h.  */
5885
5886 int
5887 main ()
5888 {
5889
5890   ;
5891   return 0;
5892 }
5893 _ACEOF
5894 if ac_fn_c_try_compile "$LINENO"; then :
5895   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
5896 else
5897   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
5898 fi
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900 CFLAGS="$save_CFLAGS"
5901 fi
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
5903 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
5904 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
5905   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
5906 fi
5907
5908 fi
5909
5910 # Check whether --enable-werror-always was given.
5911 if test "${enable_werror_always+set}" = set; then :
5912   enableval=$enable_werror_always;
5913 else
5914   enable_werror_always=no
5915 fi
5916
5917 if test $enable_werror_always = yes; then :
5918   strict_warn="$strict_warn${strict_warn:+ }-Werror"
5919 fi
5920
5921
5922
5923 # The above macros do nothing if the compiler is not GCC.  However, the
5924 # Makefile has more goo to add other flags, so these variables are used
5925 # to enable warnings only for GCC.
5926 warn_cflags=
5927 warn_cxxflags=
5928 if test "x$GCC" = "xyes"; then
5929   warn_cflags='$(GCC_WARN_CFLAGS)'
5930   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
5931 fi
5932
5933
5934
5935 # Enable expensive internal checks
5936 is_release=
5937 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
5938   is_release=yes
5939 fi
5940
5941 # Check whether --enable-checking was given.
5942 if test "${enable_checking+set}" = set; then :
5943   enableval=$enable_checking; ac_checking_flags="${enableval}"
5944 else
5945
5946 # Determine the default checks.
5947 if test x$is_release = x ; then
5948   ac_checking_flags=yes
5949 else
5950   ac_checking_flags=release
5951 fi
5952 fi
5953
5954 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
5955 for check in release $ac_checking_flags
5956 do
5957         case $check in
5958         # these set all the flags to specific states
5959         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
5960                         ac_fold_checking= ; ac_gc_checking=1 ;
5961                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
5962                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
5963                         ac_tree_checking=1 ; ac_valgrind_checking= ;
5964                         ac_types_checking=1 ;;
5965         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
5966                         ac_fold_checking= ; ac_gc_checking= ;
5967                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
5968                         ac_rtlflag_checking= ; ac_runtime_checking= ;
5969                         ac_tree_checking= ; ac_valgrind_checking= ;
5970                         ac_types_checking= ;;
5971         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
5972                         ac_fold_checking=1 ; ac_gc_checking=1 ;
5973                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
5974                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
5975                         ac_tree_checking=1 ; ac_valgrind_checking= ;
5976                         ac_types_checking=1 ;;
5977         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
5978                         ac_fold_checking= ; ac_gc_checking= ;
5979                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
5980                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
5981                         ac_tree_checking= ; ac_valgrind_checking= ;
5982                         ac_types_checking= ;;
5983         # these enable particular checks
5984         assert)         ac_assert_checking=1 ;;
5985         df)             ac_df_checking=1 ;;
5986         fold)           ac_fold_checking=1 ;;
5987         gc)             ac_gc_checking=1 ;;
5988         gcac)           ac_gc_always_collect=1 ;;
5989         gimple)         ac_gimple_checking=1 ;;
5990         misc)           ac_checking=1 ;;
5991         rtl)            ac_rtl_checking=1 ;;
5992         rtlflag)        ac_rtlflag_checking=1 ;;
5993         runtime)        ac_runtime_checking=1 ;;
5994         tree)           ac_tree_checking=1 ;;
5995         types)          ac_types_checking=1 ;;
5996         valgrind)       ac_valgrind_checking=1 ;;
5997         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
5998         esac
5999 done
6000 IFS="$ac_save_IFS"
6001
6002 nocommon_flag=""
6003 if test x$ac_checking != x ; then
6004
6005 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6006
6007   nocommon_flag=-fno-common
6008 fi
6009
6010 if test x$ac_df_checking != x ; then
6011
6012 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6013
6014 fi
6015 if test x$ac_assert_checking != x ; then
6016
6017 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6018
6019 fi
6020 if test x$ac_gimple_checking != x ; then
6021
6022 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6023
6024 fi
6025
6026 if test x$ac_runtime_checking != x ; then
6027
6028 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6029
6030 fi
6031 if test x$ac_tree_checking != x ; then
6032
6033 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6034
6035   TREEBROWSER=tree-browser.o
6036 fi
6037 if test x$ac_types_checking != x ; then
6038
6039 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6040
6041 fi
6042
6043 if test x$ac_rtl_checking != x ; then
6044
6045 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6046
6047 fi
6048 if test x$ac_rtlflag_checking != x ; then
6049
6050 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6051
6052 fi
6053 if test x$ac_gc_checking != x ; then
6054
6055 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6056
6057 fi
6058 if test x$ac_gc_always_collect != x ; then
6059
6060 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6061
6062 fi
6063 if test x$ac_fold_checking != x ; then
6064
6065 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6066
6067 fi
6068 valgrind_path_defines=
6069 valgrind_command=
6070
6071 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6072 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6073   have_valgrind_h=yes
6074 else
6075   have_valgrind_h=no
6076 fi
6077
6078
6079
6080 if test x$ac_valgrind_checking != x ; then
6081   # It is certainly possible that there's valgrind but no valgrind.h.
6082   # GCC relies on making annotations so we must have both.
6083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6084 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h.  */
6087 #include <valgrind/memcheck.h>
6088 #ifndef VALGRIND_DISCARD
6089 #error VALGRIND_DISCARD not defined
6090 #endif
6091 _ACEOF
6092 if ac_fn_c_try_cpp "$LINENO"; then :
6093   gcc_cv_header_valgrind_memcheck_h=yes
6094 else
6095   gcc_cv_header_valgrind_memcheck_h=no
6096 fi
6097 rm -f conftest.err conftest.$ac_ext
6098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6099 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6101 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h.  */
6104 #include <memcheck.h>
6105 #ifndef VALGRIND_DISCARD
6106 #error VALGRIND_DISCARD not defined
6107 #endif
6108 _ACEOF
6109 if ac_fn_c_try_cpp "$LINENO"; then :
6110   gcc_cv_header_memcheck_h=yes
6111 else
6112   gcc_cv_header_memcheck_h=no
6113 fi
6114 rm -f conftest.err conftest.$ac_ext
6115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6116 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6117
6118 # Prepare PATH_SEPARATOR.
6119 # The user is always right.
6120 if test "${PATH_SEPARATOR+set}" != set; then
6121   echo "#! /bin/sh" >conf$$.sh
6122   echo  "exit 0"   >>conf$$.sh
6123   chmod +x conf$$.sh
6124   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6125     PATH_SEPARATOR=';'
6126   else
6127     PATH_SEPARATOR=:
6128   fi
6129   rm -f conf$$.sh
6130 fi
6131
6132 # Find out how to test for executable files. Don't use a zero-byte file,
6133 # as systems may use methods other than mode bits to determine executability.
6134 cat >conf$$.file <<_ASEOF
6135 #! /bin/sh
6136 exit 0
6137 _ASEOF
6138 chmod +x conf$$.file
6139 if test -x conf$$.file >/dev/null 2>&1; then
6140   ac_executable_p="test -x"
6141 else
6142   ac_executable_p="test -f"
6143 fi
6144 rm -f conf$$.file
6145
6146 # Extract the first word of "valgrind", so it can be a program name with args.
6147 set dummy valgrind; ac_word=$2
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6149 $as_echo_n "checking for $ac_word... " >&6; }
6150 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6151   $as_echo_n "(cached) " >&6
6152 else
6153   case "$valgrind_path" in
6154   [\\/]* | ?:[\\/]*)
6155     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6156     ;;
6157   *)
6158     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6159     for ac_dir in $PATH; do
6160       IFS="$ac_save_IFS"
6161       test -z "$ac_dir" && ac_dir=.
6162       for ac_exec_ext in '' $ac_executable_extensions; do
6163         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6164           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6165             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6166             break 2
6167           fi
6168         fi
6169       done
6170     done
6171     IFS="$ac_save_IFS"
6172     ;;
6173 esac
6174 fi
6175 valgrind_path="$ac_cv_path_valgrind_path"
6176 if test -n "$valgrind_path"; then
6177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6178 $as_echo "$valgrind_path" >&6; }
6179 else
6180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }
6182 fi
6183
6184   if test "x$valgrind_path" = "x" \
6185     || (test $have_valgrind_h = no \
6186         && test $gcc_cv_header_memcheck_h = no \
6187         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6188         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6189   fi
6190   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6191   valgrind_command="$valgrind_path -q"
6192
6193 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6194
6195   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6196
6197 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6198
6199   fi
6200   if test $gcc_cv_header_memcheck_h = yes; then
6201
6202 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6203
6204   fi
6205 fi
6206
6207
6208
6209 # Enable code coverage collection
6210 # Check whether --enable-coverage was given.
6211 if test "${enable_coverage+set}" = set; then :
6212   enableval=$enable_coverage; case "${enableval}" in
6213   yes|noopt)
6214     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6215     ;;
6216   opt)
6217     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6218     ;;
6219   no)
6220     # a.k.a. --disable-coverage
6221     coverage_flags=""
6222     ;;
6223   *)
6224     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6225     ;;
6226 esac
6227 else
6228   coverage_flags=""
6229 fi
6230
6231
6232
6233 # Check whether --enable-gather-detailed-mem-stats was given.
6234 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6235   enableval=$enable_gather_detailed_mem_stats;
6236 else
6237   enable_gather_detailed_mem_stats=no
6238 fi
6239
6240 if test x$enable_gather_detailed_mem_stats = xyes ; then
6241
6242 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6243
6244 fi
6245
6246 # -------------------------------
6247 # Miscenalleous configure options
6248 # -------------------------------
6249
6250 # See if we are building gcc with C++.
6251 # Check whether --enable-build-with-cxx was given.
6252 if test "${enable_build_with_cxx+set}" = set; then :
6253   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6254 else
6255   ENABLE_BUILD_WITH_CXX=no
6256 fi
6257
6258
6259
6260 # With stabs
6261
6262 # Check whether --with-stabs was given.
6263 if test "${with_stabs+set}" = set; then :
6264   withval=$with_stabs; stabs="$with_stabs"
6265 else
6266   stabs=no
6267 fi
6268
6269
6270 # Determine whether or not multilibs are enabled.
6271 # Check whether --enable-multilib was given.
6272 if test "${enable_multilib+set}" = set; then :
6273   enableval=$enable_multilib;
6274 else
6275   enable_multilib=yes
6276 fi
6277
6278
6279
6280 # Enable __cxa_atexit for C++.
6281 # Check whether --enable-__cxa_atexit was given.
6282 if test "${enable___cxa_atexit+set}" = set; then :
6283   enableval=$enable___cxa_atexit;
6284 fi
6285
6286
6287 # Enable C extension for decimal float if target supports it.
6288 # Check whether --enable-decimal-float was given.
6289 if test "${enable_decimal_float+set}" = set; then :
6290   enableval=$enable_decimal_float;
6291   case $enable_decimal_float in
6292     yes | no | bid | dpd) ;;
6293     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6294 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6295   esac
6296
6297 else
6298
6299   case $target in
6300     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6301       enable_decimal_float=yes
6302       ;;
6303     *)
6304       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6305 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6306       enable_decimal_float=no
6307       ;;
6308   esac
6309
6310 fi
6311
6312
6313 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6314
6315 cat >>confdefs.h <<_ACEOF
6316 #define ENABLE_DECIMAL_FLOAT $dfp
6317 _ACEOF
6318
6319
6320 # x86's use BID format instead of DPD
6321 case x$enable_decimal_float in
6322   xyes)
6323     case $target in
6324       i?86*-*-linux* | x86_64*-*-linux*)
6325         enable_decimal_float=bid
6326         ;;
6327       *)
6328         enable_decimal_float=dpd
6329         ;;
6330     esac
6331     ;;
6332   xno)
6333     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6334     # dependency on libdecnumber.
6335     enable_decimal_float=dpd
6336     ;;
6337 esac
6338
6339
6340 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6341
6342 cat >>confdefs.h <<_ACEOF
6343 #define ENABLE_DECIMAL_BID_FORMAT $bid
6344 _ACEOF
6345
6346
6347 # Enable C extension for fixed-point arithmetic.
6348 # Check whether --enable-fixed-point was given.
6349 if test "${enable_fixed_point+set}" = set; then :
6350   enableval=$enable_fixed_point;
6351
6352 else
6353
6354   case $target in
6355     mips*-*-*)
6356       case $host in
6357         mips*-sgi-irix*)
6358           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6359 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6360           enable_fixed_point=no
6361           ;;
6362         *)
6363           enable_fixed_point=yes
6364           ;;
6365       esac
6366       ;;
6367     *)
6368       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6369 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6370       enable_fixed_point=no
6371       ;;
6372   esac
6373
6374 fi
6375
6376
6377
6378 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6379
6380 cat >>confdefs.h <<_ACEOF
6381 #define ENABLE_FIXED_POINT $fixedpoint
6382 _ACEOF
6383
6384
6385 # Enable threads
6386 # Pass with no value to take the default
6387 # Pass with a value to specify a thread package
6388 # Check whether --enable-threads was given.
6389 if test "${enable_threads+set}" = set; then :
6390   enableval=$enable_threads;
6391 else
6392   enable_threads=''
6393 fi
6394
6395
6396 # Check whether --enable-tls was given.
6397 if test "${enable_tls+set}" = set; then :
6398   enableval=$enable_tls;
6399   case $enable_tls in
6400     yes | no) ;;
6401     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6402 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6403   esac
6404
6405 else
6406   enable_tls=''
6407 fi
6408
6409
6410 # Check whether --enable-objc-gc was given.
6411 if test "${enable_objc_gc+set}" = set; then :
6412   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6413         objc_boehm_gc=''
6414 else
6415         objc_boehm_gc=1
6416 fi
6417 else
6418   objc_boehm_gc=''
6419 fi
6420
6421
6422
6423 # Check whether --with-dwarf2 was given.
6424 if test "${with_dwarf2+set}" = set; then :
6425   withval=$with_dwarf2; dwarf2="$with_dwarf2"
6426 else
6427   dwarf2=no
6428 fi
6429
6430
6431 # Check whether --enable-shared was given.
6432 if test "${enable_shared+set}" = set; then :
6433   enableval=$enable_shared;
6434   case $enable_shared in
6435   yes | no) ;;
6436   *)
6437     enable_shared=no
6438     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6439     for pkg in $enableval; do
6440       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6441         enable_shared=yes
6442       fi
6443     done
6444     IFS="$ac_save_ifs"
6445     ;;
6446   esac
6447
6448 else
6449   enable_shared=yes
6450 fi
6451
6452
6453
6454
6455 # Check whether --with-build-sysroot was given.
6456 if test "${with_build_sysroot+set}" = set; then :
6457   withval=$with_build_sysroot;
6458 fi
6459
6460
6461
6462 # Check whether --with-sysroot was given.
6463 if test "${with_sysroot+set}" = set; then :
6464   withval=$with_sysroot;
6465  case ${with_sysroot} in
6466  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6467  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6468  esac
6469
6470  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6471  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6472
6473  if test "x$prefix" = xNONE; then
6474   test_prefix=/usr/local
6475  else
6476   test_prefix=$prefix
6477  fi
6478  if test "x$exec_prefix" = xNONE; then
6479   test_exec_prefix=$test_prefix
6480  else
6481   test_exec_prefix=$exec_prefix
6482  fi
6483  case ${TARGET_SYSTEM_ROOT} in
6484  "${test_prefix}"|"${test_prefix}/"*|\
6485  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6486  '${prefix}'|'${prefix}/'*|\
6487  '${exec_prefix}'|'${exec_prefix}/'*)
6488    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6489    TARGET_SYSTEM_ROOT_DEFINE="$t"
6490    ;;
6491  esac
6492
6493 else
6494
6495  TARGET_SYSTEM_ROOT=
6496  TARGET_SYSTEM_ROOT_DEFINE=
6497  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6498
6499 fi
6500
6501
6502
6503
6504
6505 # Build with intermodule optimisations
6506 # Check whether --enable-intermodule was given.
6507 if test "${enable_intermodule+set}" = set; then :
6508   enableval=$enable_intermodule; case ${enable_intermodule} in
6509   yes) onestep="-onestep";;
6510   *) onestep="";;
6511 esac
6512 else
6513   onestep=""
6514 fi
6515
6516
6517
6518
6519
6520 # Check whether --with-pkgversion was given.
6521 if test "${with_pkgversion+set}" = set; then :
6522   withval=$with_pkgversion; case "$withval" in
6523       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6524       no)  PKGVERSION= ;;
6525       *)   PKGVERSION="($withval) " ;;
6526      esac
6527 else
6528   PKGVERSION="(GCC) "
6529
6530 fi
6531
6532
6533
6534
6535
6536 # Check whether --with-bugurl was given.
6537 if test "${with_bugurl+set}" = set; then :
6538   withval=$with_bugurl; case "$withval" in
6539       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6540       no)  BUGURL=
6541            ;;
6542       *)   BUGURL="$withval"
6543            ;;
6544      esac
6545 else
6546   BUGURL="http://gcc.gnu.org/bugs.html"
6547
6548 fi
6549
6550   case ${BUGURL} in
6551   "")
6552     REPORT_BUGS_TO=
6553     REPORT_BUGS_TEXI=
6554     ;;
6555   *)
6556     REPORT_BUGS_TO="<$BUGURL>"
6557     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6558     ;;
6559   esac;
6560
6561
6562
6563
6564 # Sanity check enable_languages in case someone does not run the toplevel
6565 # configure # script.
6566 # Check whether --enable-languages was given.
6567 if test "${enable_languages+set}" = set; then :
6568   enableval=$enable_languages; case ,${enable_languages}, in
6569        ,,|,yes,)
6570                 # go safe -- we cannot be much sure without the toplevel
6571                 # configure's
6572                 # analysis of which target libs are present and usable
6573                 enable_languages=c
6574                 ;;
6575          *,all,*)
6576                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6577                 ;;
6578         *,c,*)
6579                 ;;
6580         *)
6581                 enable_languages=c,${enable_languages}
6582                 ;;
6583 esac
6584 else
6585   enable_languages=c
6586 fi
6587
6588
6589 # Used by documentation targets
6590
6591
6592
6593
6594
6595 # Check whether --with-multilib-list was given.
6596 if test "${with_multilib_list+set}" = set; then :
6597   withval=$with_multilib_list; :
6598 else
6599   with_multilib_list=default
6600 fi
6601
6602
6603 # -------------------------
6604 # Checks for other programs
6605 # -------------------------
6606
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6608 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6609 set x ${MAKE-make}
6610 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6611 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6612   $as_echo_n "(cached) " >&6
6613 else
6614   cat >conftest.make <<\_ACEOF
6615 SHELL = /bin/sh
6616 all:
6617         @echo '@@@%%%=$(MAKE)=@@@%%%'
6618 _ACEOF
6619 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6620 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6621   *@@@%%%=?*=@@@%%%*)
6622     eval ac_cv_prog_make_${ac_make}_set=yes;;
6623   *)
6624     eval ac_cv_prog_make_${ac_make}_set=no;;
6625 esac
6626 rm -f conftest.make
6627 fi
6628 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6630 $as_echo "yes" >&6; }
6631   SET_MAKE=
6632 else
6633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6635   SET_MAKE="MAKE=${MAKE-make}"
6636 fi
6637
6638
6639 # Find some useful tools
6640 for ac_prog in gawk mawk nawk awk
6641 do
6642   # Extract the first word of "$ac_prog", so it can be a program name with args.
6643 set dummy $ac_prog; ac_word=$2
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645 $as_echo_n "checking for $ac_word... " >&6; }
6646 if test "${ac_cv_prog_AWK+set}" = set; then :
6647   $as_echo_n "(cached) " >&6
6648 else
6649   if test -n "$AWK"; then
6650   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6651 else
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in $PATH
6654 do
6655   IFS=$as_save_IFS
6656   test -z "$as_dir" && as_dir=.
6657     for ac_exec_ext in '' $ac_executable_extensions; do
6658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659     ac_cv_prog_AWK="$ac_prog"
6660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661     break 2
6662   fi
6663 done
6664   done
6665 IFS=$as_save_IFS
6666
6667 fi
6668 fi
6669 AWK=$ac_cv_prog_AWK
6670 if test -n "$AWK"; then
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6672 $as_echo "$AWK" >&6; }
6673 else
6674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6676 fi
6677
6678
6679   test -n "$AWK" && break
6680 done
6681
6682 # We need awk to create options.c and options.h.
6683 # Bail out if it's missing.
6684 case ${AWK} in
6685   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
6686 esac
6687
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6689 $as_echo_n "checking whether ln -s works... " >&6; }
6690 if test "${gcc_cv_prog_LN_S+set}" = set; then :
6691   $as_echo_n "(cached) " >&6
6692 else
6693   rm -f conftestdata_t
6694 echo >conftestdata_f
6695 if ln -s conftestdata_f conftestdata_t 2>/dev/null
6696 then
6697   gcc_cv_prog_LN_S="ln -s"
6698 else
6699   if ln conftestdata_f conftestdata_t 2>/dev/null
6700   then
6701     gcc_cv_prog_LN_S=ln
6702   else
6703     if cp -p conftestdata_f conftestdata_t 2>/dev/null
6704     then
6705       gcc_cv_prog_LN_S="cp -p"
6706     else
6707       gcc_cv_prog_LN_S=cp
6708     fi
6709   fi
6710 fi
6711 rm -f conftestdata_f conftestdata_t
6712
6713 fi
6714 LN_S="$gcc_cv_prog_LN_S"
6715 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
6716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6717 $as_echo "yes" >&6; }
6718 else
6719   if test "$gcc_cv_prog_LN_S" = "ln"; then
6720     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
6721 $as_echo "no, using ln" >&6; }
6722   else
6723     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
6724 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
6725   fi
6726 fi
6727
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
6729 $as_echo_n "checking whether ln works... " >&6; }
6730 if test "${acx_cv_prog_LN+set}" = set; then :
6731   $as_echo_n "(cached) " >&6
6732 else
6733   rm -f conftestdata_t
6734 echo >conftestdata_f
6735 if ln conftestdata_f conftestdata_t 2>/dev/null
6736 then
6737   acx_cv_prog_LN=ln
6738 else
6739   acx_cv_prog_LN=no
6740 fi
6741 rm -f conftestdata_f conftestdata_t
6742
6743 fi
6744 if test $acx_cv_prog_LN = no; then
6745   LN="$LN_S"
6746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
6747 $as_echo "no, using $LN" >&6; }
6748 else
6749   LN="$acx_cv_prog_LN"
6750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6751 $as_echo "yes" >&6; }
6752 fi
6753
6754 if test -n "$ac_tool_prefix"; then
6755   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6756 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 $as_echo_n "checking for $ac_word... " >&6; }
6759 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6760   $as_echo_n "(cached) " >&6
6761 else
6762   if test -n "$RANLIB"; then
6763   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6764 else
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768   IFS=$as_save_IFS
6769   test -z "$as_dir" && as_dir=.
6770     for ac_exec_ext in '' $ac_executable_extensions; do
6771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6772     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774     break 2
6775   fi
6776 done
6777   done
6778 IFS=$as_save_IFS
6779
6780 fi
6781 fi
6782 RANLIB=$ac_cv_prog_RANLIB
6783 if test -n "$RANLIB"; then
6784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6785 $as_echo "$RANLIB" >&6; }
6786 else
6787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6789 fi
6790
6791
6792 fi
6793 if test -z "$ac_cv_prog_RANLIB"; then
6794   ac_ct_RANLIB=$RANLIB
6795   # Extract the first word of "ranlib", so it can be a program name with args.
6796 set dummy ranlib; ac_word=$2
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 $as_echo_n "checking for $ac_word... " >&6; }
6799 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6800   $as_echo_n "(cached) " >&6
6801 else
6802   if test -n "$ac_ct_RANLIB"; then
6803   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6804 else
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6807 do
6808   IFS=$as_save_IFS
6809   test -z "$as_dir" && as_dir=.
6810     for ac_exec_ext in '' $ac_executable_extensions; do
6811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6812     ac_cv_prog_ac_ct_RANLIB="ranlib"
6813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6814     break 2
6815   fi
6816 done
6817   done
6818 IFS=$as_save_IFS
6819
6820 fi
6821 fi
6822 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6823 if test -n "$ac_ct_RANLIB"; then
6824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6825 $as_echo "$ac_ct_RANLIB" >&6; }
6826 else
6827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 $as_echo "no" >&6; }
6829 fi
6830
6831   if test "x$ac_ct_RANLIB" = x; then
6832     RANLIB=":"
6833   else
6834     case $cross_compiling:$ac_tool_warned in
6835 yes:)
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6838 ac_tool_warned=yes ;;
6839 esac
6840     RANLIB=$ac_ct_RANLIB
6841   fi
6842 else
6843   RANLIB="$ac_cv_prog_RANLIB"
6844 fi
6845
6846 case "${host}" in
6847 *-*-darwin*)
6848   # By default, the Darwin ranlib will not treat common symbols as
6849   # definitions when  building the archive table of contents.  Other
6850   # ranlibs do that; pass an option to the Darwin ranlib that makes
6851   # it behave similarly.
6852   ranlib_flags="-c"
6853   ;;
6854 *)
6855   ranlib_flags=""
6856 esac
6857
6858
6859 # Find a good install program.  We prefer a C program (faster),
6860 # so one script is as good as another.  But avoid the broken or
6861 # incompatible versions:
6862 # SysV /etc/install, /usr/sbin/install
6863 # SunOS /usr/etc/install
6864 # IRIX /sbin/install
6865 # AIX /bin/install
6866 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6867 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6868 # ./install, which can be erroneously created by make from ./install.sh.
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
6870 $as_echo_n "checking for a BSD compatible install... " >&6; }
6871 if test -z "$INSTALL"; then
6872 if test "${ac_cv_path_install+set}" = set; then :
6873   $as_echo_n "(cached) " >&6
6874 else
6875     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
6876   for ac_dir in $PATH; do
6877     # Account for people who put trailing slashes in PATH elements.
6878     case "$ac_dir/" in
6879     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6880     *)
6881       # OSF1 and SCO ODT 3.0 have their own names for install.
6882       for ac_prog in ginstall scoinst install; do
6883         if test -f $ac_dir/$ac_prog; then
6884           if test $ac_prog = install &&
6885             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6886             # AIX install.  It has an incompatible calling convention.
6887             # OSF/1 installbsd also uses dspmsg, but is usable.
6888             :
6889           else
6890             ac_cv_path_install="$ac_dir/$ac_prog -c"
6891             break 2
6892           fi
6893         fi
6894       done
6895       ;;
6896     esac
6897   done
6898   IFS="$ac_save_IFS"
6899
6900 fi
6901   if test "${ac_cv_path_install+set}" = set; then
6902     INSTALL="$ac_cv_path_install"
6903   else
6904     # As a last resort, use the slow shell script.  We don't cache a
6905     # path for INSTALL within a source directory, because that will
6906     # break other packages using the cache if that directory is
6907     # removed, or if the path is relative.
6908     INSTALL="$ac_install_sh"
6909   fi
6910 fi
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6912 $as_echo "$INSTALL" >&6; }
6913
6914 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6915 # It thinks the first close brace ends the variable substitution.
6916 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6917
6918 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6919
6920
6921 # See if cmp has --ignore-initial.
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
6923 $as_echo_n "checking for cmp's capabilities... " >&6; }
6924 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
6925   $as_echo_n "(cached) " >&6
6926 else
6927    echo abfoo >t1
6928   echo cdfoo >t2
6929   gcc_cv_prog_cmp_skip=slowcompare
6930   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
6931     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6932       :
6933     else
6934       gcc_cv_prog_cmp_skip=gnucompare
6935     fi
6936   fi
6937   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
6938     if cmp t1 t2 2 2 > /dev/null 2>&1; then
6939       if cmp t1 t2 1 1 > /dev/null 2>&1; then
6940         :
6941       else
6942         gcc_cv_prog_cmp_skip=fastcompare
6943       fi
6944     fi
6945   fi
6946   rm t1 t2
6947
6948 fi
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
6950 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
6951 make_compare_target=$gcc_cv_prog_cmp_skip
6952
6953
6954
6955 # See if we have the mktemp command.
6956 # Extract the first word of "mktemp", so it can be a program name with args.
6957 set dummy mktemp; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
6961   $as_echo_n "(cached) " >&6
6962 else
6963   if test -n "$have_mktemp_command"; then
6964   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6968 do
6969   IFS=$as_save_IFS
6970   test -z "$as_dir" && as_dir=.
6971     for ac_exec_ext in '' $ac_executable_extensions; do
6972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973     ac_cv_prog_have_mktemp_command="yes"
6974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975     break 2
6976   fi
6977 done
6978   done
6979 IFS=$as_save_IFS
6980
6981   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
6982 fi
6983 fi
6984 have_mktemp_command=$ac_cv_prog_have_mktemp_command
6985 if test -n "$have_mktemp_command"; then
6986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
6987 $as_echo "$have_mktemp_command" >&6; }
6988 else
6989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6991 fi
6992
6993
6994
6995 # See if makeinfo has been installed and is modern enough
6996 # that we can use it.
6997
6998   # Extract the first word of "makeinfo", so it can be a program name with args.
6999 set dummy makeinfo; ac_word=$2
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001 $as_echo_n "checking for $ac_word... " >&6; }
7002 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7003   $as_echo_n "(cached) " >&6
7004 else
7005   if test -n "$MAKEINFO"; then
7006   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7007 else
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7010 do
7011   IFS=$as_save_IFS
7012   test -z "$as_dir" && as_dir=.
7013     for ac_exec_ext in '' $ac_executable_extensions; do
7014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7015     ac_cv_prog_MAKEINFO="makeinfo"
7016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7017     break 2
7018   fi
7019 done
7020   done
7021 IFS=$as_save_IFS
7022
7023 fi
7024 fi
7025 MAKEINFO=$ac_cv_prog_MAKEINFO
7026 if test -n "$MAKEINFO"; then
7027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7028 $as_echo "$MAKEINFO" >&6; }
7029 else
7030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031 $as_echo "no" >&6; }
7032 fi
7033
7034
7035   if test -n "$MAKEINFO"; then
7036     # Found it, now check the version.
7037     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7038 $as_echo_n "checking for modern makeinfo... " >&6; }
7039 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7040   $as_echo_n "(cached) " >&6
7041 else
7042   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7043                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7044
7045                     case $ac_prog_version in
7046                       '')  gcc_cv_prog_makeinfo_modern=no;;
7047                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7048                       *)   gcc_cv_prog_makeinfo_modern=no;;
7049                     esac
7050
7051 fi
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7053 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7054   else
7055     gcc_cv_prog_makeinfo_modern=no
7056   fi
7057   if test $gcc_cv_prog_makeinfo_modern = no; then
7058     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7059   fi
7060
7061 if test $gcc_cv_prog_makeinfo_modern = no; then
7062   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7063 *** Makeinfo is missing or too old.
7064 *** Info documentation will not be built." >&5
7065 $as_echo "$as_me: WARNING:
7066 *** Makeinfo is missing or too old.
7067 *** Info documentation will not be built." >&2;}
7068   BUILD_INFO=
7069 else
7070   BUILD_INFO=info
7071 fi
7072
7073
7074 # Is pod2man recent enough to regenerate manpages?
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7076 $as_echo_n "checking for recent Pod::Man... " >&6; }
7077 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7079 $as_echo "yes" >&6; }
7080   GENERATED_MANPAGES=generated-manpages
7081 else
7082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7084   GENERATED_MANPAGES=
7085 fi
7086
7087
7088 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7089
7090 # How about lex?
7091 for ac_prog in flex
7092 do
7093   # Extract the first word of "$ac_prog", so it can be a program name with args.
7094 set dummy $ac_prog; ac_word=$2
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096 $as_echo_n "checking for $ac_word... " >&6; }
7097 if test "${ac_cv_prog_FLEX+set}" = set; then :
7098   $as_echo_n "(cached) " >&6
7099 else
7100   if test -n "$FLEX"; then
7101   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7102 else
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7105 do
7106   IFS=$as_save_IFS
7107   test -z "$as_dir" && as_dir=.
7108     for ac_exec_ext in '' $ac_executable_extensions; do
7109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7110     ac_cv_prog_FLEX="$ac_prog"
7111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7112     break 2
7113   fi
7114 done
7115   done
7116 IFS=$as_save_IFS
7117
7118 fi
7119 fi
7120 FLEX=$ac_cv_prog_FLEX
7121 if test -n "$FLEX"; then
7122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7123 $as_echo "$FLEX" >&6; }
7124 else
7125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7127 fi
7128
7129
7130   test -n "$FLEX" && break
7131 done
7132 test -n "$FLEX" || FLEX="$MISSING flex"
7133
7134
7135 # Bison?
7136 for ac_prog in bison
7137 do
7138   # Extract the first word of "$ac_prog", so it can be a program name with args.
7139 set dummy $ac_prog; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if test "${ac_cv_prog_BISON+set}" = set; then :
7143   $as_echo_n "(cached) " >&6
7144 else
7145   if test -n "$BISON"; then
7146   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151   IFS=$as_save_IFS
7152   test -z "$as_dir" && as_dir=.
7153     for ac_exec_ext in '' $ac_executable_extensions; do
7154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155     ac_cv_prog_BISON="$ac_prog"
7156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157     break 2
7158   fi
7159 done
7160   done
7161 IFS=$as_save_IFS
7162
7163 fi
7164 fi
7165 BISON=$ac_cv_prog_BISON
7166 if test -n "$BISON"; then
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7168 $as_echo "$BISON" >&6; }
7169 else
7170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7172 fi
7173
7174
7175   test -n "$BISON" && break
7176 done
7177 test -n "$BISON" || BISON="$MISSING bison"
7178
7179
7180 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7181 # check for build == host before using them.
7182
7183 # NM
7184 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7185   && test -d ../binutils ; then
7186   NM='$(objdir)/../binutils/nm-new'
7187 else
7188   # Extract the first word of "nm", so it can be a program name with args.
7189 set dummy nm; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if test "${ac_cv_prog_NM+set}" = set; then :
7193   $as_echo_n "(cached) " >&6
7194 else
7195   if test -n "$NM"; then
7196   ac_cv_prog_NM="$NM" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201   IFS=$as_save_IFS
7202   test -z "$as_dir" && as_dir=.
7203     for ac_exec_ext in '' $ac_executable_extensions; do
7204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7205     ac_cv_prog_NM="nm"
7206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207     break 2
7208   fi
7209 done
7210   done
7211 IFS=$as_save_IFS
7212
7213   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7214 fi
7215 fi
7216 NM=$ac_cv_prog_NM
7217 if test -n "$NM"; then
7218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7219 $as_echo "$NM" >&6; }
7220 else
7221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7223 fi
7224
7225
7226 fi
7227
7228 # AR
7229 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7230   && test -d ../binutils ; then
7231   AR='$(objdir)/../binutils/ar'
7232 else
7233   # Extract the first word of "ar", so it can be a program name with args.
7234 set dummy ar; ac_word=$2
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236 $as_echo_n "checking for $ac_word... " >&6; }
7237 if test "${ac_cv_prog_AR+set}" = set; then :
7238   $as_echo_n "(cached) " >&6
7239 else
7240   if test -n "$AR"; then
7241   ac_cv_prog_AR="$AR" # Let the user override the test.
7242 else
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7245 do
7246   IFS=$as_save_IFS
7247   test -z "$as_dir" && as_dir=.
7248     for ac_exec_ext in '' $ac_executable_extensions; do
7249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7250     ac_cv_prog_AR="ar"
7251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252     break 2
7253   fi
7254 done
7255   done
7256 IFS=$as_save_IFS
7257
7258   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7259 fi
7260 fi
7261 AR=$ac_cv_prog_AR
7262 if test -n "$AR"; then
7263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7264 $as_echo "$AR" >&6; }
7265 else
7266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7268 fi
7269
7270
7271 fi
7272
7273
7274 # --------------------
7275 # Checks for C headers
7276 # --------------------
7277
7278 # Need to reject headers which give warnings, so that the -Werror bootstrap
7279 # works later. *sigh*  This needs to come before all header checks.
7280
7281 ac_c_preproc_warn_flag=yes
7282
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7284 $as_echo_n "checking for ANSI C header files... " >&6; }
7285 if test "${ac_cv_header_stdc+set}" = set; then :
7286   $as_echo_n "(cached) " >&6
7287 else
7288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h.  */
7290 #include <stdlib.h>
7291 #include <stdarg.h>
7292 #include <string.h>
7293 #include <float.h>
7294
7295 int
7296 main ()
7297 {
7298
7299   ;
7300   return 0;
7301 }
7302 _ACEOF
7303 if ac_fn_c_try_compile "$LINENO"; then :
7304   ac_cv_header_stdc=yes
7305 else
7306   ac_cv_header_stdc=no
7307 fi
7308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309
7310 if test $ac_cv_header_stdc = yes; then
7311   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h.  */
7314 #include <string.h>
7315
7316 _ACEOF
7317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7318   $EGREP "memchr" >/dev/null 2>&1; then :
7319
7320 else
7321   ac_cv_header_stdc=no
7322 fi
7323 rm -f conftest*
7324
7325 fi
7326
7327 if test $ac_cv_header_stdc = yes; then
7328   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h.  */
7331 #include <stdlib.h>
7332
7333 _ACEOF
7334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7335   $EGREP "free" >/dev/null 2>&1; then :
7336
7337 else
7338   ac_cv_header_stdc=no
7339 fi
7340 rm -f conftest*
7341
7342 fi
7343
7344 if test $ac_cv_header_stdc = yes; then
7345   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7346   if test "$cross_compiling" = yes; then :
7347   :
7348 else
7349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h.  */
7351 #include <ctype.h>
7352 #include <stdlib.h>
7353 #if ((' ' & 0x0FF) == 0x020)
7354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7356 #else
7357 # define ISLOWER(c) \
7358                    (('a' <= (c) && (c) <= 'i') \
7359                      || ('j' <= (c) && (c) <= 'r') \
7360                      || ('s' <= (c) && (c) <= 'z'))
7361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7362 #endif
7363
7364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7365 int
7366 main ()
7367 {
7368   int i;
7369   for (i = 0; i < 256; i++)
7370     if (XOR (islower (i), ISLOWER (i))
7371         || toupper (i) != TOUPPER (i))
7372       return 2;
7373   return 0;
7374 }
7375 _ACEOF
7376 if ac_fn_c_try_run "$LINENO"; then :
7377
7378 else
7379   ac_cv_header_stdc=no
7380 fi
7381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7382   conftest.$ac_objext conftest.beam conftest.$ac_ext
7383 fi
7384
7385 fi
7386 fi
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7388 $as_echo "$ac_cv_header_stdc" >&6; }
7389 if test $ac_cv_header_stdc = yes; then
7390
7391 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7392
7393 fi
7394
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7396 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7397 if test "${ac_cv_header_time+set}" = set; then :
7398   $as_echo_n "(cached) " >&6
7399 else
7400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h.  */
7402 #include <sys/types.h>
7403 #include <sys/time.h>
7404 #include <time.h>
7405
7406 int
7407 main ()
7408 {
7409 if ((struct tm *) 0)
7410 return 0;
7411   ;
7412   return 0;
7413 }
7414 _ACEOF
7415 if ac_fn_c_try_compile "$LINENO"; then :
7416   ac_cv_header_time=yes
7417 else
7418   ac_cv_header_time=no
7419 fi
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 fi
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7423 $as_echo "$ac_cv_header_time" >&6; }
7424 if test $ac_cv_header_time = yes; then
7425
7426 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7427
7428 fi
7429
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7431 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7432 if test "${gcc_cv_header_string+set}" = set; then :
7433   $as_echo_n "(cached) " >&6
7434 else
7435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h.  */
7437 #include <string.h>
7438 #include <strings.h>
7439 int
7440 main ()
7441 {
7442
7443   ;
7444   return 0;
7445 }
7446 _ACEOF
7447 if ac_fn_c_try_compile "$LINENO"; then :
7448   gcc_cv_header_string=yes
7449 else
7450   gcc_cv_header_string=no
7451 fi
7452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7453 fi
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7455 $as_echo "$gcc_cv_header_string" >&6; }
7456 if test $gcc_cv_header_string = yes; then
7457
7458 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7459
7460 fi
7461
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7463 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7464 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7465   $as_echo_n "(cached) " >&6
7466 else
7467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h.  */
7469 #include <sys/types.h>
7470 #include <sys/wait.h>
7471 #ifndef WEXITSTATUS
7472 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7473 #endif
7474 #ifndef WIFEXITED
7475 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7476 #endif
7477
7478 int
7479 main ()
7480 {
7481   int s;
7482   wait (&s);
7483   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7484   ;
7485   return 0;
7486 }
7487 _ACEOF
7488 if ac_fn_c_try_compile "$LINENO"; then :
7489   ac_cv_header_sys_wait_h=yes
7490 else
7491   ac_cv_header_sys_wait_h=no
7492 fi
7493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7494 fi
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7496 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7497 if test $ac_cv_header_sys_wait_h = yes; then
7498
7499 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7500
7501 fi
7502
7503 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7504                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7505                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
7506                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7507 do :
7508   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7509 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7510 eval as_val=\$$as_ac_Header
7511    if test "x$as_val" = x""yes; then :
7512   cat >>confdefs.h <<_ACEOF
7513 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7514 _ACEOF
7515
7516 fi
7517 done
7518
7519
7520 # Check for thread headers.
7521 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7522 if test "x$ac_cv_header_thread_h" = x""yes; then :
7523   have_thread_h=yes
7524 else
7525   have_thread_h=
7526 fi
7527
7528 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7529 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7530   have_pthread_h=yes
7531 else
7532   have_pthread_h=
7533 fi
7534
7535
7536 # These tests can't be done till we know if we have limits.h.
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7538 $as_echo_n "checking for CHAR_BIT... " >&6; }
7539 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7540   $as_echo_n "(cached) " >&6
7541 else
7542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h.  */
7544 #ifdef HAVE_LIMITS_H
7545 #include <limits.h>
7546 #endif
7547 #ifdef CHAR_BIT
7548 found
7549 #endif
7550 _ACEOF
7551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7552   $EGREP "found" >/dev/null 2>&1; then :
7553   gcc_cv_decl_char_bit=yes
7554 else
7555   gcc_cv_decl_char_bit=no
7556 fi
7557 rm -f conftest*
7558
7559
7560 fi
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7562 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7563 if test $gcc_cv_decl_char_bit = no; then
7564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7565 $as_echo_n "checking number of bits in a byte... " >&6; }
7566 if test "${gcc_cv_c_nbby+set}" = set; then :
7567   $as_echo_n "(cached) " >&6
7568 else
7569   i=8
7570  gcc_cv_c_nbby=
7571  while test $i -lt 65; do
7572    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h.  */
7574
7575 int
7576 main ()
7577 {
7578 switch(0) {
7579   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7580   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7581   ; }
7582   ;
7583   return 0;
7584 }
7585 _ACEOF
7586 if ac_fn_c_try_compile "$LINENO"; then :
7587   gcc_cv_c_nbby=$i; break
7588 fi
7589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590    i=`expr $i + 1`
7591  done
7592  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7593
7594 fi
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7596 $as_echo "$gcc_cv_c_nbby" >&6; }
7597 if test $gcc_cv_c_nbby = failed; then
7598   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7599 else
7600
7601 cat >>confdefs.h <<_ACEOF
7602 #define CHAR_BIT $gcc_cv_c_nbby
7603 _ACEOF
7604
7605 fi
7606 fi
7607  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7608 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7609 if test "${ac_cv_c_bigendian+set}" = set; then :
7610   $as_echo_n "(cached) " >&6
7611 else
7612   ac_cv_c_bigendian=unknown
7613     # See if we're dealing with a universal compiler.
7614     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h.  */
7616 #ifndef __APPLE_CC__
7617                not a universal capable compiler
7618              #endif
7619              typedef int dummy;
7620
7621 _ACEOF
7622 if ac_fn_c_try_compile "$LINENO"; then :
7623
7624         # Check for potential -arch flags.  It is not universal unless
7625         # there are at least two -arch flags with different values.
7626         ac_arch=
7627         ac_prev=
7628         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7629          if test -n "$ac_prev"; then
7630            case $ac_word in
7631              i?86 | x86_64 | ppc | ppc64)
7632                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7633                  ac_arch=$ac_word
7634                else
7635                  ac_cv_c_bigendian=universal
7636                  break
7637                fi
7638                ;;
7639            esac
7640            ac_prev=
7641          elif test "x$ac_word" = "x-arch"; then
7642            ac_prev=arch
7643          fi
7644        done
7645 fi
7646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7647     if test $ac_cv_c_bigendian = unknown; then
7648       # See if sys/param.h defines the BYTE_ORDER macro.
7649       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h.  */
7651 #include <sys/types.h>
7652              #include <sys/param.h>
7653
7654 int
7655 main ()
7656 {
7657 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7658                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7659                      && LITTLE_ENDIAN)
7660               bogus endian macros
7661              #endif
7662
7663   ;
7664   return 0;
7665 }
7666 _ACEOF
7667 if ac_fn_c_try_compile "$LINENO"; then :
7668   # It does; now see whether it defined to BIG_ENDIAN or not.
7669          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h.  */
7671 #include <sys/types.h>
7672                 #include <sys/param.h>
7673
7674 int
7675 main ()
7676 {
7677 #if BYTE_ORDER != BIG_ENDIAN
7678                  not big endian
7679                 #endif
7680
7681   ;
7682   return 0;
7683 }
7684 _ACEOF
7685 if ac_fn_c_try_compile "$LINENO"; then :
7686   ac_cv_c_bigendian=yes
7687 else
7688   ac_cv_c_bigendian=no
7689 fi
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691 fi
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693     fi
7694     if test $ac_cv_c_bigendian = unknown; then
7695       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7696       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h.  */
7698 #include <limits.h>
7699
7700 int
7701 main ()
7702 {
7703 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7704               bogus endian macros
7705              #endif
7706
7707   ;
7708   return 0;
7709 }
7710 _ACEOF
7711 if ac_fn_c_try_compile "$LINENO"; then :
7712   # It does; now see whether it defined to _BIG_ENDIAN or not.
7713          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h.  */
7715 #include <limits.h>
7716
7717 int
7718 main ()
7719 {
7720 #ifndef _BIG_ENDIAN
7721                  not big endian
7722                 #endif
7723
7724   ;
7725   return 0;
7726 }
7727 _ACEOF
7728 if ac_fn_c_try_compile "$LINENO"; then :
7729   ac_cv_c_bigendian=yes
7730 else
7731   ac_cv_c_bigendian=no
7732 fi
7733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 fi
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736     fi
7737     if test $ac_cv_c_bigendian = unknown; then
7738       # Compile a test program.
7739       if test "$cross_compiling" = yes; then :
7740   # Try to guess by grepping values from an object file.
7741          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h.  */
7743 short int ascii_mm[] =
7744                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7745                 short int ascii_ii[] =
7746                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7747                 int use_ascii (int i) {
7748                   return ascii_mm[i] + ascii_ii[i];
7749                 }
7750                 short int ebcdic_ii[] =
7751                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7752                 short int ebcdic_mm[] =
7753                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7754                 int use_ebcdic (int i) {
7755                   return ebcdic_mm[i] + ebcdic_ii[i];
7756                 }
7757                 extern int foo;
7758
7759 int
7760 main ()
7761 {
7762 return use_ascii (foo) == use_ebcdic (foo);
7763   ;
7764   return 0;
7765 }
7766 _ACEOF
7767 if ac_fn_c_try_compile "$LINENO"; then :
7768   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7769               ac_cv_c_bigendian=yes
7770             fi
7771             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7772               if test "$ac_cv_c_bigendian" = unknown; then
7773                 ac_cv_c_bigendian=no
7774               else
7775                 # finding both strings is unlikely to happen, but who knows?
7776                 ac_cv_c_bigendian=unknown
7777               fi
7778             fi
7779 fi
7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 else
7782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h.  */
7784 $ac_includes_default
7785 int
7786 main ()
7787 {
7788
7789              /* Are we little or big endian?  From Harbison&Steele.  */
7790              union
7791              {
7792                long int l;
7793                char c[sizeof (long int)];
7794              } u;
7795              u.l = 1;
7796              return u.c[sizeof (long int) - 1] == 1;
7797
7798   ;
7799   return 0;
7800 }
7801 _ACEOF
7802 if ac_fn_c_try_run "$LINENO"; then :
7803   ac_cv_c_bigendian=no
7804 else
7805   ac_cv_c_bigendian=yes
7806 fi
7807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7808   conftest.$ac_objext conftest.beam conftest.$ac_ext
7809 fi
7810
7811     fi
7812 fi
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7814 $as_echo "$ac_cv_c_bigendian" >&6; }
7815  case $ac_cv_c_bigendian in #(
7816    yes)
7817      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7818 ;; #(
7819    no)
7820       ;; #(
7821    universal)
7822
7823 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7824
7825      ;; #(
7826    *)
7827      as_fn_error "unknown endianness
7828  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7829  esac
7830
7831
7832 # --------
7833 # UNSORTED
7834 # --------
7835
7836
7837 # These libraries may be used by collect2.
7838 # We may need a special search path to get them linked.
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
7840 $as_echo_n "checking for collect2 libraries... " >&6; }
7841 if test "${gcc_cv_collect2_libs+set}" = set; then :
7842   $as_echo_n "(cached) " >&6
7843 else
7844   save_LIBS="$LIBS"
7845 for libs in '' -lld -lmld \
7846                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
7847                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
7848 do
7849         LIBS="$libs"
7850         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h.  */
7852
7853 /* Override any GCC internal prototype to avoid an error.
7854    Use char because int might match the return type of a GCC
7855    builtin and then its argument prototype would still apply.  */
7856 #ifdef __cplusplus
7857 extern "C"
7858 #endif
7859 char ldopen ();
7860 int
7861 main ()
7862 {
7863 return ldopen ();
7864   ;
7865   return 0;
7866 }
7867 _ACEOF
7868 if ac_fn_c_try_link "$LINENO"; then :
7869   gcc_cv_collect2_libs="$libs"; break
7870 fi
7871 rm -f core conftest.err conftest.$ac_objext \
7872     conftest$ac_exeext conftest.$ac_ext
7873 done
7874 LIBS="$save_LIBS"
7875 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
7876 fi
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
7878 $as_echo "$gcc_cv_collect2_libs" >&6; }
7879 case $gcc_cv_collect2_libs in
7880         "none required")        ;;
7881         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
7882 esac
7883
7884
7885 # When building Ada code on Alpha, we need exc_resume which is usually in
7886 # -lexc.  So test for it.
7887 save_LIBS="$LIBS"
7888 LIBS=
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
7890 $as_echo_n "checking for library containing exc_resume... " >&6; }
7891 if test "${ac_cv_search_exc_resume+set}" = set; then :
7892   $as_echo_n "(cached) " >&6
7893 else
7894   ac_func_search_save_LIBS=$LIBS
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h.  */
7897
7898 /* Override any GCC internal prototype to avoid an error.
7899    Use char because int might match the return type of a GCC
7900    builtin and then its argument prototype would still apply.  */
7901 #ifdef __cplusplus
7902 extern "C"
7903 #endif
7904 char exc_resume ();
7905 int
7906 main ()
7907 {
7908 return exc_resume ();
7909   ;
7910   return 0;
7911 }
7912 _ACEOF
7913 for ac_lib in '' exc; do
7914   if test -z "$ac_lib"; then
7915     ac_res="none required"
7916   else
7917     ac_res=-l$ac_lib
7918     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7919   fi
7920   if ac_fn_c_try_link "$LINENO"; then :
7921   ac_cv_search_exc_resume=$ac_res
7922 fi
7923 rm -f core conftest.err conftest.$ac_objext \
7924     conftest$ac_exeext
7925   if test "${ac_cv_search_exc_resume+set}" = set; then :
7926   break
7927 fi
7928 done
7929 if test "${ac_cv_search_exc_resume+set}" = set; then :
7930
7931 else
7932   ac_cv_search_exc_resume=no
7933 fi
7934 rm conftest.$ac_ext
7935 LIBS=$ac_func_search_save_LIBS
7936 fi
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
7938 $as_echo "$ac_cv_search_exc_resume" >&6; }
7939 ac_res=$ac_cv_search_exc_resume
7940 if test "$ac_res" != no; then :
7941   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7942
7943 fi
7944
7945 GNAT_LIBEXC="$LIBS"
7946 LIBS="$save_LIBS"
7947
7948
7949 # Some systems put ldexp and frexp in libm instead of libc; assume
7950 # they're both in the same place.  jcf-dump needs them.
7951 save_LIBS="$LIBS"
7952 LIBS=
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
7954 $as_echo_n "checking for library containing ldexp... " >&6; }
7955 if test "${ac_cv_search_ldexp+set}" = set; then :
7956   $as_echo_n "(cached) " >&6
7957 else
7958   ac_func_search_save_LIBS=$LIBS
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h.  */
7961
7962 /* Override any GCC internal prototype to avoid an error.
7963    Use char because int might match the return type of a GCC
7964    builtin and then its argument prototype would still apply.  */
7965 #ifdef __cplusplus
7966 extern "C"
7967 #endif
7968 char ldexp ();
7969 int
7970 main ()
7971 {
7972 return ldexp ();
7973   ;
7974   return 0;
7975 }
7976 _ACEOF
7977 for ac_lib in '' m; do
7978   if test -z "$ac_lib"; then
7979     ac_res="none required"
7980   else
7981     ac_res=-l$ac_lib
7982     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7983   fi
7984   if ac_fn_c_try_link "$LINENO"; then :
7985   ac_cv_search_ldexp=$ac_res
7986 fi
7987 rm -f core conftest.err conftest.$ac_objext \
7988     conftest$ac_exeext
7989   if test "${ac_cv_search_ldexp+set}" = set; then :
7990   break
7991 fi
7992 done
7993 if test "${ac_cv_search_ldexp+set}" = set; then :
7994
7995 else
7996   ac_cv_search_ldexp=no
7997 fi
7998 rm conftest.$ac_ext
7999 LIBS=$ac_func_search_save_LIBS
8000 fi
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8002 $as_echo "$ac_cv_search_ldexp" >&6; }
8003 ac_res=$ac_cv_search_ldexp
8004 if test "$ac_res" != no; then :
8005   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8006
8007 fi
8008
8009 LDEXP_LIB="$LIBS"
8010 LIBS="$save_LIBS"
8011
8012
8013 # Use <inttypes.h> only if it exists,
8014 # doesn't clash with <sys/types.h>, and declares intmax_t.
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8016 $as_echo_n "checking for inttypes.h... " >&6; }
8017 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8018   $as_echo_n "(cached) " >&6
8019 else
8020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021 /* end confdefs.h.  */
8022 #include <sys/types.h>
8023 #include <inttypes.h>
8024 int
8025 main ()
8026 {
8027 intmax_t i = -1;
8028   ;
8029   return 0;
8030 }
8031 _ACEOF
8032 if ac_fn_c_try_compile "$LINENO"; then :
8033   gcc_cv_header_inttypes_h=yes
8034 else
8035   gcc_cv_header_inttypes_h=no
8036 fi
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 fi
8039
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8041 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8042 if test $gcc_cv_header_inttypes_h = yes; then
8043
8044 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8045
8046 fi
8047
8048
8049
8050 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8051         sysconf strsignal getrusage nl_langinfo \
8052         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8053         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
8054 do :
8055   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8056 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8057 eval as_val=\$$as_ac_var
8058    if test "x$as_val" = x""yes; then :
8059   cat >>confdefs.h <<_ACEOF
8060 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8061 _ACEOF
8062
8063 fi
8064 done
8065
8066
8067 if test x$ac_cv_func_mbstowcs = xyes; then
8068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8069 $as_echo_n "checking whether mbstowcs works... " >&6; }
8070 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8071   $as_echo_n "(cached) " >&6
8072 else
8073       if test "$cross_compiling" = yes; then :
8074   gcc_cv_func_mbstowcs_works=yes
8075 else
8076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h.  */
8078 #include <stdlib.h>
8079 int main()
8080 {
8081   mbstowcs(0, "", 0);
8082   return 0;
8083 }
8084 _ACEOF
8085 if ac_fn_c_try_run "$LINENO"; then :
8086   gcc_cv_func_mbstowcs_works=yes
8087 else
8088   gcc_cv_func_mbstowcs_works=no
8089 fi
8090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8091   conftest.$ac_objext conftest.beam conftest.$ac_ext
8092 fi
8093
8094 fi
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8096 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8097   if test x$gcc_cv_func_mbstowcs_works = xyes; then
8098
8099 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8100
8101   fi
8102 fi
8103
8104 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8105 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8106
8107 else
8108
8109 cat >>confdefs.h <<_ACEOF
8110 #define ssize_t int
8111 _ACEOF
8112
8113 fi
8114
8115 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8116 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8117
8118 else
8119
8120 cat >>confdefs.h <<_ACEOF
8121 #define caddr_t char *
8122 _ACEOF
8123
8124 fi
8125
8126
8127
8128 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8129 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8130   gcc_header_sys_mman_h=yes
8131 else
8132   gcc_header_sys_mman_h=no
8133 fi
8134
8135 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8136 if test "x$ac_cv_func_mmap" = x""yes; then :
8137   gcc_func_mmap=yes
8138 else
8139   gcc_func_mmap=no
8140 fi
8141
8142 if test "$gcc_header_sys_mman_h" != yes \
8143  || test "$gcc_func_mmap" != yes; then
8144    gcc_cv_func_mmap_file=no
8145    gcc_cv_func_mmap_dev_zero=no
8146    gcc_cv_func_mmap_anon=no
8147 else
8148    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8149 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8150 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8151   $as_echo_n "(cached) " >&6
8152 else
8153   # Add a system to this blacklist if
8154    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8155    # memory area containing the same data that you'd get if you applied
8156    # read() to the same fd.  The only system known to have a problem here
8157    # is VMS, where text files have record structure.
8158    case "$host_os" in
8159      vms* | ultrix*)
8160         gcc_cv_func_mmap_file=no ;;
8161      *)
8162         gcc_cv_func_mmap_file=yes;;
8163    esac
8164 fi
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8166 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8167    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8168 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8169 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8170   $as_echo_n "(cached) " >&6
8171 else
8172   # Add a system to this blacklist if it has mmap() but /dev/zero
8173    # does not exist, or if mmapping /dev/zero does not give anonymous
8174    # zeroed pages with both the following properties:
8175    # 1. If you map N consecutive pages in with one call, and then
8176    #    unmap any subset of those pages, the pages that were not
8177    #    explicitly unmapped remain accessible.
8178    # 2. If you map two adjacent blocks of memory and then unmap them
8179    #    both at once, they must both go away.
8180    # Systems known to be in this category are Windows (all variants),
8181    # VMS, and Darwin.
8182    case "$host_os" in
8183      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8184         gcc_cv_func_mmap_dev_zero=no ;;
8185      *)
8186         gcc_cv_func_mmap_dev_zero=yes;;
8187    esac
8188 fi
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8190 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8191
8192    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8193    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8194 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8195 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8196   $as_echo_n "(cached) " >&6
8197 else
8198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h.  */
8200 #include <sys/types.h>
8201 #include <sys/mman.h>
8202 #include <unistd.h>
8203
8204 #ifndef MAP_ANONYMOUS
8205 #define MAP_ANONYMOUS MAP_ANON
8206 #endif
8207
8208 int
8209 main ()
8210 {
8211 int n = MAP_ANONYMOUS;
8212   ;
8213   return 0;
8214 }
8215 _ACEOF
8216 if ac_fn_c_try_compile "$LINENO"; then :
8217   gcc_cv_decl_map_anon=yes
8218 else
8219   gcc_cv_decl_map_anon=no
8220 fi
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8222 fi
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8224 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8225
8226    if test $gcc_cv_decl_map_anon = no; then
8227      gcc_cv_func_mmap_anon=no
8228    else
8229      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8230 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8231 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8232   $as_echo_n "(cached) " >&6
8233 else
8234   # Add a system to this blacklist if it has mmap() and MAP_ANON or
8235    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8236    # doesn't give anonymous zeroed pages with the same properties listed
8237    # above for use of /dev/zero.
8238    # Systems known to be in this category are Windows, VMS, and SCO Unix.
8239    case "$host_os" in
8240      vms* | cygwin* | pe | mingw* | sco* | udk* )
8241         gcc_cv_func_mmap_anon=no ;;
8242      *)
8243         gcc_cv_func_mmap_anon=yes;;
8244    esac
8245 fi
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8247 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8248    fi
8249 fi
8250
8251 if test $gcc_cv_func_mmap_file = yes; then
8252
8253 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8254
8255 fi
8256 if test $gcc_cv_func_mmap_dev_zero = yes; then
8257
8258 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8259
8260 fi
8261 if test $gcc_cv_func_mmap_anon = yes; then
8262
8263 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8264
8265 fi
8266
8267
8268 case "${host}" in
8269 *-*-*vms*)
8270   # Under VMS, vfork works very differently than on Unix. The standard test
8271   # won't work, and it isn't easily adaptable. It makes more sense to
8272   # just force it.
8273   ac_cv_func_vfork_works=yes
8274   ;;
8275 esac
8276 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8277 if test "x$ac_cv_type_pid_t" = x""yes; then :
8278
8279 else
8280
8281 cat >>confdefs.h <<_ACEOF
8282 #define pid_t int
8283 _ACEOF
8284
8285 fi
8286
8287 for ac_header in vfork.h
8288 do :
8289   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8290 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8291   cat >>confdefs.h <<_ACEOF
8292 #define HAVE_VFORK_H 1
8293 _ACEOF
8294
8295 fi
8296 done
8297
8298 for ac_func in fork vfork
8299 do :
8300   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8301 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8302 eval as_val=\$$as_ac_var
8303    if test "x$as_val" = x""yes; then :
8304   cat >>confdefs.h <<_ACEOF
8305 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8306 _ACEOF
8307
8308 fi
8309 done
8310
8311 if test "x$ac_cv_func_fork" = xyes; then
8312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8313 $as_echo_n "checking for working fork... " >&6; }
8314 if test "${ac_cv_func_fork_works+set}" = set; then :
8315   $as_echo_n "(cached) " >&6
8316 else
8317   if test "$cross_compiling" = yes; then :
8318   ac_cv_func_fork_works=cross
8319 else
8320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h.  */
8322 $ac_includes_default
8323 int
8324 main ()
8325 {
8326
8327           /* By Ruediger Kuhlmann. */
8328           return fork () < 0;
8329
8330   ;
8331   return 0;
8332 }
8333 _ACEOF
8334 if ac_fn_c_try_run "$LINENO"; then :
8335   ac_cv_func_fork_works=yes
8336 else
8337   ac_cv_func_fork_works=no
8338 fi
8339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8340   conftest.$ac_objext conftest.beam conftest.$ac_ext
8341 fi
8342
8343 fi
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8345 $as_echo "$ac_cv_func_fork_works" >&6; }
8346
8347 else
8348   ac_cv_func_fork_works=$ac_cv_func_fork
8349 fi
8350 if test "x$ac_cv_func_fork_works" = xcross; then
8351   case $host in
8352     *-*-amigaos* | *-*-msdosdjgpp*)
8353       # Override, as these systems have only a dummy fork() stub
8354       ac_cv_func_fork_works=no
8355       ;;
8356     *)
8357       ac_cv_func_fork_works=yes
8358       ;;
8359   esac
8360   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8361 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8362 fi
8363 ac_cv_func_vfork_works=$ac_cv_func_vfork
8364 if test "x$ac_cv_func_vfork" = xyes; then
8365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8366 $as_echo_n "checking for working vfork... " >&6; }
8367 if test "${ac_cv_func_vfork_works+set}" = set; then :
8368   $as_echo_n "(cached) " >&6
8369 else
8370   if test "$cross_compiling" = yes; then :
8371   ac_cv_func_vfork_works=cross
8372 else
8373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h.  */
8375 /* Thanks to Paul Eggert for this test.  */
8376 $ac_includes_default
8377 #include <sys/wait.h>
8378 #ifdef HAVE_VFORK_H
8379 # include <vfork.h>
8380 #endif
8381 /* On some sparc systems, changes by the child to local and incoming
8382    argument registers are propagated back to the parent.  The compiler
8383    is told about this with #include <vfork.h>, but some compilers
8384    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8385    static variable whose address is put into a register that is
8386    clobbered by the vfork.  */
8387 static void
8388 #ifdef __cplusplus
8389 sparc_address_test (int arg)
8390 # else
8391 sparc_address_test (arg) int arg;
8392 #endif
8393 {
8394   static pid_t child;
8395   if (!child) {
8396     child = vfork ();
8397     if (child < 0) {
8398       perror ("vfork");
8399       _exit(2);
8400     }
8401     if (!child) {
8402       arg = getpid();
8403       write(-1, "", 0);
8404       _exit (arg);
8405     }
8406   }
8407 }
8408
8409 int
8410 main ()
8411 {
8412   pid_t parent = getpid ();
8413   pid_t child;
8414
8415   sparc_address_test (0);
8416
8417   child = vfork ();
8418
8419   if (child == 0) {
8420     /* Here is another test for sparc vfork register problems.  This
8421        test uses lots of local variables, at least as many local
8422        variables as main has allocated so far including compiler
8423        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8424        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8425        reuse the register of parent for one of the local variables,
8426        since it will think that parent can't possibly be used any more
8427        in this routine.  Assigning to the local variable will thus
8428        munge parent in the parent process.  */
8429     pid_t
8430       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8431       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8432     /* Convince the compiler that p..p7 are live; otherwise, it might
8433        use the same hardware register for all 8 local variables.  */
8434     if (p != p1 || p != p2 || p != p3 || p != p4
8435         || p != p5 || p != p6 || p != p7)
8436       _exit(1);
8437
8438     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8439        from child file descriptors.  If the child closes a descriptor
8440        before it execs or exits, this munges the parent's descriptor
8441        as well.  Test for this by closing stdout in the child.  */
8442     _exit(close(fileno(stdout)) != 0);
8443   } else {
8444     int status;
8445     struct stat st;
8446
8447     while (wait(&status) != child)
8448       ;
8449     return (
8450          /* Was there some problem with vforking?  */
8451          child < 0
8452
8453          /* Did the child fail?  (This shouldn't happen.)  */
8454          || status
8455
8456          /* Did the vfork/compiler bug occur?  */
8457          || parent != getpid()
8458
8459          /* Did the file descriptor bug occur?  */
8460          || fstat(fileno(stdout), &st) != 0
8461          );
8462   }
8463 }
8464 _ACEOF
8465 if ac_fn_c_try_run "$LINENO"; then :
8466   ac_cv_func_vfork_works=yes
8467 else
8468   ac_cv_func_vfork_works=no
8469 fi
8470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8471   conftest.$ac_objext conftest.beam conftest.$ac_ext
8472 fi
8473
8474 fi
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8476 $as_echo "$ac_cv_func_vfork_works" >&6; }
8477
8478 fi;
8479 if test "x$ac_cv_func_fork_works" = xcross; then
8480   ac_cv_func_vfork_works=$ac_cv_func_vfork
8481   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8482 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8483 fi
8484
8485 if test "x$ac_cv_func_vfork_works" = xyes; then
8486
8487 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8488
8489 else
8490
8491 $as_echo "#define vfork fork" >>confdefs.h
8492
8493 fi
8494 if test "x$ac_cv_func_fork_works" = xyes; then
8495
8496 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8497
8498 fi
8499
8500
8501
8502       if test "X$prefix" = "XNONE"; then
8503     acl_final_prefix="$ac_default_prefix"
8504   else
8505     acl_final_prefix="$prefix"
8506   fi
8507   if test "X$exec_prefix" = "XNONE"; then
8508     acl_final_exec_prefix='${prefix}'
8509   else
8510     acl_final_exec_prefix="$exec_prefix"
8511   fi
8512   acl_save_prefix="$prefix"
8513   prefix="$acl_final_prefix"
8514   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8515   prefix="$acl_save_prefix"
8516
8517
8518 # Check whether --with-gnu-ld was given.
8519 if test "${with_gnu_ld+set}" = set; then :
8520   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8521 else
8522   with_gnu_ld=no
8523 fi
8524
8525 # Prepare PATH_SEPARATOR.
8526 # The user is always right.
8527 if test "${PATH_SEPARATOR+set}" != set; then
8528   echo "#! /bin/sh" >conf$$.sh
8529   echo  "exit 0"   >>conf$$.sh
8530   chmod +x conf$$.sh
8531   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8532     PATH_SEPARATOR=';'
8533   else
8534     PATH_SEPARATOR=:
8535   fi
8536   rm -f conf$$.sh
8537 fi
8538 ac_prog=ld
8539 if test "$GCC" = yes; then
8540   # Check if gcc -print-prog-name=ld gives a path.
8541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8542 $as_echo_n "checking for ld used by GCC... " >&6; }
8543   case $host in
8544   *-*-mingw*)
8545     # gcc leaves a trailing carriage return which upsets mingw
8546     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8547   *)
8548     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8549   esac
8550   case $ac_prog in
8551     # Accept absolute paths.
8552     [\\/]* | [A-Za-z]:[\\/]*)
8553       re_direlt='/[^/][^/]*/\.\./'
8554       # Canonicalize the path of ld
8555       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8556       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8557         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8558       done
8559       test -z "$LD" && LD="$ac_prog"
8560       ;;
8561   "")
8562     # If it fails, then pretend we aren't using GCC.
8563     ac_prog=ld
8564     ;;
8565   *)
8566     # If it is relative, then search for the first ld in PATH.
8567     with_gnu_ld=unknown
8568     ;;
8569   esac
8570 elif test "$with_gnu_ld" = yes; then
8571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8572 $as_echo_n "checking for GNU ld... " >&6; }
8573 else
8574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8575 $as_echo_n "checking for non-GNU ld... " >&6; }
8576 fi
8577 if test "${acl_cv_path_LD+set}" = set; then :
8578   $as_echo_n "(cached) " >&6
8579 else
8580   if test -z "$LD"; then
8581   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8582   for ac_dir in $PATH; do
8583     test -z "$ac_dir" && ac_dir=.
8584     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8585       acl_cv_path_LD="$ac_dir/$ac_prog"
8586       # Check to see if the program is GNU ld.  I'd rather use --version,
8587       # but apparently some GNU ld's only accept -v.
8588       # Break only if it was the GNU/non-GNU ld that we prefer.
8589       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8590         test "$with_gnu_ld" != no && break
8591       else
8592         test "$with_gnu_ld" != yes && break
8593       fi
8594     fi
8595   done
8596   IFS="$ac_save_ifs"
8597 else
8598   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8599 fi
8600 fi
8601
8602 LD="$acl_cv_path_LD"
8603 if test -n "$LD"; then
8604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8605 $as_echo "$LD" >&6; }
8606 else
8607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8609 fi
8610 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8612 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8613 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8614   $as_echo_n "(cached) " >&6
8615 else
8616   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8617 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8618   acl_cv_prog_gnu_ld=yes
8619 else
8620   acl_cv_prog_gnu_ld=no
8621 fi
8622 fi
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8624 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8625 with_gnu_ld=$acl_cv_prog_gnu_ld
8626
8627
8628
8629                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8630 $as_echo_n "checking for shared library run path origin... " >&6; }
8631 if test "${acl_cv_rpath+set}" = set; then :
8632   $as_echo_n "(cached) " >&6
8633 else
8634
8635     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8636     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8637     . ./conftest.sh
8638     rm -f ./conftest.sh
8639     acl_cv_rpath=done
8640
8641 fi
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8643 $as_echo "$acl_cv_rpath" >&6; }
8644   wl="$acl_cv_wl"
8645   libext="$acl_cv_libext"
8646   shlibext="$acl_cv_shlibext"
8647   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8648   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8649   hardcode_direct="$acl_cv_hardcode_direct"
8650   hardcode_minus_L="$acl_cv_hardcode_minus_L"
8651     # Check whether --enable-rpath was given.
8652 if test "${enable_rpath+set}" = set; then :
8653   enableval=$enable_rpath; :
8654 else
8655   enable_rpath=yes
8656 fi
8657
8658
8659
8660
8661
8662
8663
8664
8665     use_additional=yes
8666
8667   acl_save_prefix="$prefix"
8668   prefix="$acl_final_prefix"
8669   acl_save_exec_prefix="$exec_prefix"
8670   exec_prefix="$acl_final_exec_prefix"
8671
8672     eval additional_includedir=\"$includedir\"
8673     eval additional_libdir=\"$libdir\"
8674
8675   exec_prefix="$acl_save_exec_prefix"
8676   prefix="$acl_save_prefix"
8677
8678
8679 # Check whether --with-libiconv-prefix was given.
8680 if test "${with_libiconv_prefix+set}" = set; then :
8681   withval=$with_libiconv_prefix;
8682     if test "X$withval" = "Xno"; then
8683       use_additional=no
8684     else
8685       if test "X$withval" = "X"; then
8686
8687   acl_save_prefix="$prefix"
8688   prefix="$acl_final_prefix"
8689   acl_save_exec_prefix="$exec_prefix"
8690   exec_prefix="$acl_final_exec_prefix"
8691
8692           eval additional_includedir=\"$includedir\"
8693           eval additional_libdir=\"$libdir\"
8694
8695   exec_prefix="$acl_save_exec_prefix"
8696   prefix="$acl_save_prefix"
8697
8698       else
8699         additional_includedir="$withval/include"
8700         additional_libdir="$withval/lib"
8701       fi
8702     fi
8703
8704 fi
8705
8706       LIBICONV=
8707   LTLIBICONV=
8708   INCICONV=
8709   rpathdirs=
8710   ltrpathdirs=
8711   names_already_handled=
8712   names_next_round='iconv '
8713   while test -n "$names_next_round"; do
8714     names_this_round="$names_next_round"
8715     names_next_round=
8716     for name in $names_this_round; do
8717       already_handled=
8718       for n in $names_already_handled; do
8719         if test "$n" = "$name"; then
8720           already_handled=yes
8721           break
8722         fi
8723       done
8724       if test -z "$already_handled"; then
8725         names_already_handled="$names_already_handled $name"
8726                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8727         eval value=\"\$HAVE_LIB$uppername\"
8728         if test -n "$value"; then
8729           if test "$value" = yes; then
8730             eval value=\"\$LIB$uppername\"
8731             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8732             eval value=\"\$LTLIB$uppername\"
8733             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8734           else
8735                                     :
8736           fi
8737         else
8738                               found_dir=
8739           found_la=
8740           found_so=
8741           found_a=
8742           if test $use_additional = yes; then
8743             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8744               found_dir="$additional_libdir"
8745               found_so="$additional_libdir/lib$name.$shlibext"
8746               if test -f "$additional_libdir/lib$name.la"; then
8747                 found_la="$additional_libdir/lib$name.la"
8748               fi
8749             else
8750               if test -f "$additional_libdir/lib$name.$libext"; then
8751                 found_dir="$additional_libdir"
8752                 found_a="$additional_libdir/lib$name.$libext"
8753                 if test -f "$additional_libdir/lib$name.la"; then
8754                   found_la="$additional_libdir/lib$name.la"
8755                 fi
8756               fi
8757             fi
8758           fi
8759           if test "X$found_dir" = "X"; then
8760             for x in $LDFLAGS $LTLIBICONV; do
8761
8762   acl_save_prefix="$prefix"
8763   prefix="$acl_final_prefix"
8764   acl_save_exec_prefix="$exec_prefix"
8765   exec_prefix="$acl_final_exec_prefix"
8766   eval x=\"$x\"
8767   exec_prefix="$acl_save_exec_prefix"
8768   prefix="$acl_save_prefix"
8769
8770               case "$x" in
8771                 -L*)
8772                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8773                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8774                     found_dir="$dir"
8775                     found_so="$dir/lib$name.$shlibext"
8776                     if test -f "$dir/lib$name.la"; then
8777                       found_la="$dir/lib$name.la"
8778                     fi
8779                   else
8780                     if test -f "$dir/lib$name.$libext"; then
8781                       found_dir="$dir"
8782                       found_a="$dir/lib$name.$libext"
8783                       if test -f "$dir/lib$name.la"; then
8784                         found_la="$dir/lib$name.la"
8785                       fi
8786                     fi
8787                   fi
8788                   ;;
8789               esac
8790               if test "X$found_dir" != "X"; then
8791                 break
8792               fi
8793             done
8794           fi
8795           if test "X$found_dir" != "X"; then
8796                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8797             if test "X$found_so" != "X"; then
8798                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8799                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8800               else
8801                                                                                 haveit=
8802                 for x in $ltrpathdirs; do
8803                   if test "X$x" = "X$found_dir"; then
8804                     haveit=yes
8805                     break
8806                   fi
8807                 done
8808                 if test -z "$haveit"; then
8809                   ltrpathdirs="$ltrpathdirs $found_dir"
8810                 fi
8811                                 if test "$hardcode_direct" = yes; then
8812                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8813                 else
8814                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8815                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8816                                                             haveit=
8817                     for x in $rpathdirs; do
8818                       if test "X$x" = "X$found_dir"; then
8819                         haveit=yes
8820                         break
8821                       fi
8822                     done
8823                     if test -z "$haveit"; then
8824                       rpathdirs="$rpathdirs $found_dir"
8825                     fi
8826                   else
8827                                                                                 haveit=
8828                     for x in $LDFLAGS $LIBICONV; do
8829
8830   acl_save_prefix="$prefix"
8831   prefix="$acl_final_prefix"
8832   acl_save_exec_prefix="$exec_prefix"
8833   exec_prefix="$acl_final_exec_prefix"
8834   eval x=\"$x\"
8835   exec_prefix="$acl_save_exec_prefix"
8836   prefix="$acl_save_prefix"
8837
8838                       if test "X$x" = "X-L$found_dir"; then
8839                         haveit=yes
8840                         break
8841                       fi
8842                     done
8843                     if test -z "$haveit"; then
8844                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8845                     fi
8846                     if test "$hardcode_minus_L" != no; then
8847                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8848                     else
8849                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8850                     fi
8851                   fi
8852                 fi
8853               fi
8854             else
8855               if test "X$found_a" != "X"; then
8856                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8857               else
8858                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8859               fi
8860             fi
8861                         additional_includedir=
8862             case "$found_dir" in
8863               */lib | */lib/)
8864                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8865                 additional_includedir="$basedir/include"
8866                 ;;
8867             esac
8868             if test "X$additional_includedir" != "X"; then
8869                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8870                 haveit=
8871                 if test "X$additional_includedir" = "X/usr/local/include"; then
8872                   if test -n "$GCC"; then
8873                     case $host_os in
8874                       linux*) haveit=yes;;
8875                     esac
8876                   fi
8877                 fi
8878                 if test -z "$haveit"; then
8879                   for x in $CPPFLAGS $INCICONV; do
8880
8881   acl_save_prefix="$prefix"
8882   prefix="$acl_final_prefix"
8883   acl_save_exec_prefix="$exec_prefix"
8884   exec_prefix="$acl_final_exec_prefix"
8885   eval x=\"$x\"
8886   exec_prefix="$acl_save_exec_prefix"
8887   prefix="$acl_save_prefix"
8888
8889                     if test "X$x" = "X-I$additional_includedir"; then
8890                       haveit=yes
8891                       break
8892                     fi
8893                   done
8894                   if test -z "$haveit"; then
8895                     if test -d "$additional_includedir"; then
8896                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8897                     fi
8898                   fi
8899                 fi
8900               fi
8901             fi
8902                         if test -n "$found_la"; then
8903                                                         save_libdir="$libdir"
8904               case "$found_la" in
8905                 */* | *\\*) . "$found_la" ;;
8906                 *) . "./$found_la" ;;
8907               esac
8908               libdir="$save_libdir"
8909                             for dep in $dependency_libs; do
8910                 case "$dep" in
8911                   -L*)
8912                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8913                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8914                       haveit=
8915                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8916                         if test -n "$GCC"; then
8917                           case $host_os in
8918                             linux*) haveit=yes;;
8919                           esac
8920                         fi
8921                       fi
8922                       if test -z "$haveit"; then
8923                         haveit=
8924                         for x in $LDFLAGS $LIBICONV; do
8925
8926   acl_save_prefix="$prefix"
8927   prefix="$acl_final_prefix"
8928   acl_save_exec_prefix="$exec_prefix"
8929   exec_prefix="$acl_final_exec_prefix"
8930   eval x=\"$x\"
8931   exec_prefix="$acl_save_exec_prefix"
8932   prefix="$acl_save_prefix"
8933
8934                           if test "X$x" = "X-L$additional_libdir"; then
8935                             haveit=yes
8936                             break
8937                           fi
8938                         done
8939                         if test -z "$haveit"; then
8940                           if test -d "$additional_libdir"; then
8941                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8942                           fi
8943                         fi
8944                         haveit=
8945                         for x in $LDFLAGS $LTLIBICONV; do
8946
8947   acl_save_prefix="$prefix"
8948   prefix="$acl_final_prefix"
8949   acl_save_exec_prefix="$exec_prefix"
8950   exec_prefix="$acl_final_exec_prefix"
8951   eval x=\"$x\"
8952   exec_prefix="$acl_save_exec_prefix"
8953   prefix="$acl_save_prefix"
8954
8955                           if test "X$x" = "X-L$additional_libdir"; then
8956                             haveit=yes
8957                             break
8958                           fi
8959                         done
8960                         if test -z "$haveit"; then
8961                           if test -d "$additional_libdir"; then
8962                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8963                           fi
8964                         fi
8965                       fi
8966                     fi
8967                     ;;
8968                   -R*)
8969                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8970                     if test "$enable_rpath" != no; then
8971                                                                   haveit=
8972                       for x in $rpathdirs; do
8973                         if test "X$x" = "X$dir"; then
8974                           haveit=yes
8975                           break
8976                         fi
8977                       done
8978                       if test -z "$haveit"; then
8979                         rpathdirs="$rpathdirs $dir"
8980                       fi
8981                                                                   haveit=
8982                       for x in $ltrpathdirs; do
8983                         if test "X$x" = "X$dir"; then
8984                           haveit=yes
8985                           break
8986                         fi
8987                       done
8988                       if test -z "$haveit"; then
8989                         ltrpathdirs="$ltrpathdirs $dir"
8990                       fi
8991                     fi
8992                     ;;
8993                   -l*)
8994                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8995                     ;;
8996                   *.la)
8997                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8998                     ;;
8999                   *)
9000                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9001                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9002                     ;;
9003                 esac
9004               done
9005             fi
9006           else
9007                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9008             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9009           fi
9010         fi
9011       fi
9012     done
9013   done
9014   if test "X$rpathdirs" != "X"; then
9015     if test -n "$hardcode_libdir_separator"; then
9016                         alldirs=
9017       for found_dir in $rpathdirs; do
9018         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9019       done
9020             acl_save_libdir="$libdir"
9021       libdir="$alldirs"
9022       eval flag=\"$hardcode_libdir_flag_spec\"
9023       libdir="$acl_save_libdir"
9024       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9025     else
9026             for found_dir in $rpathdirs; do
9027         acl_save_libdir="$libdir"
9028         libdir="$found_dir"
9029         eval flag=\"$hardcode_libdir_flag_spec\"
9030         libdir="$acl_save_libdir"
9031         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9032       done
9033     fi
9034   fi
9035   if test "X$ltrpathdirs" != "X"; then
9036             for found_dir in $ltrpathdirs; do
9037       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9038     done
9039   fi
9040
9041
9042
9043
9044
9045
9046
9047           am_save_CPPFLAGS="$CPPFLAGS"
9048
9049   for element in $INCICONV; do
9050     haveit=
9051     for x in $CPPFLAGS; do
9052
9053   acl_save_prefix="$prefix"
9054   prefix="$acl_final_prefix"
9055   acl_save_exec_prefix="$exec_prefix"
9056   exec_prefix="$acl_final_exec_prefix"
9057   eval x=\"$x\"
9058   exec_prefix="$acl_save_exec_prefix"
9059   prefix="$acl_save_prefix"
9060
9061       if test "X$x" = "X$element"; then
9062         haveit=yes
9063         break
9064       fi
9065     done
9066     if test -z "$haveit"; then
9067       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9068     fi
9069   done
9070
9071
9072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9073 $as_echo_n "checking for iconv... " >&6; }
9074 if test "${am_cv_func_iconv+set}" = set; then :
9075   $as_echo_n "(cached) " >&6
9076 else
9077
9078     am_cv_func_iconv="no, consider installing GNU libiconv"
9079     am_cv_lib_iconv=no
9080     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h.  */
9082 #include <stdlib.h>
9083 #include <iconv.h>
9084 int
9085 main ()
9086 {
9087 iconv_t cd = iconv_open("","");
9088        iconv(cd,NULL,NULL,NULL,NULL);
9089        iconv_close(cd);
9090   ;
9091   return 0;
9092 }
9093 _ACEOF
9094 if ac_fn_c_try_link "$LINENO"; then :
9095   am_cv_func_iconv=yes
9096 fi
9097 rm -f core conftest.err conftest.$ac_objext \
9098     conftest$ac_exeext conftest.$ac_ext
9099     if test "$am_cv_func_iconv" != yes; then
9100       am_save_LIBS="$LIBS"
9101       LIBS="$LIBS $LIBICONV"
9102       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h.  */
9104 #include <stdlib.h>
9105 #include <iconv.h>
9106 int
9107 main ()
9108 {
9109 iconv_t cd = iconv_open("","");
9110          iconv(cd,NULL,NULL,NULL,NULL);
9111          iconv_close(cd);
9112   ;
9113   return 0;
9114 }
9115 _ACEOF
9116 if ac_fn_c_try_link "$LINENO"; then :
9117   am_cv_lib_iconv=yes
9118         am_cv_func_iconv=yes
9119 fi
9120 rm -f core conftest.err conftest.$ac_objext \
9121     conftest$ac_exeext conftest.$ac_ext
9122       LIBS="$am_save_LIBS"
9123     fi
9124
9125 fi
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9127 $as_echo "$am_cv_func_iconv" >&6; }
9128   if test "$am_cv_func_iconv" = yes; then
9129
9130 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9131
9132   fi
9133   if test "$am_cv_lib_iconv" = yes; then
9134     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9135 $as_echo_n "checking how to link with libiconv... " >&6; }
9136     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9137 $as_echo "$LIBICONV" >&6; }
9138   else
9139             CPPFLAGS="$am_save_CPPFLAGS"
9140     LIBICONV=
9141     LTLIBICONV=
9142   fi
9143
9144
9145
9146   if test "$am_cv_func_iconv" = yes; then
9147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9148 $as_echo_n "checking for iconv declaration... " >&6; }
9149     if test "${am_cv_proto_iconv+set}" = set; then :
9150   $as_echo_n "(cached) " >&6
9151 else
9152
9153       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h.  */
9155
9156 #include <stdlib.h>
9157 #include <iconv.h>
9158 extern
9159 #ifdef __cplusplus
9160 "C"
9161 #endif
9162 #if defined(__STDC__) || defined(__cplusplus)
9163 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9164 #else
9165 size_t iconv();
9166 #endif
9167
9168 int
9169 main ()
9170 {
9171
9172   ;
9173   return 0;
9174 }
9175 _ACEOF
9176 if ac_fn_c_try_compile "$LINENO"; then :
9177   am_cv_proto_iconv_arg1=""
9178 else
9179   am_cv_proto_iconv_arg1="const"
9180 fi
9181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182       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);"
9183 fi
9184
9185     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9186     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9187          }$am_cv_proto_iconv" >&5
9188 $as_echo "${ac_t:-
9189          }$am_cv_proto_iconv" >&6; }
9190
9191 cat >>confdefs.h <<_ACEOF
9192 #define ICONV_CONST $am_cv_proto_iconv_arg1
9193 _ACEOF
9194
9195   fi
9196
9197 # Until we have in-tree GNU iconv:
9198 LIBICONV_DEP=
9199
9200
9201
9202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9203 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9204 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9205   $as_echo_n "(cached) " >&6
9206 else
9207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h.  */
9209 #include <locale.h>
9210 int
9211 main ()
9212 {
9213 return LC_MESSAGES
9214   ;
9215   return 0;
9216 }
9217 _ACEOF
9218 if ac_fn_c_try_link "$LINENO"; then :
9219   am_cv_val_LC_MESSAGES=yes
9220 else
9221   am_cv_val_LC_MESSAGES=no
9222 fi
9223 rm -f core conftest.err conftest.$ac_objext \
9224     conftest$ac_exeext conftest.$ac_ext
9225 fi
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9227 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9228   if test $am_cv_val_LC_MESSAGES = yes; then
9229
9230 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9231
9232   fi
9233
9234
9235
9236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9237 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9238 if test "${am_cv_langinfo_codeset+set}" = set; then :
9239   $as_echo_n "(cached) " >&6
9240 else
9241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h.  */
9243 #include <langinfo.h>
9244 int
9245 main ()
9246 {
9247 char* cs = nl_langinfo(CODESET);
9248   ;
9249   return 0;
9250 }
9251 _ACEOF
9252 if ac_fn_c_try_link "$LINENO"; then :
9253   am_cv_langinfo_codeset=yes
9254 else
9255   am_cv_langinfo_codeset=no
9256 fi
9257 rm -f core conftest.err conftest.$ac_objext \
9258     conftest$ac_exeext conftest.$ac_ext
9259
9260 fi
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9262 $as_echo "$am_cv_langinfo_codeset" >&6; }
9263   if test $am_cv_langinfo_codeset = yes; then
9264
9265 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9266
9267   fi
9268
9269
9270 # We will need to find libiberty.h and ansidecl.h
9271 saved_CFLAGS="$CFLAGS"
9272 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9273 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9274         strsignal strstr strverscmp \
9275         errno snprintf vsnprintf vasprintf malloc realloc calloc \
9276         free basename getopt clock getpagesize 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
9277 do
9278   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9280 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9281 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9282   $as_echo_n "(cached) " >&6
9283 else
9284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285 /* end confdefs.h.  */
9286 #undef $ac_tr_decl
9287 #define $ac_tr_decl 1
9288
9289 #include "ansidecl.h"
9290 #include "system.h"
9291
9292 int
9293 main ()
9294 {
9295 #ifndef $ac_func
9296 char *(*pfn) = (char *(*)) $ac_func ;
9297 #endif
9298   ;
9299   return 0;
9300 }
9301 _ACEOF
9302 if ac_fn_c_try_compile "$LINENO"; then :
9303   eval "gcc_cv_have_decl_$ac_func=yes"
9304 else
9305   eval "gcc_cv_have_decl_$ac_func=no"
9306 fi
9307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9308 fi
9309
9310 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9312 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9313 #define $ac_tr_decl 1
9314 _ACEOF
9315
9316 else
9317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9318 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9319 #define $ac_tr_decl 0
9320 _ACEOF
9321
9322 fi
9323
9324 done
9325
9326
9327 for ac_func in getrlimit setrlimit getrusage
9328 do
9329   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9331 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9332 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9333   $as_echo_n "(cached) " >&6
9334 else
9335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h.  */
9337 #undef $ac_tr_decl
9338 #define $ac_tr_decl 1
9339
9340 #include "ansidecl.h"
9341 #include "system.h"
9342 #ifdef HAVE_SYS_RESOURCE_H
9343 #include <sys/resource.h>
9344 #endif
9345
9346
9347 int
9348 main ()
9349 {
9350 #ifndef $ac_func
9351 char *(*pfn) = (char *(*)) $ac_func ;
9352 #endif
9353   ;
9354   return 0;
9355 }
9356 _ACEOF
9357 if ac_fn_c_try_compile "$LINENO"; then :
9358   eval "gcc_cv_have_decl_$ac_func=yes"
9359 else
9360   eval "gcc_cv_have_decl_$ac_func=no"
9361 fi
9362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9363 fi
9364
9365 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9367 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9368 #define $ac_tr_decl 1
9369 _ACEOF
9370
9371 else
9372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9373 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9374 #define $ac_tr_decl 0
9375 _ACEOF
9376
9377 fi
9378
9379 done
9380
9381
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h.  */
9384
9385 #include "ansidecl.h"
9386 #include "system.h"
9387 #ifdef HAVE_SYS_RESOURCE_H
9388 #include <sys/resource.h>
9389 #endif
9390
9391 int
9392 main ()
9393 {
9394 rlim_t l = 0;
9395   ;
9396   return 0;
9397 }
9398 _ACEOF
9399 if ac_fn_c_try_compile "$LINENO"; then :
9400
9401 else
9402
9403 $as_echo "#define rlim_t long" >>confdefs.h
9404
9405 fi
9406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9407
9408 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9409 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
9410 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9411 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9412 for ac_func in ldgetname
9413 do
9414   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9416 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9417 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9418   $as_echo_n "(cached) " >&6
9419 else
9420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h.  */
9422 #undef $ac_tr_decl
9423 #define $ac_tr_decl 1
9424
9425 #include "ansidecl.h"
9426 #include "system.h"
9427 #ifdef HAVE_LDFCN_H
9428 #undef FREAD
9429 #undef FWRITE
9430 #include <ldfcn.h>
9431 #endif
9432
9433
9434 int
9435 main ()
9436 {
9437 #ifndef $ac_func
9438 char *(*pfn) = (char *(*)) $ac_func ;
9439 #endif
9440   ;
9441   return 0;
9442 }
9443 _ACEOF
9444 if ac_fn_c_try_compile "$LINENO"; then :
9445   eval "gcc_cv_have_decl_$ac_func=yes"
9446 else
9447   eval "gcc_cv_have_decl_$ac_func=no"
9448 fi
9449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9450 fi
9451
9452 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9454 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9455 #define $ac_tr_decl 1
9456 _ACEOF
9457
9458 else
9459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9461 #define $ac_tr_decl 0
9462 _ACEOF
9463
9464 fi
9465
9466 done
9467
9468
9469 for ac_func in times
9470 do
9471   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9473 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9474 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9475   $as_echo_n "(cached) " >&6
9476 else
9477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h.  */
9479 #undef $ac_tr_decl
9480 #define $ac_tr_decl 1
9481
9482 #include "ansidecl.h"
9483 #include "system.h"
9484 #ifdef HAVE_SYS_TIMES_H
9485 #include <sys/times.h>
9486 #endif
9487
9488
9489 int
9490 main ()
9491 {
9492 #ifndef $ac_func
9493 char *(*pfn) = (char *(*)) $ac_func ;
9494 #endif
9495   ;
9496   return 0;
9497 }
9498 _ACEOF
9499 if ac_fn_c_try_compile "$LINENO"; then :
9500   eval "gcc_cv_have_decl_$ac_func=yes"
9501 else
9502   eval "gcc_cv_have_decl_$ac_func=no"
9503 fi
9504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9505 fi
9506
9507 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9509 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9510 #define $ac_tr_decl 1
9511 _ACEOF
9512
9513 else
9514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9516 #define $ac_tr_decl 0
9517 _ACEOF
9518
9519 fi
9520
9521 done
9522
9523
9524 for ac_func in sigaltstack
9525 do
9526   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9528 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9529 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9530   $as_echo_n "(cached) " >&6
9531 else
9532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h.  */
9534 #undef $ac_tr_decl
9535 #define $ac_tr_decl 1
9536
9537 #include "ansidecl.h"
9538 #include "system.h"
9539 #include <signal.h>
9540
9541
9542 int
9543 main ()
9544 {
9545 #ifndef $ac_func
9546 char *(*pfn) = (char *(*)) $ac_func ;
9547 #endif
9548   ;
9549   return 0;
9550 }
9551 _ACEOF
9552 if ac_fn_c_try_compile "$LINENO"; then :
9553   eval "gcc_cv_have_decl_$ac_func=yes"
9554 else
9555   eval "gcc_cv_have_decl_$ac_func=no"
9556 fi
9557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9558 fi
9559
9560 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9562 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9563 #define $ac_tr_decl 1
9564 _ACEOF
9565
9566 else
9567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9568 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9569 #define $ac_tr_decl 0
9570 _ACEOF
9571
9572 fi
9573
9574 done
9575
9576
9577 # More time-related stuff.
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
9579 $as_echo_n "checking for struct tms... " >&6; }
9580 if test "${ac_cv_struct_tms+set}" = set; then :
9581   $as_echo_n "(cached) " >&6
9582 else
9583
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h.  */
9586
9587 #include "ansidecl.h"
9588 #include "system.h"
9589 #ifdef HAVE_SYS_TIMES_H
9590 #include <sys/times.h>
9591 #endif
9592
9593 int
9594 main ()
9595 {
9596 struct tms tms;
9597   ;
9598   return 0;
9599 }
9600 _ACEOF
9601 if ac_fn_c_try_compile "$LINENO"; then :
9602   ac_cv_struct_tms=yes
9603 else
9604   ac_cv_struct_tms=no
9605 fi
9606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9607 fi
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
9609 $as_echo "$ac_cv_struct_tms" >&6; }
9610 if test $ac_cv_struct_tms = yes; then
9611
9612 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
9613
9614 fi
9615
9616 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
9617 # revisit after autoconf 2.50.
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
9619 $as_echo_n "checking for clock_t... " >&6; }
9620 if test "${gcc_cv_type_clock_t+set}" = set; then :
9621   $as_echo_n "(cached) " >&6
9622 else
9623
9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h.  */
9626
9627 #include "ansidecl.h"
9628 #include "system.h"
9629
9630 int
9631 main ()
9632 {
9633 clock_t x;
9634   ;
9635   return 0;
9636 }
9637 _ACEOF
9638 if ac_fn_c_try_compile "$LINENO"; then :
9639   gcc_cv_type_clock_t=yes
9640 else
9641   gcc_cv_type_clock_t=no
9642 fi
9643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9644 fi
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
9646 $as_echo "$gcc_cv_type_clock_t" >&6; }
9647 if test $gcc_cv_type_clock_t = yes; then
9648
9649 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
9650
9651 fi
9652
9653 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
9654 CFLAGS="$saved_CFLAGS"
9655
9656 # Check whether --enable-initfini-array was given.
9657 if test "${enable_initfini_array+set}" = set; then :
9658   enableval=$enable_initfini_array;
9659 else
9660
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
9662 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
9663 if test "${gcc_cv_initfini_array+set}" = set; then :
9664   $as_echo_n "(cached) " >&6
9665 else
9666     if test "$cross_compiling" = yes; then :
9667   gcc_cv_initfini_array=no
9668 else
9669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h.  */
9671
9672 static int x = -1;
9673 int main (void) { return x; }
9674 int foo (void) { x = 0; }
9675 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
9676 _ACEOF
9677 if ac_fn_c_try_run "$LINENO"; then :
9678   gcc_cv_initfini_array=yes
9679 else
9680   gcc_cv_initfini_array=no
9681 fi
9682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9683   conftest.$ac_objext conftest.beam conftest.$ac_ext
9684 fi
9685
9686 fi
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
9688 $as_echo "$gcc_cv_initfini_array" >&6; }
9689   enable_initfini_array=$gcc_cv_initfini_array
9690
9691 fi
9692
9693 if test $enable_initfini_array = yes; then
9694
9695 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
9696
9697 fi
9698
9699 # mkdir takes a single argument on some systems.
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
9701 $as_echo_n "checking if mkdir takes one argument... " >&6; }
9702 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
9703   $as_echo_n "(cached) " >&6
9704 else
9705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h.  */
9707
9708 #include <sys/types.h>
9709 #ifdef HAVE_SYS_STAT_H
9710 # include <sys/stat.h>
9711 #endif
9712 #ifdef HAVE_UNISTD_H
9713 # include <unistd.h>
9714 #endif
9715 #ifdef HAVE_DIRECT_H
9716 # include <direct.h>
9717 #endif
9718 int
9719 main ()
9720 {
9721 mkdir ("foo", 0);
9722   ;
9723   return 0;
9724 }
9725 _ACEOF
9726 if ac_fn_c_try_compile "$LINENO"; then :
9727   gcc_cv_mkdir_takes_one_arg=no
9728 else
9729   gcc_cv_mkdir_takes_one_arg=yes
9730 fi
9731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9732 fi
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
9734 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
9735 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9736
9737 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
9738
9739 fi
9740
9741
9742 # File extensions
9743 manext='.1'
9744 objext='.o'
9745
9746
9747
9748 # With Setjmp/Longjmp based exception handling.
9749 # Check whether --enable-sjlj-exceptions was given.
9750 if test "${enable_sjlj_exceptions+set}" = set; then :
9751   enableval=$enable_sjlj_exceptions; case $target in
9752   *-*-hpux10*)
9753     if test $enableval != yes; then
9754       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
9755 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
9756       enableval=yes
9757     fi
9758     ;;
9759 esac
9760 force_sjlj_exceptions=yes
9761 else
9762   case $target in
9763   *-*-hpux10*)
9764     force_sjlj_exceptions=yes
9765     enableval=yes
9766     ;;
9767   *)
9768     force_sjlj_exceptions=no
9769     ;;
9770 esac
9771 fi
9772
9773 if test $force_sjlj_exceptions = yes; then
9774   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9775
9776 cat >>confdefs.h <<_ACEOF
9777 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9778 _ACEOF
9779
9780 fi
9781
9782 # For platforms with the unwind ABI which includes an unwind library,
9783 # libunwind, we can choose to use the system libunwind.
9784 # config.gcc also contains tests of with_system_libunwind.
9785
9786
9787 # Check whether --with-system-libunwind was given.
9788 if test "${with_system_libunwind+set}" = set; then :
9789   withval=$with_system_libunwind;
9790 fi
9791
9792   # If system-libunwind was not specifically set, pick a default setting.
9793   if test x$with_system_libunwind = x; then
9794     case ${target} in
9795       ia64-*-hpux*) with_system_libunwind=yes ;;
9796       *) with_system_libunwind=no ;;
9797     esac
9798   fi
9799   # Based on system-libunwind and target, do we have ipinfo?
9800   if  test x$with_system_libunwind = xyes; then
9801     case ${target} in
9802       ia64-*-*) have_unwind_getipinfo=no ;;
9803       *) have_unwind_getipinfo=yes ;;
9804     esac
9805   else
9806     # Darwin before version 9 does not have _Unwind_GetIPInfo.
9807
9808     case ${target} in
9809       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
9810       *) have_unwind_getipinfo=yes ;;
9811     esac
9812
9813   fi
9814
9815   if test x$have_unwind_getipinfo = xyes; then
9816
9817 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
9818
9819   fi
9820
9821
9822 # --------------------------------------------------------
9823 # Build, host, and target specific configuration fragments
9824 # --------------------------------------------------------
9825
9826 # Collect build-machine-specific information.
9827 . ${srcdir}/config.build
9828
9829 # Collect host-machine-specific information.
9830 . ${srcdir}/config.host
9831
9832 target_gtfiles=
9833
9834 # Collect target-machine-specific information.
9835 . ${srcdir}/config.gcc
9836
9837 extra_objs="${host_extra_objs} ${extra_objs}"
9838 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9839
9840 # Default the target-machine variables that were not explicitly set.
9841 if test x"$tm_file" = x
9842 then tm_file=$cpu_type/$cpu_type.h; fi
9843
9844 if test x"$extra_headers" = x
9845 then extra_headers=; fi
9846
9847 if test x$md_file = x
9848 then md_file=$cpu_type/$cpu_type.md; fi
9849
9850 if test x$out_file = x
9851 then out_file=$cpu_type/$cpu_type.c; fi
9852
9853 if test x"$tmake_file" = x
9854 then tmake_file=$cpu_type/t-$cpu_type
9855 fi
9856
9857 if test x"$dwarf2" = xyes
9858 then tm_file="$tm_file tm-dwarf2.h"
9859 fi
9860
9861 # Say what files are being used for the output code and MD file.
9862 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9863 echo "Using \`$srcdir/config/$md_file' as machine description file."
9864
9865 # If any of the xm_file variables contain nonexistent files, warn
9866 # about them and drop them.
9867
9868 bx=
9869 for x in $build_xm_file; do
9870   if    test -f $srcdir/config/$x
9871   then      bx="$bx $x"
9872   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
9873 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9874   fi
9875 done
9876 build_xm_file="$bx"
9877
9878 hx=
9879 for x in $host_xm_file; do
9880   if    test -f $srcdir/config/$x
9881   then      hx="$hx $x"
9882   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
9883 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9884   fi
9885 done
9886 host_xm_file="$hx"
9887
9888 tx=
9889 for x in $xm_file; do
9890   if    test -f $srcdir/config/$x
9891   then      tx="$tx $x"
9892   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
9893 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9894   fi
9895 done
9896 xm_file="$tx"
9897
9898 count=a
9899 for f in $tm_file; do
9900         count=${count}x
9901 done
9902 if test $count = ax; then
9903         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9904 else
9905         echo "Using the following target machine macro files:"
9906         for f in $tm_file; do
9907                 echo "  $srcdir/config/$f"
9908         done
9909 fi
9910
9911 if test x$need_64bit_hwint = xyes; then
9912
9913 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
9914
9915 fi
9916
9917 if test x$use_long_long_for_widest_fast_int = xyes; then
9918
9919 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
9920
9921 fi
9922
9923 count=a
9924 for f in $host_xm_file; do
9925         count=${count}x
9926 done
9927 if test $count = a; then
9928         :
9929 elif test $count = ax; then
9930         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9931 else
9932         echo "Using the following host machine macro files:"
9933         for f in $host_xm_file; do
9934                 echo "  $srcdir/config/$f"
9935         done
9936 fi
9937 echo "Using ${out_host_hook_obj} for host machine hooks."
9938
9939 if test "$host_xm_file" != "$build_xm_file"; then
9940         count=a
9941         for f in $build_xm_file; do
9942                 count=${count}x
9943         done
9944         if test $count = a; then
9945                 :
9946         elif test $count = ax; then
9947                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9948         else
9949                 echo "Using the following build machine macro files:"
9950                 for f in $build_xm_file; do
9951                         echo "  $srcdir/config/$f"
9952                 done
9953         fi
9954 fi
9955
9956 case ${host} in
9957   powerpc*-*-darwin*)
9958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
9959 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
9960 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
9961   $as_echo_n "(cached) " >&6
9962 else
9963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h.  */
9965
9966 #include <sys/cdefs.h>
9967 #include <sys/signal.h>
9968 #include <ucontext.h>
9969 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
9970
9971 _ACEOF
9972 if ac_fn_c_try_compile "$LINENO"; then :
9973   gcc_cv_mcontext_underscores=no
9974 else
9975   gcc_cv_mcontext_underscores=yes
9976 fi
9977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9978 fi
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
9980 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
9981       if test $gcc_cv_mcontext_underscores = yes; then
9982
9983 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
9984
9985       fi
9986     ;;
9987 esac
9988
9989 # ---------
9990 # Threading
9991 # ---------
9992
9993 # Check if a valid thread package
9994 case ${enable_threads} in
9995   "" | no)
9996     # No threads
9997     target_thread_file='single'
9998     ;;
9999   yes)
10000     # default
10001     target_thread_file='single'
10002     ;;
10003   aix | dce | gnat | irix | posix | posix95 | rtems | \
10004   single | solaris | vxworks | win32 | mipssde)
10005     target_thread_file=${enable_threads}
10006     ;;
10007   *)
10008     echo "${enable_threads} is an unknown thread package" 1>&2
10009     exit 1
10010     ;;
10011 esac
10012
10013 if test x${thread_file} = x; then
10014   # No thread file set by target-specific clauses in config.gcc,
10015   # so use file chosen by default logic above
10016   thread_file=${target_thread_file}
10017 fi
10018
10019 # Make gthr-default.h if we have a thread file.
10020 gthread_flags=
10021 if test $thread_file != single; then
10022   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10023   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10024     rm -f gthr-default.h-t
10025   else
10026     mv -f gthr-default.h-t gthr-default.h
10027   fi
10028   gthread_flags=-DHAVE_GTHR_DEFAULT
10029 fi
10030
10031
10032 # --------
10033 # UNSORTED
10034 # --------
10035
10036 use_cxa_atexit=no
10037 if test x$enable___cxa_atexit = xyes || \
10038    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10039   if test x$host = x$target; then
10040     case $host in
10041       # mingw32 doesn't have __cxa_atexit but uses atexit registration
10042       # keyed to flag_use_cxa_atexit
10043       *-*-mingw32*)
10044         use_cxa_atexit=yes
10045         ;;
10046       *)
10047         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10048 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10049   use_cxa_atexit=yes
10050 else
10051   echo "__cxa_atexit can't be enabled on this target"
10052 fi
10053
10054         ;;
10055     esac
10056   else
10057     # We can't check for __cxa_atexit when building a cross, so assume
10058     # it is available
10059     use_cxa_atexit=yes
10060   fi
10061   if test x$use_cxa_atexit = xyes; then
10062
10063 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10064
10065   fi
10066 fi
10067
10068 # Look for a file containing extra machine modes.
10069 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10070   extra_modes_file='$(srcdir)'/config/${extra_modes}
10071
10072
10073 cat >>confdefs.h <<_ACEOF
10074 #define EXTRA_MODES_FILE "config/$extra_modes"
10075 _ACEOF
10076
10077 fi
10078
10079 # Convert extra_options into a form suitable for Makefile use.
10080 extra_opt_files=
10081 for f in $extra_options; do
10082   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10083 done
10084
10085
10086 # auto-host.h is the file containing items generated by autoconf and is
10087 # the first file included by config.h.
10088 # If host=build, it is correct to have bconfig include auto-host.h
10089 # as well.  If host!=build, we are in error and need to do more
10090 # work to find out the build config parameters.
10091 if test x$host = x$build
10092 then
10093         build_auto=auto-host.h
10094 else
10095         # We create a subdir, then run autoconf in the subdir.
10096         # To prevent recursion we set host and build for the new
10097         # invocation of configure to the build for this invocation
10098         # of configure.
10099         tempdir=build.$$
10100         rm -rf $tempdir
10101         mkdir $tempdir
10102         cd $tempdir
10103         case ${srcdir} in
10104         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10105         *) realsrcdir=../${srcdir};;
10106         esac
10107         saved_CFLAGS="${CFLAGS}"
10108         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10109         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10110         ${realsrcdir}/configure \
10111                 --enable-languages=${enable_languages-all} \
10112                 --target=$target_alias --host=$build_alias --build=$build_alias
10113         CFLAGS="${saved_CFLAGS}"
10114
10115         # We just finished tests for the build machine, so rename
10116         # the file auto-build.h in the gcc directory.
10117         mv auto-host.h ../auto-build.h
10118         cd ..
10119         rm -rf $tempdir
10120         build_auto=auto-build.h
10121 fi
10122
10123
10124 tm_file="${tm_file} defaults.h"
10125 tm_p_file="${tm_p_file} tm-preds.h"
10126 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10127 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10128 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10129 # put this back in temporarily.
10130 xm_file="auto-host.h ansidecl.h ${xm_file}"
10131
10132 # --------
10133 # UNSORTED
10134 # --------
10135
10136 # Compile in configure arguments.
10137 if test -f configargs.h ; then
10138         # Being re-configured.
10139         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10140         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10141 else
10142         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10143 fi
10144
10145 # Double all backslashes and backslash all quotes to turn
10146 # gcc_config_arguments into a C string.
10147 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10148 $gcc_config_arguments
10149 EOF
10150 gcc_config_arguments_str=`cat conftest.out`
10151 rm -f conftest.out
10152
10153 cat > configargs.h <<EOF
10154 /* Generated automatically. */
10155 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10156 static const char thread_model[] = "$thread_file";
10157
10158 static const struct {
10159   const char *name, *value;
10160 } configure_default_options[] = $configure_default_options;
10161 EOF
10162
10163 gcc_BASEVER=`cat $srcdir/BASE-VER`
10164 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10165 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10166 if test -f $srcdir/REVISION ; then
10167         gcc_REVISION=`cat $srcdir/REVISION`
10168 else
10169         gcc_REVISION=""
10170 fi
10171 cat > plugin-version.h <<EOF
10172 #include "configargs.h"
10173
10174 static char basever[] = "$gcc_BASEVER";
10175 static char datestamp[] = "$gcc_DATESTAMP";
10176 static char devphase[] = "$gcc_DEVPHASE";
10177 static char revision[] = "$gcc_REVISION";
10178
10179 /* FIXME plugins: We should make the version information more precise.
10180    One way to do is to add a checksum. */
10181
10182 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10183                                                 devphase, revision,
10184                                                 configuration_arguments};
10185 EOF
10186
10187 # Internationalization
10188 # If we haven't got the data from the intl directory,
10189 # assume NLS is disabled.
10190 USE_NLS=no
10191 LIBINTL=
10192 LIBINTL_DEP=
10193 INCINTL=
10194 XGETTEXT=
10195 GMSGFMT=
10196 POSUB=
10197
10198 if test -f  ../intl/config.intl; then
10199   .  ../intl/config.intl
10200 fi
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10202 $as_echo_n "checking whether NLS is requested... " >&6; }
10203 if test x"$USE_NLS" != xyes; then
10204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10205 $as_echo "no" >&6; }
10206 else
10207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10208 $as_echo "yes" >&6; }
10209
10210 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10211
10212
10213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10214 $as_echo_n "checking for catalogs to be installed... " >&6; }
10215   # Look for .po and .gmo files in the source directory.
10216   CATALOGS=
10217   XLINGUAS=
10218   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10219     # If there aren't any .gmo files the shell will give us the
10220     # literal string "../path/to/srcdir/po/*.gmo" which has to be
10221     # weeded out.
10222     case "$cat" in *\**)
10223       continue;;
10224     esac
10225     # The quadruple backslash is collapsed to a double backslash
10226     # by the backticks, then collapsed again by the double quotes,
10227     # leaving us with one backslash in the sed expression (right
10228     # before the dot that mustn't act as a wildcard).
10229     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10230     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10231     # The user is allowed to set LINGUAS to a list of languages to
10232     # install catalogs for.  If it's empty that means "all of them."
10233     if test "x$LINGUAS" = x; then
10234       CATALOGS="$CATALOGS $cat"
10235       XLINGUAS="$XLINGUAS $lang"
10236     else
10237       case "$LINGUAS" in *$lang*)
10238         CATALOGS="$CATALOGS $cat"
10239         XLINGUAS="$XLINGUAS $lang"
10240         ;;
10241       esac
10242     fi
10243   done
10244   LINGUAS="$XLINGUAS"
10245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10246 $as_echo "$LINGUAS" >&6; }
10247
10248
10249     DATADIRNAME=share
10250
10251   INSTOBJEXT=.mo
10252
10253   GENCAT=gencat
10254
10255   CATOBJEXT=.gmo
10256
10257 fi
10258
10259 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10260 # -liconv on the link line twice.
10261 case "$LIBINTL" in *$LIBICONV*)
10262         LIBICONV= ;;
10263 esac
10264
10265 # Check whether --enable-secureplt was given.
10266 if test "${enable_secureplt+set}" = set; then :
10267   enableval=$enable_secureplt;
10268 fi
10269
10270
10271 # Check whether --enable-cld was given.
10272 if test "${enable_cld+set}" = set; then :
10273   enableval=$enable_cld;
10274 else
10275   enable_cld=no
10276 fi
10277
10278
10279 # Windows32 Registry support for specifying GCC installation paths.
10280 # Check whether --enable-win32-registry was given.
10281 if test "${enable_win32_registry+set}" = set; then :
10282   enableval=$enable_win32_registry;
10283 fi
10284
10285
10286 case $host_os in
10287   win32 | pe | cygwin* | mingw32* | uwin*)
10288     if test "x$enable_win32_registry" != xno; then
10289       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10290 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10291 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10292   $as_echo_n "(cached) " >&6
10293 else
10294   ac_func_search_save_LIBS=$LIBS
10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296 /* end confdefs.h.  */
10297
10298 /* Override any GCC internal prototype to avoid an error.
10299    Use char because int might match the return type of a GCC
10300    builtin and then its argument prototype would still apply.  */
10301 #ifdef __cplusplus
10302 extern "C"
10303 #endif
10304 char RegOpenKeyExA ();
10305 int
10306 main ()
10307 {
10308 return RegOpenKeyExA ();
10309   ;
10310   return 0;
10311 }
10312 _ACEOF
10313 for ac_lib in '' advapi32; do
10314   if test -z "$ac_lib"; then
10315     ac_res="none required"
10316   else
10317     ac_res=-l$ac_lib
10318     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10319   fi
10320   if ac_fn_c_try_link "$LINENO"; then :
10321   ac_cv_search_RegOpenKeyExA=$ac_res
10322 fi
10323 rm -f core conftest.err conftest.$ac_objext \
10324     conftest$ac_exeext
10325   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10326   break
10327 fi
10328 done
10329 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10330
10331 else
10332   ac_cv_search_RegOpenKeyExA=no
10333 fi
10334 rm conftest.$ac_ext
10335 LIBS=$ac_func_search_save_LIBS
10336 fi
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10338 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10339 ac_res=$ac_cv_search_RegOpenKeyExA
10340 if test "$ac_res" != no; then :
10341   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10342
10343 else
10344   enable_win32_registry=no
10345 fi
10346
10347     fi
10348
10349     if test "x$enable_win32_registry" != xno; then
10350
10351 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10352
10353
10354       if test "x$enable_win32_registry" != xyes \
10355          && test "x$enable_win32_registry" != x; then
10356
10357 cat >>confdefs.h <<_ACEOF
10358 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10359 _ACEOF
10360
10361       fi
10362     fi
10363   ;;
10364 esac
10365
10366 # Get an absolute path to the GCC top-level source directory
10367 holddir=`${PWDCMD-pwd}`
10368 cd $srcdir
10369 topdir=`${PWDCMD-pwd}`
10370 cd $holddir
10371
10372 # Conditionalize the makefile for this host machine.
10373 xmake_file=
10374 for f in ${host_xmake_file}
10375 do
10376         if test -f ${srcdir}/config/$f
10377         then
10378                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10379         fi
10380 done
10381
10382 # Conditionalize the makefile for this target machine.
10383 tmake_file_=
10384 for f in ${tmake_file}
10385 do
10386         if test -f ${srcdir}/config/$f
10387         then
10388                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10389         fi
10390 done
10391 tmake_file="${tmake_file_}"
10392
10393 out_object_file=`basename $out_file .c`.o
10394
10395 tm_file_list="options.h"
10396 tm_include_list="options.h"
10397 for f in $tm_file; do
10398   case $f in
10399     ./* )
10400        f=`echo $f | sed 's/^..//'`
10401        tm_file_list="${tm_file_list} $f"
10402        tm_include_list="${tm_include_list} $f"
10403        ;;
10404     defaults.h )
10405        tm_file_list="${tm_file_list} \$(srcdir)/$f"
10406        tm_include_list="${tm_include_list} $f"
10407        ;;
10408     * )
10409        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10410        tm_include_list="${tm_include_list} config/$f"
10411        ;;
10412   esac
10413 done
10414
10415 tm_p_file_list=
10416 tm_p_include_list=
10417 for f in $tm_p_file; do
10418   case $f in
10419     tm-preds.h )
10420        tm_p_file_list="${tm_p_file_list} $f"
10421        tm_p_include_list="${tm_p_include_list} $f"
10422        ;;
10423     * )
10424        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10425        tm_p_include_list="${tm_p_include_list} config/$f"
10426   esac
10427 done
10428
10429 xm_file_list=
10430 xm_include_list=
10431 for f in $xm_file; do
10432   case $f in
10433     ansidecl.h )
10434        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10435        xm_include_list="${xm_include_list} $f"
10436        ;;
10437     auto-host.h )
10438        xm_file_list="${xm_file_list} $f"
10439        xm_include_list="${xm_include_list} $f"
10440        ;;
10441     * )
10442        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10443        xm_include_list="${xm_include_list} config/$f"
10444        ;;
10445   esac
10446 done
10447
10448 host_xm_file_list=
10449 host_xm_include_list=
10450 for f in $host_xm_file; do
10451   case $f in
10452     ansidecl.h )
10453        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10454        host_xm_include_list="${host_xm_include_list} $f"
10455        ;;
10456     auto-host.h )
10457        host_xm_file_list="${host_xm_file_list} $f"
10458        host_xm_include_list="${host_xm_include_list} $f"
10459        ;;
10460     * )
10461        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10462        host_xm_include_list="${host_xm_include_list} config/$f"
10463        ;;
10464   esac
10465 done
10466
10467 build_xm_file_list=
10468 for f in $build_xm_file; do
10469   case $f in
10470     ansidecl.h )
10471        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10472        build_xm_include_list="${build_xm_include_list} $f"
10473        ;;
10474     auto-build.h | auto-host.h )
10475        build_xm_file_list="${build_xm_file_list} $f"
10476        build_xm_include_list="${build_xm_include_list} $f"
10477        ;;
10478     * )
10479        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10480        build_xm_include_list="${build_xm_include_list} config/$f"
10481        ;;
10482   esac
10483 done
10484
10485 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10486 # cross-compiler which does not use the native headers and libraries.
10487 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10488 CROSS=
10489 ALL=all.internal
10490 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10491
10492 if test "x$with_build_sysroot" != x; then
10493   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10494 else
10495   # This value is used, even on a native system, because
10496   # CROSS_SYSTEM_HEADER_DIR is just
10497   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10498   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10499 fi
10500
10501 if test x$host != x$target
10502 then
10503         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10504         ALL=all.cross
10505         SYSTEM_HEADER_DIR=$build_system_header_dir
10506         case "$host","$target" in
10507         # Darwin crosses can use the host system's libraries and headers,
10508         # because of the fat library support.  Of course, it must be the
10509         # same version of Darwin on both sides.  Allow the user to
10510         # just say --target=foo-darwin without a version number to mean
10511         # "the version on this system".
10512             *-*-darwin*,*-*-darwin*)
10513                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10514                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10515                 if test $hostos = $targetos -o $targetos = darwin ; then
10516                     CROSS=
10517                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10518                     with_headers=yes
10519                 fi
10520                 ;;
10521
10522             i?86-*-*,x86_64-*-* \
10523             | powerpc*-*-*,powerpc64*-*-*)
10524                 CROSS="$CROSS -DNATIVE_CROSS" ;;
10525         esac
10526 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10527         SYSTEM_HEADER_DIR=$build_system_header_dir
10528 fi
10529
10530 # If this is a cross-compiler that does not
10531 # have its own set of headers then define
10532 # inhibit_libc
10533
10534 # If this is using newlib, without having the headers available now,
10535 # then define inhibit_libc in LIBGCC2_CFLAGS.
10536 # This prevents libgcc2 from containing any code which requires libc
10537 # support.
10538 : ${inhibit_libc=false}
10539 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10540        test x$with_newlib = xyes ; } &&
10541      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10542        inhibit_libc=true
10543 fi
10544
10545
10546 # When building gcc with a cross-compiler, we need to adjust things so
10547 # that the generator programs are still built with the native compiler.
10548 # Also, we cannot run fixincludes.
10549
10550 # These are the normal (build=host) settings:
10551 CC_FOR_BUILD='$(CC)'
10552 BUILD_CFLAGS='$(ALL_CFLAGS)'
10553 BUILD_LDFLAGS='$(LDFLAGS)'
10554 STMP_FIXINC=stmp-fixinc
10555
10556 # And these apply if build != host, or we are generating coverage data
10557 if test x$build != x$host || test "x$coverage_flags" != x
10558 then
10559     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10560     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
10561 fi
10562
10563 # Expand extra_headers to include complete path.
10564 # This substitutes for lots of t-* files.
10565 extra_headers_list=
10566 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10567 for file in ${extra_headers} ; do
10568   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10569 done
10570
10571 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
10572 if test x"$use_gcc_tgmath" = xyes
10573 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
10574 fi
10575
10576 # Define collect2 in Makefile.
10577 case $host_can_use_collect2 in
10578   no) collect2= ;;
10579   *) collect2='collect2$(exeext)' ;;
10580 esac
10581
10582
10583 # Add a definition of USE_COLLECT2 if system wants one.
10584 case $use_collect2 in
10585   no) use_collect2= ;;
10586   "") ;;
10587   *)
10588     host_xm_defines="${host_xm_defines} USE_COLLECT2"
10589     xm_defines="${xm_defines} USE_COLLECT2"
10590     case $host_can_use_collect2 in
10591       no)
10592         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
10593         ;;
10594     esac
10595     ;;
10596 esac
10597
10598 # ---------------------------
10599 # Assembler & linker features
10600 # ---------------------------
10601
10602 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
10603 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
10604 # However when ld-new is first executed from the build tree, libtool will
10605 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
10606 # to the build tree.  While doing this we need to use the previous-stage
10607 # linker, or we have an infinite loop.  The presence of a shell script as
10608 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
10609 # the gcc/collect-ld script.  So we need to know how libtool works, or
10610 # exec-tool will fail.
10611
10612
10613 case `pwd` in
10614   *\ * | *\     *)
10615     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10616 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10617 esac
10618
10619
10620
10621 macro_version='2.2.6'
10622 macro_revision='1.3012'
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636 ltmain="$ac_aux_dir/ltmain.sh"
10637
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10639 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10640 if test "${ac_cv_path_SED+set}" = set; then :
10641   $as_echo_n "(cached) " >&6
10642 else
10643             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10644      for ac_i in 1 2 3 4 5 6 7; do
10645        ac_script="$ac_script$as_nl$ac_script"
10646      done
10647      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10648      { ac_script=; unset ac_script;}
10649      if test -z "$SED"; then
10650   ac_path_SED_found=false
10651   # Loop through the user's path and test for each of PROGNAME-LIST
10652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10653 for as_dir in $PATH
10654 do
10655   IFS=$as_save_IFS
10656   test -z "$as_dir" && as_dir=.
10657     for ac_prog in sed gsed; do
10658     for ac_exec_ext in '' $ac_executable_extensions; do
10659       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10660       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10661 # Check for GNU ac_path_SED and select it if it is found.
10662   # Check for GNU $ac_path_SED
10663 case `"$ac_path_SED" --version 2>&1` in
10664 *GNU*)
10665   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10666 *)
10667   ac_count=0
10668   $as_echo_n 0123456789 >"conftest.in"
10669   while :
10670   do
10671     cat "conftest.in" "conftest.in" >"conftest.tmp"
10672     mv "conftest.tmp" "conftest.in"
10673     cp "conftest.in" "conftest.nl"
10674     $as_echo '' >> "conftest.nl"
10675     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10676     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10677     as_fn_arith $ac_count + 1 && ac_count=$as_val
10678     if test $ac_count -gt ${ac_path_SED_max-0}; then
10679       # Best one so far, save it but keep looking for a better one
10680       ac_cv_path_SED="$ac_path_SED"
10681       ac_path_SED_max=$ac_count
10682     fi
10683     # 10*(2^10) chars as input seems more than enough
10684     test $ac_count -gt 10 && break
10685   done
10686   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10687 esac
10688
10689       $ac_path_SED_found && break 3
10690     done
10691   done
10692   done
10693 IFS=$as_save_IFS
10694   if test -z "$ac_cv_path_SED"; then
10695     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
10696   fi
10697 else
10698   ac_cv_path_SED=$SED
10699 fi
10700
10701 fi
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10703 $as_echo "$ac_cv_path_SED" >&6; }
10704  SED="$ac_cv_path_SED"
10705   rm -f conftest.sed
10706
10707 test -z "$SED" && SED=sed
10708 Xsed="$SED -e 1s/^X//"
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10721 $as_echo_n "checking for fgrep... " >&6; }
10722 if test "${ac_cv_path_FGREP+set}" = set; then :
10723   $as_echo_n "(cached) " >&6
10724 else
10725   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10726    then ac_cv_path_FGREP="$GREP -F"
10727    else
10728      if test -z "$FGREP"; then
10729   ac_path_FGREP_found=false
10730   # Loop through the user's path and test for each of PROGNAME-LIST
10731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10732 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10733 do
10734   IFS=$as_save_IFS
10735   test -z "$as_dir" && as_dir=.
10736     for ac_prog in fgrep; do
10737     for ac_exec_ext in '' $ac_executable_extensions; do
10738       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10739       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10740 # Check for GNU ac_path_FGREP and select it if it is found.
10741   # Check for GNU $ac_path_FGREP
10742 case `"$ac_path_FGREP" --version 2>&1` in
10743 *GNU*)
10744   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10745 *)
10746   ac_count=0
10747   $as_echo_n 0123456789 >"conftest.in"
10748   while :
10749   do
10750     cat "conftest.in" "conftest.in" >"conftest.tmp"
10751     mv "conftest.tmp" "conftest.in"
10752     cp "conftest.in" "conftest.nl"
10753     $as_echo 'FGREP' >> "conftest.nl"
10754     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10755     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10756     as_fn_arith $ac_count + 1 && ac_count=$as_val
10757     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10758       # Best one so far, save it but keep looking for a better one
10759       ac_cv_path_FGREP="$ac_path_FGREP"
10760       ac_path_FGREP_max=$ac_count
10761     fi
10762     # 10*(2^10) chars as input seems more than enough
10763     test $ac_count -gt 10 && break
10764   done
10765   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10766 esac
10767
10768       $ac_path_FGREP_found && break 3
10769     done
10770   done
10771   done
10772 IFS=$as_save_IFS
10773   if test -z "$ac_cv_path_FGREP"; then
10774     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10775   fi
10776 else
10777   ac_cv_path_FGREP=$FGREP
10778 fi
10779
10780    fi
10781 fi
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10783 $as_echo "$ac_cv_path_FGREP" >&6; }
10784  FGREP="$ac_cv_path_FGREP"
10785
10786
10787 test -z "$GREP" && GREP=grep
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807 # Check whether --with-gnu-ld was given.
10808 if test "${with_gnu_ld+set}" = set; then :
10809   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10810 else
10811   with_gnu_ld=no
10812 fi
10813
10814 ac_prog=ld
10815 if test "$GCC" = yes; then
10816   # Check if gcc -print-prog-name=ld gives a path.
10817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10818 $as_echo_n "checking for ld used by $CC... " >&6; }
10819   case $host in
10820   *-*-mingw*)
10821     # gcc leaves a trailing carriage return which upsets mingw
10822     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10823   *)
10824     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10825   esac
10826   case $ac_prog in
10827     # Accept absolute paths.
10828     [\\/]* | ?:[\\/]*)
10829       re_direlt='/[^/][^/]*/\.\./'
10830       # Canonicalize the pathname of ld
10831       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10832       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10833         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10834       done
10835       test -z "$LD" && LD="$ac_prog"
10836       ;;
10837   "")
10838     # If it fails, then pretend we aren't using GCC.
10839     ac_prog=ld
10840     ;;
10841   *)
10842     # If it is relative, then search for the first ld in PATH.
10843     with_gnu_ld=unknown
10844     ;;
10845   esac
10846 elif test "$with_gnu_ld" = yes; then
10847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10848 $as_echo_n "checking for GNU ld... " >&6; }
10849 else
10850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10851 $as_echo_n "checking for non-GNU ld... " >&6; }
10852 fi
10853 if test "${lt_cv_path_LD+set}" = set; then :
10854   $as_echo_n "(cached) " >&6
10855 else
10856   if test -z "$LD"; then
10857   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10858   for ac_dir in $PATH; do
10859     IFS="$lt_save_ifs"
10860     test -z "$ac_dir" && ac_dir=.
10861     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10862       lt_cv_path_LD="$ac_dir/$ac_prog"
10863       # Check to see if the program is GNU ld.  I'd rather use --version,
10864       # but apparently some variants of GNU ld only accept -v.
10865       # Break only if it was the GNU/non-GNU ld that we prefer.
10866       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10867       *GNU* | *'with BFD'*)
10868         test "$with_gnu_ld" != no && break
10869         ;;
10870       *)
10871         test "$with_gnu_ld" != yes && break
10872         ;;
10873       esac
10874     fi
10875   done
10876   IFS="$lt_save_ifs"
10877 else
10878   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10879 fi
10880 fi
10881
10882 LD="$lt_cv_path_LD"
10883 if test -n "$LD"; then
10884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10885 $as_echo "$LD" >&6; }
10886 else
10887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888 $as_echo "no" >&6; }
10889 fi
10890 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10892 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10893 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
10894   $as_echo_n "(cached) " >&6
10895 else
10896   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10897 case `$LD -v 2>&1 </dev/null` in
10898 *GNU* | *'with BFD'*)
10899   lt_cv_prog_gnu_ld=yes
10900   ;;
10901 *)
10902   lt_cv_prog_gnu_ld=no
10903   ;;
10904 esac
10905 fi
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10907 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10908 with_gnu_ld=$lt_cv_prog_gnu_ld
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10919 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10920 if test "${lt_cv_path_NM+set}" = set; then :
10921   $as_echo_n "(cached) " >&6
10922 else
10923   if test -n "$NM"; then
10924   # Let the user override the test.
10925   lt_cv_path_NM="$NM"
10926 else
10927   lt_nm_to_check="${ac_tool_prefix}nm"
10928   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10929     lt_nm_to_check="$lt_nm_to_check nm"
10930   fi
10931   for lt_tmp_nm in $lt_nm_to_check; do
10932     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10933     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10934       IFS="$lt_save_ifs"
10935       test -z "$ac_dir" && ac_dir=.
10936       tmp_nm="$ac_dir/$lt_tmp_nm"
10937       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10938         # Check to see if the nm accepts a BSD-compat flag.
10939         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10940         #   nm: unknown option "B" ignored
10941         # Tru64's nm complains that /dev/null is an invalid object file
10942         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10943         */dev/null* | *'Invalid file or object type'*)
10944           lt_cv_path_NM="$tmp_nm -B"
10945           break
10946           ;;
10947         *)
10948           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10949           */dev/null*)
10950             lt_cv_path_NM="$tmp_nm -p"
10951             break
10952             ;;
10953           *)
10954             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10955             continue # so that we can try to find one that supports BSD flags
10956             ;;
10957           esac
10958           ;;
10959         esac
10960       fi
10961     done
10962     IFS="$lt_save_ifs"
10963   done
10964   : ${lt_cv_path_NM=no}
10965 fi
10966 fi
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10968 $as_echo "$lt_cv_path_NM" >&6; }
10969 if test "$lt_cv_path_NM" != "no"; then
10970   NM="$lt_cv_path_NM"
10971 else
10972   # Didn't find any BSD compatible name lister, look for dumpbin.
10973   if test -n "$ac_tool_prefix"; then
10974   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
10975   do
10976     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10979 $as_echo_n "checking for $ac_word... " >&6; }
10980 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
10981   $as_echo_n "(cached) " >&6
10982 else
10983   if test -n "$DUMPBIN"; then
10984   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10985 else
10986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987 for as_dir in $PATH
10988 do
10989   IFS=$as_save_IFS
10990   test -z "$as_dir" && as_dir=.
10991     for ac_exec_ext in '' $ac_executable_extensions; do
10992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10993     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10995     break 2
10996   fi
10997 done
10998   done
10999 IFS=$as_save_IFS
11000
11001 fi
11002 fi
11003 DUMPBIN=$ac_cv_prog_DUMPBIN
11004 if test -n "$DUMPBIN"; then
11005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11006 $as_echo "$DUMPBIN" >&6; }
11007 else
11008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009 $as_echo "no" >&6; }
11010 fi
11011
11012
11013     test -n "$DUMPBIN" && break
11014   done
11015 fi
11016 if test -z "$DUMPBIN"; then
11017   ac_ct_DUMPBIN=$DUMPBIN
11018   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11019 do
11020   # Extract the first word of "$ac_prog", so it can be a program name with args.
11021 set dummy $ac_prog; ac_word=$2
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11023 $as_echo_n "checking for $ac_word... " >&6; }
11024 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11025   $as_echo_n "(cached) " >&6
11026 else
11027   if test -n "$ac_ct_DUMPBIN"; then
11028   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11029 else
11030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11031 for as_dir in $PATH
11032 do
11033   IFS=$as_save_IFS
11034   test -z "$as_dir" && as_dir=.
11035     for ac_exec_ext in '' $ac_executable_extensions; do
11036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11037     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11039     break 2
11040   fi
11041 done
11042   done
11043 IFS=$as_save_IFS
11044
11045 fi
11046 fi
11047 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11048 if test -n "$ac_ct_DUMPBIN"; then
11049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11050 $as_echo "$ac_ct_DUMPBIN" >&6; }
11051 else
11052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; }
11054 fi
11055
11056
11057   test -n "$ac_ct_DUMPBIN" && break
11058 done
11059
11060   if test "x$ac_ct_DUMPBIN" = x; then
11061     DUMPBIN=":"
11062   else
11063     case $cross_compiling:$ac_tool_warned in
11064 yes:)
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11067 ac_tool_warned=yes ;;
11068 esac
11069     DUMPBIN=$ac_ct_DUMPBIN
11070   fi
11071 fi
11072
11073
11074   if test "$DUMPBIN" != ":"; then
11075     NM="$DUMPBIN"
11076   fi
11077 fi
11078 test -z "$NM" && NM=nm
11079
11080
11081
11082
11083
11084
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11086 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11087 if test "${lt_cv_nm_interface+set}" = set; then :
11088   $as_echo_n "(cached) " >&6
11089 else
11090   lt_cv_nm_interface="BSD nm"
11091   echo "int some_variable = 0;" > conftest.$ac_ext
11092   (eval echo "\"\$as_me:11092: $ac_compile\"" >&5)
11093   (eval "$ac_compile" 2>conftest.err)
11094   cat conftest.err >&5
11095   (eval echo "\"\$as_me:11095: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11096   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11097   cat conftest.err >&5
11098   (eval echo "\"\$as_me:11098: output\"" >&5)
11099   cat conftest.out >&5
11100   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11101     lt_cv_nm_interface="MS dumpbin"
11102   fi
11103   rm -f conftest*
11104 fi
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11106 $as_echo "$lt_cv_nm_interface" >&6; }
11107
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11109 $as_echo_n "checking whether ln -s works... " >&6; }
11110 LN_S=$as_ln_s
11111 if test "$LN_S" = "ln -s"; then
11112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11113 $as_echo "yes" >&6; }
11114 else
11115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11116 $as_echo "no, using $LN_S" >&6; }
11117 fi
11118
11119 # find the maximum length of command line arguments
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11121 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11122 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11123   $as_echo_n "(cached) " >&6
11124 else
11125     i=0
11126   teststring="ABCD"
11127
11128   case $build_os in
11129   msdosdjgpp*)
11130     # On DJGPP, this test can blow up pretty badly due to problems in libc
11131     # (any single argument exceeding 2000 bytes causes a buffer overrun
11132     # during glob expansion).  Even if it were fixed, the result of this
11133     # check would be larger than it should be.
11134     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11135     ;;
11136
11137   gnu*)
11138     # Under GNU Hurd, this test is not required because there is
11139     # no limit to the length of command line arguments.
11140     # Libtool will interpret -1 as no limit whatsoever
11141     lt_cv_sys_max_cmd_len=-1;
11142     ;;
11143
11144   cygwin* | mingw* | cegcc*)
11145     # On Win9x/ME, this test blows up -- it succeeds, but takes
11146     # about 5 minutes as the teststring grows exponentially.
11147     # Worse, since 9x/ME are not pre-emptively multitasking,
11148     # you end up with a "frozen" computer, even though with patience
11149     # the test eventually succeeds (with a max line length of 256k).
11150     # Instead, let's just punt: use the minimum linelength reported by
11151     # all of the supported platforms: 8192 (on NT/2K/XP).
11152     lt_cv_sys_max_cmd_len=8192;
11153     ;;
11154
11155   amigaos*)
11156     # On AmigaOS with pdksh, this test takes hours, literally.
11157     # So we just punt and use a minimum line length of 8192.
11158     lt_cv_sys_max_cmd_len=8192;
11159     ;;
11160
11161   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11162     # This has been around since 386BSD, at least.  Likely further.
11163     if test -x /sbin/sysctl; then
11164       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11165     elif test -x /usr/sbin/sysctl; then
11166       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11167     else
11168       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
11169     fi
11170     # And add a safety zone
11171     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11172     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11173     ;;
11174
11175   interix*)
11176     # We know the value 262144 and hardcode it with a safety zone (like BSD)
11177     lt_cv_sys_max_cmd_len=196608
11178     ;;
11179
11180   osf*)
11181     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11182     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11183     # nice to cause kernel panics so lets avoid the loop below.
11184     # First set a reasonable default.
11185     lt_cv_sys_max_cmd_len=16384
11186     #
11187     if test -x /sbin/sysconfig; then
11188       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11189         *1*) lt_cv_sys_max_cmd_len=-1 ;;
11190       esac
11191     fi
11192     ;;
11193   sco3.2v5*)
11194     lt_cv_sys_max_cmd_len=102400
11195     ;;
11196   sysv5* | sco5v6* | sysv4.2uw2*)
11197     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11198     if test -n "$kargmax"; then
11199       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
11200     else
11201       lt_cv_sys_max_cmd_len=32768
11202     fi
11203     ;;
11204   *)
11205     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11206     if test -n "$lt_cv_sys_max_cmd_len"; then
11207       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11208       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11209     else
11210       # Make teststring a little bigger before we do anything with it.
11211       # a 1K string should be a reasonable start.
11212       for i in 1 2 3 4 5 6 7 8 ; do
11213         teststring=$teststring$teststring
11214       done
11215       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11216       # If test is not a shell built-in, we'll probably end up computing a
11217       # maximum length that is only half of the actual maximum length, but
11218       # we can't tell.
11219       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
11220                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
11221               test $i != 17 # 1/2 MB should be enough
11222       do
11223         i=`expr $i + 1`
11224         teststring=$teststring$teststring
11225       done
11226       # Only check the string length outside the loop.
11227       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11228       teststring=
11229       # Add a significant safety factor because C++ compilers can tack on
11230       # massive amounts of additional arguments before passing them to the
11231       # linker.  It appears as though 1/2 is a usable value.
11232       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11233     fi
11234     ;;
11235   esac
11236
11237 fi
11238
11239 if test -n $lt_cv_sys_max_cmd_len ; then
11240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11241 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11242 else
11243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11244 $as_echo "none" >&6; }
11245 fi
11246 max_cmd_len=$lt_cv_sys_max_cmd_len
11247
11248
11249
11250
11251
11252
11253 : ${CP="cp -f"}
11254 : ${MV="mv -f"}
11255 : ${RM="rm -f"}
11256
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11258 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11259 # Try some XSI features
11260 xsi_shell=no
11261 ( _lt_dummy="a/b/c"
11262   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11263       = c,a/b,, \
11264     && eval 'test $(( 1 + 1 )) -eq 2 \
11265     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11266   && xsi_shell=yes
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11268 $as_echo "$xsi_shell" >&6; }
11269
11270
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11272 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11273 lt_shell_append=no
11274 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11275     >/dev/null 2>&1 \
11276   && lt_shell_append=yes
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11278 $as_echo "$lt_shell_append" >&6; }
11279
11280
11281 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11282   lt_unset=unset
11283 else
11284   lt_unset=false
11285 fi
11286
11287
11288
11289
11290
11291 # test EBCDIC or ASCII
11292 case `echo X|tr X '\101'` in
11293  A) # ASCII based system
11294     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11295   lt_SP2NL='tr \040 \012'
11296   lt_NL2SP='tr \015\012 \040\040'
11297   ;;
11298  *) # EBCDIC based system
11299   lt_SP2NL='tr \100 \n'
11300   lt_NL2SP='tr \r\n \100\100'
11301   ;;
11302 esac
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11313 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11314 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11315   $as_echo_n "(cached) " >&6
11316 else
11317   lt_cv_ld_reload_flag='-r'
11318 fi
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11320 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11321 reload_flag=$lt_cv_ld_reload_flag
11322 case $reload_flag in
11323 "" | " "*) ;;
11324 *) reload_flag=" $reload_flag" ;;
11325 esac
11326 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11327 case $host_os in
11328   darwin*)
11329     if test "$GCC" = yes; then
11330       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11331     else
11332       reload_cmds='$LD$reload_flag -o $output$reload_objs'
11333     fi
11334     ;;
11335 esac
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345 if test -n "$ac_tool_prefix"; then
11346   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11347 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11349 $as_echo_n "checking for $ac_word... " >&6; }
11350 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11351   $as_echo_n "(cached) " >&6
11352 else
11353   if test -n "$OBJDUMP"; then
11354   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11355 else
11356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357 for as_dir in $PATH
11358 do
11359   IFS=$as_save_IFS
11360   test -z "$as_dir" && as_dir=.
11361     for ac_exec_ext in '' $ac_executable_extensions; do
11362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11363     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11365     break 2
11366   fi
11367 done
11368   done
11369 IFS=$as_save_IFS
11370
11371 fi
11372 fi
11373 OBJDUMP=$ac_cv_prog_OBJDUMP
11374 if test -n "$OBJDUMP"; then
11375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11376 $as_echo "$OBJDUMP" >&6; }
11377 else
11378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11380 fi
11381
11382
11383 fi
11384 if test -z "$ac_cv_prog_OBJDUMP"; then
11385   ac_ct_OBJDUMP=$OBJDUMP
11386   # Extract the first word of "objdump", so it can be a program name with args.
11387 set dummy objdump; ac_word=$2
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11389 $as_echo_n "checking for $ac_word... " >&6; }
11390 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11391   $as_echo_n "(cached) " >&6
11392 else
11393   if test -n "$ac_ct_OBJDUMP"; then
11394   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11395 else
11396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11397 for as_dir in $PATH
11398 do
11399   IFS=$as_save_IFS
11400   test -z "$as_dir" && as_dir=.
11401     for ac_exec_ext in '' $ac_executable_extensions; do
11402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11403     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11405     break 2
11406   fi
11407 done
11408   done
11409 IFS=$as_save_IFS
11410
11411 fi
11412 fi
11413 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11414 if test -n "$ac_ct_OBJDUMP"; then
11415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11416 $as_echo "$ac_ct_OBJDUMP" >&6; }
11417 else
11418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419 $as_echo "no" >&6; }
11420 fi
11421
11422   if test "x$ac_ct_OBJDUMP" = x; then
11423     OBJDUMP="false"
11424   else
11425     case $cross_compiling:$ac_tool_warned in
11426 yes:)
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11429 ac_tool_warned=yes ;;
11430 esac
11431     OBJDUMP=$ac_ct_OBJDUMP
11432   fi
11433 else
11434   OBJDUMP="$ac_cv_prog_OBJDUMP"
11435 fi
11436
11437 test -z "$OBJDUMP" && OBJDUMP=objdump
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11448 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11449 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11450   $as_echo_n "(cached) " >&6
11451 else
11452   lt_cv_file_magic_cmd='$MAGIC_CMD'
11453 lt_cv_file_magic_test_file=
11454 lt_cv_deplibs_check_method='unknown'
11455 # Need to set the preceding variable on all platforms that support
11456 # interlibrary dependencies.
11457 # 'none' -- dependencies not supported.
11458 # `unknown' -- same as none, but documents that we really don't know.
11459 # 'pass_all' -- all dependencies passed with no checks.
11460 # 'test_compile' -- check by making test program.
11461 # 'file_magic [[regex]]' -- check by looking for files in library path
11462 # which responds to the $file_magic_cmd with a given extended regex.
11463 # If you have `file' or equivalent on your system and you're not sure
11464 # whether `pass_all' will *always* work, you probably want this one.
11465
11466 case $host_os in
11467 aix[4-9]*)
11468   lt_cv_deplibs_check_method=pass_all
11469   ;;
11470
11471 beos*)
11472   lt_cv_deplibs_check_method=pass_all
11473   ;;
11474
11475 bsdi[45]*)
11476   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11477   lt_cv_file_magic_cmd='/usr/bin/file -L'
11478   lt_cv_file_magic_test_file=/shlib/libc.so
11479   ;;
11480
11481 cygwin*)
11482   # func_win32_libid is a shell function defined in ltmain.sh
11483   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11484   lt_cv_file_magic_cmd='func_win32_libid'
11485   ;;
11486
11487 mingw* | pw32*)
11488   # Base MSYS/MinGW do not provide the 'file' command needed by
11489   # func_win32_libid shell function, so use a weaker test based on 'objdump',
11490   # unless we find 'file', for example because we are cross-compiling.
11491   if ( file / ) >/dev/null 2>&1; then
11492     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11493     lt_cv_file_magic_cmd='func_win32_libid'
11494   else
11495     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11496     lt_cv_file_magic_cmd='$OBJDUMP -f'
11497   fi
11498   ;;
11499
11500 cegcc)
11501   # use the weaker test based on 'objdump'. See mingw*.
11502   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11503   lt_cv_file_magic_cmd='$OBJDUMP -f'
11504   ;;
11505
11506 darwin* | rhapsody*)
11507   lt_cv_deplibs_check_method=pass_all
11508   ;;
11509
11510 freebsd* | dragonfly*)
11511   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11512     case $host_cpu in
11513     i*86 )
11514       # Not sure whether the presence of OpenBSD here was a mistake.
11515       # Let's accept both of them until this is cleared up.
11516       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11517       lt_cv_file_magic_cmd=/usr/bin/file
11518       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11519       ;;
11520     esac
11521   else
11522     lt_cv_deplibs_check_method=pass_all
11523   fi
11524   ;;
11525
11526 gnu*)
11527   lt_cv_deplibs_check_method=pass_all
11528   ;;
11529
11530 hpux10.20* | hpux11*)
11531   lt_cv_file_magic_cmd=/usr/bin/file
11532   case $host_cpu in
11533   ia64*)
11534     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11535     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11536     ;;
11537   hppa*64*)
11538     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
11539     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11540     ;;
11541   *)
11542     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11543     lt_cv_file_magic_test_file=/usr/lib/libc.sl
11544     ;;
11545   esac
11546   ;;
11547
11548 interix[3-9]*)
11549   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11550   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11551   ;;
11552
11553 irix5* | irix6* | nonstopux*)
11554   case $LD in
11555   *-32|*"-32 ") libmagic=32-bit;;
11556   *-n32|*"-n32 ") libmagic=N32;;
11557   *-64|*"-64 ") libmagic=64-bit;;
11558   *) libmagic=never-match;;
11559   esac
11560   lt_cv_deplibs_check_method=pass_all
11561   ;;
11562
11563 # This must be Linux ELF.
11564 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11565   lt_cv_deplibs_check_method=pass_all
11566   ;;
11567
11568 netbsd*)
11569   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11570     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11571   else
11572     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11573   fi
11574   ;;
11575
11576 newos6*)
11577   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11578   lt_cv_file_magic_cmd=/usr/bin/file
11579   lt_cv_file_magic_test_file=/usr/lib/libnls.so
11580   ;;
11581
11582 *nto* | *qnx*)
11583   lt_cv_deplibs_check_method=pass_all
11584   ;;
11585
11586 openbsd*)
11587   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11588     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11589   else
11590     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11591   fi
11592   ;;
11593
11594 osf3* | osf4* | osf5*)
11595   lt_cv_deplibs_check_method=pass_all
11596   ;;
11597
11598 rdos*)
11599   lt_cv_deplibs_check_method=pass_all
11600   ;;
11601
11602 solaris*)
11603   lt_cv_deplibs_check_method=pass_all
11604   ;;
11605
11606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11607   lt_cv_deplibs_check_method=pass_all
11608   ;;
11609
11610 sysv4 | sysv4.3*)
11611   case $host_vendor in
11612   motorola)
11613     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]'
11614     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11615     ;;
11616   ncr)
11617     lt_cv_deplibs_check_method=pass_all
11618     ;;
11619   sequent)
11620     lt_cv_file_magic_cmd='/bin/file'
11621     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11622     ;;
11623   sni)
11624     lt_cv_file_magic_cmd='/bin/file'
11625     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11626     lt_cv_file_magic_test_file=/lib/libc.so
11627     ;;
11628   siemens)
11629     lt_cv_deplibs_check_method=pass_all
11630     ;;
11631   pc)
11632     lt_cv_deplibs_check_method=pass_all
11633     ;;
11634   esac
11635   ;;
11636
11637 tpf*)
11638   lt_cv_deplibs_check_method=pass_all
11639   ;;
11640 esac
11641
11642 fi
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11644 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11645 file_magic_cmd=$lt_cv_file_magic_cmd
11646 deplibs_check_method=$lt_cv_deplibs_check_method
11647 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660 if test -n "$ac_tool_prefix"; then
11661   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11662 set dummy ${ac_tool_prefix}ar; ac_word=$2
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664 $as_echo_n "checking for $ac_word... " >&6; }
11665 if test "${ac_cv_prog_AR+set}" = set; then :
11666   $as_echo_n "(cached) " >&6
11667 else
11668   if test -n "$AR"; then
11669   ac_cv_prog_AR="$AR" # Let the user override the test.
11670 else
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11673 do
11674   IFS=$as_save_IFS
11675   test -z "$as_dir" && as_dir=.
11676     for ac_exec_ext in '' $ac_executable_extensions; do
11677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678     ac_cv_prog_AR="${ac_tool_prefix}ar"
11679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11680     break 2
11681   fi
11682 done
11683   done
11684 IFS=$as_save_IFS
11685
11686 fi
11687 fi
11688 AR=$ac_cv_prog_AR
11689 if test -n "$AR"; then
11690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11691 $as_echo "$AR" >&6; }
11692 else
11693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694 $as_echo "no" >&6; }
11695 fi
11696
11697
11698 fi
11699 if test -z "$ac_cv_prog_AR"; then
11700   ac_ct_AR=$AR
11701   # Extract the first word of "ar", so it can be a program name with args.
11702 set dummy ar; ac_word=$2
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11704 $as_echo_n "checking for $ac_word... " >&6; }
11705 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
11706   $as_echo_n "(cached) " >&6
11707 else
11708   if test -n "$ac_ct_AR"; then
11709   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11710 else
11711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11712 for as_dir in $PATH
11713 do
11714   IFS=$as_save_IFS
11715   test -z "$as_dir" && as_dir=.
11716     for ac_exec_ext in '' $ac_executable_extensions; do
11717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11718     ac_cv_prog_ac_ct_AR="ar"
11719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11720     break 2
11721   fi
11722 done
11723   done
11724 IFS=$as_save_IFS
11725
11726 fi
11727 fi
11728 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11729 if test -n "$ac_ct_AR"; then
11730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11731 $as_echo "$ac_ct_AR" >&6; }
11732 else
11733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11735 fi
11736
11737   if test "x$ac_ct_AR" = x; then
11738     AR="false"
11739   else
11740     case $cross_compiling:$ac_tool_warned in
11741 yes:)
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11744 ac_tool_warned=yes ;;
11745 esac
11746     AR=$ac_ct_AR
11747   fi
11748 else
11749   AR="$ac_cv_prog_AR"
11750 fi
11751
11752 test -z "$AR" && AR=ar
11753 test -z "$AR_FLAGS" && AR_FLAGS=cru
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765 if test -n "$ac_tool_prefix"; then
11766   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11767 set dummy ${ac_tool_prefix}strip; ac_word=$2
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769 $as_echo_n "checking for $ac_word... " >&6; }
11770 if test "${ac_cv_prog_STRIP+set}" = set; then :
11771   $as_echo_n "(cached) " >&6
11772 else
11773   if test -n "$STRIP"; then
11774   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11775 else
11776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777 for as_dir in $PATH
11778 do
11779   IFS=$as_save_IFS
11780   test -z "$as_dir" && as_dir=.
11781     for ac_exec_ext in '' $ac_executable_extensions; do
11782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11783     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11785     break 2
11786   fi
11787 done
11788   done
11789 IFS=$as_save_IFS
11790
11791 fi
11792 fi
11793 STRIP=$ac_cv_prog_STRIP
11794 if test -n "$STRIP"; then
11795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11796 $as_echo "$STRIP" >&6; }
11797 else
11798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11800 fi
11801
11802
11803 fi
11804 if test -z "$ac_cv_prog_STRIP"; then
11805   ac_ct_STRIP=$STRIP
11806   # Extract the first word of "strip", so it can be a program name with args.
11807 set dummy strip; ac_word=$2
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809 $as_echo_n "checking for $ac_word... " >&6; }
11810 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
11811   $as_echo_n "(cached) " >&6
11812 else
11813   if test -n "$ac_ct_STRIP"; then
11814   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11815 else
11816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817 for as_dir in $PATH
11818 do
11819   IFS=$as_save_IFS
11820   test -z "$as_dir" && as_dir=.
11821     for ac_exec_ext in '' $ac_executable_extensions; do
11822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11823     ac_cv_prog_ac_ct_STRIP="strip"
11824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11825     break 2
11826   fi
11827 done
11828   done
11829 IFS=$as_save_IFS
11830
11831 fi
11832 fi
11833 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11834 if test -n "$ac_ct_STRIP"; then
11835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11836 $as_echo "$ac_ct_STRIP" >&6; }
11837 else
11838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839 $as_echo "no" >&6; }
11840 fi
11841
11842   if test "x$ac_ct_STRIP" = x; then
11843     STRIP=":"
11844   else
11845     case $cross_compiling:$ac_tool_warned in
11846 yes:)
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11849 ac_tool_warned=yes ;;
11850 esac
11851     STRIP=$ac_ct_STRIP
11852   fi
11853 else
11854   STRIP="$ac_cv_prog_STRIP"
11855 fi
11856
11857 test -z "$STRIP" && STRIP=:
11858
11859
11860
11861
11862
11863
11864 if test -n "$ac_tool_prefix"; then
11865   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11866 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11868 $as_echo_n "checking for $ac_word... " >&6; }
11869 if test "${ac_cv_prog_RANLIB+set}" = set; then :
11870   $as_echo_n "(cached) " >&6
11871 else
11872   if test -n "$RANLIB"; then
11873   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11874 else
11875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11876 for as_dir in $PATH
11877 do
11878   IFS=$as_save_IFS
11879   test -z "$as_dir" && as_dir=.
11880     for ac_exec_ext in '' $ac_executable_extensions; do
11881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11882     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11884     break 2
11885   fi
11886 done
11887   done
11888 IFS=$as_save_IFS
11889
11890 fi
11891 fi
11892 RANLIB=$ac_cv_prog_RANLIB
11893 if test -n "$RANLIB"; then
11894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11895 $as_echo "$RANLIB" >&6; }
11896 else
11897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 $as_echo "no" >&6; }
11899 fi
11900
11901
11902 fi
11903 if test -z "$ac_cv_prog_RANLIB"; then
11904   ac_ct_RANLIB=$RANLIB
11905   # Extract the first word of "ranlib", so it can be a program name with args.
11906 set dummy ranlib; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
11910   $as_echo_n "(cached) " >&6
11911 else
11912   if test -n "$ac_ct_RANLIB"; then
11913   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11914 else
11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916 for as_dir in $PATH
11917 do
11918   IFS=$as_save_IFS
11919   test -z "$as_dir" && as_dir=.
11920     for ac_exec_ext in '' $ac_executable_extensions; do
11921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11922     ac_cv_prog_ac_ct_RANLIB="ranlib"
11923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11924     break 2
11925   fi
11926 done
11927   done
11928 IFS=$as_save_IFS
11929
11930 fi
11931 fi
11932 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11933 if test -n "$ac_ct_RANLIB"; then
11934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11935 $as_echo "$ac_ct_RANLIB" >&6; }
11936 else
11937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938 $as_echo "no" >&6; }
11939 fi
11940
11941   if test "x$ac_ct_RANLIB" = x; then
11942     RANLIB=":"
11943   else
11944     case $cross_compiling:$ac_tool_warned in
11945 yes:)
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11948 ac_tool_warned=yes ;;
11949 esac
11950     RANLIB=$ac_ct_RANLIB
11951   fi
11952 else
11953   RANLIB="$ac_cv_prog_RANLIB"
11954 fi
11955
11956 test -z "$RANLIB" && RANLIB=:
11957
11958
11959
11960
11961
11962
11963 # Determine commands to create old-style static archives.
11964 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11965 old_postinstall_cmds='chmod 644 $oldlib'
11966 old_postuninstall_cmds=
11967
11968 if test -n "$RANLIB"; then
11969   case $host_os in
11970   openbsd*)
11971     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11972     ;;
11973   *)
11974     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11975     ;;
11976   esac
11977   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11978 fi
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013 # If no C compiler was specified, use CC.
12014 LTCC=${LTCC-"$CC"}
12015
12016 # If no C compiler flags were specified, use CFLAGS.
12017 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12018
12019 # Allow CC to be a program name with arguments.
12020 compiler=$CC
12021
12022
12023 # Check for command to grab the raw symbol name followed by C symbol from nm.
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12025 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12026 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12027   $as_echo_n "(cached) " >&6
12028 else
12029
12030 # These are sane defaults that work on at least a few old systems.
12031 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12032
12033 # Character class describing NM global symbol codes.
12034 symcode='[BCDEGRST]'
12035
12036 # Regexp to match symbols that can be accessed directly from C.
12037 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12038
12039 # Define system-specific variables.
12040 case $host_os in
12041 aix*)
12042   symcode='[BCDT]'
12043   ;;
12044 cygwin* | mingw* | pw32* | cegcc*)
12045   symcode='[ABCDGISTW]'
12046   ;;
12047 hpux*)
12048   if test "$host_cpu" = ia64; then
12049     symcode='[ABCDEGRST]'
12050   fi
12051   ;;
12052 irix* | nonstopux*)
12053   symcode='[BCDEGRST]'
12054   ;;
12055 osf*)
12056   symcode='[BCDEGQRST]'
12057   ;;
12058 solaris*)
12059   symcode='[BDRT]'
12060   ;;
12061 sco3.2v5*)
12062   symcode='[DT]'
12063   ;;
12064 sysv4.2uw2*)
12065   symcode='[DT]'
12066   ;;
12067 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12068   symcode='[ABDT]'
12069   ;;
12070 sysv4)
12071   symcode='[DFNSTU]'
12072   ;;
12073 esac
12074
12075 # If we're using GNU nm, then use its standard symbol codes.
12076 case `$NM -V 2>&1` in
12077 *GNU* | *'with BFD'*)
12078   symcode='[ABCDGIRSTW]' ;;
12079 esac
12080
12081 # Transform an extracted symbol line into a proper C declaration.
12082 # Some systems (esp. on ia64) link data and code symbols differently,
12083 # so use this general approach.
12084 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12085
12086 # Transform an extracted symbol line into symbol name and symbol address
12087 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12088 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'"
12089
12090 # Handle CRLF in mingw tool chain
12091 opt_cr=
12092 case $build_os in
12093 mingw*)
12094   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12095   ;;
12096 esac
12097
12098 # Try without a prefix underscore, then with it.
12099 for ac_symprfx in "" "_"; do
12100
12101   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12102   symxfrm="\\1 $ac_symprfx\\2 \\2"
12103
12104   # Write the raw and C identifiers.
12105   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12106     # Fake it for dumpbin and say T for any non-static function
12107     # and D for any global variable.
12108     # Also find C++ and __fastcall symbols from MSVC++,
12109     # which start with @ or ?.
12110     lt_cv_sys_global_symbol_pipe="$AWK '"\
12111 "     {last_section=section; section=\$ 3};"\
12112 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12113 "     \$ 0!~/External *\|/{next};"\
12114 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12115 "     {if(hide[section]) next};"\
12116 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12117 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12118 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12119 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12120 "     ' prfx=^$ac_symprfx"
12121   else
12122     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12123   fi
12124
12125   # Check to see that the pipe works correctly.
12126   pipe_works=no
12127
12128   rm -f conftest*
12129   cat > conftest.$ac_ext <<_LT_EOF
12130 #ifdef __cplusplus
12131 extern "C" {
12132 #endif
12133 char nm_test_var;
12134 void nm_test_func(void);
12135 void nm_test_func(void){}
12136 #ifdef __cplusplus
12137 }
12138 #endif
12139 int main(){nm_test_var='a';nm_test_func();return(0);}
12140 _LT_EOF
12141
12142   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12143   (eval $ac_compile) 2>&5
12144   ac_status=$?
12145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12146   test $ac_status = 0; }; then
12147     # Now try to grab the symbols.
12148     nlist=conftest.nm
12149     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
12150   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12151   ac_status=$?
12152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12153   test $ac_status = 0; } && test -s "$nlist"; then
12154       # Try sorting and uniquifying the output.
12155       if sort "$nlist" | uniq > "$nlist"T; then
12156         mv -f "$nlist"T "$nlist"
12157       else
12158         rm -f "$nlist"T
12159       fi
12160
12161       # Make sure that we snagged all the symbols we need.
12162       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12163         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12164           cat <<_LT_EOF > conftest.$ac_ext
12165 #ifdef __cplusplus
12166 extern "C" {
12167 #endif
12168
12169 _LT_EOF
12170           # Now generate the symbol file.
12171           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12172
12173           cat <<_LT_EOF >> conftest.$ac_ext
12174
12175 /* The mapping between symbol names and symbols.  */
12176 const struct {
12177   const char *name;
12178   void       *address;
12179 }
12180 lt__PROGRAM__LTX_preloaded_symbols[] =
12181 {
12182   { "@PROGRAM@", (void *) 0 },
12183 _LT_EOF
12184           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12185           cat <<\_LT_EOF >> conftest.$ac_ext
12186   {0, (void *) 0}
12187 };
12188
12189 /* This works around a problem in FreeBSD linker */
12190 #ifdef FREEBSD_WORKAROUND
12191 static const void *lt_preloaded_setup() {
12192   return lt__PROGRAM__LTX_preloaded_symbols;
12193 }
12194 #endif
12195
12196 #ifdef __cplusplus
12197 }
12198 #endif
12199 _LT_EOF
12200           # Now try linking the two files.
12201           mv conftest.$ac_objext conftstm.$ac_objext
12202           lt_save_LIBS="$LIBS"
12203           lt_save_CFLAGS="$CFLAGS"
12204           LIBS="conftstm.$ac_objext"
12205           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12206           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12207   (eval $ac_link) 2>&5
12208   ac_status=$?
12209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12210   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12211             pipe_works=yes
12212           fi
12213           LIBS="$lt_save_LIBS"
12214           CFLAGS="$lt_save_CFLAGS"
12215         else
12216           echo "cannot find nm_test_func in $nlist" >&5
12217         fi
12218       else
12219         echo "cannot find nm_test_var in $nlist" >&5
12220       fi
12221     else
12222       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12223     fi
12224   else
12225     echo "$progname: failed program was:" >&5
12226     cat conftest.$ac_ext >&5
12227   fi
12228   rm -rf conftest* conftst*
12229
12230   # Do not use the global_symbol_pipe unless it works.
12231   if test "$pipe_works" = yes; then
12232     break
12233   else
12234     lt_cv_sys_global_symbol_pipe=
12235   fi
12236 done
12237
12238 fi
12239
12240 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12241   lt_cv_sys_global_symbol_to_cdecl=
12242 fi
12243 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12245 $as_echo "failed" >&6; }
12246 else
12247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12248 $as_echo "ok" >&6; }
12249 fi
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272 # Check whether --enable-libtool-lock was given.
12273 if test "${enable_libtool_lock+set}" = set; then :
12274   enableval=$enable_libtool_lock;
12275 fi
12276
12277 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12278
12279 # Some flags need to be propagated to the compiler or linker for good
12280 # libtool support.
12281 case $host in
12282 ia64-*-hpux*)
12283   # Find out which ABI we are using.
12284   echo 'int i;' > conftest.$ac_ext
12285   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12286   (eval $ac_compile) 2>&5
12287   ac_status=$?
12288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12289   test $ac_status = 0; }; then
12290     case `/usr/bin/file conftest.$ac_objext` in
12291       *ELF-32*)
12292         HPUX_IA64_MODE="32"
12293         ;;
12294       *ELF-64*)
12295         HPUX_IA64_MODE="64"
12296         ;;
12297     esac
12298   fi
12299   rm -rf conftest*
12300   ;;
12301 *-*-irix6*)
12302   # Find out which ABI we are using.
12303   echo '#line 12303 "configure"' > conftest.$ac_ext
12304   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12305   (eval $ac_compile) 2>&5
12306   ac_status=$?
12307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12308   test $ac_status = 0; }; then
12309     if test "$lt_cv_prog_gnu_ld" = yes; then
12310       case `/usr/bin/file conftest.$ac_objext` in
12311         *32-bit*)
12312           LD="${LD-ld} -melf32bsmip"
12313           ;;
12314         *N32*)
12315           LD="${LD-ld} -melf32bmipn32"
12316           ;;
12317         *64-bit*)
12318           LD="${LD-ld} -melf64bmip"
12319         ;;
12320       esac
12321     else
12322       case `/usr/bin/file conftest.$ac_objext` in
12323         *32-bit*)
12324           LD="${LD-ld} -32"
12325           ;;
12326         *N32*)
12327           LD="${LD-ld} -n32"
12328           ;;
12329         *64-bit*)
12330           LD="${LD-ld} -64"
12331           ;;
12332       esac
12333     fi
12334   fi
12335   rm -rf conftest*
12336   ;;
12337
12338 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12339 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12340   # Find out which ABI we are using.
12341   echo 'int i;' > conftest.$ac_ext
12342   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12343   (eval $ac_compile) 2>&5
12344   ac_status=$?
12345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12346   test $ac_status = 0; }; then
12347     case `/usr/bin/file conftest.o` in
12348       *32-bit*)
12349         case $host in
12350           x86_64-*kfreebsd*-gnu)
12351             LD="${LD-ld} -m elf_i386_fbsd"
12352             ;;
12353           x86_64-*linux*)
12354             LD="${LD-ld} -m elf_i386"
12355             ;;
12356           ppc64-*linux*|powerpc64-*linux*)
12357             LD="${LD-ld} -m elf32ppclinux"
12358             ;;
12359           s390x-*linux*)
12360             LD="${LD-ld} -m elf_s390"
12361             ;;
12362           sparc64-*linux*)
12363             LD="${LD-ld} -m elf32_sparc"
12364             ;;
12365         esac
12366         ;;
12367       *64-bit*)
12368         case $host in
12369           x86_64-*kfreebsd*-gnu)
12370             LD="${LD-ld} -m elf_x86_64_fbsd"
12371             ;;
12372           x86_64-*linux*)
12373             LD="${LD-ld} -m elf_x86_64"
12374             ;;
12375           ppc*-*linux*|powerpc*-*linux*)
12376             LD="${LD-ld} -m elf64ppc"
12377             ;;
12378           s390*-*linux*|s390*-*tpf*)
12379             LD="${LD-ld} -m elf64_s390"
12380             ;;
12381           sparc*-*linux*)
12382             LD="${LD-ld} -m elf64_sparc"
12383             ;;
12384         esac
12385         ;;
12386     esac
12387   fi
12388   rm -rf conftest*
12389   ;;
12390
12391 *-*-sco3.2v5*)
12392   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12393   SAVE_CFLAGS="$CFLAGS"
12394   CFLAGS="$CFLAGS -belf"
12395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12396 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12397 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12398   $as_echo_n "(cached) " >&6
12399 else
12400   ac_ext=c
12401 ac_cpp='$CPP $CPPFLAGS'
12402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12405
12406      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407 /* end confdefs.h.  */
12408
12409 int
12410 main ()
12411 {
12412
12413   ;
12414   return 0;
12415 }
12416 _ACEOF
12417 if ac_fn_c_try_link "$LINENO"; then :
12418   lt_cv_cc_needs_belf=yes
12419 else
12420   lt_cv_cc_needs_belf=no
12421 fi
12422 rm -f core conftest.err conftest.$ac_objext \
12423     conftest$ac_exeext conftest.$ac_ext
12424      ac_ext=c
12425 ac_cpp='$CPP $CPPFLAGS'
12426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12429
12430 fi
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12432 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12433   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12434     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12435     CFLAGS="$SAVE_CFLAGS"
12436   fi
12437   ;;
12438 sparc*-*solaris*)
12439   # Find out which ABI we are using.
12440   echo 'int i;' > conftest.$ac_ext
12441   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12442   (eval $ac_compile) 2>&5
12443   ac_status=$?
12444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12445   test $ac_status = 0; }; then
12446     case `/usr/bin/file conftest.o` in
12447     *64-bit*)
12448       case $lt_cv_prog_gnu_ld in
12449       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12450       *)
12451         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12452           LD="${LD-ld} -64"
12453         fi
12454         ;;
12455       esac
12456       ;;
12457     esac
12458   fi
12459   rm -rf conftest*
12460   ;;
12461 esac
12462
12463 need_locks="$enable_libtool_lock"
12464
12465
12466   case $host_os in
12467     rhapsody* | darwin*)
12468     if test -n "$ac_tool_prefix"; then
12469   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12470 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472 $as_echo_n "checking for $ac_word... " >&6; }
12473 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12474   $as_echo_n "(cached) " >&6
12475 else
12476   if test -n "$DSYMUTIL"; then
12477   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12478 else
12479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12480 for as_dir in $PATH
12481 do
12482   IFS=$as_save_IFS
12483   test -z "$as_dir" && as_dir=.
12484     for ac_exec_ext in '' $ac_executable_extensions; do
12485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12486     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12488     break 2
12489   fi
12490 done
12491   done
12492 IFS=$as_save_IFS
12493
12494 fi
12495 fi
12496 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12497 if test -n "$DSYMUTIL"; then
12498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12499 $as_echo "$DSYMUTIL" >&6; }
12500 else
12501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502 $as_echo "no" >&6; }
12503 fi
12504
12505
12506 fi
12507 if test -z "$ac_cv_prog_DSYMUTIL"; then
12508   ac_ct_DSYMUTIL=$DSYMUTIL
12509   # Extract the first word of "dsymutil", so it can be a program name with args.
12510 set dummy dsymutil; ac_word=$2
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512 $as_echo_n "checking for $ac_word... " >&6; }
12513 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
12514   $as_echo_n "(cached) " >&6
12515 else
12516   if test -n "$ac_ct_DSYMUTIL"; then
12517   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12518 else
12519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520 for as_dir in $PATH
12521 do
12522   IFS=$as_save_IFS
12523   test -z "$as_dir" && as_dir=.
12524     for ac_exec_ext in '' $ac_executable_extensions; do
12525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12526     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12528     break 2
12529   fi
12530 done
12531   done
12532 IFS=$as_save_IFS
12533
12534 fi
12535 fi
12536 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12537 if test -n "$ac_ct_DSYMUTIL"; then
12538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12539 $as_echo "$ac_ct_DSYMUTIL" >&6; }
12540 else
12541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; }
12543 fi
12544
12545   if test "x$ac_ct_DSYMUTIL" = x; then
12546     DSYMUTIL=":"
12547   else
12548     case $cross_compiling:$ac_tool_warned in
12549 yes:)
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12552 ac_tool_warned=yes ;;
12553 esac
12554     DSYMUTIL=$ac_ct_DSYMUTIL
12555   fi
12556 else
12557   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12558 fi
12559
12560     if test -n "$ac_tool_prefix"; then
12561   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12562 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12564 $as_echo_n "checking for $ac_word... " >&6; }
12565 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
12566   $as_echo_n "(cached) " >&6
12567 else
12568   if test -n "$NMEDIT"; then
12569   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12570 else
12571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12572 for as_dir in $PATH
12573 do
12574   IFS=$as_save_IFS
12575   test -z "$as_dir" && as_dir=.
12576     for ac_exec_ext in '' $ac_executable_extensions; do
12577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12578     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12580     break 2
12581   fi
12582 done
12583   done
12584 IFS=$as_save_IFS
12585
12586 fi
12587 fi
12588 NMEDIT=$ac_cv_prog_NMEDIT
12589 if test -n "$NMEDIT"; then
12590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12591 $as_echo "$NMEDIT" >&6; }
12592 else
12593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594 $as_echo "no" >&6; }
12595 fi
12596
12597
12598 fi
12599 if test -z "$ac_cv_prog_NMEDIT"; then
12600   ac_ct_NMEDIT=$NMEDIT
12601   # Extract the first word of "nmedit", so it can be a program name with args.
12602 set dummy nmedit; ac_word=$2
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12604 $as_echo_n "checking for $ac_word... " >&6; }
12605 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
12606   $as_echo_n "(cached) " >&6
12607 else
12608   if test -n "$ac_ct_NMEDIT"; then
12609   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12610 else
12611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612 for as_dir in $PATH
12613 do
12614   IFS=$as_save_IFS
12615   test -z "$as_dir" && as_dir=.
12616     for ac_exec_ext in '' $ac_executable_extensions; do
12617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12618     ac_cv_prog_ac_ct_NMEDIT="nmedit"
12619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12620     break 2
12621   fi
12622 done
12623   done
12624 IFS=$as_save_IFS
12625
12626 fi
12627 fi
12628 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12629 if test -n "$ac_ct_NMEDIT"; then
12630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12631 $as_echo "$ac_ct_NMEDIT" >&6; }
12632 else
12633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12635 fi
12636
12637   if test "x$ac_ct_NMEDIT" = x; then
12638     NMEDIT=":"
12639   else
12640     case $cross_compiling:$ac_tool_warned in
12641 yes:)
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12644 ac_tool_warned=yes ;;
12645 esac
12646     NMEDIT=$ac_ct_NMEDIT
12647   fi
12648 else
12649   NMEDIT="$ac_cv_prog_NMEDIT"
12650 fi
12651
12652     if test -n "$ac_tool_prefix"; then
12653   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12654 set dummy ${ac_tool_prefix}lipo; ac_word=$2
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12656 $as_echo_n "checking for $ac_word... " >&6; }
12657 if test "${ac_cv_prog_LIPO+set}" = set; then :
12658   $as_echo_n "(cached) " >&6
12659 else
12660   if test -n "$LIPO"; then
12661   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12662 else
12663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12664 for as_dir in $PATH
12665 do
12666   IFS=$as_save_IFS
12667   test -z "$as_dir" && as_dir=.
12668     for ac_exec_ext in '' $ac_executable_extensions; do
12669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12670     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12672     break 2
12673   fi
12674 done
12675   done
12676 IFS=$as_save_IFS
12677
12678 fi
12679 fi
12680 LIPO=$ac_cv_prog_LIPO
12681 if test -n "$LIPO"; then
12682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12683 $as_echo "$LIPO" >&6; }
12684 else
12685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12687 fi
12688
12689
12690 fi
12691 if test -z "$ac_cv_prog_LIPO"; then
12692   ac_ct_LIPO=$LIPO
12693   # Extract the first word of "lipo", so it can be a program name with args.
12694 set dummy lipo; ac_word=$2
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12696 $as_echo_n "checking for $ac_word... " >&6; }
12697 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
12698   $as_echo_n "(cached) " >&6
12699 else
12700   if test -n "$ac_ct_LIPO"; then
12701   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12702 else
12703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12704 for as_dir in $PATH
12705 do
12706   IFS=$as_save_IFS
12707   test -z "$as_dir" && as_dir=.
12708     for ac_exec_ext in '' $ac_executable_extensions; do
12709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12710     ac_cv_prog_ac_ct_LIPO="lipo"
12711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12712     break 2
12713   fi
12714 done
12715   done
12716 IFS=$as_save_IFS
12717
12718 fi
12719 fi
12720 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12721 if test -n "$ac_ct_LIPO"; then
12722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12723 $as_echo "$ac_ct_LIPO" >&6; }
12724 else
12725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726 $as_echo "no" >&6; }
12727 fi
12728
12729   if test "x$ac_ct_LIPO" = x; then
12730     LIPO=":"
12731   else
12732     case $cross_compiling:$ac_tool_warned in
12733 yes:)
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12736 ac_tool_warned=yes ;;
12737 esac
12738     LIPO=$ac_ct_LIPO
12739   fi
12740 else
12741   LIPO="$ac_cv_prog_LIPO"
12742 fi
12743
12744     if test -n "$ac_tool_prefix"; then
12745   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12746 set dummy ${ac_tool_prefix}otool; ac_word=$2
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12748 $as_echo_n "checking for $ac_word... " >&6; }
12749 if test "${ac_cv_prog_OTOOL+set}" = set; then :
12750   $as_echo_n "(cached) " >&6
12751 else
12752   if test -n "$OTOOL"; then
12753   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12754 else
12755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12756 for as_dir in $PATH
12757 do
12758   IFS=$as_save_IFS
12759   test -z "$as_dir" && as_dir=.
12760     for ac_exec_ext in '' $ac_executable_extensions; do
12761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12762     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12764     break 2
12765   fi
12766 done
12767   done
12768 IFS=$as_save_IFS
12769
12770 fi
12771 fi
12772 OTOOL=$ac_cv_prog_OTOOL
12773 if test -n "$OTOOL"; then
12774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12775 $as_echo "$OTOOL" >&6; }
12776 else
12777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778 $as_echo "no" >&6; }
12779 fi
12780
12781
12782 fi
12783 if test -z "$ac_cv_prog_OTOOL"; then
12784   ac_ct_OTOOL=$OTOOL
12785   # Extract the first word of "otool", so it can be a program name with args.
12786 set dummy otool; ac_word=$2
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12788 $as_echo_n "checking for $ac_word... " >&6; }
12789 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
12790   $as_echo_n "(cached) " >&6
12791 else
12792   if test -n "$ac_ct_OTOOL"; then
12793   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12794 else
12795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12796 for as_dir in $PATH
12797 do
12798   IFS=$as_save_IFS
12799   test -z "$as_dir" && as_dir=.
12800     for ac_exec_ext in '' $ac_executable_extensions; do
12801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12802     ac_cv_prog_ac_ct_OTOOL="otool"
12803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12804     break 2
12805   fi
12806 done
12807   done
12808 IFS=$as_save_IFS
12809
12810 fi
12811 fi
12812 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12813 if test -n "$ac_ct_OTOOL"; then
12814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12815 $as_echo "$ac_ct_OTOOL" >&6; }
12816 else
12817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12818 $as_echo "no" >&6; }
12819 fi
12820
12821   if test "x$ac_ct_OTOOL" = x; then
12822     OTOOL=":"
12823   else
12824     case $cross_compiling:$ac_tool_warned in
12825 yes:)
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12828 ac_tool_warned=yes ;;
12829 esac
12830     OTOOL=$ac_ct_OTOOL
12831   fi
12832 else
12833   OTOOL="$ac_cv_prog_OTOOL"
12834 fi
12835
12836     if test -n "$ac_tool_prefix"; then
12837   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12838 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12840 $as_echo_n "checking for $ac_word... " >&6; }
12841 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
12842   $as_echo_n "(cached) " >&6
12843 else
12844   if test -n "$OTOOL64"; then
12845   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12846 else
12847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12848 for as_dir in $PATH
12849 do
12850   IFS=$as_save_IFS
12851   test -z "$as_dir" && as_dir=.
12852     for ac_exec_ext in '' $ac_executable_extensions; do
12853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12854     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12856     break 2
12857   fi
12858 done
12859   done
12860 IFS=$as_save_IFS
12861
12862 fi
12863 fi
12864 OTOOL64=$ac_cv_prog_OTOOL64
12865 if test -n "$OTOOL64"; then
12866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12867 $as_echo "$OTOOL64" >&6; }
12868 else
12869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870 $as_echo "no" >&6; }
12871 fi
12872
12873
12874 fi
12875 if test -z "$ac_cv_prog_OTOOL64"; then
12876   ac_ct_OTOOL64=$OTOOL64
12877   # Extract the first word of "otool64", so it can be a program name with args.
12878 set dummy otool64; ac_word=$2
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12880 $as_echo_n "checking for $ac_word... " >&6; }
12881 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
12882   $as_echo_n "(cached) " >&6
12883 else
12884   if test -n "$ac_ct_OTOOL64"; then
12885   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12886 else
12887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12888 for as_dir in $PATH
12889 do
12890   IFS=$as_save_IFS
12891   test -z "$as_dir" && as_dir=.
12892     for ac_exec_ext in '' $ac_executable_extensions; do
12893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12894     ac_cv_prog_ac_ct_OTOOL64="otool64"
12895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12896     break 2
12897   fi
12898 done
12899   done
12900 IFS=$as_save_IFS
12901
12902 fi
12903 fi
12904 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12905 if test -n "$ac_ct_OTOOL64"; then
12906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12907 $as_echo "$ac_ct_OTOOL64" >&6; }
12908 else
12909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12910 $as_echo "no" >&6; }
12911 fi
12912
12913   if test "x$ac_ct_OTOOL64" = x; then
12914     OTOOL64=":"
12915   else
12916     case $cross_compiling:$ac_tool_warned in
12917 yes:)
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12920 ac_tool_warned=yes ;;
12921 esac
12922     OTOOL64=$ac_ct_OTOOL64
12923   fi
12924 else
12925   OTOOL64="$ac_cv_prog_OTOOL64"
12926 fi
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12955 $as_echo_n "checking for -single_module linker flag... " >&6; }
12956 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
12957   $as_echo_n "(cached) " >&6
12958 else
12959   lt_cv_apple_cc_single_mod=no
12960       if test -z "${LT_MULTI_MODULE}"; then
12961         # By default we will add the -single_module flag. You can override
12962         # by either setting the environment variable LT_MULTI_MODULE
12963         # non-empty at configure time, or by adding -multi_module to the
12964         # link flags.
12965         rm -rf libconftest.dylib*
12966         echo "int foo(void){return 1;}" > conftest.c
12967         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12968 -dynamiclib -Wl,-single_module conftest.c" >&5
12969         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12970           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12971         _lt_result=$?
12972         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12973           lt_cv_apple_cc_single_mod=yes
12974         else
12975           cat conftest.err >&5
12976         fi
12977         rm -rf libconftest.dylib*
12978         rm -f conftest.*
12979       fi
12980 fi
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12982 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12983     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12984 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12985 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
12986   $as_echo_n "(cached) " >&6
12987 else
12988   lt_cv_ld_exported_symbols_list=no
12989       save_LDFLAGS=$LDFLAGS
12990       echo "_main" > conftest.sym
12991       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12992       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12993 /* end confdefs.h.  */
12994
12995 int
12996 main ()
12997 {
12998
12999   ;
13000   return 0;
13001 }
13002 _ACEOF
13003 if ac_fn_c_try_link "$LINENO"; then :
13004   lt_cv_ld_exported_symbols_list=yes
13005 else
13006   lt_cv_ld_exported_symbols_list=no
13007 fi
13008 rm -f core conftest.err conftest.$ac_objext \
13009     conftest$ac_exeext conftest.$ac_ext
13010         LDFLAGS="$save_LDFLAGS"
13011
13012 fi
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13014 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13015     case $host_os in
13016     rhapsody* | darwin1.[012])
13017       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13018     darwin1.*)
13019       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13020     darwin*) # darwin 5.x on
13021       # if running on 10.5 or later, the deployment target defaults
13022       # to the OS version, if on x86, and 10.4, the deployment
13023       # target defaults to 10.4. Don't you love it?
13024       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13025         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13026           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13027         10.[012]*)
13028           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13029         10.*)
13030           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13031       esac
13032     ;;
13033   esac
13034     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13035       _lt_dar_single_mod='$single_module'
13036     fi
13037     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13038       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13039     else
13040       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13041     fi
13042     if test "$DSYMUTIL" != ":"; then
13043       _lt_dsymutil='~$DSYMUTIL $lib || :'
13044     else
13045       _lt_dsymutil=
13046     fi
13047     ;;
13048   esac
13049
13050 for ac_header in dlfcn.h
13051 do :
13052   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13053 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13054   cat >>confdefs.h <<_ACEOF
13055 #define HAVE_DLFCN_H 1
13056 _ACEOF
13057
13058 fi
13059 done
13060
13061
13062
13063 ac_ext=cpp
13064 ac_cpp='$CXXCPP $CPPFLAGS'
13065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13068 if test -z "$CXX"; then
13069   if test -n "$CCC"; then
13070     CXX=$CCC
13071   else
13072     if test -n "$ac_tool_prefix"; then
13073   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13074   do
13075     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13076 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13078 $as_echo_n "checking for $ac_word... " >&6; }
13079 if test "${ac_cv_prog_CXX+set}" = set; then :
13080   $as_echo_n "(cached) " >&6
13081 else
13082   if test -n "$CXX"; then
13083   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13084 else
13085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086 for as_dir in $PATH
13087 do
13088   IFS=$as_save_IFS
13089   test -z "$as_dir" && as_dir=.
13090     for ac_exec_ext in '' $ac_executable_extensions; do
13091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13092     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13094     break 2
13095   fi
13096 done
13097   done
13098 IFS=$as_save_IFS
13099
13100 fi
13101 fi
13102 CXX=$ac_cv_prog_CXX
13103 if test -n "$CXX"; then
13104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13105 $as_echo "$CXX" >&6; }
13106 else
13107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108 $as_echo "no" >&6; }
13109 fi
13110
13111
13112     test -n "$CXX" && break
13113   done
13114 fi
13115 if test -z "$CXX"; then
13116   ac_ct_CXX=$CXX
13117   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13118 do
13119   # Extract the first word of "$ac_prog", so it can be a program name with args.
13120 set dummy $ac_prog; ac_word=$2
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13122 $as_echo_n "checking for $ac_word... " >&6; }
13123 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13124   $as_echo_n "(cached) " >&6
13125 else
13126   if test -n "$ac_ct_CXX"; then
13127   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13128 else
13129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130 for as_dir in $PATH
13131 do
13132   IFS=$as_save_IFS
13133   test -z "$as_dir" && as_dir=.
13134     for ac_exec_ext in '' $ac_executable_extensions; do
13135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13136     ac_cv_prog_ac_ct_CXX="$ac_prog"
13137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13138     break 2
13139   fi
13140 done
13141   done
13142 IFS=$as_save_IFS
13143
13144 fi
13145 fi
13146 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13147 if test -n "$ac_ct_CXX"; then
13148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13149 $as_echo "$ac_ct_CXX" >&6; }
13150 else
13151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152 $as_echo "no" >&6; }
13153 fi
13154
13155
13156   test -n "$ac_ct_CXX" && break
13157 done
13158
13159   if test "x$ac_ct_CXX" = x; then
13160     CXX="g++"
13161   else
13162     case $cross_compiling:$ac_tool_warned in
13163 yes:)
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13166 ac_tool_warned=yes ;;
13167 esac
13168     CXX=$ac_ct_CXX
13169   fi
13170 fi
13171
13172   fi
13173 fi
13174 # Provide some information about the compiler.
13175 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13176 set X $ac_compile
13177 ac_compiler=$2
13178 for ac_option in --version -v -V -qversion; do
13179   { { ac_try="$ac_compiler $ac_option >&5"
13180 case "(($ac_try" in
13181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182   *) ac_try_echo=$ac_try;;
13183 esac
13184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13185 $as_echo "$ac_try_echo"; } >&5
13186   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13187   ac_status=$?
13188   if test -s conftest.err; then
13189     sed '10a\
13190 ... rest of stderr output deleted ...
13191          10q' conftest.err >conftest.er1
13192     cat conftest.er1 >&5
13193     rm -f conftest.er1 conftest.err
13194   fi
13195   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13196   test $ac_status = 0; }
13197 done
13198
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13200 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13201 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13202   $as_echo_n "(cached) " >&6
13203 else
13204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h.  */
13206
13207 int
13208 main ()
13209 {
13210 #ifndef __GNUC__
13211        choke me
13212 #endif
13213
13214   ;
13215   return 0;
13216 }
13217 _ACEOF
13218 if ac_fn_cxx_try_compile "$LINENO"; then :
13219   ac_compiler_gnu=yes
13220 else
13221   ac_compiler_gnu=no
13222 fi
13223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13224 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13225
13226 fi
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13228 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13229 if test $ac_compiler_gnu = yes; then
13230   GXX=yes
13231 else
13232   GXX=
13233 fi
13234 ac_test_CXXFLAGS=${CXXFLAGS+set}
13235 ac_save_CXXFLAGS=$CXXFLAGS
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13237 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13238 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13239   $as_echo_n "(cached) " >&6
13240 else
13241   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13242    ac_cxx_werror_flag=yes
13243    ac_cv_prog_cxx_g=no
13244    CXXFLAGS="-g"
13245    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246 /* end confdefs.h.  */
13247
13248 int
13249 main ()
13250 {
13251
13252   ;
13253   return 0;
13254 }
13255 _ACEOF
13256 if ac_fn_cxx_try_compile "$LINENO"; then :
13257   ac_cv_prog_cxx_g=yes
13258 else
13259   CXXFLAGS=""
13260       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h.  */
13262
13263 int
13264 main ()
13265 {
13266
13267   ;
13268   return 0;
13269 }
13270 _ACEOF
13271 if ac_fn_cxx_try_compile "$LINENO"; then :
13272
13273 else
13274   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13275          CXXFLAGS="-g"
13276          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h.  */
13278
13279 int
13280 main ()
13281 {
13282
13283   ;
13284   return 0;
13285 }
13286 _ACEOF
13287 if ac_fn_cxx_try_compile "$LINENO"; then :
13288   ac_cv_prog_cxx_g=yes
13289 fi
13290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13291 fi
13292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13293 fi
13294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13295    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13296 fi
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13298 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13299 if test "$ac_test_CXXFLAGS" = set; then
13300   CXXFLAGS=$ac_save_CXXFLAGS
13301 elif test $ac_cv_prog_cxx_g = yes; then
13302   if test "$GXX" = yes; then
13303     CXXFLAGS="-g -O2"
13304   else
13305     CXXFLAGS="-g"
13306   fi
13307 else
13308   if test "$GXX" = yes; then
13309     CXXFLAGS="-O2"
13310   else
13311     CXXFLAGS=
13312   fi
13313 fi
13314 ac_ext=c
13315 ac_cpp='$CPP $CPPFLAGS'
13316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13319
13320 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13321     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13322     (test "X$CXX" != "Xg++"))) ; then
13323   ac_ext=cpp
13324 ac_cpp='$CXXCPP $CPPFLAGS'
13325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13329 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13330 if test -z "$CXXCPP"; then
13331   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13332   $as_echo_n "(cached) " >&6
13333 else
13334       # Double quotes because CXXCPP needs to be expanded
13335     for CXXCPP in "$CXX -E" "/lib/cpp"
13336     do
13337       ac_preproc_ok=false
13338 for ac_cxx_preproc_warn_flag in '' yes
13339 do
13340   # Use a header file that comes with gcc, so configuring glibc
13341   # with a fresh cross-compiler works.
13342   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13343   # <limits.h> exists even on freestanding compilers.
13344   # On the NeXT, cc -E runs the code through the compiler's parser,
13345   # not just through cpp. "Syntax error" is here to catch this case.
13346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h.  */
13348 #ifdef __STDC__
13349 # include <limits.h>
13350 #else
13351 # include <assert.h>
13352 #endif
13353                      Syntax error
13354 _ACEOF
13355 if ac_fn_cxx_try_cpp "$LINENO"; then :
13356
13357 else
13358   # Broken: fails on valid input.
13359 continue
13360 fi
13361 rm -f conftest.err conftest.$ac_ext
13362
13363   # OK, works on sane cases.  Now check whether nonexistent headers
13364   # can be detected and how.
13365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13366 /* end confdefs.h.  */
13367 #include <ac_nonexistent.h>
13368 _ACEOF
13369 if ac_fn_cxx_try_cpp "$LINENO"; then :
13370   # Broken: success on invalid input.
13371 continue
13372 else
13373   # Passes both tests.
13374 ac_preproc_ok=:
13375 break
13376 fi
13377 rm -f conftest.err conftest.$ac_ext
13378
13379 done
13380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13381 rm -f conftest.err conftest.$ac_ext
13382 if $ac_preproc_ok; then :
13383   break
13384 fi
13385
13386     done
13387     ac_cv_prog_CXXCPP=$CXXCPP
13388
13389 fi
13390   CXXCPP=$ac_cv_prog_CXXCPP
13391 else
13392   ac_cv_prog_CXXCPP=$CXXCPP
13393 fi
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13395 $as_echo "$CXXCPP" >&6; }
13396 ac_preproc_ok=false
13397 for ac_cxx_preproc_warn_flag in '' yes
13398 do
13399   # Use a header file that comes with gcc, so configuring glibc
13400   # with a fresh cross-compiler works.
13401   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13402   # <limits.h> exists even on freestanding compilers.
13403   # On the NeXT, cc -E runs the code through the compiler's parser,
13404   # not just through cpp. "Syntax error" is here to catch this case.
13405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h.  */
13407 #ifdef __STDC__
13408 # include <limits.h>
13409 #else
13410 # include <assert.h>
13411 #endif
13412                      Syntax error
13413 _ACEOF
13414 if ac_fn_cxx_try_cpp "$LINENO"; then :
13415
13416 else
13417   # Broken: fails on valid input.
13418 continue
13419 fi
13420 rm -f conftest.err conftest.$ac_ext
13421
13422   # OK, works on sane cases.  Now check whether nonexistent headers
13423   # can be detected and how.
13424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h.  */
13426 #include <ac_nonexistent.h>
13427 _ACEOF
13428 if ac_fn_cxx_try_cpp "$LINENO"; then :
13429   # Broken: success on invalid input.
13430 continue
13431 else
13432   # Passes both tests.
13433 ac_preproc_ok=:
13434 break
13435 fi
13436 rm -f conftest.err conftest.$ac_ext
13437
13438 done
13439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13440 rm -f conftest.err conftest.$ac_ext
13441 if $ac_preproc_ok; then :
13442
13443 else
13444   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13446 _lt_caught_CXX_error=yes; }
13447 fi
13448
13449 ac_ext=c
13450 ac_cpp='$CPP $CPPFLAGS'
13451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13454
13455 else
13456   _lt_caught_CXX_error=yes
13457 fi
13458
13459
13460
13461
13462
13463 # Set options
13464
13465
13466
13467         enable_dlopen=no
13468
13469
13470   enable_win32_dll=no
13471
13472
13473             # Check whether --enable-shared was given.
13474 if test "${enable_shared+set}" = set; then :
13475   enableval=$enable_shared; p=${PACKAGE-default}
13476     case $enableval in
13477     yes) enable_shared=yes ;;
13478     no) enable_shared=no ;;
13479     *)
13480       enable_shared=no
13481       # Look at the argument we got.  We use all the common list separators.
13482       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13483       for pkg in $enableval; do
13484         IFS="$lt_save_ifs"
13485         if test "X$pkg" = "X$p"; then
13486           enable_shared=yes
13487         fi
13488       done
13489       IFS="$lt_save_ifs"
13490       ;;
13491     esac
13492 else
13493   enable_shared=yes
13494 fi
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504   # Check whether --enable-static was given.
13505 if test "${enable_static+set}" = set; then :
13506   enableval=$enable_static; p=${PACKAGE-default}
13507     case $enableval in
13508     yes) enable_static=yes ;;
13509     no) enable_static=no ;;
13510     *)
13511      enable_static=no
13512       # Look at the argument we got.  We use all the common list separators.
13513       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13514       for pkg in $enableval; do
13515         IFS="$lt_save_ifs"
13516         if test "X$pkg" = "X$p"; then
13517           enable_static=yes
13518         fi
13519       done
13520       IFS="$lt_save_ifs"
13521       ;;
13522     esac
13523 else
13524   enable_static=yes
13525 fi
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536 # Check whether --with-pic was given.
13537 if test "${with_pic+set}" = set; then :
13538   withval=$with_pic; pic_mode="$withval"
13539 else
13540   pic_mode=default
13541 fi
13542
13543
13544 test -z "$pic_mode" && pic_mode=default
13545
13546
13547
13548
13549
13550
13551
13552   # Check whether --enable-fast-install was given.
13553 if test "${enable_fast_install+set}" = set; then :
13554   enableval=$enable_fast_install; p=${PACKAGE-default}
13555     case $enableval in
13556     yes) enable_fast_install=yes ;;
13557     no) enable_fast_install=no ;;
13558     *)
13559       enable_fast_install=no
13560       # Look at the argument we got.  We use all the common list separators.
13561       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13562       for pkg in $enableval; do
13563         IFS="$lt_save_ifs"
13564         if test "X$pkg" = "X$p"; then
13565           enable_fast_install=yes
13566         fi
13567       done
13568       IFS="$lt_save_ifs"
13569       ;;
13570     esac
13571 else
13572   enable_fast_install=yes
13573 fi
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585 # This can be used to rebuild libtool when needed
13586 LIBTOOL_DEPS="$ltmain"
13587
13588 # Always use our own libtool.
13589 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615 test -z "$LN_S" && LN_S="ln -s"
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630 if test -n "${ZSH_VERSION+set}" ; then
13631    setopt NO_GLOB_SUBST
13632 fi
13633
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13635 $as_echo_n "checking for objdir... " >&6; }
13636 if test "${lt_cv_objdir+set}" = set; then :
13637   $as_echo_n "(cached) " >&6
13638 else
13639   rm -f .libs 2>/dev/null
13640 mkdir .libs 2>/dev/null
13641 if test -d .libs; then
13642   lt_cv_objdir=.libs
13643 else
13644   # MS-DOS does not allow filenames that begin with a dot.
13645   lt_cv_objdir=_libs
13646 fi
13647 rmdir .libs 2>/dev/null
13648 fi
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13650 $as_echo "$lt_cv_objdir" >&6; }
13651 objdir=$lt_cv_objdir
13652
13653
13654
13655
13656
13657 cat >>confdefs.h <<_ACEOF
13658 #define LT_OBJDIR "$lt_cv_objdir/"
13659 _ACEOF
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677 case $host_os in
13678 aix3*)
13679   # AIX sometimes has problems with the GCC collect2 program.  For some
13680   # reason, if we set the COLLECT_NAMES environment variable, the problems
13681   # vanish in a puff of smoke.
13682   if test "X${COLLECT_NAMES+set}" != Xset; then
13683     COLLECT_NAMES=
13684     export COLLECT_NAMES
13685   fi
13686   ;;
13687 esac
13688
13689 # Sed substitution that helps us do robust quoting.  It backslashifies
13690 # metacharacters that are still active within double-quoted strings.
13691 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13692
13693 # Same as above, but do not quote variable references.
13694 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13695
13696 # Sed substitution to delay expansion of an escaped shell variable in a
13697 # double_quote_subst'ed string.
13698 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13699
13700 # Sed substitution to delay expansion of an escaped single quote.
13701 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13702
13703 # Sed substitution to avoid accidental globbing in evaled expressions
13704 no_glob_subst='s/\*/\\\*/g'
13705
13706 # Global variables:
13707 ofile=libtool
13708 can_build_shared=yes
13709
13710 # All known linkers require a `.a' archive for static linking (except MSVC,
13711 # which needs '.lib').
13712 libext=a
13713
13714 with_gnu_ld="$lt_cv_prog_gnu_ld"
13715
13716 old_CC="$CC"
13717 old_CFLAGS="$CFLAGS"
13718
13719 # Set sane defaults for various variables
13720 test -z "$CC" && CC=cc
13721 test -z "$LTCC" && LTCC=$CC
13722 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13723 test -z "$LD" && LD=ld
13724 test -z "$ac_objext" && ac_objext=o
13725
13726 for cc_temp in $compiler""; do
13727   case $cc_temp in
13728     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13729     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13730     \-*) ;;
13731     *) break;;
13732   esac
13733 done
13734 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13735
13736
13737 # Only perform the check for file, if the check method requires it
13738 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13739 case $deplibs_check_method in
13740 file_magic*)
13741   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13742     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13743 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13744 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13745   $as_echo_n "(cached) " >&6
13746 else
13747   case $MAGIC_CMD in
13748 [\\/*] |  ?:[\\/]*)
13749   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13750   ;;
13751 *)
13752   lt_save_MAGIC_CMD="$MAGIC_CMD"
13753   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13754   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13755   for ac_dir in $ac_dummy; do
13756     IFS="$lt_save_ifs"
13757     test -z "$ac_dir" && ac_dir=.
13758     if test -f $ac_dir/${ac_tool_prefix}file; then
13759       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13760       if test -n "$file_magic_test_file"; then
13761         case $deplibs_check_method in
13762         "file_magic "*)
13763           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13764           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13765           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13766             $EGREP "$file_magic_regex" > /dev/null; then
13767             :
13768           else
13769             cat <<_LT_EOF 1>&2
13770
13771 *** Warning: the command libtool uses to detect shared libraries,
13772 *** $file_magic_cmd, produces output that libtool cannot recognize.
13773 *** The result is that libtool may fail to recognize shared libraries
13774 *** as such.  This will affect the creation of libtool libraries that
13775 *** depend on shared libraries, but programs linked with such libtool
13776 *** libraries will work regardless of this problem.  Nevertheless, you
13777 *** may want to report the problem to your system manager and/or to
13778 *** bug-libtool@gnu.org
13779
13780 _LT_EOF
13781           fi ;;
13782         esac
13783       fi
13784       break
13785     fi
13786   done
13787   IFS="$lt_save_ifs"
13788   MAGIC_CMD="$lt_save_MAGIC_CMD"
13789   ;;
13790 esac
13791 fi
13792
13793 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13794 if test -n "$MAGIC_CMD"; then
13795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13796 $as_echo "$MAGIC_CMD" >&6; }
13797 else
13798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13799 $as_echo "no" >&6; }
13800 fi
13801
13802
13803
13804
13805
13806 if test -z "$lt_cv_path_MAGIC_CMD"; then
13807   if test -n "$ac_tool_prefix"; then
13808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13809 $as_echo_n "checking for file... " >&6; }
13810 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13811   $as_echo_n "(cached) " >&6
13812 else
13813   case $MAGIC_CMD in
13814 [\\/*] |  ?:[\\/]*)
13815   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13816   ;;
13817 *)
13818   lt_save_MAGIC_CMD="$MAGIC_CMD"
13819   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13820   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13821   for ac_dir in $ac_dummy; do
13822     IFS="$lt_save_ifs"
13823     test -z "$ac_dir" && ac_dir=.
13824     if test -f $ac_dir/file; then
13825       lt_cv_path_MAGIC_CMD="$ac_dir/file"
13826       if test -n "$file_magic_test_file"; then
13827         case $deplibs_check_method in
13828         "file_magic "*)
13829           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13830           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13831           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13832             $EGREP "$file_magic_regex" > /dev/null; then
13833             :
13834           else
13835             cat <<_LT_EOF 1>&2
13836
13837 *** Warning: the command libtool uses to detect shared libraries,
13838 *** $file_magic_cmd, produces output that libtool cannot recognize.
13839 *** The result is that libtool may fail to recognize shared libraries
13840 *** as such.  This will affect the creation of libtool libraries that
13841 *** depend on shared libraries, but programs linked with such libtool
13842 *** libraries will work regardless of this problem.  Nevertheless, you
13843 *** may want to report the problem to your system manager and/or to
13844 *** bug-libtool@gnu.org
13845
13846 _LT_EOF
13847           fi ;;
13848         esac
13849       fi
13850       break
13851     fi
13852   done
13853   IFS="$lt_save_ifs"
13854   MAGIC_CMD="$lt_save_MAGIC_CMD"
13855   ;;
13856 esac
13857 fi
13858
13859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13860 if test -n "$MAGIC_CMD"; then
13861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13862 $as_echo "$MAGIC_CMD" >&6; }
13863 else
13864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13865 $as_echo "no" >&6; }
13866 fi
13867
13868
13869   else
13870     MAGIC_CMD=:
13871   fi
13872 fi
13873
13874   fi
13875   ;;
13876 esac
13877
13878 # Use C for the default configuration in the libtool script
13879
13880 lt_save_CC="$CC"
13881 ac_ext=c
13882 ac_cpp='$CPP $CPPFLAGS'
13883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13886
13887
13888 # Source file extension for C test sources.
13889 ac_ext=c
13890
13891 # Object file extension for compiled C test sources.
13892 objext=o
13893 objext=$objext
13894
13895 # Code to be used in simple compile tests
13896 lt_simple_compile_test_code="int some_variable = 0;"
13897
13898 # Code to be used in simple link tests
13899 lt_simple_link_test_code='int main(){return(0);}'
13900
13901
13902
13903
13904
13905
13906
13907 # If no C compiler was specified, use CC.
13908 LTCC=${LTCC-"$CC"}
13909
13910 # If no C compiler flags were specified, use CFLAGS.
13911 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13912
13913 # Allow CC to be a program name with arguments.
13914 compiler=$CC
13915
13916 # Save the default compiler, since it gets overwritten when the other
13917 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13918 compiler_DEFAULT=$CC
13919
13920 # save warnings/boilerplate of simple test code
13921 ac_outfile=conftest.$ac_objext
13922 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13923 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13924 _lt_compiler_boilerplate=`cat conftest.err`
13925 $RM conftest*
13926
13927 ac_outfile=conftest.$ac_objext
13928 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13929 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13930 _lt_linker_boilerplate=`cat conftest.err`
13931 $RM -r conftest*
13932
13933
13934 ## CAVEAT EMPTOR:
13935 ## There is no encapsulation within the following macros, do not change
13936 ## the running order or otherwise move them around unless you know exactly
13937 ## what you are doing...
13938 if test -n "$compiler"; then
13939
13940 lt_prog_compiler_no_builtin_flag=
13941
13942 if test "$GCC" = yes; then
13943   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13944
13945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13946 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13947 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
13948   $as_echo_n "(cached) " >&6
13949 else
13950   lt_cv_prog_compiler_rtti_exceptions=no
13951    ac_outfile=conftest.$ac_objext
13952    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13953    lt_compiler_flag="-fno-rtti -fno-exceptions"
13954    # Insert the option either (1) after the last *FLAGS variable, or
13955    # (2) before a word containing "conftest.", or (3) at the end.
13956    # Note that $ac_compile itself does not contain backslashes and begins
13957    # with a dollar sign (not a hyphen), so the echo should work correctly.
13958    # The option is referenced via a variable to avoid confusing sed.
13959    lt_compile=`echo "$ac_compile" | $SED \
13960    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13961    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13962    -e 's:$: $lt_compiler_flag:'`
13963    (eval echo "\"\$as_me:13963: $lt_compile\"" >&5)
13964    (eval "$lt_compile" 2>conftest.err)
13965    ac_status=$?
13966    cat conftest.err >&5
13967    echo "$as_me:13967: \$? = $ac_status" >&5
13968    if (exit $ac_status) && test -s "$ac_outfile"; then
13969      # The compiler can only warn and ignore the option if not recognized
13970      # So say no if there are warnings other than the usual output.
13971      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13972      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13973      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13974        lt_cv_prog_compiler_rtti_exceptions=yes
13975      fi
13976    fi
13977    $RM conftest*
13978
13979 fi
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13981 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13982
13983 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13984     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13985 else
13986     :
13987 fi
13988
13989 fi
13990
13991
13992
13993
13994
13995
13996   lt_prog_compiler_wl=
13997 lt_prog_compiler_pic=
13998 lt_prog_compiler_static=
13999
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14001 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14002
14003   if test "$GCC" = yes; then
14004     lt_prog_compiler_wl='-Wl,'
14005     lt_prog_compiler_static='-static'
14006
14007     case $host_os in
14008       aix*)
14009       # All AIX code is PIC.
14010       if test "$host_cpu" = ia64; then
14011         # AIX 5 now supports IA64 processor
14012         lt_prog_compiler_static='-Bstatic'
14013       fi
14014       ;;
14015
14016     amigaos*)
14017       case $host_cpu in
14018       powerpc)
14019             # see comment about AmigaOS4 .so support
14020             lt_prog_compiler_pic='-fPIC'
14021         ;;
14022       m68k)
14023             # FIXME: we need at least 68020 code to build shared libraries, but
14024             # adding the `-m68020' flag to GCC prevents building anything better,
14025             # like `-m68040'.
14026             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14027         ;;
14028       esac
14029       ;;
14030
14031     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14032       # PIC is the default for these OSes.
14033       ;;
14034
14035     mingw* | cygwin* | pw32* | os2* | cegcc*)
14036       # This hack is so that the source file can tell whether it is being
14037       # built for inclusion in a dll (and should export symbols for example).
14038       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14039       # (--disable-auto-import) libraries
14040       lt_prog_compiler_pic='-DDLL_EXPORT'
14041       ;;
14042
14043     darwin* | rhapsody*)
14044       # PIC is the default on this platform
14045       # Common symbols not allowed in MH_DYLIB files
14046       lt_prog_compiler_pic='-fno-common'
14047       ;;
14048
14049     hpux*)
14050       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14051       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14052       # sets the default TLS model and affects inlining.
14053       case $host_cpu in
14054       hppa*64*)
14055         # +Z the default
14056         ;;
14057       *)
14058         lt_prog_compiler_pic='-fPIC'
14059         ;;
14060       esac
14061       ;;
14062
14063     interix[3-9]*)
14064       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14065       # Instead, we relocate shared libraries at runtime.
14066       ;;
14067
14068     msdosdjgpp*)
14069       # Just because we use GCC doesn't mean we suddenly get shared libraries
14070       # on systems that don't support them.
14071       lt_prog_compiler_can_build_shared=no
14072       enable_shared=no
14073       ;;
14074
14075     *nto* | *qnx*)
14076       # QNX uses GNU C++, but need to define -shared option too, otherwise
14077       # it will coredump.
14078       lt_prog_compiler_pic='-fPIC -shared'
14079       ;;
14080
14081     sysv4*MP*)
14082       if test -d /usr/nec; then
14083         lt_prog_compiler_pic=-Kconform_pic
14084       fi
14085       ;;
14086
14087     *)
14088       lt_prog_compiler_pic='-fPIC'
14089       ;;
14090     esac
14091   else
14092     # PORTME Check for flag to pass linker flags through the system compiler.
14093     case $host_os in
14094     aix*)
14095       lt_prog_compiler_wl='-Wl,'
14096       if test "$host_cpu" = ia64; then
14097         # AIX 5 now supports IA64 processor
14098         lt_prog_compiler_static='-Bstatic'
14099       else
14100         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14101       fi
14102       ;;
14103
14104     mingw* | cygwin* | pw32* | os2* | cegcc*)
14105       # This hack is so that the source file can tell whether it is being
14106       # built for inclusion in a dll (and should export symbols for example).
14107       lt_prog_compiler_pic='-DDLL_EXPORT'
14108       ;;
14109
14110     hpux9* | hpux10* | hpux11*)
14111       lt_prog_compiler_wl='-Wl,'
14112       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14113       # not for PA HP-UX.
14114       case $host_cpu in
14115       hppa*64*|ia64*)
14116         # +Z the default
14117         ;;
14118       *)
14119         lt_prog_compiler_pic='+Z'
14120         ;;
14121       esac
14122       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14123       lt_prog_compiler_static='${wl}-a ${wl}archive'
14124       ;;
14125
14126     irix5* | irix6* | nonstopux*)
14127       lt_prog_compiler_wl='-Wl,'
14128       # PIC (with -KPIC) is the default.
14129       lt_prog_compiler_static='-non_shared'
14130       ;;
14131
14132     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14133       case $cc_basename in
14134       # old Intel for x86_64 which still supported -KPIC.
14135       ecc*)
14136         lt_prog_compiler_wl='-Wl,'
14137         lt_prog_compiler_pic='-KPIC'
14138         lt_prog_compiler_static='-static'
14139         ;;
14140       # icc used to be incompatible with GCC.
14141       # ICC 10 doesn't accept -KPIC any more.
14142       icc* | ifort*)
14143         lt_prog_compiler_wl='-Wl,'
14144         lt_prog_compiler_pic='-fPIC'
14145         lt_prog_compiler_static='-static'
14146         ;;
14147       # Lahey Fortran 8.1.
14148       lf95*)
14149         lt_prog_compiler_wl='-Wl,'
14150         lt_prog_compiler_pic='--shared'
14151         lt_prog_compiler_static='--static'
14152         ;;
14153       pgcc* | pgf77* | pgf90* | pgf95*)
14154         # Portland Group compilers (*not* the Pentium gcc compiler,
14155         # which looks to be a dead project)
14156         lt_prog_compiler_wl='-Wl,'
14157         lt_prog_compiler_pic='-fpic'
14158         lt_prog_compiler_static='-Bstatic'
14159         ;;
14160       ccc*)
14161         lt_prog_compiler_wl='-Wl,'
14162         # All Alpha code is PIC.
14163         lt_prog_compiler_static='-non_shared'
14164         ;;
14165       xl*)
14166         # IBM XL C 8.0/Fortran 10.1 on PPC
14167         lt_prog_compiler_wl='-Wl,'
14168         lt_prog_compiler_pic='-qpic'
14169         lt_prog_compiler_static='-qstaticlink'
14170         ;;
14171       *)
14172         case `$CC -V 2>&1 | sed 5q` in
14173         *Sun\ C*)
14174           # Sun C 5.9
14175           lt_prog_compiler_pic='-KPIC'
14176           lt_prog_compiler_static='-Bstatic'
14177           lt_prog_compiler_wl='-Wl,'
14178           ;;
14179         *Sun\ F*)
14180           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14181           lt_prog_compiler_pic='-KPIC'
14182           lt_prog_compiler_static='-Bstatic'
14183           lt_prog_compiler_wl=''
14184           ;;
14185         esac
14186         ;;
14187       esac
14188       ;;
14189
14190     newsos6)
14191       lt_prog_compiler_pic='-KPIC'
14192       lt_prog_compiler_static='-Bstatic'
14193       ;;
14194
14195     *nto* | *qnx*)
14196       # QNX uses GNU C++, but need to define -shared option too, otherwise
14197       # it will coredump.
14198       lt_prog_compiler_pic='-fPIC -shared'
14199       ;;
14200
14201     osf3* | osf4* | osf5*)
14202       lt_prog_compiler_wl='-Wl,'
14203       # All OSF/1 code is PIC.
14204       lt_prog_compiler_static='-non_shared'
14205       ;;
14206
14207     rdos*)
14208       lt_prog_compiler_static='-non_shared'
14209       ;;
14210
14211     solaris*)
14212       lt_prog_compiler_pic='-KPIC'
14213       lt_prog_compiler_static='-Bstatic'
14214       case $cc_basename in
14215       f77* | f90* | f95*)
14216         lt_prog_compiler_wl='-Qoption ld ';;
14217       *)
14218         lt_prog_compiler_wl='-Wl,';;
14219       esac
14220       ;;
14221
14222     sunos4*)
14223       lt_prog_compiler_wl='-Qoption ld '
14224       lt_prog_compiler_pic='-PIC'
14225       lt_prog_compiler_static='-Bstatic'
14226       ;;
14227
14228     sysv4 | sysv4.2uw2* | sysv4.3*)
14229       lt_prog_compiler_wl='-Wl,'
14230       lt_prog_compiler_pic='-KPIC'
14231       lt_prog_compiler_static='-Bstatic'
14232       ;;
14233
14234     sysv4*MP*)
14235       if test -d /usr/nec ;then
14236         lt_prog_compiler_pic='-Kconform_pic'
14237         lt_prog_compiler_static='-Bstatic'
14238       fi
14239       ;;
14240
14241     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14242       lt_prog_compiler_wl='-Wl,'
14243       lt_prog_compiler_pic='-KPIC'
14244       lt_prog_compiler_static='-Bstatic'
14245       ;;
14246
14247     unicos*)
14248       lt_prog_compiler_wl='-Wl,'
14249       lt_prog_compiler_can_build_shared=no
14250       ;;
14251
14252     uts4*)
14253       lt_prog_compiler_pic='-pic'
14254       lt_prog_compiler_static='-Bstatic'
14255       ;;
14256
14257     *)
14258       lt_prog_compiler_can_build_shared=no
14259       ;;
14260     esac
14261   fi
14262
14263 case $host_os in
14264   # For platforms which do not support PIC, -DPIC is meaningless:
14265   *djgpp*)
14266     lt_prog_compiler_pic=
14267     ;;
14268   *)
14269     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14270     ;;
14271 esac
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14273 $as_echo "$lt_prog_compiler_pic" >&6; }
14274
14275
14276
14277
14278
14279
14280 #
14281 # Check to make sure the PIC flag actually works.
14282 #
14283 if test -n "$lt_prog_compiler_pic"; then
14284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14285 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14286 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14287   $as_echo_n "(cached) " >&6
14288 else
14289   lt_cv_prog_compiler_pic_works=no
14290    ac_outfile=conftest.$ac_objext
14291    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14292    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14293    # Insert the option either (1) after the last *FLAGS variable, or
14294    # (2) before a word containing "conftest.", or (3) at the end.
14295    # Note that $ac_compile itself does not contain backslashes and begins
14296    # with a dollar sign (not a hyphen), so the echo should work correctly.
14297    # The option is referenced via a variable to avoid confusing sed.
14298    lt_compile=`echo "$ac_compile" | $SED \
14299    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14300    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14301    -e 's:$: $lt_compiler_flag:'`
14302    (eval echo "\"\$as_me:14302: $lt_compile\"" >&5)
14303    (eval "$lt_compile" 2>conftest.err)
14304    ac_status=$?
14305    cat conftest.err >&5
14306    echo "$as_me:14306: \$? = $ac_status" >&5
14307    if (exit $ac_status) && test -s "$ac_outfile"; then
14308      # The compiler can only warn and ignore the option if not recognized
14309      # So say no if there are warnings other than the usual output.
14310      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14311      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14312      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14313        lt_cv_prog_compiler_pic_works=yes
14314      fi
14315    fi
14316    $RM conftest*
14317
14318 fi
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14320 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14321
14322 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14323     case $lt_prog_compiler_pic in
14324      "" | " "*) ;;
14325      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14326      esac
14327 else
14328     lt_prog_compiler_pic=
14329      lt_prog_compiler_can_build_shared=no
14330 fi
14331
14332 fi
14333
14334
14335
14336
14337
14338
14339 #
14340 # Check to make sure the static flag actually works.
14341 #
14342 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14344 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14345 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14346   $as_echo_n "(cached) " >&6
14347 else
14348   lt_cv_prog_compiler_static_works=no
14349    save_LDFLAGS="$LDFLAGS"
14350    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14351    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14352    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14353      # The linker can only warn and ignore the option if not recognized
14354      # So say no if there are warnings
14355      if test -s conftest.err; then
14356        # Append any errors to the config.log.
14357        cat conftest.err 1>&5
14358        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14359        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14360        if diff conftest.exp conftest.er2 >/dev/null; then
14361          lt_cv_prog_compiler_static_works=yes
14362        fi
14363      else
14364        lt_cv_prog_compiler_static_works=yes
14365      fi
14366    fi
14367    $RM -r conftest*
14368    LDFLAGS="$save_LDFLAGS"
14369
14370 fi
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14372 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14373
14374 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14375     :
14376 else
14377     lt_prog_compiler_static=
14378 fi
14379
14380
14381
14382
14383
14384
14385
14386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14387 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14388 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14389   $as_echo_n "(cached) " >&6
14390 else
14391   lt_cv_prog_compiler_c_o=no
14392    $RM -r conftest 2>/dev/null
14393    mkdir conftest
14394    cd conftest
14395    mkdir out
14396    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14397
14398    lt_compiler_flag="-o out/conftest2.$ac_objext"
14399    # Insert the option either (1) after the last *FLAGS variable, or
14400    # (2) before a word containing "conftest.", or (3) at the end.
14401    # Note that $ac_compile itself does not contain backslashes and begins
14402    # with a dollar sign (not a hyphen), so the echo should work correctly.
14403    lt_compile=`echo "$ac_compile" | $SED \
14404    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14405    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14406    -e 's:$: $lt_compiler_flag:'`
14407    (eval echo "\"\$as_me:14407: $lt_compile\"" >&5)
14408    (eval "$lt_compile" 2>out/conftest.err)
14409    ac_status=$?
14410    cat out/conftest.err >&5
14411    echo "$as_me:14411: \$? = $ac_status" >&5
14412    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14413    then
14414      # The compiler can only warn and ignore the option if not recognized
14415      # So say no if there are warnings
14416      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14417      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14418      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14419        lt_cv_prog_compiler_c_o=yes
14420      fi
14421    fi
14422    chmod u+w . 2>&5
14423    $RM conftest*
14424    # SGI C++ compiler will create directory out/ii_files/ for
14425    # template instantiation
14426    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14427    $RM out/* && rmdir out
14428    cd ..
14429    $RM -r conftest
14430    $RM conftest*
14431
14432 fi
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14434 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14435
14436
14437
14438
14439
14440
14441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14442 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14443 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14444   $as_echo_n "(cached) " >&6
14445 else
14446   lt_cv_prog_compiler_c_o=no
14447    $RM -r conftest 2>/dev/null
14448    mkdir conftest
14449    cd conftest
14450    mkdir out
14451    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14452
14453    lt_compiler_flag="-o out/conftest2.$ac_objext"
14454    # Insert the option either (1) after the last *FLAGS variable, or
14455    # (2) before a word containing "conftest.", or (3) at the end.
14456    # Note that $ac_compile itself does not contain backslashes and begins
14457    # with a dollar sign (not a hyphen), so the echo should work correctly.
14458    lt_compile=`echo "$ac_compile" | $SED \
14459    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14460    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14461    -e 's:$: $lt_compiler_flag:'`
14462    (eval echo "\"\$as_me:14462: $lt_compile\"" >&5)
14463    (eval "$lt_compile" 2>out/conftest.err)
14464    ac_status=$?
14465    cat out/conftest.err >&5
14466    echo "$as_me:14466: \$? = $ac_status" >&5
14467    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14468    then
14469      # The compiler can only warn and ignore the option if not recognized
14470      # So say no if there are warnings
14471      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14472      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14473      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14474        lt_cv_prog_compiler_c_o=yes
14475      fi
14476    fi
14477    chmod u+w . 2>&5
14478    $RM conftest*
14479    # SGI C++ compiler will create directory out/ii_files/ for
14480    # template instantiation
14481    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14482    $RM out/* && rmdir out
14483    cd ..
14484    $RM -r conftest
14485    $RM conftest*
14486
14487 fi
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14489 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14490
14491
14492
14493
14494 hard_links="nottested"
14495 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14496   # do not overwrite the value of need_locks provided by the user
14497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14498 $as_echo_n "checking if we can lock with hard links... " >&6; }
14499   hard_links=yes
14500   $RM conftest*
14501   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14502   touch conftest.a
14503   ln conftest.a conftest.b 2>&5 || hard_links=no
14504   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14506 $as_echo "$hard_links" >&6; }
14507   if test "$hard_links" = no; then
14508     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14509 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14510     need_locks=warn
14511   fi
14512 else
14513   need_locks=no
14514 fi
14515
14516
14517
14518
14519
14520
14521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14522 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14523
14524   runpath_var=
14525   allow_undefined_flag=
14526   always_export_symbols=no
14527   archive_cmds=
14528   archive_expsym_cmds=
14529   compiler_needs_object=no
14530   enable_shared_with_static_runtimes=no
14531   export_dynamic_flag_spec=
14532   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14533   hardcode_automatic=no
14534   hardcode_direct=no
14535   hardcode_direct_absolute=no
14536   hardcode_libdir_flag_spec=
14537   hardcode_libdir_flag_spec_ld=
14538   hardcode_libdir_separator=
14539   hardcode_minus_L=no
14540   hardcode_shlibpath_var=unsupported
14541   inherit_rpath=no
14542   link_all_deplibs=unknown
14543   module_cmds=
14544   module_expsym_cmds=
14545   old_archive_from_new_cmds=
14546   old_archive_from_expsyms_cmds=
14547   thread_safe_flag_spec=
14548   whole_archive_flag_spec=
14549   # include_expsyms should be a list of space-separated symbols to be *always*
14550   # included in the symbol list
14551   include_expsyms=
14552   # exclude_expsyms can be an extended regexp of symbols to exclude
14553   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14554   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14555   # as well as any symbol that contains `d'.
14556   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14557   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14558   # platforms (ab)use it in PIC code, but their linkers get confused if
14559   # the symbol is explicitly referenced.  Since portable code cannot
14560   # rely on this symbol name, it's probably fine to never include it in
14561   # preloaded symbol tables.
14562   # Exclude shared library initialization/finalization symbols.
14563   extract_expsyms_cmds=
14564
14565   case $host_os in
14566   cygwin* | mingw* | pw32* | cegcc*)
14567     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14568     # When not using gcc, we currently assume that we are using
14569     # Microsoft Visual C++.
14570     if test "$GCC" != yes; then
14571       with_gnu_ld=no
14572     fi
14573     ;;
14574   interix*)
14575     # we just hope/assume this is gcc and not c89 (= MSVC++)
14576     with_gnu_ld=yes
14577     ;;
14578   openbsd*)
14579     with_gnu_ld=no
14580     ;;
14581   esac
14582
14583   ld_shlibs=yes
14584   if test "$with_gnu_ld" = yes; then
14585     # If archive_cmds runs LD, not CC, wlarc should be empty
14586     wlarc='${wl}'
14587
14588     # Set some defaults for GNU ld with shared library support. These
14589     # are reset later if shared libraries are not supported. Putting them
14590     # here allows them to be overridden if necessary.
14591     runpath_var=LD_RUN_PATH
14592     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14593     export_dynamic_flag_spec='${wl}--export-dynamic'
14594     # ancient GNU ld didn't support --whole-archive et. al.
14595     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14596       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14597     else
14598       whole_archive_flag_spec=
14599     fi
14600     supports_anon_versioning=no
14601     case `$LD -v 2>&1` in
14602       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14603       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14604       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14605       *\ 2.11.*) ;; # other 2.11 versions
14606       *) supports_anon_versioning=yes ;;
14607     esac
14608
14609     # See if GNU ld supports shared libraries.
14610     case $host_os in
14611     aix[3-9]*)
14612       # On AIX/PPC, the GNU linker is very broken
14613       if test "$host_cpu" != ia64; then
14614         ld_shlibs=no
14615         cat <<_LT_EOF 1>&2
14616
14617 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14618 *** to be unable to reliably create shared libraries on AIX.
14619 *** Therefore, libtool is disabling shared libraries support.  If you
14620 *** really care for shared libraries, you may want to modify your PATH
14621 *** so that a non-GNU linker is found, and then restart.
14622
14623 _LT_EOF
14624       fi
14625       ;;
14626
14627     amigaos*)
14628       case $host_cpu in
14629       powerpc)
14630             # see comment about AmigaOS4 .so support
14631             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14632             archive_expsym_cmds=''
14633         ;;
14634       m68k)
14635             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)'
14636             hardcode_libdir_flag_spec='-L$libdir'
14637             hardcode_minus_L=yes
14638         ;;
14639       esac
14640       ;;
14641
14642     beos*)
14643       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14644         allow_undefined_flag=unsupported
14645         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14646         # support --undefined.  This deserves some investigation.  FIXME
14647         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14648       else
14649         ld_shlibs=no
14650       fi
14651       ;;
14652
14653     cygwin* | mingw* | pw32* | cegcc*)
14654       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14655       # as there is no search path for DLLs.
14656       hardcode_libdir_flag_spec='-L$libdir'
14657       allow_undefined_flag=unsupported
14658       always_export_symbols=no
14659       enable_shared_with_static_runtimes=yes
14660       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14661
14662       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14663         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14664         # If the export-symbols file already is a .def file (1st line
14665         # is EXPORTS), use it as is; otherwise, prepend...
14666         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14667           cp $export_symbols $output_objdir/$soname.def;
14668         else
14669           echo EXPORTS > $output_objdir/$soname.def;
14670           cat $export_symbols >> $output_objdir/$soname.def;
14671         fi~
14672         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14673       else
14674         ld_shlibs=no
14675       fi
14676       ;;
14677
14678     interix[3-9]*)
14679       hardcode_direct=no
14680       hardcode_shlibpath_var=no
14681       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14682       export_dynamic_flag_spec='${wl}-E'
14683       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14684       # Instead, shared libraries are loaded at an image base (0x10000000 by
14685       # default) and relocated if they conflict, which is a slow very memory
14686       # consuming and fragmenting process.  To avoid this, we pick a random,
14687       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14688       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14689       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14690       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'
14691       ;;
14692
14693     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14694       tmp_diet=no
14695       if test "$host_os" = linux-dietlibc; then
14696         case $cc_basename in
14697           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
14698         esac
14699       fi
14700       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14701          && test "$tmp_diet" = no
14702       then
14703         tmp_addflag=
14704         tmp_sharedflag='-shared'
14705         case $cc_basename,$host_cpu in
14706         pgcc*)                          # Portland Group C compiler
14707           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14708           tmp_addflag=' $pic_flag'
14709           ;;
14710         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14711           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14712           tmp_addflag=' $pic_flag -Mnomain' ;;
14713         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
14714           tmp_addflag=' -i_dynamic' ;;
14715         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14716           tmp_addflag=' -i_dynamic -nofor_main' ;;
14717         ifc* | ifort*)                  # Intel Fortran compiler
14718           tmp_addflag=' -nofor_main' ;;
14719         lf95*)                          # Lahey Fortran 8.1
14720           whole_archive_flag_spec=
14721           tmp_sharedflag='--shared' ;;
14722         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
14723           tmp_sharedflag='-qmkshrobj'
14724           tmp_addflag= ;;
14725         esac
14726         case `$CC -V 2>&1 | sed 5q` in
14727         *Sun\ C*)                       # Sun C 5.9
14728           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14729           compiler_needs_object=yes
14730           tmp_sharedflag='-G' ;;
14731         *Sun\ F*)                       # Sun Fortran 8.3
14732           tmp_sharedflag='-G' ;;
14733         esac
14734         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14735
14736         if test "x$supports_anon_versioning" = xyes; then
14737           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14738             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14739             echo "local: *; };" >> $output_objdir/$libname.ver~
14740             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14741         fi
14742
14743         case $cc_basename in
14744         xlf*)
14745           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14746           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14747           hardcode_libdir_flag_spec=
14748           hardcode_libdir_flag_spec_ld='-rpath $libdir'
14749           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14750           if test "x$supports_anon_versioning" = xyes; then
14751             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14752               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14753               echo "local: *; };" >> $output_objdir/$libname.ver~
14754               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14755           fi
14756           ;;
14757         esac
14758       else
14759         ld_shlibs=no
14760       fi
14761       ;;
14762
14763     netbsd*)
14764       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14765         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14766         wlarc=
14767       else
14768         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14769         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14770       fi
14771       ;;
14772
14773     solaris*)
14774       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14775         ld_shlibs=no
14776         cat <<_LT_EOF 1>&2
14777
14778 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14779 *** create shared libraries on Solaris systems.  Therefore, libtool
14780 *** is disabling shared libraries support.  We urge you to upgrade GNU
14781 *** binutils to release 2.9.1 or newer.  Another option is to modify
14782 *** your PATH or compiler configuration so that the native linker is
14783 *** used, and then restart.
14784
14785 _LT_EOF
14786       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14787         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14788         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14789       else
14790         ld_shlibs=no
14791       fi
14792       ;;
14793
14794     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14795       case `$LD -v 2>&1` in
14796         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14797         ld_shlibs=no
14798         cat <<_LT_EOF 1>&2
14799
14800 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14801 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14802 *** is disabling shared libraries support.  We urge you to upgrade GNU
14803 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14804 *** your PATH or compiler configuration so that the native linker is
14805 *** used, and then restart.
14806
14807 _LT_EOF
14808         ;;
14809         *)
14810           # For security reasons, it is highly recommended that you always
14811           # use absolute paths for naming shared libraries, and exclude the
14812           # DT_RUNPATH tag from executables and libraries.  But doing so
14813           # requires that you compile everything twice, which is a pain.
14814           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14815             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14816             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14817             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14818           else
14819             ld_shlibs=no
14820           fi
14821         ;;
14822       esac
14823       ;;
14824
14825     sunos4*)
14826       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14827       wlarc=
14828       hardcode_direct=yes
14829       hardcode_shlibpath_var=no
14830       ;;
14831
14832     *)
14833       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14834         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14835         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14836       else
14837         ld_shlibs=no
14838       fi
14839       ;;
14840     esac
14841
14842     if test "$ld_shlibs" = no; then
14843       runpath_var=
14844       hardcode_libdir_flag_spec=
14845       export_dynamic_flag_spec=
14846       whole_archive_flag_spec=
14847     fi
14848   else
14849     # PORTME fill in a description of your system's linker (not GNU ld)
14850     case $host_os in
14851     aix3*)
14852       allow_undefined_flag=unsupported
14853       always_export_symbols=yes
14854       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'
14855       # Note: this linker hardcodes the directories in LIBPATH if there
14856       # are no directories specified by -L.
14857       hardcode_minus_L=yes
14858       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14859         # Neither direct hardcoding nor static linking is supported with a
14860         # broken collect2.
14861         hardcode_direct=unsupported
14862       fi
14863       ;;
14864
14865     aix[4-9]*)
14866       if test "$host_cpu" = ia64; then
14867         # On IA64, the linker does run time linking by default, so we don't
14868         # have to do anything special.
14869         aix_use_runtimelinking=no
14870         exp_sym_flag='-Bexport'
14871         no_entry_flag=""
14872       else
14873         # If we're using GNU nm, then we don't want the "-C" option.
14874         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14875         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14876           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14877         else
14878           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14879         fi
14880         aix_use_runtimelinking=no
14881
14882         # Test if we are trying to use run time linking or normal
14883         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14884         # need to do runtime linking.
14885         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14886           for ld_flag in $LDFLAGS; do
14887           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14888             aix_use_runtimelinking=yes
14889             break
14890           fi
14891           done
14892           ;;
14893         esac
14894
14895         exp_sym_flag='-bexport'
14896         no_entry_flag='-bnoentry'
14897       fi
14898
14899       # When large executables or shared objects are built, AIX ld can
14900       # have problems creating the table of contents.  If linking a library
14901       # or program results in "error TOC overflow" add -mminimal-toc to
14902       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14903       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14904
14905       archive_cmds=''
14906       hardcode_direct=yes
14907       hardcode_direct_absolute=yes
14908       hardcode_libdir_separator=':'
14909       link_all_deplibs=yes
14910       file_list_spec='${wl}-f,'
14911
14912       if test "$GCC" = yes; then
14913         case $host_os in aix4.[012]|aix4.[012].*)
14914         # We only want to do this on AIX 4.2 and lower, the check
14915         # below for broken collect2 doesn't work under 4.3+
14916           collect2name=`${CC} -print-prog-name=collect2`
14917           if test -f "$collect2name" &&
14918            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14919           then
14920           # We have reworked collect2
14921           :
14922           else
14923           # We have old collect2
14924           hardcode_direct=unsupported
14925           # It fails to find uninstalled libraries when the uninstalled
14926           # path is not listed in the libpath.  Setting hardcode_minus_L
14927           # to unsupported forces relinking
14928           hardcode_minus_L=yes
14929           hardcode_libdir_flag_spec='-L$libdir'
14930           hardcode_libdir_separator=
14931           fi
14932           ;;
14933         esac
14934         shared_flag='-shared'
14935         if test "$aix_use_runtimelinking" = yes; then
14936           shared_flag="$shared_flag "'${wl}-G'
14937         fi
14938       else
14939         # not using gcc
14940         if test "$host_cpu" = ia64; then
14941         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14942         # chokes on -Wl,-G. The following line is correct:
14943           shared_flag='-G'
14944         else
14945           if test "$aix_use_runtimelinking" = yes; then
14946             shared_flag='${wl}-G'
14947           else
14948             shared_flag='${wl}-bM:SRE'
14949           fi
14950         fi
14951       fi
14952
14953       export_dynamic_flag_spec='${wl}-bexpall'
14954       # It seems that -bexpall does not export symbols beginning with
14955       # underscore (_), so it is better to generate a list of symbols to export.
14956       always_export_symbols=yes
14957       if test "$aix_use_runtimelinking" = yes; then
14958         # Warning - without using the other runtime loading flags (-brtl),
14959         # -berok will link without error, but may produce a broken library.
14960         allow_undefined_flag='-berok'
14961         # Determine the default libpath from the value encoded in an
14962         # empty executable.
14963         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964 /* end confdefs.h.  */
14965
14966 int
14967 main ()
14968 {
14969
14970   ;
14971   return 0;
14972 }
14973 _ACEOF
14974 if ac_fn_c_try_link "$LINENO"; then :
14975
14976 lt_aix_libpath_sed='
14977     /Import File Strings/,/^$/ {
14978         /^0/ {
14979             s/^0  *\(.*\)$/\1/
14980             p
14981         }
14982     }'
14983 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14984 # Check for a 64-bit object if we didn't find anything.
14985 if test -z "$aix_libpath"; then
14986   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14987 fi
14988 fi
14989 rm -f core conftest.err conftest.$ac_objext \
14990     conftest$ac_exeext conftest.$ac_ext
14991 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14992
14993         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14994         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14995       else
14996         if test "$host_cpu" = ia64; then
14997           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14998           allow_undefined_flag="-z nodefs"
14999           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"
15000         else
15001          # Determine the default libpath from the value encoded in an
15002          # empty executable.
15003          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h.  */
15005
15006 int
15007 main ()
15008 {
15009
15010   ;
15011   return 0;
15012 }
15013 _ACEOF
15014 if ac_fn_c_try_link "$LINENO"; then :
15015
15016 lt_aix_libpath_sed='
15017     /Import File Strings/,/^$/ {
15018         /^0/ {
15019             s/^0  *\(.*\)$/\1/
15020             p
15021         }
15022     }'
15023 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15024 # Check for a 64-bit object if we didn't find anything.
15025 if test -z "$aix_libpath"; then
15026   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15027 fi
15028 fi
15029 rm -f core conftest.err conftest.$ac_objext \
15030     conftest$ac_exeext conftest.$ac_ext
15031 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15032
15033          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15034           # Warning - without using the other run time loading flags,
15035           # -berok will link without error, but may produce a broken library.
15036           no_undefined_flag=' ${wl}-bernotok'
15037           allow_undefined_flag=' ${wl}-berok'
15038           # Exported symbols can be pulled into shared objects from archives
15039           whole_archive_flag_spec='$convenience'
15040           archive_cmds_need_lc=yes
15041           # This is similar to how AIX traditionally builds its shared libraries.
15042           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'
15043         fi
15044       fi
15045       ;;
15046
15047     amigaos*)
15048       case $host_cpu in
15049       powerpc)
15050             # see comment about AmigaOS4 .so support
15051             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15052             archive_expsym_cmds=''
15053         ;;
15054       m68k)
15055             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)'
15056             hardcode_libdir_flag_spec='-L$libdir'
15057             hardcode_minus_L=yes
15058         ;;
15059       esac
15060       ;;
15061
15062     bsdi[45]*)
15063       export_dynamic_flag_spec=-rdynamic
15064       ;;
15065
15066     cygwin* | mingw* | pw32* | cegcc*)
15067       # When not using gcc, we currently assume that we are using
15068       # Microsoft Visual C++.
15069       # hardcode_libdir_flag_spec is actually meaningless, as there is
15070       # no search path for DLLs.
15071       hardcode_libdir_flag_spec=' '
15072       allow_undefined_flag=unsupported
15073       # Tell ltmain to make .lib files, not .a files.
15074       libext=lib
15075       # Tell ltmain to make .dll files, not .so files.
15076       shrext_cmds=".dll"
15077       # FIXME: Setting linknames here is a bad hack.
15078       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
15079       # The linker will automatically build a .lib file if we build a DLL.
15080       old_archive_from_new_cmds='true'
15081       # FIXME: Should let the user specify the lib program.
15082       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15083       fix_srcfile_path='`cygpath -w "$srcfile"`'
15084       enable_shared_with_static_runtimes=yes
15085       ;;
15086
15087     darwin* | rhapsody*)
15088
15089
15090   archive_cmds_need_lc=no
15091   hardcode_direct=no
15092   hardcode_automatic=yes
15093   hardcode_shlibpath_var=unsupported
15094   whole_archive_flag_spec=''
15095   link_all_deplibs=yes
15096   allow_undefined_flag="$_lt_dar_allow_undefined"
15097   case $cc_basename in
15098      ifort*) _lt_dar_can_shared=yes ;;
15099      *) _lt_dar_can_shared=$GCC ;;
15100   esac
15101   if test "$_lt_dar_can_shared" = "yes"; then
15102     output_verbose_link_cmd=echo
15103     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15104     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15105     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}"
15106     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}"
15107
15108   else
15109   ld_shlibs=no
15110   fi
15111
15112       ;;
15113
15114     dgux*)
15115       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15116       hardcode_libdir_flag_spec='-L$libdir'
15117       hardcode_shlibpath_var=no
15118       ;;
15119
15120     freebsd1*)
15121       ld_shlibs=no
15122       ;;
15123
15124     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15125     # support.  Future versions do this automatically, but an explicit c++rt0.o
15126     # does not break anything, and helps significantly (at the cost of a little
15127     # extra space).
15128     freebsd2.2*)
15129       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15130       hardcode_libdir_flag_spec='-R$libdir'
15131       hardcode_direct=yes
15132       hardcode_shlibpath_var=no
15133       ;;
15134
15135     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15136     freebsd2*)
15137       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15138       hardcode_direct=yes
15139       hardcode_minus_L=yes
15140       hardcode_shlibpath_var=no
15141       ;;
15142
15143     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15144     freebsd* | dragonfly*)
15145       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15146       hardcode_libdir_flag_spec='-R$libdir'
15147       hardcode_direct=yes
15148       hardcode_shlibpath_var=no
15149       ;;
15150
15151     hpux9*)
15152       if test "$GCC" = yes; then
15153         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'
15154       else
15155         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'
15156       fi
15157       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15158       hardcode_libdir_separator=:
15159       hardcode_direct=yes
15160
15161       # hardcode_minus_L: Not really in the search PATH,
15162       # but as the default location of the library.
15163       hardcode_minus_L=yes
15164       export_dynamic_flag_spec='${wl}-E'
15165       ;;
15166
15167     hpux10*)
15168       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15169         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15170       else
15171         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15172       fi
15173       if test "$with_gnu_ld" = no; then
15174         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15175         hardcode_libdir_flag_spec_ld='+b $libdir'
15176         hardcode_libdir_separator=:
15177         hardcode_direct=yes
15178         hardcode_direct_absolute=yes
15179         export_dynamic_flag_spec='${wl}-E'
15180         # hardcode_minus_L: Not really in the search PATH,
15181         # but as the default location of the library.
15182         hardcode_minus_L=yes
15183       fi
15184       ;;
15185
15186     hpux11*)
15187       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15188         case $host_cpu in
15189         hppa*64*)
15190           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15191           ;;
15192         ia64*)
15193           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15194           ;;
15195         *)
15196           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15197           ;;
15198         esac
15199       else
15200         case $host_cpu in
15201         hppa*64*)
15202           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15203           ;;
15204         ia64*)
15205           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15206           ;;
15207         *)
15208           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15209           ;;
15210         esac
15211       fi
15212       if test "$with_gnu_ld" = no; then
15213         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15214         hardcode_libdir_separator=:
15215
15216         case $host_cpu in
15217         hppa*64*|ia64*)
15218           hardcode_direct=no
15219           hardcode_shlibpath_var=no
15220           ;;
15221         *)
15222           hardcode_direct=yes
15223           hardcode_direct_absolute=yes
15224           export_dynamic_flag_spec='${wl}-E'
15225
15226           # hardcode_minus_L: Not really in the search PATH,
15227           # but as the default location of the library.
15228           hardcode_minus_L=yes
15229           ;;
15230         esac
15231       fi
15232       ;;
15233
15234     irix5* | irix6* | nonstopux*)
15235       if test "$GCC" = yes; then
15236         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15237         # Try to use the -exported_symbol ld option, if it does not
15238         # work, assume that -exports_file does not work either and
15239         # implicitly export all symbols.
15240         save_LDFLAGS="$LDFLAGS"
15241         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15242         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15243 /* end confdefs.h.  */
15244 int foo(void) {}
15245 _ACEOF
15246 if ac_fn_c_try_link "$LINENO"; then :
15247   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
15248
15249 fi
15250 rm -f core conftest.err conftest.$ac_objext \
15251     conftest$ac_exeext conftest.$ac_ext
15252         LDFLAGS="$save_LDFLAGS"
15253       else
15254         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15255         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
15256       fi
15257       archive_cmds_need_lc='no'
15258       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15259       hardcode_libdir_separator=:
15260       inherit_rpath=yes
15261       link_all_deplibs=yes
15262       ;;
15263
15264     netbsd*)
15265       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15266         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15267       else
15268         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15269       fi
15270       hardcode_libdir_flag_spec='-R$libdir'
15271       hardcode_direct=yes
15272       hardcode_shlibpath_var=no
15273       ;;
15274
15275     newsos6)
15276       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15277       hardcode_direct=yes
15278       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15279       hardcode_libdir_separator=:
15280       hardcode_shlibpath_var=no
15281       ;;
15282
15283     *nto* | *qnx*)
15284       ;;
15285
15286     openbsd*)
15287       if test -f /usr/libexec/ld.so; then
15288         hardcode_direct=yes
15289         hardcode_shlibpath_var=no
15290         hardcode_direct_absolute=yes
15291         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15292           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15293           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15294           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15295           export_dynamic_flag_spec='${wl}-E'
15296         else
15297           case $host_os in
15298            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15299              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15300              hardcode_libdir_flag_spec='-R$libdir'
15301              ;;
15302            *)
15303              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15304              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15305              ;;
15306           esac
15307         fi
15308       else
15309         ld_shlibs=no
15310       fi
15311       ;;
15312
15313     os2*)
15314       hardcode_libdir_flag_spec='-L$libdir'
15315       hardcode_minus_L=yes
15316       allow_undefined_flag=unsupported
15317       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'
15318       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15319       ;;
15320
15321     osf3*)
15322       if test "$GCC" = yes; then
15323         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15324         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15325       else
15326         allow_undefined_flag=' -expect_unresolved \*'
15327         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15328       fi
15329       archive_cmds_need_lc='no'
15330       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15331       hardcode_libdir_separator=:
15332       ;;
15333
15334     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15335       if test "$GCC" = yes; then
15336         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15337         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15338         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15339       else
15340         allow_undefined_flag=' -expect_unresolved \*'
15341         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15342         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~
15343         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
15344
15345         # Both c and cxx compiler support -rpath directly
15346         hardcode_libdir_flag_spec='-rpath $libdir'
15347       fi
15348       archive_cmds_need_lc='no'
15349       hardcode_libdir_separator=:
15350       ;;
15351
15352     solaris*)
15353       no_undefined_flag=' -z defs'
15354       if test "$GCC" = yes; then
15355         wlarc='${wl}'
15356         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15357         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15358           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15359       else
15360         case `$CC -V 2>&1` in
15361         *"Compilers 5.0"*)
15362           wlarc=''
15363           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15364           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15365           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15366           ;;
15367         *)
15368           wlarc='${wl}'
15369           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15370           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15371           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15372           ;;
15373         esac
15374       fi
15375       hardcode_libdir_flag_spec='-R$libdir'
15376       hardcode_shlibpath_var=no
15377       case $host_os in
15378       solaris2.[0-5] | solaris2.[0-5].*) ;;
15379       *)
15380         # The compiler driver will combine and reorder linker options,
15381         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15382         # but is careful enough not to reorder.
15383         # Supported since Solaris 2.6 (maybe 2.5.1?)
15384         if test "$GCC" = yes; then
15385           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15386         else
15387           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15388         fi
15389         ;;
15390       esac
15391       link_all_deplibs=yes
15392       ;;
15393
15394     sunos4*)
15395       if test "x$host_vendor" = xsequent; then
15396         # Use $CC to link under sequent, because it throws in some extra .o
15397         # files that make .init and .fini sections work.
15398         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15399       else
15400         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15401       fi
15402       hardcode_libdir_flag_spec='-L$libdir'
15403       hardcode_direct=yes
15404       hardcode_minus_L=yes
15405       hardcode_shlibpath_var=no
15406       ;;
15407
15408     sysv4)
15409       case $host_vendor in
15410         sni)
15411           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15412           hardcode_direct=yes # is this really true???
15413         ;;
15414         siemens)
15415           ## LD is ld it makes a PLAMLIB
15416           ## CC just makes a GrossModule.
15417           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15418           reload_cmds='$CC -r -o $output$reload_objs'
15419           hardcode_direct=no
15420         ;;
15421         motorola)
15422           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15423           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15424         ;;
15425       esac
15426       runpath_var='LD_RUN_PATH'
15427       hardcode_shlibpath_var=no
15428       ;;
15429
15430     sysv4.3*)
15431       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15432       hardcode_shlibpath_var=no
15433       export_dynamic_flag_spec='-Bexport'
15434       ;;
15435
15436     sysv4*MP*)
15437       if test -d /usr/nec; then
15438         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15439         hardcode_shlibpath_var=no
15440         runpath_var=LD_RUN_PATH
15441         hardcode_runpath_var=yes
15442         ld_shlibs=yes
15443       fi
15444       ;;
15445
15446     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15447       no_undefined_flag='${wl}-z,text'
15448       archive_cmds_need_lc=no
15449       hardcode_shlibpath_var=no
15450       runpath_var='LD_RUN_PATH'
15451
15452       if test "$GCC" = yes; then
15453         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15454         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15455       else
15456         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15457         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15458       fi
15459       ;;
15460
15461     sysv5* | sco3.2v5* | sco5v6*)
15462       # Note: We can NOT use -z defs as we might desire, because we do not
15463       # link with -lc, and that would cause any symbols used from libc to
15464       # always be unresolved, which means just about no library would
15465       # ever link correctly.  If we're not using GNU ld we use -z text
15466       # though, which does catch some bad symbols but isn't as heavy-handed
15467       # as -z defs.
15468       no_undefined_flag='${wl}-z,text'
15469       allow_undefined_flag='${wl}-z,nodefs'
15470       archive_cmds_need_lc=no
15471       hardcode_shlibpath_var=no
15472       hardcode_libdir_flag_spec='${wl}-R,$libdir'
15473       hardcode_libdir_separator=':'
15474       link_all_deplibs=yes
15475       export_dynamic_flag_spec='${wl}-Bexport'
15476       runpath_var='LD_RUN_PATH'
15477
15478       if test "$GCC" = yes; then
15479         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15480         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15481       else
15482         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15483         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15484       fi
15485       ;;
15486
15487     uts4*)
15488       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15489       hardcode_libdir_flag_spec='-L$libdir'
15490       hardcode_shlibpath_var=no
15491       ;;
15492
15493     *)
15494       ld_shlibs=no
15495       ;;
15496     esac
15497
15498     if test x$host_vendor = xsni; then
15499       case $host in
15500       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15501         export_dynamic_flag_spec='${wl}-Blargedynsym'
15502         ;;
15503       esac
15504     fi
15505   fi
15506
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15508 $as_echo "$ld_shlibs" >&6; }
15509 test "$ld_shlibs" = no && can_build_shared=no
15510
15511 with_gnu_ld=$with_gnu_ld
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527 #
15528 # Do we need to explicitly link libc?
15529 #
15530 case "x$archive_cmds_need_lc" in
15531 x|xyes)
15532   # Assume -lc should be added
15533   archive_cmds_need_lc=yes
15534
15535   if test "$enable_shared" = yes && test "$GCC" = yes; then
15536     case $archive_cmds in
15537     *'~'*)
15538       # FIXME: we may have to deal with multi-command sequences.
15539       ;;
15540     '$CC '*)
15541       # Test whether the compiler implicitly links with -lc since on some
15542       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15543       # to ld, don't add -lc before -lgcc.
15544       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15545 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15546 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15547   $as_echo_n "(cached) " >&6
15548 else
15549   $RM conftest*
15550         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15551
15552         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15553   (eval $ac_compile) 2>&5
15554   ac_status=$?
15555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15556   test $ac_status = 0; } 2>conftest.err; then
15557           soname=conftest
15558           lib=conftest
15559           libobjs=conftest.$ac_objext
15560           deplibs=
15561           wl=$lt_prog_compiler_wl
15562           pic_flag=$lt_prog_compiler_pic
15563           compiler_flags=-v
15564           linker_flags=-v
15565           verstring=
15566           output_objdir=.
15567           libname=conftest
15568           lt_save_allow_undefined_flag=$allow_undefined_flag
15569           allow_undefined_flag=
15570           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15571   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15572   ac_status=$?
15573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15574   test $ac_status = 0; }
15575           then
15576             lt_cv_archive_cmds_need_lc=no
15577           else
15578             lt_cv_archive_cmds_need_lc=yes
15579           fi
15580           allow_undefined_flag=$lt_save_allow_undefined_flag
15581         else
15582           cat conftest.err 1>&5
15583         fi
15584         $RM conftest*
15585
15586 fi
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15588 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15589       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15590       ;;
15591     esac
15592   fi
15593   ;;
15594 esac
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15753 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15754
15755 if test "$GCC" = yes; then
15756   case $host_os in
15757     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15758     *) lt_awk_arg="/^libraries:/" ;;
15759   esac
15760   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15761   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
15762     # if the path contains ";" then we assume it to be the separator
15763     # otherwise default to the standard path separator (i.e. ":") - it is
15764     # assumed that no part of a normal pathname contains ";" but that should
15765     # okay in the real world where ";" in dirpaths is itself problematic.
15766     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
15767   else
15768     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15769   fi
15770   # Ok, now we have the path, separated by spaces, we can step through it
15771   # and add multilib dir if necessary.
15772   lt_tmp_lt_search_path_spec=
15773   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15774   for lt_sys_path in $lt_search_path_spec; do
15775     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15776       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15777     else
15778       test -d "$lt_sys_path" && \
15779         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15780     fi
15781   done
15782   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
15783 BEGIN {RS=" "; FS="/|\n";} {
15784   lt_foo="";
15785   lt_count=0;
15786   for (lt_i = NF; lt_i > 0; lt_i--) {
15787     if ($lt_i != "" && $lt_i != ".") {
15788       if ($lt_i == "..") {
15789         lt_count++;
15790       } else {
15791         if (lt_count == 0) {
15792           lt_foo="/" $lt_i lt_foo;
15793         } else {
15794           lt_count--;
15795         }
15796       }
15797     }
15798   }
15799   if (lt_foo != "") { lt_freq[lt_foo]++; }
15800   if (lt_freq[lt_foo] == 1) { print lt_foo; }
15801 }'`
15802   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
15803 else
15804   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15805 fi
15806 library_names_spec=
15807 libname_spec='lib$name'
15808 soname_spec=
15809 shrext_cmds=".so"
15810 postinstall_cmds=
15811 postuninstall_cmds=
15812 finish_cmds=
15813 finish_eval=
15814 shlibpath_var=
15815 shlibpath_overrides_runpath=unknown
15816 version_type=none
15817 dynamic_linker="$host_os ld.so"
15818 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15819 need_lib_prefix=unknown
15820 hardcode_into_libs=no
15821
15822 # when you set need_version to no, make sure it does not cause -set_version
15823 # flags to be left without arguments
15824 need_version=unknown
15825
15826 case $host_os in
15827 aix3*)
15828   version_type=linux
15829   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15830   shlibpath_var=LIBPATH
15831
15832   # AIX 3 has no versioning support, so we append a major version to the name.
15833   soname_spec='${libname}${release}${shared_ext}$major'
15834   ;;
15835
15836 aix[4-9]*)
15837   version_type=linux
15838   need_lib_prefix=no
15839   need_version=no
15840   hardcode_into_libs=yes
15841   if test "$host_cpu" = ia64; then
15842     # AIX 5 supports IA64
15843     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15844     shlibpath_var=LD_LIBRARY_PATH
15845   else
15846     # With GCC up to 2.95.x, collect2 would create an import file
15847     # for dependence libraries.  The import file would start with
15848     # the line `#! .'.  This would cause the generated library to
15849     # depend on `.', always an invalid library.  This was fixed in
15850     # development snapshots of GCC prior to 3.0.
15851     case $host_os in
15852       aix4 | aix4.[01] | aix4.[01].*)
15853       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15854            echo ' yes '
15855            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15856         :
15857       else
15858         can_build_shared=no
15859       fi
15860       ;;
15861     esac
15862     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15863     # soname into executable. Probably we can add versioning support to
15864     # collect2, so additional links can be useful in future.
15865     if test "$aix_use_runtimelinking" = yes; then
15866       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15867       # instead of lib<name>.a to let people know that these are not
15868       # typical AIX shared libraries.
15869       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15870     else
15871       # We preserve .a as extension for shared libraries through AIX4.2
15872       # and later when we are not doing run time linking.
15873       library_names_spec='${libname}${release}.a $libname.a'
15874       soname_spec='${libname}${release}${shared_ext}$major'
15875     fi
15876     shlibpath_var=LIBPATH
15877   fi
15878   ;;
15879
15880 amigaos*)
15881   case $host_cpu in
15882   powerpc)
15883     # Since July 2007 AmigaOS4 officially supports .so libraries.
15884     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15885     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15886     ;;
15887   m68k)
15888     library_names_spec='$libname.ixlibrary $libname.a'
15889     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15890     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
15891     ;;
15892   esac
15893   ;;
15894
15895 beos*)
15896   library_names_spec='${libname}${shared_ext}'
15897   dynamic_linker="$host_os ld.so"
15898   shlibpath_var=LIBRARY_PATH
15899   ;;
15900
15901 bsdi[45]*)
15902   version_type=linux
15903   need_version=no
15904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15905   soname_spec='${libname}${release}${shared_ext}$major'
15906   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15907   shlibpath_var=LD_LIBRARY_PATH
15908   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15909   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15910   # the default ld.so.conf also contains /usr/contrib/lib and
15911   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15912   # libtool to hard-code these into programs
15913   ;;
15914
15915 cygwin* | mingw* | pw32* | cegcc*)
15916   version_type=windows
15917   shrext_cmds=".dll"
15918   need_version=no
15919   need_lib_prefix=no
15920
15921   case $GCC,$host_os in
15922   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15923     library_names_spec='$libname.dll.a'
15924     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15925     postinstall_cmds='base_file=`basename \${file}`~
15926       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15927       dldir=$destdir/`dirname \$dlpath`~
15928       test -d \$dldir || mkdir -p \$dldir~
15929       $install_prog $dir/$dlname \$dldir/$dlname~
15930       chmod a+x \$dldir/$dlname~
15931       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15932         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15933       fi'
15934     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15935       dlpath=$dir/\$dldll~
15936        $RM \$dlpath'
15937     shlibpath_overrides_runpath=yes
15938
15939     case $host_os in
15940     cygwin*)
15941       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15942       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15943       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15944       ;;
15945     mingw* | cegcc*)
15946       # MinGW DLLs use traditional 'lib' prefix
15947       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15948       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15949       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15950         # It is most probably a Windows format PATH printed by
15951         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15952         # path with ; separators, and with drive letters. We can handle the
15953         # drive letters (cygwin fileutils understands them), so leave them,
15954         # especially as we might pass files found there to a mingw objdump,
15955         # which wouldn't understand a cygwinified path. Ahh.
15956         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15957       else
15958         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15959       fi
15960       ;;
15961     pw32*)
15962       # pw32 DLLs use 'pw' prefix rather than 'lib'
15963       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15964       ;;
15965     esac
15966     ;;
15967
15968   *)
15969     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15970     ;;
15971   esac
15972   dynamic_linker='Win32 ld.exe'
15973   # FIXME: first we should search . and the directory the executable is in
15974   shlibpath_var=PATH
15975   ;;
15976
15977 darwin* | rhapsody*)
15978   dynamic_linker="$host_os dyld"
15979   version_type=darwin
15980   need_lib_prefix=no
15981   need_version=no
15982   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15983   soname_spec='${libname}${release}${major}$shared_ext'
15984   shlibpath_overrides_runpath=yes
15985   shlibpath_var=DYLD_LIBRARY_PATH
15986   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15987
15988   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15989   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15990   ;;
15991
15992 dgux*)
15993   version_type=linux
15994   need_lib_prefix=no
15995   need_version=no
15996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15997   soname_spec='${libname}${release}${shared_ext}$major'
15998   shlibpath_var=LD_LIBRARY_PATH
15999   ;;
16000
16001 freebsd1*)
16002   dynamic_linker=no
16003   ;;
16004
16005 freebsd* | dragonfly*)
16006   # DragonFly does not have aout.  When/if they implement a new
16007   # versioning mechanism, adjust this.
16008   if test -x /usr/bin/objformat; then
16009     objformat=`/usr/bin/objformat`
16010   else
16011     case $host_os in
16012     freebsd[123]*) objformat=aout ;;
16013     *) objformat=elf ;;
16014     esac
16015   fi
16016   version_type=freebsd-$objformat
16017   case $version_type in
16018     freebsd-elf*)
16019       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16020       need_version=no
16021       need_lib_prefix=no
16022       ;;
16023     freebsd-*)
16024       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16025       need_version=yes
16026       ;;
16027   esac
16028   shlibpath_var=LD_LIBRARY_PATH
16029   case $host_os in
16030   freebsd2*)
16031     shlibpath_overrides_runpath=yes
16032     ;;
16033   freebsd3.[01]* | freebsdelf3.[01]*)
16034     shlibpath_overrides_runpath=yes
16035     hardcode_into_libs=yes
16036     ;;
16037   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16038   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16039     shlibpath_overrides_runpath=no
16040     hardcode_into_libs=yes
16041     ;;
16042   *) # from 4.6 on, and DragonFly
16043     shlibpath_overrides_runpath=yes
16044     hardcode_into_libs=yes
16045     ;;
16046   esac
16047   ;;
16048
16049 gnu*)
16050   version_type=linux
16051   need_lib_prefix=no
16052   need_version=no
16053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16054   soname_spec='${libname}${release}${shared_ext}$major'
16055   shlibpath_var=LD_LIBRARY_PATH
16056   hardcode_into_libs=yes
16057   ;;
16058
16059 hpux9* | hpux10* | hpux11*)
16060   # Give a soname corresponding to the major version so that dld.sl refuses to
16061   # link against other versions.
16062   version_type=sunos
16063   need_lib_prefix=no
16064   need_version=no
16065   case $host_cpu in
16066   ia64*)
16067     shrext_cmds='.so'
16068     hardcode_into_libs=yes
16069     dynamic_linker="$host_os dld.so"
16070     shlibpath_var=LD_LIBRARY_PATH
16071     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16073     soname_spec='${libname}${release}${shared_ext}$major'
16074     if test "X$HPUX_IA64_MODE" = X32; then
16075       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16076     else
16077       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16078     fi
16079     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16080     ;;
16081   hppa*64*)
16082     shrext_cmds='.sl'
16083     hardcode_into_libs=yes
16084     dynamic_linker="$host_os dld.sl"
16085     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16086     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16087     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16088     soname_spec='${libname}${release}${shared_ext}$major'
16089     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16090     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16091     ;;
16092   *)
16093     shrext_cmds='.sl'
16094     dynamic_linker="$host_os dld.sl"
16095     shlibpath_var=SHLIB_PATH
16096     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16097     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16098     soname_spec='${libname}${release}${shared_ext}$major'
16099     ;;
16100   esac
16101   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16102   postinstall_cmds='chmod 555 $lib'
16103   ;;
16104
16105 interix[3-9]*)
16106   version_type=linux
16107   need_lib_prefix=no
16108   need_version=no
16109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16110   soname_spec='${libname}${release}${shared_ext}$major'
16111   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16112   shlibpath_var=LD_LIBRARY_PATH
16113   shlibpath_overrides_runpath=no
16114   hardcode_into_libs=yes
16115   ;;
16116
16117 irix5* | irix6* | nonstopux*)
16118   case $host_os in
16119     nonstopux*) version_type=nonstopux ;;
16120     *)
16121         if test "$lt_cv_prog_gnu_ld" = yes; then
16122                 version_type=linux
16123         else
16124                 version_type=irix
16125         fi ;;
16126   esac
16127   need_lib_prefix=no
16128   need_version=no
16129   soname_spec='${libname}${release}${shared_ext}$major'
16130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16131   case $host_os in
16132   irix5* | nonstopux*)
16133     libsuff= shlibsuff=
16134     ;;
16135   *)
16136     case $LD in # libtool.m4 will add one of these switches to LD
16137     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16138       libsuff= shlibsuff= libmagic=32-bit;;
16139     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16140       libsuff=32 shlibsuff=N32 libmagic=N32;;
16141     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16142       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16143     *) libsuff= shlibsuff= libmagic=never-match;;
16144     esac
16145     ;;
16146   esac
16147   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16148   shlibpath_overrides_runpath=no
16149   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16150   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16151   hardcode_into_libs=yes
16152   ;;
16153
16154 # No shared lib support for Linux oldld, aout, or coff.
16155 linux*oldld* | linux*aout* | linux*coff*)
16156   dynamic_linker=no
16157   ;;
16158
16159 # This must be Linux ELF.
16160 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16161   version_type=linux
16162   need_lib_prefix=no
16163   need_version=no
16164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16165   soname_spec='${libname}${release}${shared_ext}$major'
16166   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16167   shlibpath_var=LD_LIBRARY_PATH
16168   shlibpath_overrides_runpath=no
16169
16170   # Some binutils ld are patched to set DT_RUNPATH
16171   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16172   $as_echo_n "(cached) " >&6
16173 else
16174   lt_cv_shlibpath_overrides_runpath=no
16175     save_LDFLAGS=$LDFLAGS
16176     save_libdir=$libdir
16177     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16178          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16179     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16180 /* end confdefs.h.  */
16181
16182 int
16183 main ()
16184 {
16185
16186   ;
16187   return 0;
16188 }
16189 _ACEOF
16190 if ac_fn_c_try_link "$LINENO"; then :
16191   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16192   lt_cv_shlibpath_overrides_runpath=yes
16193 fi
16194 fi
16195 rm -f core conftest.err conftest.$ac_objext \
16196     conftest$ac_exeext conftest.$ac_ext
16197     LDFLAGS=$save_LDFLAGS
16198     libdir=$save_libdir
16199
16200 fi
16201
16202   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16203
16204   # This implies no fast_install, which is unacceptable.
16205   # Some rework will be needed to allow for fast_install
16206   # before this can be enabled.
16207   hardcode_into_libs=yes
16208
16209   # Append ld.so.conf contents to the search path
16210   if test -f /etc/ld.so.conf; then
16211     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;/^$/d' | tr '\n' ' '`
16212     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16213   fi
16214
16215   # We used to test for /lib/ld.so.1 and disable shared libraries on
16216   # powerpc, because MkLinux only supported shared libraries with the
16217   # GNU dynamic linker.  Since this was broken with cross compilers,
16218   # most powerpc-linux boxes support dynamic linking these days and
16219   # people can always --disable-shared, the test was removed, and we
16220   # assume the GNU/Linux dynamic linker is in use.
16221   dynamic_linker='GNU/Linux ld.so'
16222   ;;
16223
16224 netbsd*)
16225   version_type=sunos
16226   need_lib_prefix=no
16227   need_version=no
16228   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16229     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16230     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16231     dynamic_linker='NetBSD (a.out) ld.so'
16232   else
16233     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16234     soname_spec='${libname}${release}${shared_ext}$major'
16235     dynamic_linker='NetBSD ld.elf_so'
16236   fi
16237   shlibpath_var=LD_LIBRARY_PATH
16238   shlibpath_overrides_runpath=yes
16239   hardcode_into_libs=yes
16240   ;;
16241
16242 newsos6)
16243   version_type=linux
16244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245   shlibpath_var=LD_LIBRARY_PATH
16246   shlibpath_overrides_runpath=yes
16247   ;;
16248
16249 *nto* | *qnx*)
16250   version_type=qnx
16251   need_lib_prefix=no
16252   need_version=no
16253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16254   soname_spec='${libname}${release}${shared_ext}$major'
16255   shlibpath_var=LD_LIBRARY_PATH
16256   shlibpath_overrides_runpath=no
16257   hardcode_into_libs=yes
16258   dynamic_linker='ldqnx.so'
16259   ;;
16260
16261 openbsd*)
16262   version_type=sunos
16263   sys_lib_dlsearch_path_spec="/usr/lib"
16264   need_lib_prefix=no
16265   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16266   case $host_os in
16267     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16268     *)                          need_version=no  ;;
16269   esac
16270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16271   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16272   shlibpath_var=LD_LIBRARY_PATH
16273   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16274     case $host_os in
16275       openbsd2.[89] | openbsd2.[89].*)
16276         shlibpath_overrides_runpath=no
16277         ;;
16278       *)
16279         shlibpath_overrides_runpath=yes
16280         ;;
16281       esac
16282   else
16283     shlibpath_overrides_runpath=yes
16284   fi
16285   ;;
16286
16287 os2*)
16288   libname_spec='$name'
16289   shrext_cmds=".dll"
16290   need_lib_prefix=no
16291   library_names_spec='$libname${shared_ext} $libname.a'
16292   dynamic_linker='OS/2 ld.exe'
16293   shlibpath_var=LIBPATH
16294   ;;
16295
16296 osf3* | osf4* | osf5*)
16297   version_type=osf
16298   need_lib_prefix=no
16299   need_version=no
16300   soname_spec='${libname}${release}${shared_ext}$major'
16301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16302   shlibpath_var=LD_LIBRARY_PATH
16303   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16304   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16305   ;;
16306
16307 rdos*)
16308   dynamic_linker=no
16309   ;;
16310
16311 solaris*)
16312   version_type=linux
16313   need_lib_prefix=no
16314   need_version=no
16315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16316   soname_spec='${libname}${release}${shared_ext}$major'
16317   shlibpath_var=LD_LIBRARY_PATH
16318   shlibpath_overrides_runpath=yes
16319   hardcode_into_libs=yes
16320   # ldd complains unless libraries are executable
16321   postinstall_cmds='chmod +x $lib'
16322   ;;
16323
16324 sunos4*)
16325   version_type=sunos
16326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16327   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16328   shlibpath_var=LD_LIBRARY_PATH
16329   shlibpath_overrides_runpath=yes
16330   if test "$with_gnu_ld" = yes; then
16331     need_lib_prefix=no
16332   fi
16333   need_version=yes
16334   ;;
16335
16336 sysv4 | sysv4.3*)
16337   version_type=linux
16338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16339   soname_spec='${libname}${release}${shared_ext}$major'
16340   shlibpath_var=LD_LIBRARY_PATH
16341   case $host_vendor in
16342     sni)
16343       shlibpath_overrides_runpath=no
16344       need_lib_prefix=no
16345       runpath_var=LD_RUN_PATH
16346       ;;
16347     siemens)
16348       need_lib_prefix=no
16349       ;;
16350     motorola)
16351       need_lib_prefix=no
16352       need_version=no
16353       shlibpath_overrides_runpath=no
16354       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16355       ;;
16356   esac
16357   ;;
16358
16359 sysv4*MP*)
16360   if test -d /usr/nec ;then
16361     version_type=linux
16362     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16363     soname_spec='$libname${shared_ext}.$major'
16364     shlibpath_var=LD_LIBRARY_PATH
16365   fi
16366   ;;
16367
16368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16369   version_type=freebsd-elf
16370   need_lib_prefix=no
16371   need_version=no
16372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16373   soname_spec='${libname}${release}${shared_ext}$major'
16374   shlibpath_var=LD_LIBRARY_PATH
16375   shlibpath_overrides_runpath=yes
16376   hardcode_into_libs=yes
16377   if test "$with_gnu_ld" = yes; then
16378     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16379   else
16380     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16381     case $host_os in
16382       sco3.2v5*)
16383         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16384         ;;
16385     esac
16386   fi
16387   sys_lib_dlsearch_path_spec='/usr/lib'
16388   ;;
16389
16390 tpf*)
16391   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16392   version_type=linux
16393   need_lib_prefix=no
16394   need_version=no
16395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16396   shlibpath_var=LD_LIBRARY_PATH
16397   shlibpath_overrides_runpath=no
16398   hardcode_into_libs=yes
16399   ;;
16400
16401 uts4*)
16402   version_type=linux
16403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16404   soname_spec='${libname}${release}${shared_ext}$major'
16405   shlibpath_var=LD_LIBRARY_PATH
16406   ;;
16407
16408 *)
16409   dynamic_linker=no
16410   ;;
16411 esac
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16413 $as_echo "$dynamic_linker" >&6; }
16414 test "$dynamic_linker" = no && can_build_shared=no
16415
16416 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16417 if test "$GCC" = yes; then
16418   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16419 fi
16420
16421 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16422   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16423 fi
16424 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16425   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16426 fi
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16515 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16516 hardcode_action=
16517 if test -n "$hardcode_libdir_flag_spec" ||
16518    test -n "$runpath_var" ||
16519    test "X$hardcode_automatic" = "Xyes" ; then
16520
16521   # We can hardcode non-existent directories.
16522   if test "$hardcode_direct" != no &&
16523      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16524      # have to relink, otherwise we might link with an installed library
16525      # when we should be linking with a yet-to-be-installed one
16526      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16527      test "$hardcode_minus_L" != no; then
16528     # Linking always hardcodes the temporary library directory.
16529     hardcode_action=relink
16530   else
16531     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16532     hardcode_action=immediate
16533   fi
16534 else
16535   # We cannot hardcode anything, or else we can only hardcode existing
16536   # directories.
16537   hardcode_action=unsupported
16538 fi
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16540 $as_echo "$hardcode_action" >&6; }
16541
16542 if test "$hardcode_action" = relink ||
16543    test "$inherit_rpath" = yes; then
16544   # Fast installation is not supported
16545   enable_fast_install=no
16546 elif test "$shlibpath_overrides_runpath" = yes ||
16547      test "$enable_shared" = no; then
16548   # Fast installation is not necessary
16549   enable_fast_install=needless
16550 fi
16551
16552
16553
16554
16555
16556
16557   if test "x$enable_dlopen" != xyes; then
16558   enable_dlopen=unknown
16559   enable_dlopen_self=unknown
16560   enable_dlopen_self_static=unknown
16561 else
16562   lt_cv_dlopen=no
16563   lt_cv_dlopen_libs=
16564
16565   case $host_os in
16566   beos*)
16567     lt_cv_dlopen="load_add_on"
16568     lt_cv_dlopen_libs=
16569     lt_cv_dlopen_self=yes
16570     ;;
16571
16572   mingw* | pw32* | cegcc*)
16573     lt_cv_dlopen="LoadLibrary"
16574     lt_cv_dlopen_libs=
16575     ;;
16576
16577   cygwin*)
16578     lt_cv_dlopen="dlopen"
16579     lt_cv_dlopen_libs=
16580     ;;
16581
16582   darwin*)
16583   # if libdl is installed we need to link against it
16584     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16585 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16586 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16587   $as_echo_n "(cached) " >&6
16588 else
16589   ac_check_lib_save_LIBS=$LIBS
16590 LIBS="-ldl  $LIBS"
16591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16592 /* end confdefs.h.  */
16593
16594 /* Override any GCC internal prototype to avoid an error.
16595    Use char because int might match the return type of a GCC
16596    builtin and then its argument prototype would still apply.  */
16597 #ifdef __cplusplus
16598 extern "C"
16599 #endif
16600 char dlopen ();
16601 int
16602 main ()
16603 {
16604 return dlopen ();
16605   ;
16606   return 0;
16607 }
16608 _ACEOF
16609 if ac_fn_c_try_link "$LINENO"; then :
16610   ac_cv_lib_dl_dlopen=yes
16611 else
16612   ac_cv_lib_dl_dlopen=no
16613 fi
16614 rm -f core conftest.err conftest.$ac_objext \
16615     conftest$ac_exeext conftest.$ac_ext
16616 LIBS=$ac_check_lib_save_LIBS
16617 fi
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16619 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16620 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16621   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16622 else
16623
16624     lt_cv_dlopen="dyld"
16625     lt_cv_dlopen_libs=
16626     lt_cv_dlopen_self=yes
16627
16628 fi
16629
16630     ;;
16631
16632   *)
16633     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16634 if test "x$ac_cv_func_shl_load" = x""yes; then :
16635   lt_cv_dlopen="shl_load"
16636 else
16637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16638 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16639 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16640   $as_echo_n "(cached) " >&6
16641 else
16642   ac_check_lib_save_LIBS=$LIBS
16643 LIBS="-ldld  $LIBS"
16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645 /* end confdefs.h.  */
16646
16647 /* Override any GCC internal prototype to avoid an error.
16648    Use char because int might match the return type of a GCC
16649    builtin and then its argument prototype would still apply.  */
16650 #ifdef __cplusplus
16651 extern "C"
16652 #endif
16653 char shl_load ();
16654 int
16655 main ()
16656 {
16657 return shl_load ();
16658   ;
16659   return 0;
16660 }
16661 _ACEOF
16662 if ac_fn_c_try_link "$LINENO"; then :
16663   ac_cv_lib_dld_shl_load=yes
16664 else
16665   ac_cv_lib_dld_shl_load=no
16666 fi
16667 rm -f core conftest.err conftest.$ac_objext \
16668     conftest$ac_exeext conftest.$ac_ext
16669 LIBS=$ac_check_lib_save_LIBS
16670 fi
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16672 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16673 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16674   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16675 else
16676   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16677 if test "x$ac_cv_func_dlopen" = x""yes; then :
16678   lt_cv_dlopen="dlopen"
16679 else
16680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16681 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16682 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16683   $as_echo_n "(cached) " >&6
16684 else
16685   ac_check_lib_save_LIBS=$LIBS
16686 LIBS="-ldl  $LIBS"
16687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16688 /* end confdefs.h.  */
16689
16690 /* Override any GCC internal prototype to avoid an error.
16691    Use char because int might match the return type of a GCC
16692    builtin and then its argument prototype would still apply.  */
16693 #ifdef __cplusplus
16694 extern "C"
16695 #endif
16696 char dlopen ();
16697 int
16698 main ()
16699 {
16700 return dlopen ();
16701   ;
16702   return 0;
16703 }
16704 _ACEOF
16705 if ac_fn_c_try_link "$LINENO"; then :
16706   ac_cv_lib_dl_dlopen=yes
16707 else
16708   ac_cv_lib_dl_dlopen=no
16709 fi
16710 rm -f core conftest.err conftest.$ac_objext \
16711     conftest$ac_exeext conftest.$ac_ext
16712 LIBS=$ac_check_lib_save_LIBS
16713 fi
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16715 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16716 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16717   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16718 else
16719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16720 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16721 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16722   $as_echo_n "(cached) " >&6
16723 else
16724   ac_check_lib_save_LIBS=$LIBS
16725 LIBS="-lsvld  $LIBS"
16726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16727 /* end confdefs.h.  */
16728
16729 /* Override any GCC internal prototype to avoid an error.
16730    Use char because int might match the return type of a GCC
16731    builtin and then its argument prototype would still apply.  */
16732 #ifdef __cplusplus
16733 extern "C"
16734 #endif
16735 char dlopen ();
16736 int
16737 main ()
16738 {
16739 return dlopen ();
16740   ;
16741   return 0;
16742 }
16743 _ACEOF
16744 if ac_fn_c_try_link "$LINENO"; then :
16745   ac_cv_lib_svld_dlopen=yes
16746 else
16747   ac_cv_lib_svld_dlopen=no
16748 fi
16749 rm -f core conftest.err conftest.$ac_objext \
16750     conftest$ac_exeext conftest.$ac_ext
16751 LIBS=$ac_check_lib_save_LIBS
16752 fi
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16754 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16755 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
16756   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16757 else
16758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16759 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16760 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
16761   $as_echo_n "(cached) " >&6
16762 else
16763   ac_check_lib_save_LIBS=$LIBS
16764 LIBS="-ldld  $LIBS"
16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766 /* end confdefs.h.  */
16767
16768 /* Override any GCC internal prototype to avoid an error.
16769    Use char because int might match the return type of a GCC
16770    builtin and then its argument prototype would still apply.  */
16771 #ifdef __cplusplus
16772 extern "C"
16773 #endif
16774 char dld_link ();
16775 int
16776 main ()
16777 {
16778 return dld_link ();
16779   ;
16780   return 0;
16781 }
16782 _ACEOF
16783 if ac_fn_c_try_link "$LINENO"; then :
16784   ac_cv_lib_dld_dld_link=yes
16785 else
16786   ac_cv_lib_dld_dld_link=no
16787 fi
16788 rm -f core conftest.err conftest.$ac_objext \
16789     conftest$ac_exeext conftest.$ac_ext
16790 LIBS=$ac_check_lib_save_LIBS
16791 fi
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16793 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16794 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
16795   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16796 fi
16797
16798
16799 fi
16800
16801
16802 fi
16803
16804
16805 fi
16806
16807
16808 fi
16809
16810
16811 fi
16812
16813     ;;
16814   esac
16815
16816   if test "x$lt_cv_dlopen" != xno; then
16817     enable_dlopen=yes
16818   else
16819     enable_dlopen=no
16820   fi
16821
16822   case $lt_cv_dlopen in
16823   dlopen)
16824     save_CPPFLAGS="$CPPFLAGS"
16825     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16826
16827     save_LDFLAGS="$LDFLAGS"
16828     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16829
16830     save_LIBS="$LIBS"
16831     LIBS="$lt_cv_dlopen_libs $LIBS"
16832
16833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16834 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16835 if test "${lt_cv_dlopen_self+set}" = set; then :
16836   $as_echo_n "(cached) " >&6
16837 else
16838           if test "$cross_compiling" = yes; then :
16839   lt_cv_dlopen_self=cross
16840 else
16841   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16842   lt_status=$lt_dlunknown
16843   cat > conftest.$ac_ext <<_LT_EOF
16844 #line 16844 "configure"
16845 #include "confdefs.h"
16846
16847 #if HAVE_DLFCN_H
16848 #include <dlfcn.h>
16849 #endif
16850
16851 #include <stdio.h>
16852
16853 #ifdef RTLD_GLOBAL
16854 #  define LT_DLGLOBAL           RTLD_GLOBAL
16855 #else
16856 #  ifdef DL_GLOBAL
16857 #    define LT_DLGLOBAL         DL_GLOBAL
16858 #  else
16859 #    define LT_DLGLOBAL         0
16860 #  endif
16861 #endif
16862
16863 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16864    find out it does not work in some platform. */
16865 #ifndef LT_DLLAZY_OR_NOW
16866 #  ifdef RTLD_LAZY
16867 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16868 #  else
16869 #    ifdef DL_LAZY
16870 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16871 #    else
16872 #      ifdef RTLD_NOW
16873 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16874 #      else
16875 #        ifdef DL_NOW
16876 #          define LT_DLLAZY_OR_NOW      DL_NOW
16877 #        else
16878 #          define LT_DLLAZY_OR_NOW      0
16879 #        endif
16880 #      endif
16881 #    endif
16882 #  endif
16883 #endif
16884
16885 void fnord() { int i=42;}
16886 int main ()
16887 {
16888   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16889   int status = $lt_dlunknown;
16890
16891   if (self)
16892     {
16893       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16894       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16895       /* dlclose (self); */
16896     }
16897   else
16898     puts (dlerror ());
16899
16900   return status;
16901 }
16902 _LT_EOF
16903   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16904   (eval $ac_link) 2>&5
16905   ac_status=$?
16906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16907   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16908     (./conftest; exit; ) >&5 2>/dev/null
16909     lt_status=$?
16910     case x$lt_status in
16911       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16912       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16913       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16914     esac
16915   else :
16916     # compilation failed
16917     lt_cv_dlopen_self=no
16918   fi
16919 fi
16920 rm -fr conftest*
16921
16922
16923 fi
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16925 $as_echo "$lt_cv_dlopen_self" >&6; }
16926
16927     if test "x$lt_cv_dlopen_self" = xyes; then
16928       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16929       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16930 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16931 if test "${lt_cv_dlopen_self_static+set}" = set; then :
16932   $as_echo_n "(cached) " >&6
16933 else
16934           if test "$cross_compiling" = yes; then :
16935   lt_cv_dlopen_self_static=cross
16936 else
16937   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16938   lt_status=$lt_dlunknown
16939   cat > conftest.$ac_ext <<_LT_EOF
16940 #line 16940 "configure"
16941 #include "confdefs.h"
16942
16943 #if HAVE_DLFCN_H
16944 #include <dlfcn.h>
16945 #endif
16946
16947 #include <stdio.h>
16948
16949 #ifdef RTLD_GLOBAL
16950 #  define LT_DLGLOBAL           RTLD_GLOBAL
16951 #else
16952 #  ifdef DL_GLOBAL
16953 #    define LT_DLGLOBAL         DL_GLOBAL
16954 #  else
16955 #    define LT_DLGLOBAL         0
16956 #  endif
16957 #endif
16958
16959 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16960    find out it does not work in some platform. */
16961 #ifndef LT_DLLAZY_OR_NOW
16962 #  ifdef RTLD_LAZY
16963 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16964 #  else
16965 #    ifdef DL_LAZY
16966 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16967 #    else
16968 #      ifdef RTLD_NOW
16969 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16970 #      else
16971 #        ifdef DL_NOW
16972 #          define LT_DLLAZY_OR_NOW      DL_NOW
16973 #        else
16974 #          define LT_DLLAZY_OR_NOW      0
16975 #        endif
16976 #      endif
16977 #    endif
16978 #  endif
16979 #endif
16980
16981 void fnord() { int i=42;}
16982 int main ()
16983 {
16984   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16985   int status = $lt_dlunknown;
16986
16987   if (self)
16988     {
16989       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16990       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16991       /* dlclose (self); */
16992     }
16993   else
16994     puts (dlerror ());
16995
16996   return status;
16997 }
16998 _LT_EOF
16999   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17000   (eval $ac_link) 2>&5
17001   ac_status=$?
17002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17003   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17004     (./conftest; exit; ) >&5 2>/dev/null
17005     lt_status=$?
17006     case x$lt_status in
17007       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17008       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17009       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17010     esac
17011   else :
17012     # compilation failed
17013     lt_cv_dlopen_self_static=no
17014   fi
17015 fi
17016 rm -fr conftest*
17017
17018
17019 fi
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17021 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17022     fi
17023
17024     CPPFLAGS="$save_CPPFLAGS"
17025     LDFLAGS="$save_LDFLAGS"
17026     LIBS="$save_LIBS"
17027     ;;
17028   esac
17029
17030   case $lt_cv_dlopen_self in
17031   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17032   *) enable_dlopen_self=unknown ;;
17033   esac
17034
17035   case $lt_cv_dlopen_self_static in
17036   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17037   *) enable_dlopen_self_static=unknown ;;
17038   esac
17039 fi
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057 striplib=
17058 old_striplib=
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17060 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17061 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17062   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17063   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17065 $as_echo "yes" >&6; }
17066 else
17067 # FIXME - insert some real tests, host_os isn't really good enough
17068   case $host_os in
17069   darwin*)
17070     if test -n "$STRIP" ; then
17071       striplib="$STRIP -x"
17072       old_striplib="$STRIP -S"
17073       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17074 $as_echo "yes" >&6; }
17075     else
17076       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17077 $as_echo "no" >&6; }
17078     fi
17079     ;;
17080   *)
17081     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17082 $as_echo "no" >&6; }
17083     ;;
17084   esac
17085 fi
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098   # Report which library types will actually be built
17099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17100 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17102 $as_echo "$can_build_shared" >&6; }
17103
17104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17105 $as_echo_n "checking whether to build shared libraries... " >&6; }
17106   test "$can_build_shared" = "no" && enable_shared=no
17107
17108   # On AIX, shared libraries and static libraries use the same namespace, and
17109   # are all built from PIC.
17110   case $host_os in
17111   aix3*)
17112     test "$enable_shared" = yes && enable_static=no
17113     if test -n "$RANLIB"; then
17114       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17115       postinstall_cmds='$RANLIB $lib'
17116     fi
17117     ;;
17118
17119   aix[4-9]*)
17120     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17121       test "$enable_shared" = yes && enable_static=no
17122     fi
17123     ;;
17124   esac
17125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17126 $as_echo "$enable_shared" >&6; }
17127
17128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17129 $as_echo_n "checking whether to build static libraries... " >&6; }
17130   # Make sure either enable_shared or enable_static is yes.
17131   test "$enable_shared" = yes || enable_static=yes
17132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17133 $as_echo "$enable_static" >&6; }
17134
17135
17136
17137
17138 fi
17139 ac_ext=c
17140 ac_cpp='$CPP $CPPFLAGS'
17141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17144
17145 CC="$lt_save_CC"
17146
17147
17148 ac_ext=cpp
17149 ac_cpp='$CXXCPP $CPPFLAGS'
17150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17153
17154 archive_cmds_need_lc_CXX=no
17155 allow_undefined_flag_CXX=
17156 always_export_symbols_CXX=no
17157 archive_expsym_cmds_CXX=
17158 compiler_needs_object_CXX=no
17159 export_dynamic_flag_spec_CXX=
17160 hardcode_direct_CXX=no
17161 hardcode_direct_absolute_CXX=no
17162 hardcode_libdir_flag_spec_CXX=
17163 hardcode_libdir_flag_spec_ld_CXX=
17164 hardcode_libdir_separator_CXX=
17165 hardcode_minus_L_CXX=no
17166 hardcode_shlibpath_var_CXX=unsupported
17167 hardcode_automatic_CXX=no
17168 inherit_rpath_CXX=no
17169 module_cmds_CXX=
17170 module_expsym_cmds_CXX=
17171 link_all_deplibs_CXX=unknown
17172 old_archive_cmds_CXX=$old_archive_cmds
17173 no_undefined_flag_CXX=
17174 whole_archive_flag_spec_CXX=
17175 enable_shared_with_static_runtimes_CXX=no
17176
17177 # Source file extension for C++ test sources.
17178 ac_ext=cpp
17179
17180 # Object file extension for compiled C++ test sources.
17181 objext=o
17182 objext_CXX=$objext
17183
17184 # No sense in running all these tests if we already determined that
17185 # the CXX compiler isn't working.  Some variables (like enable_shared)
17186 # are currently assumed to apply to all compilers on this platform,
17187 # and will be corrupted by setting them based on a non-working compiler.
17188 if test "$_lt_caught_CXX_error" != yes; then
17189   # Code to be used in simple compile tests
17190   lt_simple_compile_test_code="int some_variable = 0;"
17191
17192   # Code to be used in simple link tests
17193   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17194
17195   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17196
17197
17198
17199
17200
17201
17202 # If no C compiler was specified, use CC.
17203 LTCC=${LTCC-"$CC"}
17204
17205 # If no C compiler flags were specified, use CFLAGS.
17206 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17207
17208 # Allow CC to be a program name with arguments.
17209 compiler=$CC
17210
17211
17212   # save warnings/boilerplate of simple test code
17213   ac_outfile=conftest.$ac_objext
17214 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17215 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17216 _lt_compiler_boilerplate=`cat conftest.err`
17217 $RM conftest*
17218
17219   ac_outfile=conftest.$ac_objext
17220 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17221 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17222 _lt_linker_boilerplate=`cat conftest.err`
17223 $RM -r conftest*
17224
17225
17226   # Allow CC to be a program name with arguments.
17227   lt_save_CC=$CC
17228   lt_save_LD=$LD
17229   lt_save_GCC=$GCC
17230   GCC=$GXX
17231   lt_save_with_gnu_ld=$with_gnu_ld
17232   lt_save_path_LD=$lt_cv_path_LD
17233   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17234     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17235   else
17236     $as_unset lt_cv_prog_gnu_ld
17237   fi
17238   if test -n "${lt_cv_path_LDCXX+set}"; then
17239     lt_cv_path_LD=$lt_cv_path_LDCXX
17240   else
17241     $as_unset lt_cv_path_LD
17242   fi
17243   test -z "${LDCXX+set}" || LD=$LDCXX
17244   CC=${CXX-"c++"}
17245   compiler=$CC
17246   compiler_CXX=$CC
17247   for cc_temp in $compiler""; do
17248   case $cc_temp in
17249     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17250     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17251     \-*) ;;
17252     *) break;;
17253   esac
17254 done
17255 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17256
17257
17258   if test -n "$compiler"; then
17259     # We don't want -fno-exception when compiling C++ code, so set the
17260     # no_builtin_flag separately
17261     if test "$GXX" = yes; then
17262       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17263     else
17264       lt_prog_compiler_no_builtin_flag_CXX=
17265     fi
17266
17267     if test "$GXX" = yes; then
17268       # Set up default GNU C++ configuration
17269
17270
17271
17272 # Check whether --with-gnu-ld was given.
17273 if test "${with_gnu_ld+set}" = set; then :
17274   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17275 else
17276   with_gnu_ld=no
17277 fi
17278
17279 ac_prog=ld
17280 if test "$GCC" = yes; then
17281   # Check if gcc -print-prog-name=ld gives a path.
17282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17283 $as_echo_n "checking for ld used by $CC... " >&6; }
17284   case $host in
17285   *-*-mingw*)
17286     # gcc leaves a trailing carriage return which upsets mingw
17287     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17288   *)
17289     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17290   esac
17291   case $ac_prog in
17292     # Accept absolute paths.
17293     [\\/]* | ?:[\\/]*)
17294       re_direlt='/[^/][^/]*/\.\./'
17295       # Canonicalize the pathname of ld
17296       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17297       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17298         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17299       done
17300       test -z "$LD" && LD="$ac_prog"
17301       ;;
17302   "")
17303     # If it fails, then pretend we aren't using GCC.
17304     ac_prog=ld
17305     ;;
17306   *)
17307     # If it is relative, then search for the first ld in PATH.
17308     with_gnu_ld=unknown
17309     ;;
17310   esac
17311 elif test "$with_gnu_ld" = yes; then
17312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17313 $as_echo_n "checking for GNU ld... " >&6; }
17314 else
17315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17316 $as_echo_n "checking for non-GNU ld... " >&6; }
17317 fi
17318 if test "${lt_cv_path_LD+set}" = set; then :
17319   $as_echo_n "(cached) " >&6
17320 else
17321   if test -z "$LD"; then
17322   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17323   for ac_dir in $PATH; do
17324     IFS="$lt_save_ifs"
17325     test -z "$ac_dir" && ac_dir=.
17326     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17327       lt_cv_path_LD="$ac_dir/$ac_prog"
17328       # Check to see if the program is GNU ld.  I'd rather use --version,
17329       # but apparently some variants of GNU ld only accept -v.
17330       # Break only if it was the GNU/non-GNU ld that we prefer.
17331       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17332       *GNU* | *'with BFD'*)
17333         test "$with_gnu_ld" != no && break
17334         ;;
17335       *)
17336         test "$with_gnu_ld" != yes && break
17337         ;;
17338       esac
17339     fi
17340   done
17341   IFS="$lt_save_ifs"
17342 else
17343   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17344 fi
17345 fi
17346
17347 LD="$lt_cv_path_LD"
17348 if test -n "$LD"; then
17349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17350 $as_echo "$LD" >&6; }
17351 else
17352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17353 $as_echo "no" >&6; }
17354 fi
17355 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17357 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17358 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17359   $as_echo_n "(cached) " >&6
17360 else
17361   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17362 case `$LD -v 2>&1 </dev/null` in
17363 *GNU* | *'with BFD'*)
17364   lt_cv_prog_gnu_ld=yes
17365   ;;
17366 *)
17367   lt_cv_prog_gnu_ld=no
17368   ;;
17369 esac
17370 fi
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17372 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17373 with_gnu_ld=$lt_cv_prog_gnu_ld
17374
17375
17376
17377
17378
17379
17380
17381       # Check if GNU C++ uses GNU ld as the underlying linker, since the
17382       # archiving commands below assume that GNU ld is being used.
17383       if test "$with_gnu_ld" = yes; then
17384         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17385         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17386
17387         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17388         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17389
17390         # If archive_cmds runs LD, not CC, wlarc should be empty
17391         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17392         #     investigate it a little bit more. (MM)
17393         wlarc='${wl}'
17394
17395         # ancient GNU ld didn't support --whole-archive et. al.
17396         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17397           $GREP 'no-whole-archive' > /dev/null; then
17398           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17399         else
17400           whole_archive_flag_spec_CXX=
17401         fi
17402       else
17403         with_gnu_ld=no
17404         wlarc=
17405
17406         # A generic and very simple default shared library creation
17407         # command for GNU C++ for the case where it uses the native
17408         # linker, instead of GNU ld.  If possible, this setting should
17409         # overridden to take advantage of the native linker features on
17410         # the platform it is being used on.
17411         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17412       fi
17413
17414       # Commands to make compiler produce verbose output that lists
17415       # what "hidden" libraries, object files and flags are used when
17416       # linking a shared library.
17417       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17418
17419     else
17420       GXX=no
17421       with_gnu_ld=no
17422       wlarc=
17423     fi
17424
17425     # PORTME: fill in a description of your system's C++ link characteristics
17426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17427 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17428     ld_shlibs_CXX=yes
17429     case $host_os in
17430       aix3*)
17431         # FIXME: insert proper C++ library support
17432         ld_shlibs_CXX=no
17433         ;;
17434       aix[4-9]*)
17435         if test "$host_cpu" = ia64; then
17436           # On IA64, the linker does run time linking by default, so we don't
17437           # have to do anything special.
17438           aix_use_runtimelinking=no
17439           exp_sym_flag='-Bexport'
17440           no_entry_flag=""
17441         else
17442           aix_use_runtimelinking=no
17443
17444           # Test if we are trying to use run time linking or normal
17445           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17446           # need to do runtime linking.
17447           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17448             for ld_flag in $LDFLAGS; do
17449               case $ld_flag in
17450               *-brtl*)
17451                 aix_use_runtimelinking=yes
17452                 break
17453                 ;;
17454               esac
17455             done
17456             ;;
17457           esac
17458
17459           exp_sym_flag='-bexport'
17460           no_entry_flag='-bnoentry'
17461         fi
17462
17463         # When large executables or shared objects are built, AIX ld can
17464         # have problems creating the table of contents.  If linking a library
17465         # or program results in "error TOC overflow" add -mminimal-toc to
17466         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17467         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17468
17469         archive_cmds_CXX=''
17470         hardcode_direct_CXX=yes
17471         hardcode_direct_absolute_CXX=yes
17472         hardcode_libdir_separator_CXX=':'
17473         link_all_deplibs_CXX=yes
17474         file_list_spec_CXX='${wl}-f,'
17475
17476         if test "$GXX" = yes; then
17477           case $host_os in aix4.[012]|aix4.[012].*)
17478           # We only want to do this on AIX 4.2 and lower, the check
17479           # below for broken collect2 doesn't work under 4.3+
17480           collect2name=`${CC} -print-prog-name=collect2`
17481           if test -f "$collect2name" &&
17482              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17483           then
17484             # We have reworked collect2
17485             :
17486           else
17487             # We have old collect2
17488             hardcode_direct_CXX=unsupported
17489             # It fails to find uninstalled libraries when the uninstalled
17490             # path is not listed in the libpath.  Setting hardcode_minus_L
17491             # to unsupported forces relinking
17492             hardcode_minus_L_CXX=yes
17493             hardcode_libdir_flag_spec_CXX='-L$libdir'
17494             hardcode_libdir_separator_CXX=
17495           fi
17496           esac
17497           shared_flag='-shared'
17498           if test "$aix_use_runtimelinking" = yes; then
17499             shared_flag="$shared_flag "'${wl}-G'
17500           fi
17501         else
17502           # not using gcc
17503           if test "$host_cpu" = ia64; then
17504           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17505           # chokes on -Wl,-G. The following line is correct:
17506           shared_flag='-G'
17507           else
17508             if test "$aix_use_runtimelinking" = yes; then
17509               shared_flag='${wl}-G'
17510             else
17511               shared_flag='${wl}-bM:SRE'
17512             fi
17513           fi
17514         fi
17515
17516         export_dynamic_flag_spec_CXX='${wl}-bexpall'
17517         # It seems that -bexpall does not export symbols beginning with
17518         # underscore (_), so it is better to generate a list of symbols to
17519         # export.
17520         always_export_symbols_CXX=yes
17521         if test "$aix_use_runtimelinking" = yes; then
17522           # Warning - without using the other runtime loading flags (-brtl),
17523           # -berok will link without error, but may produce a broken library.
17524           allow_undefined_flag_CXX='-berok'
17525           # Determine the default libpath from the value encoded in an empty
17526           # executable.
17527           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17528 /* end confdefs.h.  */
17529
17530 int
17531 main ()
17532 {
17533
17534   ;
17535   return 0;
17536 }
17537 _ACEOF
17538 if ac_fn_cxx_try_link "$LINENO"; then :
17539
17540 lt_aix_libpath_sed='
17541     /Import File Strings/,/^$/ {
17542         /^0/ {
17543             s/^0  *\(.*\)$/\1/
17544             p
17545         }
17546     }'
17547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17548 # Check for a 64-bit object if we didn't find anything.
17549 if test -z "$aix_libpath"; then
17550   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17551 fi
17552 fi
17553 rm -f core conftest.err conftest.$ac_objext \
17554     conftest$ac_exeext conftest.$ac_ext
17555 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17556
17557           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17558
17559           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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17560         else
17561           if test "$host_cpu" = ia64; then
17562             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17563             allow_undefined_flag_CXX="-z nodefs"
17564             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"
17565           else
17566             # Determine the default libpath from the value encoded in an
17567             # empty executable.
17568             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569 /* end confdefs.h.  */
17570
17571 int
17572 main ()
17573 {
17574
17575   ;
17576   return 0;
17577 }
17578 _ACEOF
17579 if ac_fn_cxx_try_link "$LINENO"; then :
17580
17581 lt_aix_libpath_sed='
17582     /Import File Strings/,/^$/ {
17583         /^0/ {
17584             s/^0  *\(.*\)$/\1/
17585             p
17586         }
17587     }'
17588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17589 # Check for a 64-bit object if we didn't find anything.
17590 if test -z "$aix_libpath"; then
17591   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17592 fi
17593 fi
17594 rm -f core conftest.err conftest.$ac_objext \
17595     conftest$ac_exeext conftest.$ac_ext
17596 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17597
17598             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17599             # Warning - without using the other run time loading flags,
17600             # -berok will link without error, but may produce a broken library.
17601             no_undefined_flag_CXX=' ${wl}-bernotok'
17602             allow_undefined_flag_CXX=' ${wl}-berok'
17603             # Exported symbols can be pulled into shared objects from archives
17604             whole_archive_flag_spec_CXX='$convenience'
17605             archive_cmds_need_lc_CXX=yes
17606             # This is similar to how AIX traditionally builds its shared
17607             # libraries.
17608             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'
17609           fi
17610         fi
17611         ;;
17612
17613       beos*)
17614         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17615           allow_undefined_flag_CXX=unsupported
17616           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17617           # support --undefined.  This deserves some investigation.  FIXME
17618           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17619         else
17620           ld_shlibs_CXX=no
17621         fi
17622         ;;
17623
17624       chorus*)
17625         case $cc_basename in
17626           *)
17627           # FIXME: insert proper C++ library support
17628           ld_shlibs_CXX=no
17629           ;;
17630         esac
17631         ;;
17632
17633       cygwin* | mingw* | pw32* | cegcc*)
17634         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17635         # as there is no search path for DLLs.
17636         hardcode_libdir_flag_spec_CXX='-L$libdir'
17637         allow_undefined_flag_CXX=unsupported
17638         always_export_symbols_CXX=no
17639         enable_shared_with_static_runtimes_CXX=yes
17640
17641         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17642           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'
17643           # If the export-symbols file already is a .def file (1st line
17644           # is EXPORTS), use it as is; otherwise, prepend...
17645           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17646             cp $export_symbols $output_objdir/$soname.def;
17647           else
17648             echo EXPORTS > $output_objdir/$soname.def;
17649             cat $export_symbols >> $output_objdir/$soname.def;
17650           fi~
17651           $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'
17652         else
17653           ld_shlibs_CXX=no
17654         fi
17655         ;;
17656       darwin* | rhapsody*)
17657
17658
17659   archive_cmds_need_lc_CXX=no
17660   hardcode_direct_CXX=no
17661   hardcode_automatic_CXX=yes
17662   hardcode_shlibpath_var_CXX=unsupported
17663   whole_archive_flag_spec_CXX=''
17664   link_all_deplibs_CXX=yes
17665   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17666   case $cc_basename in
17667      ifort*) _lt_dar_can_shared=yes ;;
17668      *) _lt_dar_can_shared=$GCC ;;
17669   esac
17670   if test "$_lt_dar_can_shared" = "yes"; then
17671     output_verbose_link_cmd=echo
17672     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}"
17673     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17674     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}"
17675     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}"
17676        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17677       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}"
17678       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}"
17679     fi
17680
17681   else
17682   ld_shlibs_CXX=no
17683   fi
17684
17685         ;;
17686
17687       dgux*)
17688         case $cc_basename in
17689           ec++*)
17690             # FIXME: insert proper C++ library support
17691             ld_shlibs_CXX=no
17692             ;;
17693           ghcx*)
17694             # Green Hills C++ Compiler
17695             # FIXME: insert proper C++ library support
17696             ld_shlibs_CXX=no
17697             ;;
17698           *)
17699             # FIXME: insert proper C++ library support
17700             ld_shlibs_CXX=no
17701             ;;
17702         esac
17703         ;;
17704
17705       freebsd[12]*)
17706         # C++ shared libraries reported to be fairly broken before
17707         # switch to ELF
17708         ld_shlibs_CXX=no
17709         ;;
17710
17711       freebsd-elf*)
17712         archive_cmds_need_lc_CXX=no
17713         ;;
17714
17715       freebsd* | dragonfly*)
17716         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17717         # conventions
17718         ld_shlibs_CXX=yes
17719         ;;
17720
17721       gnu*)
17722         ;;
17723
17724       hpux9*)
17725         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17726         hardcode_libdir_separator_CXX=:
17727         export_dynamic_flag_spec_CXX='${wl}-E'
17728         hardcode_direct_CXX=yes
17729         hardcode_minus_L_CXX=yes # Not in the search PATH,
17730                                              # but as the default
17731                                              # location of the library.
17732
17733         case $cc_basename in
17734           CC*)
17735             # FIXME: insert proper C++ library support
17736             ld_shlibs_CXX=no
17737             ;;
17738           aCC*)
17739             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'
17740             # Commands to make compiler produce verbose output that lists
17741             # what "hidden" libraries, object files and flags are used when
17742             # linking a shared library.
17743             #
17744             # There doesn't appear to be a way to prevent this compiler from
17745             # explicitly linking system object files so we need to strip them
17746             # from the output so that they don't get included in the library
17747             # dependencies.
17748             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; $ECHO "X$list" | $Xsed'
17749             ;;
17750           *)
17751             if test "$GXX" = yes; then
17752               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'
17753             else
17754               # FIXME: insert proper C++ library support
17755               ld_shlibs_CXX=no
17756             fi
17757             ;;
17758         esac
17759         ;;
17760
17761       hpux10*|hpux11*)
17762         if test $with_gnu_ld = no; then
17763           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17764           hardcode_libdir_separator_CXX=:
17765
17766           case $host_cpu in
17767             hppa*64*|ia64*)
17768               ;;
17769             *)
17770               export_dynamic_flag_spec_CXX='${wl}-E'
17771               ;;
17772           esac
17773         fi
17774         case $host_cpu in
17775           hppa*64*|ia64*)
17776             hardcode_direct_CXX=no
17777             hardcode_shlibpath_var_CXX=no
17778             ;;
17779           *)
17780             hardcode_direct_CXX=yes
17781             hardcode_direct_absolute_CXX=yes
17782             hardcode_minus_L_CXX=yes # Not in the search PATH,
17783                                                  # but as the default
17784                                                  # location of the library.
17785             ;;
17786         esac
17787
17788         case $cc_basename in
17789           CC*)
17790             # FIXME: insert proper C++ library support
17791             ld_shlibs_CXX=no
17792             ;;
17793           aCC*)
17794             case $host_cpu in
17795               hppa*64*)
17796                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17797                 ;;
17798               ia64*)
17799                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17800                 ;;
17801               *)
17802                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17803                 ;;
17804             esac
17805             # Commands to make compiler produce verbose output that lists
17806             # what "hidden" libraries, object files and flags are used when
17807             # linking a shared library.
17808             #
17809             # There doesn't appear to be a way to prevent this compiler from
17810             # explicitly linking system object files so we need to strip them
17811             # from the output so that they don't get included in the library
17812             # dependencies.
17813             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; $ECHO "X$list" | $Xsed'
17814             ;;
17815           *)
17816             if test "$GXX" = yes; then
17817               if test $with_gnu_ld = no; then
17818                 case $host_cpu in
17819                   hppa*64*)
17820                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17821                     ;;
17822                   ia64*)
17823                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17824                     ;;
17825                   *)
17826                     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'
17827                     ;;
17828                 esac
17829               fi
17830             else
17831               # FIXME: insert proper C++ library support
17832               ld_shlibs_CXX=no
17833             fi
17834             ;;
17835         esac
17836         ;;
17837
17838       interix[3-9]*)
17839         hardcode_direct_CXX=no
17840         hardcode_shlibpath_var_CXX=no
17841         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17842         export_dynamic_flag_spec_CXX='${wl}-E'
17843         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17844         # Instead, shared libraries are loaded at an image base (0x10000000 by
17845         # default) and relocated if they conflict, which is a slow very memory
17846         # consuming and fragmenting process.  To avoid this, we pick a random,
17847         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17848         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17849         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'
17850         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'
17851         ;;
17852       irix5* | irix6*)
17853         case $cc_basename in
17854           CC*)
17855             # SGI C++
17856             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17857
17858             # Archives containing C++ object files must be created using
17859             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17860             # necessary to make sure instantiated templates are included
17861             # in the archive.
17862             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17863             ;;
17864           *)
17865             if test "$GXX" = yes; then
17866               if test "$with_gnu_ld" = no; then
17867                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17868               else
17869                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
17870               fi
17871             fi
17872             link_all_deplibs_CXX=yes
17873             ;;
17874         esac
17875         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17876         hardcode_libdir_separator_CXX=:
17877         inherit_rpath_CXX=yes
17878         ;;
17879
17880       linux* | k*bsd*-gnu | kopensolaris*-gnu)
17881         case $cc_basename in
17882           KCC*)
17883             # Kuck and Associates, Inc. (KAI) C++ Compiler
17884
17885             # KCC will only create a shared library if the output file
17886             # ends with ".so" (or ".sl" for HP-UX), so rename the library
17887             # to its proper name (with version) after linking.
17888             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'
17889             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'
17890             # Commands to make compiler produce verbose output that lists
17891             # what "hidden" libraries, object files and flags are used when
17892             # linking a shared library.
17893             #
17894             # There doesn't appear to be a way to prevent this compiler from
17895             # explicitly linking system object files so we need to strip them
17896             # from the output so that they don't get included in the library
17897             # dependencies.
17898             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; $ECHO "X$list" | $Xsed'
17899
17900             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17901             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17902
17903             # Archives containing C++ object files must be created using
17904             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17905             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17906             ;;
17907           icpc* | ecpc* )
17908             # Intel C++
17909             with_gnu_ld=yes
17910             # version 8.0 and above of icpc choke on multiply defined symbols
17911             # if we add $predep_objects and $postdep_objects, however 7.1 and
17912             # earlier do not add the objects themselves.
17913             case `$CC -V 2>&1` in
17914               *"Version 7."*)
17915                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17916                 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'
17917                 ;;
17918               *)  # Version 8.0 or newer
17919                 tmp_idyn=
17920                 case $host_cpu in
17921                   ia64*) tmp_idyn=' -i_dynamic';;
17922                 esac
17923                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17924                 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'
17925                 ;;
17926             esac
17927             archive_cmds_need_lc_CXX=no
17928             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17929             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17930             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17931             ;;
17932           pgCC* | pgcpp*)
17933             # Portland Group C++ compiler
17934             case `$CC -V` in
17935             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
17936               prelink_cmds_CXX='tpldir=Template.dir~
17937                 rm -rf $tpldir~
17938                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17939                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
17940               old_archive_cmds_CXX='tpldir=Template.dir~
17941                 rm -rf $tpldir~
17942                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17943                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
17944                 $RANLIB $oldlib'
17945               archive_cmds_CXX='tpldir=Template.dir~
17946                 rm -rf $tpldir~
17947                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17948                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17949               archive_expsym_cmds_CXX='tpldir=Template.dir~
17950                 rm -rf $tpldir~
17951                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17952                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
17953               ;;
17954             *) # Version 6 will use weak symbols
17955               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17956               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'
17957               ;;
17958             esac
17959
17960             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17961             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17962             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17963             ;;
17964           cxx*)
17965             # Compaq C++
17966             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17967             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'
17968
17969             runpath_var=LD_RUN_PATH
17970             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17971             hardcode_libdir_separator_CXX=:
17972
17973             # Commands to make compiler produce verbose output that lists
17974             # what "hidden" libraries, object files and flags are used when
17975             # linking a shared library.
17976             #
17977             # There doesn't appear to be a way to prevent this compiler from
17978             # explicitly linking system object files so we need to strip them
17979             # from the output so that they don't get included in the library
17980             # dependencies.
17981             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
17982             ;;
17983           xl*)
17984             # IBM XL 8.0 on PPC, with GNU ld
17985             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17986             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17987             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17988             if test "x$supports_anon_versioning" = xyes; then
17989               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17990                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17991                 echo "local: *; };" >> $output_objdir/$libname.ver~
17992                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17993             fi
17994             ;;
17995           *)
17996             case `$CC -V 2>&1 | sed 5q` in
17997             *Sun\ C*)
17998               # Sun C++ 5.9
17999               no_undefined_flag_CXX=' -zdefs'
18000               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18001               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'
18002               hardcode_libdir_flag_spec_CXX='-R$libdir'
18003               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
18004               compiler_needs_object_CXX=yes
18005
18006               # Not sure whether something based on
18007               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18008               # would be better.
18009               output_verbose_link_cmd='echo'
18010
18011               # Archives containing C++ object files must be created using
18012               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18013               # necessary to make sure instantiated templates are included
18014               # in the archive.
18015               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18016               ;;
18017             esac
18018             ;;
18019         esac
18020         ;;
18021
18022       lynxos*)
18023         # FIXME: insert proper C++ library support
18024         ld_shlibs_CXX=no
18025         ;;
18026
18027       m88k*)
18028         # FIXME: insert proper C++ library support
18029         ld_shlibs_CXX=no
18030         ;;
18031
18032       mvs*)
18033         case $cc_basename in
18034           cxx*)
18035             # FIXME: insert proper C++ library support
18036             ld_shlibs_CXX=no
18037             ;;
18038           *)
18039             # FIXME: insert proper C++ library support
18040             ld_shlibs_CXX=no
18041             ;;
18042         esac
18043         ;;
18044
18045       netbsd*)
18046         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18047           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18048           wlarc=
18049           hardcode_libdir_flag_spec_CXX='-R$libdir'
18050           hardcode_direct_CXX=yes
18051           hardcode_shlibpath_var_CXX=no
18052         fi
18053         # Workaround some broken pre-1.5 toolchains
18054         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18055         ;;
18056
18057       *nto* | *qnx*)
18058         ld_shlibs_CXX=yes
18059         ;;
18060
18061       openbsd2*)
18062         # C++ shared libraries are fairly broken
18063         ld_shlibs_CXX=no
18064         ;;
18065
18066       openbsd*)
18067         if test -f /usr/libexec/ld.so; then
18068           hardcode_direct_CXX=yes
18069           hardcode_shlibpath_var_CXX=no
18070           hardcode_direct_absolute_CXX=yes
18071           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18072           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18073           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18074             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18075             export_dynamic_flag_spec_CXX='${wl}-E'
18076             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18077           fi
18078           output_verbose_link_cmd=echo
18079         else
18080           ld_shlibs_CXX=no
18081         fi
18082         ;;
18083
18084       osf3* | osf4* | osf5*)
18085         case $cc_basename in
18086           KCC*)
18087             # Kuck and Associates, Inc. (KAI) C++ Compiler
18088
18089             # KCC will only create a shared library if the output file
18090             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18091             # to its proper name (with version) after linking.
18092             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'
18093
18094             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18095             hardcode_libdir_separator_CXX=:
18096
18097             # Archives containing C++ object files must be created using
18098             # the KAI C++ compiler.
18099             case $host in
18100               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18101               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18102             esac
18103             ;;
18104           RCC*)
18105             # Rational C++ 2.4.1
18106             # FIXME: insert proper C++ library support
18107             ld_shlibs_CXX=no
18108             ;;
18109           cxx*)
18110             case $host in
18111               osf3*)
18112                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18113                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18114                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18115                 ;;
18116               *)
18117                 allow_undefined_flag_CXX=' -expect_unresolved \*'
18118                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18119                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18120                   echo "-hidden">> $lib.exp~
18121                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
18122                   $RM $lib.exp'
18123                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18124                 ;;
18125             esac
18126
18127             hardcode_libdir_separator_CXX=:
18128
18129             # Commands to make compiler produce verbose output that lists
18130             # what "hidden" libraries, object files and flags are used when
18131             # linking a shared library.
18132             #
18133             # There doesn't appear to be a way to prevent this compiler from
18134             # explicitly linking system object files so we need to strip them
18135             # from the output so that they don't get included in the library
18136             # dependencies.
18137             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
18138             ;;
18139           *)
18140             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18141               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18142               case $host in
18143                 osf3*)
18144                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18145                   ;;
18146                 *)
18147                   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" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18148                   ;;
18149               esac
18150
18151               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18152               hardcode_libdir_separator_CXX=:
18153
18154               # Commands to make compiler produce verbose output that lists
18155               # what "hidden" libraries, object files and flags are used when
18156               # linking a shared library.
18157               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18158
18159             else
18160               # FIXME: insert proper C++ library support
18161               ld_shlibs_CXX=no
18162             fi
18163             ;;
18164         esac
18165         ;;
18166
18167       psos*)
18168         # FIXME: insert proper C++ library support
18169         ld_shlibs_CXX=no
18170         ;;
18171
18172       sunos4*)
18173         case $cc_basename in
18174           CC*)
18175             # Sun C++ 4.x
18176             # FIXME: insert proper C++ library support
18177             ld_shlibs_CXX=no
18178             ;;
18179           lcc*)
18180             # Lucid
18181             # FIXME: insert proper C++ library support
18182             ld_shlibs_CXX=no
18183             ;;
18184           *)
18185             # FIXME: insert proper C++ library support
18186             ld_shlibs_CXX=no
18187             ;;
18188         esac
18189         ;;
18190
18191       solaris*)
18192         case $cc_basename in
18193           CC*)
18194             # Sun C++ 4.2, 5.x and Centerline C++
18195             archive_cmds_need_lc_CXX=yes
18196             no_undefined_flag_CXX=' -zdefs'
18197             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18198             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18199               $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'
18200
18201             hardcode_libdir_flag_spec_CXX='-R$libdir'
18202             hardcode_shlibpath_var_CXX=no
18203             case $host_os in
18204               solaris2.[0-5] | solaris2.[0-5].*) ;;
18205               *)
18206                 # The compiler driver will combine and reorder linker options,
18207                 # but understands `-z linker_flag'.
18208                 # Supported since Solaris 2.6 (maybe 2.5.1?)
18209                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18210                 ;;
18211             esac
18212             link_all_deplibs_CXX=yes
18213
18214             output_verbose_link_cmd='echo'
18215
18216             # Archives containing C++ object files must be created using
18217             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18218             # necessary to make sure instantiated templates are included
18219             # in the archive.
18220             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18221             ;;
18222           gcx*)
18223             # Green Hills C++ Compiler
18224             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18225
18226             # The C++ compiler must be used to create the archive.
18227             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18228             ;;
18229           *)
18230             # GNU C++ compiler with Solaris linker
18231             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18232               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18233               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18234                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18235                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18236                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18237
18238                 # Commands to make compiler produce verbose output that lists
18239                 # what "hidden" libraries, object files and flags are used when
18240                 # linking a shared library.
18241                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18242               else
18243                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18244                 # platform.
18245                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18246                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18247                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18248
18249                 # Commands to make compiler produce verbose output that lists
18250                 # what "hidden" libraries, object files and flags are used when
18251                 # linking a shared library.
18252                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18253               fi
18254
18255               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18256               case $host_os in
18257                 solaris2.[0-5] | solaris2.[0-5].*) ;;
18258                 *)
18259                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18260                   ;;
18261               esac
18262             fi
18263             ;;
18264         esac
18265         ;;
18266
18267     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18268       no_undefined_flag_CXX='${wl}-z,text'
18269       archive_cmds_need_lc_CXX=no
18270       hardcode_shlibpath_var_CXX=no
18271       runpath_var='LD_RUN_PATH'
18272
18273       case $cc_basename in
18274         CC*)
18275           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18276           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18277           ;;
18278         *)
18279           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18280           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18281           ;;
18282       esac
18283       ;;
18284
18285       sysv5* | sco3.2v5* | sco5v6*)
18286         # Note: We can NOT use -z defs as we might desire, because we do not
18287         # link with -lc, and that would cause any symbols used from libc to
18288         # always be unresolved, which means just about no library would
18289         # ever link correctly.  If we're not using GNU ld we use -z text
18290         # though, which does catch some bad symbols but isn't as heavy-handed
18291         # as -z defs.
18292         no_undefined_flag_CXX='${wl}-z,text'
18293         allow_undefined_flag_CXX='${wl}-z,nodefs'
18294         archive_cmds_need_lc_CXX=no
18295         hardcode_shlibpath_var_CXX=no
18296         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18297         hardcode_libdir_separator_CXX=':'
18298         link_all_deplibs_CXX=yes
18299         export_dynamic_flag_spec_CXX='${wl}-Bexport'
18300         runpath_var='LD_RUN_PATH'
18301
18302         case $cc_basename in
18303           CC*)
18304             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18305             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18306             ;;
18307           *)
18308             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18309             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18310             ;;
18311         esac
18312       ;;
18313
18314       tandem*)
18315         case $cc_basename in
18316           NCC*)
18317             # NonStop-UX NCC 3.20
18318             # FIXME: insert proper C++ library support
18319             ld_shlibs_CXX=no
18320             ;;
18321           *)
18322             # FIXME: insert proper C++ library support
18323             ld_shlibs_CXX=no
18324             ;;
18325         esac
18326         ;;
18327
18328       vxworks*)
18329         # FIXME: insert proper C++ library support
18330         ld_shlibs_CXX=no
18331         ;;
18332
18333       *)
18334         # FIXME: insert proper C++ library support
18335         ld_shlibs_CXX=no
18336         ;;
18337     esac
18338
18339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18340 $as_echo "$ld_shlibs_CXX" >&6; }
18341     test "$ld_shlibs_CXX" = no && can_build_shared=no
18342
18343     GCC_CXX="$GXX"
18344     LD_CXX="$LD"
18345
18346     ## CAVEAT EMPTOR:
18347     ## There is no encapsulation within the following macros, do not change
18348     ## the running order or otherwise move them around unless you know exactly
18349     ## what you are doing...
18350     # Dependencies to place before and after the object being linked:
18351 predep_objects_CXX=
18352 postdep_objects_CXX=
18353 predeps_CXX=
18354 postdeps_CXX=
18355 compiler_lib_search_path_CXX=
18356
18357 cat > conftest.$ac_ext <<_LT_EOF
18358 class Foo
18359 {
18360 public:
18361   Foo (void) { a = 0; }
18362 private:
18363   int a;
18364 };
18365 _LT_EOF
18366
18367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18368   (eval $ac_compile) 2>&5
18369   ac_status=$?
18370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18371   test $ac_status = 0; }; then
18372   # Parse the compiler output and extract the necessary
18373   # objects, libraries and library flags.
18374
18375   # Sentinel used to keep track of whether or not we are before
18376   # the conftest object file.
18377   pre_test_object_deps_done=no
18378
18379   for p in `eval "$output_verbose_link_cmd"`; do
18380     case $p in
18381
18382     -L* | -R* | -l*)
18383        # Some compilers place space between "-{L,R}" and the path.
18384        # Remove the space.
18385        if test $p = "-L" ||
18386           test $p = "-R"; then
18387          prev=$p
18388          continue
18389        else
18390          prev=
18391        fi
18392
18393        if test "$pre_test_object_deps_done" = no; then
18394          case $p in
18395          -L* | -R*)
18396            # Internal compiler library paths should come after those
18397            # provided the user.  The postdeps already come after the
18398            # user supplied libs so there is no need to process them.
18399            if test -z "$compiler_lib_search_path_CXX"; then
18400              compiler_lib_search_path_CXX="${prev}${p}"
18401            else
18402              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18403            fi
18404            ;;
18405          # The "-l" case would never come before the object being
18406          # linked, so don't bother handling this case.
18407          esac
18408        else
18409          if test -z "$postdeps_CXX"; then
18410            postdeps_CXX="${prev}${p}"
18411          else
18412            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18413          fi
18414        fi
18415        ;;
18416
18417     *.$objext)
18418        # This assumes that the test object file only shows up
18419        # once in the compiler output.
18420        if test "$p" = "conftest.$objext"; then
18421          pre_test_object_deps_done=yes
18422          continue
18423        fi
18424
18425        if test "$pre_test_object_deps_done" = no; then
18426          if test -z "$predep_objects_CXX"; then
18427            predep_objects_CXX="$p"
18428          else
18429            predep_objects_CXX="$predep_objects_CXX $p"
18430          fi
18431        else
18432          if test -z "$postdep_objects_CXX"; then
18433            postdep_objects_CXX="$p"
18434          else
18435            postdep_objects_CXX="$postdep_objects_CXX $p"
18436          fi
18437        fi
18438        ;;
18439
18440     *) ;; # Ignore the rest.
18441
18442     esac
18443   done
18444
18445   # Clean up.
18446   rm -f a.out a.exe
18447 else
18448   echo "libtool.m4: error: problem compiling CXX test program"
18449 fi
18450
18451 $RM -f confest.$objext
18452
18453 # PORTME: override above test on systems where it is broken
18454 case $host_os in
18455 interix[3-9]*)
18456   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18457   # hack all around it, let's just trust "g++" to DTRT.
18458   predep_objects_CXX=
18459   postdep_objects_CXX=
18460   postdeps_CXX=
18461   ;;
18462
18463 linux*)
18464   case `$CC -V 2>&1 | sed 5q` in
18465   *Sun\ C*)
18466     # Sun C++ 5.9
18467
18468     # The more standards-conforming stlport4 library is
18469     # incompatible with the Cstd library. Avoid specifying
18470     # it if it's in CXXFLAGS. Ignore libCrun as
18471     # -library=stlport4 depends on it.
18472     case " $CXX $CXXFLAGS " in
18473     *" -library=stlport4 "*)
18474       solaris_use_stlport4=yes
18475       ;;
18476     esac
18477
18478     if test "$solaris_use_stlport4" != yes; then
18479       postdeps_CXX='-library=Cstd -library=Crun'
18480     fi
18481     ;;
18482   esac
18483   ;;
18484
18485 solaris*)
18486   case $cc_basename in
18487   CC*)
18488     # The more standards-conforming stlport4 library is
18489     # incompatible with the Cstd library. Avoid specifying
18490     # it if it's in CXXFLAGS. Ignore libCrun as
18491     # -library=stlport4 depends on it.
18492     case " $CXX $CXXFLAGS " in
18493     *" -library=stlport4 "*)
18494       solaris_use_stlport4=yes
18495       ;;
18496     esac
18497
18498     # Adding this requires a known-good setup of shared libraries for
18499     # Sun compiler versions before 5.6, else PIC objects from an old
18500     # archive will be linked into the output, leading to subtle bugs.
18501     if test "$solaris_use_stlport4" != yes; then
18502       postdeps_CXX='-library=Cstd -library=Crun'
18503     fi
18504     ;;
18505   esac
18506   ;;
18507 esac
18508
18509
18510 case " $postdeps_CXX " in
18511 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18512 esac
18513  compiler_lib_search_dirs_CXX=
18514 if test -n "${compiler_lib_search_path_CXX}"; then
18515  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18516 fi
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548     lt_prog_compiler_wl_CXX=
18549 lt_prog_compiler_pic_CXX=
18550 lt_prog_compiler_static_CXX=
18551
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18553 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18554
18555   # C++ specific cases for pic, static, wl, etc.
18556   if test "$GXX" = yes; then
18557     lt_prog_compiler_wl_CXX='-Wl,'
18558     lt_prog_compiler_static_CXX='-static'
18559
18560     case $host_os in
18561     aix*)
18562       # All AIX code is PIC.
18563       if test "$host_cpu" = ia64; then
18564         # AIX 5 now supports IA64 processor
18565         lt_prog_compiler_static_CXX='-Bstatic'
18566       fi
18567       ;;
18568
18569     amigaos*)
18570       case $host_cpu in
18571       powerpc)
18572             # see comment about AmigaOS4 .so support
18573             lt_prog_compiler_pic_CXX='-fPIC'
18574         ;;
18575       m68k)
18576             # FIXME: we need at least 68020 code to build shared libraries, but
18577             # adding the `-m68020' flag to GCC prevents building anything better,
18578             # like `-m68040'.
18579             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18580         ;;
18581       esac
18582       ;;
18583
18584     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18585       # PIC is the default for these OSes.
18586       ;;
18587     mingw* | cygwin* | os2* | pw32* | cegcc*)
18588       # This hack is so that the source file can tell whether it is being
18589       # built for inclusion in a dll (and should export symbols for example).
18590       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18591       # (--disable-auto-import) libraries
18592       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18593       ;;
18594     darwin* | rhapsody*)
18595       # PIC is the default on this platform
18596       # Common symbols not allowed in MH_DYLIB files
18597       lt_prog_compiler_pic_CXX='-fno-common'
18598       ;;
18599     *djgpp*)
18600       # DJGPP does not support shared libraries at all
18601       lt_prog_compiler_pic_CXX=
18602       ;;
18603     interix[3-9]*)
18604       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18605       # Instead, we relocate shared libraries at runtime.
18606       ;;
18607     sysv4*MP*)
18608       if test -d /usr/nec; then
18609         lt_prog_compiler_pic_CXX=-Kconform_pic
18610       fi
18611       ;;
18612     hpux*)
18613       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18614       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18615       # sets the default TLS model and affects inlining.
18616       case $host_cpu in
18617       hppa*64*)
18618         ;;
18619       *)
18620         lt_prog_compiler_pic_CXX='-fPIC'
18621         ;;
18622       esac
18623       ;;
18624     *qnx* | *nto*)
18625       # QNX uses GNU C++, but need to define -shared option too, otherwise
18626       # it will coredump.
18627       lt_prog_compiler_pic_CXX='-fPIC -shared'
18628       ;;
18629     *)
18630       lt_prog_compiler_pic_CXX='-fPIC'
18631       ;;
18632     esac
18633   else
18634     case $host_os in
18635       aix[4-9]*)
18636         # All AIX code is PIC.
18637         if test "$host_cpu" = ia64; then
18638           # AIX 5 now supports IA64 processor
18639           lt_prog_compiler_static_CXX='-Bstatic'
18640         else
18641           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18642         fi
18643         ;;
18644       chorus*)
18645         case $cc_basename in
18646         cxch68*)
18647           # Green Hills C++ Compiler
18648           # _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"
18649           ;;
18650         esac
18651         ;;
18652       dgux*)
18653         case $cc_basename in
18654           ec++*)
18655             lt_prog_compiler_pic_CXX='-KPIC'
18656             ;;
18657           ghcx*)
18658             # Green Hills C++ Compiler
18659             lt_prog_compiler_pic_CXX='-pic'
18660             ;;
18661           *)
18662             ;;
18663         esac
18664         ;;
18665       freebsd* | dragonfly*)
18666         # FreeBSD uses GNU C++
18667         ;;
18668       hpux9* | hpux10* | hpux11*)
18669         case $cc_basename in
18670           CC*)
18671             lt_prog_compiler_wl_CXX='-Wl,'
18672             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18673             if test "$host_cpu" != ia64; then
18674               lt_prog_compiler_pic_CXX='+Z'
18675             fi
18676             ;;
18677           aCC*)
18678             lt_prog_compiler_wl_CXX='-Wl,'
18679             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18680             case $host_cpu in
18681             hppa*64*|ia64*)
18682               # +Z the default
18683               ;;
18684             *)
18685               lt_prog_compiler_pic_CXX='+Z'
18686               ;;
18687             esac
18688             ;;
18689           *)
18690             ;;
18691         esac
18692         ;;
18693       interix*)
18694         # This is c89, which is MS Visual C++ (no shared libs)
18695         # Anyone wants to do a port?
18696         ;;
18697       irix5* | irix6* | nonstopux*)
18698         case $cc_basename in
18699           CC*)
18700             lt_prog_compiler_wl_CXX='-Wl,'
18701             lt_prog_compiler_static_CXX='-non_shared'
18702             # CC pic flag -KPIC is the default.
18703             ;;
18704           *)
18705             ;;
18706         esac
18707         ;;
18708       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18709         case $cc_basename in
18710           KCC*)
18711             # KAI C++ Compiler
18712             lt_prog_compiler_wl_CXX='--backend -Wl,'
18713             lt_prog_compiler_pic_CXX='-fPIC'
18714             ;;
18715           ecpc* )
18716             # old Intel C++ for x86_64 which still supported -KPIC.
18717             lt_prog_compiler_wl_CXX='-Wl,'
18718             lt_prog_compiler_pic_CXX='-KPIC'
18719             lt_prog_compiler_static_CXX='-static'
18720             ;;
18721           icpc* )
18722             # Intel C++, used to be incompatible with GCC.
18723             # ICC 10 doesn't accept -KPIC any more.
18724             lt_prog_compiler_wl_CXX='-Wl,'
18725             lt_prog_compiler_pic_CXX='-fPIC'
18726             lt_prog_compiler_static_CXX='-static'
18727             ;;
18728           pgCC* | pgcpp*)
18729             # Portland Group C++ compiler
18730             lt_prog_compiler_wl_CXX='-Wl,'
18731             lt_prog_compiler_pic_CXX='-fpic'
18732             lt_prog_compiler_static_CXX='-Bstatic'
18733             ;;
18734           cxx*)
18735             # Compaq C++
18736             # Make sure the PIC flag is empty.  It appears that all Alpha
18737             # Linux and Compaq Tru64 Unix objects are PIC.
18738             lt_prog_compiler_pic_CXX=
18739             lt_prog_compiler_static_CXX='-non_shared'
18740             ;;
18741           xlc* | xlC*)
18742             # IBM XL 8.0 on PPC
18743             lt_prog_compiler_wl_CXX='-Wl,'
18744             lt_prog_compiler_pic_CXX='-qpic'
18745             lt_prog_compiler_static_CXX='-qstaticlink'
18746             ;;
18747           *)
18748             case `$CC -V 2>&1 | sed 5q` in
18749             *Sun\ C*)
18750               # Sun C++ 5.9
18751               lt_prog_compiler_pic_CXX='-KPIC'
18752               lt_prog_compiler_static_CXX='-Bstatic'
18753               lt_prog_compiler_wl_CXX='-Qoption ld '
18754               ;;
18755             esac
18756             ;;
18757         esac
18758         ;;
18759       lynxos*)
18760         ;;
18761       m88k*)
18762         ;;
18763       mvs*)
18764         case $cc_basename in
18765           cxx*)
18766             lt_prog_compiler_pic_CXX='-W c,exportall'
18767             ;;
18768           *)
18769             ;;
18770         esac
18771         ;;
18772       netbsd*)
18773         ;;
18774       *qnx* | *nto*)
18775         # QNX uses GNU C++, but need to define -shared option too, otherwise
18776         # it will coredump.
18777         lt_prog_compiler_pic_CXX='-fPIC -shared'
18778         ;;
18779       osf3* | osf4* | osf5*)
18780         case $cc_basename in
18781           KCC*)
18782             lt_prog_compiler_wl_CXX='--backend -Wl,'
18783             ;;
18784           RCC*)
18785             # Rational C++ 2.4.1
18786             lt_prog_compiler_pic_CXX='-pic'
18787             ;;
18788           cxx*)
18789             # Digital/Compaq C++
18790             lt_prog_compiler_wl_CXX='-Wl,'
18791             # Make sure the PIC flag is empty.  It appears that all Alpha
18792             # Linux and Compaq Tru64 Unix objects are PIC.
18793             lt_prog_compiler_pic_CXX=
18794             lt_prog_compiler_static_CXX='-non_shared'
18795             ;;
18796           *)
18797             ;;
18798         esac
18799         ;;
18800       psos*)
18801         ;;
18802       solaris*)
18803         case $cc_basename in
18804           CC*)
18805             # Sun C++ 4.2, 5.x and Centerline C++
18806             lt_prog_compiler_pic_CXX='-KPIC'
18807             lt_prog_compiler_static_CXX='-Bstatic'
18808             lt_prog_compiler_wl_CXX='-Qoption ld '
18809             ;;
18810           gcx*)
18811             # Green Hills C++ Compiler
18812             lt_prog_compiler_pic_CXX='-PIC'
18813             ;;
18814           *)
18815             ;;
18816         esac
18817         ;;
18818       sunos4*)
18819         case $cc_basename in
18820           CC*)
18821             # Sun C++ 4.x
18822             lt_prog_compiler_pic_CXX='-pic'
18823             lt_prog_compiler_static_CXX='-Bstatic'
18824             ;;
18825           lcc*)
18826             # Lucid
18827             lt_prog_compiler_pic_CXX='-pic'
18828             ;;
18829           *)
18830             ;;
18831         esac
18832         ;;
18833       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18834         case $cc_basename in
18835           CC*)
18836             lt_prog_compiler_wl_CXX='-Wl,'
18837             lt_prog_compiler_pic_CXX='-KPIC'
18838             lt_prog_compiler_static_CXX='-Bstatic'
18839             ;;
18840         esac
18841         ;;
18842       tandem*)
18843         case $cc_basename in
18844           NCC*)
18845             # NonStop-UX NCC 3.20
18846             lt_prog_compiler_pic_CXX='-KPIC'
18847             ;;
18848           *)
18849             ;;
18850         esac
18851         ;;
18852       vxworks*)
18853         ;;
18854       *)
18855         lt_prog_compiler_can_build_shared_CXX=no
18856         ;;
18857     esac
18858   fi
18859
18860 case $host_os in
18861   # For platforms which do not support PIC, -DPIC is meaningless:
18862   *djgpp*)
18863     lt_prog_compiler_pic_CXX=
18864     ;;
18865   *)
18866     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18867     ;;
18868 esac
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
18870 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
18871
18872
18873
18874 #
18875 # Check to make sure the PIC flag actually works.
18876 #
18877 if test -n "$lt_prog_compiler_pic_CXX"; then
18878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18879 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18880 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
18881   $as_echo_n "(cached) " >&6
18882 else
18883   lt_cv_prog_compiler_pic_works_CXX=no
18884    ac_outfile=conftest.$ac_objext
18885    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18886    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18887    # Insert the option either (1) after the last *FLAGS variable, or
18888    # (2) before a word containing "conftest.", or (3) at the end.
18889    # Note that $ac_compile itself does not contain backslashes and begins
18890    # with a dollar sign (not a hyphen), so the echo should work correctly.
18891    # The option is referenced via a variable to avoid confusing sed.
18892    lt_compile=`echo "$ac_compile" | $SED \
18893    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18894    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18895    -e 's:$: $lt_compiler_flag:'`
18896    (eval echo "\"\$as_me:18896: $lt_compile\"" >&5)
18897    (eval "$lt_compile" 2>conftest.err)
18898    ac_status=$?
18899    cat conftest.err >&5
18900    echo "$as_me:18900: \$? = $ac_status" >&5
18901    if (exit $ac_status) && test -s "$ac_outfile"; then
18902      # The compiler can only warn and ignore the option if not recognized
18903      # So say no if there are warnings other than the usual output.
18904      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18905      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18906      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18907        lt_cv_prog_compiler_pic_works_CXX=yes
18908      fi
18909    fi
18910    $RM conftest*
18911
18912 fi
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18914 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18915
18916 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18917     case $lt_prog_compiler_pic_CXX in
18918      "" | " "*) ;;
18919      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18920      esac
18921 else
18922     lt_prog_compiler_pic_CXX=
18923      lt_prog_compiler_can_build_shared_CXX=no
18924 fi
18925
18926 fi
18927
18928
18929
18930 #
18931 # Check to make sure the static flag actually works.
18932 #
18933 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18935 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18936 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
18937   $as_echo_n "(cached) " >&6
18938 else
18939   lt_cv_prog_compiler_static_works_CXX=no
18940    save_LDFLAGS="$LDFLAGS"
18941    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18942    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18943    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18944      # The linker can only warn and ignore the option if not recognized
18945      # So say no if there are warnings
18946      if test -s conftest.err; then
18947        # Append any errors to the config.log.
18948        cat conftest.err 1>&5
18949        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18950        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18951        if diff conftest.exp conftest.er2 >/dev/null; then
18952          lt_cv_prog_compiler_static_works_CXX=yes
18953        fi
18954      else
18955        lt_cv_prog_compiler_static_works_CXX=yes
18956      fi
18957    fi
18958    $RM -r conftest*
18959    LDFLAGS="$save_LDFLAGS"
18960
18961 fi
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18963 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18964
18965 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18966     :
18967 else
18968     lt_prog_compiler_static_CXX=
18969 fi
18970
18971
18972
18973
18974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18975 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18976 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
18977   $as_echo_n "(cached) " >&6
18978 else
18979   lt_cv_prog_compiler_c_o_CXX=no
18980    $RM -r conftest 2>/dev/null
18981    mkdir conftest
18982    cd conftest
18983    mkdir out
18984    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18985
18986    lt_compiler_flag="-o out/conftest2.$ac_objext"
18987    # Insert the option either (1) after the last *FLAGS variable, or
18988    # (2) before a word containing "conftest.", or (3) at the end.
18989    # Note that $ac_compile itself does not contain backslashes and begins
18990    # with a dollar sign (not a hyphen), so the echo should work correctly.
18991    lt_compile=`echo "$ac_compile" | $SED \
18992    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18993    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18994    -e 's:$: $lt_compiler_flag:'`
18995    (eval echo "\"\$as_me:18995: $lt_compile\"" >&5)
18996    (eval "$lt_compile" 2>out/conftest.err)
18997    ac_status=$?
18998    cat out/conftest.err >&5
18999    echo "$as_me:18999: \$? = $ac_status" >&5
19000    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19001    then
19002      # The compiler can only warn and ignore the option if not recognized
19003      # So say no if there are warnings
19004      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19005      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19006      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19007        lt_cv_prog_compiler_c_o_CXX=yes
19008      fi
19009    fi
19010    chmod u+w . 2>&5
19011    $RM conftest*
19012    # SGI C++ compiler will create directory out/ii_files/ for
19013    # template instantiation
19014    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19015    $RM out/* && rmdir out
19016    cd ..
19017    $RM -r conftest
19018    $RM conftest*
19019
19020 fi
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19022 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19023
19024
19025
19026     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19027 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19028 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19029   $as_echo_n "(cached) " >&6
19030 else
19031   lt_cv_prog_compiler_c_o_CXX=no
19032    $RM -r conftest 2>/dev/null
19033    mkdir conftest
19034    cd conftest
19035    mkdir out
19036    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19037
19038    lt_compiler_flag="-o out/conftest2.$ac_objext"
19039    # Insert the option either (1) after the last *FLAGS variable, or
19040    # (2) before a word containing "conftest.", or (3) at the end.
19041    # Note that $ac_compile itself does not contain backslashes and begins
19042    # with a dollar sign (not a hyphen), so the echo should work correctly.
19043    lt_compile=`echo "$ac_compile" | $SED \
19044    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19045    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19046    -e 's:$: $lt_compiler_flag:'`
19047    (eval echo "\"\$as_me:19047: $lt_compile\"" >&5)
19048    (eval "$lt_compile" 2>out/conftest.err)
19049    ac_status=$?
19050    cat out/conftest.err >&5
19051    echo "$as_me:19051: \$? = $ac_status" >&5
19052    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19053    then
19054      # The compiler can only warn and ignore the option if not recognized
19055      # So say no if there are warnings
19056      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19057      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19058      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19059        lt_cv_prog_compiler_c_o_CXX=yes
19060      fi
19061    fi
19062    chmod u+w . 2>&5
19063    $RM conftest*
19064    # SGI C++ compiler will create directory out/ii_files/ for
19065    # template instantiation
19066    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19067    $RM out/* && rmdir out
19068    cd ..
19069    $RM -r conftest
19070    $RM conftest*
19071
19072 fi
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19074 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19075
19076
19077
19078
19079 hard_links="nottested"
19080 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19081   # do not overwrite the value of need_locks provided by the user
19082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19083 $as_echo_n "checking if we can lock with hard links... " >&6; }
19084   hard_links=yes
19085   $RM conftest*
19086   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19087   touch conftest.a
19088   ln conftest.a conftest.b 2>&5 || hard_links=no
19089   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19091 $as_echo "$hard_links" >&6; }
19092   if test "$hard_links" = no; then
19093     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19094 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19095     need_locks=warn
19096   fi
19097 else
19098   need_locks=no
19099 fi
19100
19101
19102
19103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19104 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19105
19106   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19107   case $host_os in
19108   aix[4-9]*)
19109     # If we're using GNU nm, then we don't want the "-C" option.
19110     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19111     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19112       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19113     else
19114       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19115     fi
19116     ;;
19117   pw32*)
19118     export_symbols_cmds_CXX="$ltdll_cmds"
19119   ;;
19120   cygwin* | mingw* | cegcc*)
19121     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'
19122   ;;
19123   *)
19124     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19125   ;;
19126   esac
19127   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19128
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19130 $as_echo "$ld_shlibs_CXX" >&6; }
19131 test "$ld_shlibs_CXX" = no && can_build_shared=no
19132
19133 with_gnu_ld_CXX=$with_gnu_ld
19134
19135
19136
19137
19138
19139
19140 #
19141 # Do we need to explicitly link libc?
19142 #
19143 case "x$archive_cmds_need_lc_CXX" in
19144 x|xyes)
19145   # Assume -lc should be added
19146   archive_cmds_need_lc_CXX=yes
19147
19148   if test "$enable_shared" = yes && test "$GCC" = yes; then
19149     case $archive_cmds_CXX in
19150     *'~'*)
19151       # FIXME: we may have to deal with multi-command sequences.
19152       ;;
19153     '$CC '*)
19154       # Test whether the compiler implicitly links with -lc since on some
19155       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19156       # to ld, don't add -lc before -lgcc.
19157       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19158 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19159 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19160   $as_echo_n "(cached) " >&6
19161 else
19162   $RM conftest*
19163         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19164
19165         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19166   (eval $ac_compile) 2>&5
19167   ac_status=$?
19168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19169   test $ac_status = 0; } 2>conftest.err; then
19170           soname=conftest
19171           lib=conftest
19172           libobjs=conftest.$ac_objext
19173           deplibs=
19174           wl=$lt_prog_compiler_wl_CXX
19175           pic_flag=$lt_prog_compiler_pic_CXX
19176           compiler_flags=-v
19177           linker_flags=-v
19178           verstring=
19179           output_objdir=.
19180           libname=conftest
19181           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19182           allow_undefined_flag_CXX=
19183           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19184   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19185   ac_status=$?
19186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19187   test $ac_status = 0; }
19188           then
19189             lt_cv_archive_cmds_need_lc_CXX=no
19190           else
19191             lt_cv_archive_cmds_need_lc_CXX=yes
19192           fi
19193           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19194         else
19195           cat conftest.err 1>&5
19196         fi
19197         $RM conftest*
19198
19199 fi
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19201 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19202       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19203       ;;
19204     esac
19205   fi
19206   ;;
19207 esac
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19273 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19274
19275 library_names_spec=
19276 libname_spec='lib$name'
19277 soname_spec=
19278 shrext_cmds=".so"
19279 postinstall_cmds=
19280 postuninstall_cmds=
19281 finish_cmds=
19282 finish_eval=
19283 shlibpath_var=
19284 shlibpath_overrides_runpath=unknown
19285 version_type=none
19286 dynamic_linker="$host_os ld.so"
19287 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19288 need_lib_prefix=unknown
19289 hardcode_into_libs=no
19290
19291 # when you set need_version to no, make sure it does not cause -set_version
19292 # flags to be left without arguments
19293 need_version=unknown
19294
19295 case $host_os in
19296 aix3*)
19297   version_type=linux
19298   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19299   shlibpath_var=LIBPATH
19300
19301   # AIX 3 has no versioning support, so we append a major version to the name.
19302   soname_spec='${libname}${release}${shared_ext}$major'
19303   ;;
19304
19305 aix[4-9]*)
19306   version_type=linux
19307   need_lib_prefix=no
19308   need_version=no
19309   hardcode_into_libs=yes
19310   if test "$host_cpu" = ia64; then
19311     # AIX 5 supports IA64
19312     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19313     shlibpath_var=LD_LIBRARY_PATH
19314   else
19315     # With GCC up to 2.95.x, collect2 would create an import file
19316     # for dependence libraries.  The import file would start with
19317     # the line `#! .'.  This would cause the generated library to
19318     # depend on `.', always an invalid library.  This was fixed in
19319     # development snapshots of GCC prior to 3.0.
19320     case $host_os in
19321       aix4 | aix4.[01] | aix4.[01].*)
19322       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19323            echo ' yes '
19324            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19325         :
19326       else
19327         can_build_shared=no
19328       fi
19329       ;;
19330     esac
19331     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19332     # soname into executable. Probably we can add versioning support to
19333     # collect2, so additional links can be useful in future.
19334     if test "$aix_use_runtimelinking" = yes; then
19335       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19336       # instead of lib<name>.a to let people know that these are not
19337       # typical AIX shared libraries.
19338       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19339     else
19340       # We preserve .a as extension for shared libraries through AIX4.2
19341       # and later when we are not doing run time linking.
19342       library_names_spec='${libname}${release}.a $libname.a'
19343       soname_spec='${libname}${release}${shared_ext}$major'
19344     fi
19345     shlibpath_var=LIBPATH
19346   fi
19347   ;;
19348
19349 amigaos*)
19350   case $host_cpu in
19351   powerpc)
19352     # Since July 2007 AmigaOS4 officially supports .so libraries.
19353     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19354     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19355     ;;
19356   m68k)
19357     library_names_spec='$libname.ixlibrary $libname.a'
19358     # Create ${libname}_ixlibrary.a entries in /sys/libs.
19359     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
19360     ;;
19361   esac
19362   ;;
19363
19364 beos*)
19365   library_names_spec='${libname}${shared_ext}'
19366   dynamic_linker="$host_os ld.so"
19367   shlibpath_var=LIBRARY_PATH
19368   ;;
19369
19370 bsdi[45]*)
19371   version_type=linux
19372   need_version=no
19373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19374   soname_spec='${libname}${release}${shared_ext}$major'
19375   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19376   shlibpath_var=LD_LIBRARY_PATH
19377   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19378   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19379   # the default ld.so.conf also contains /usr/contrib/lib and
19380   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19381   # libtool to hard-code these into programs
19382   ;;
19383
19384 cygwin* | mingw* | pw32* | cegcc*)
19385   version_type=windows
19386   shrext_cmds=".dll"
19387   need_version=no
19388   need_lib_prefix=no
19389
19390   case $GCC,$host_os in
19391   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19392     library_names_spec='$libname.dll.a'
19393     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19394     postinstall_cmds='base_file=`basename \${file}`~
19395       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19396       dldir=$destdir/`dirname \$dlpath`~
19397       test -d \$dldir || mkdir -p \$dldir~
19398       $install_prog $dir/$dlname \$dldir/$dlname~
19399       chmod a+x \$dldir/$dlname~
19400       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19401         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19402       fi'
19403     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19404       dlpath=$dir/\$dldll~
19405        $RM \$dlpath'
19406     shlibpath_overrides_runpath=yes
19407
19408     case $host_os in
19409     cygwin*)
19410       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19411       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19412       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19413       ;;
19414     mingw* | cegcc*)
19415       # MinGW DLLs use traditional 'lib' prefix
19416       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19417       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19418       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19419         # It is most probably a Windows format PATH printed by
19420         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19421         # path with ; separators, and with drive letters. We can handle the
19422         # drive letters (cygwin fileutils understands them), so leave them,
19423         # especially as we might pass files found there to a mingw objdump,
19424         # which wouldn't understand a cygwinified path. Ahh.
19425         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19426       else
19427         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19428       fi
19429       ;;
19430     pw32*)
19431       # pw32 DLLs use 'pw' prefix rather than 'lib'
19432       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19433       ;;
19434     esac
19435     ;;
19436
19437   *)
19438     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19439     ;;
19440   esac
19441   dynamic_linker='Win32 ld.exe'
19442   # FIXME: first we should search . and the directory the executable is in
19443   shlibpath_var=PATH
19444   ;;
19445
19446 darwin* | rhapsody*)
19447   dynamic_linker="$host_os dyld"
19448   version_type=darwin
19449   need_lib_prefix=no
19450   need_version=no
19451   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19452   soname_spec='${libname}${release}${major}$shared_ext'
19453   shlibpath_overrides_runpath=yes
19454   shlibpath_var=DYLD_LIBRARY_PATH
19455   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19456
19457   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19458   ;;
19459
19460 dgux*)
19461   version_type=linux
19462   need_lib_prefix=no
19463   need_version=no
19464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19465   soname_spec='${libname}${release}${shared_ext}$major'
19466   shlibpath_var=LD_LIBRARY_PATH
19467   ;;
19468
19469 freebsd1*)
19470   dynamic_linker=no
19471   ;;
19472
19473 freebsd* | dragonfly*)
19474   # DragonFly does not have aout.  When/if they implement a new
19475   # versioning mechanism, adjust this.
19476   if test -x /usr/bin/objformat; then
19477     objformat=`/usr/bin/objformat`
19478   else
19479     case $host_os in
19480     freebsd[123]*) objformat=aout ;;
19481     *) objformat=elf ;;
19482     esac
19483   fi
19484   version_type=freebsd-$objformat
19485   case $version_type in
19486     freebsd-elf*)
19487       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19488       need_version=no
19489       need_lib_prefix=no
19490       ;;
19491     freebsd-*)
19492       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19493       need_version=yes
19494       ;;
19495   esac
19496   shlibpath_var=LD_LIBRARY_PATH
19497   case $host_os in
19498   freebsd2*)
19499     shlibpath_overrides_runpath=yes
19500     ;;
19501   freebsd3.[01]* | freebsdelf3.[01]*)
19502     shlibpath_overrides_runpath=yes
19503     hardcode_into_libs=yes
19504     ;;
19505   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19506   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19507     shlibpath_overrides_runpath=no
19508     hardcode_into_libs=yes
19509     ;;
19510   *) # from 4.6 on, and DragonFly
19511     shlibpath_overrides_runpath=yes
19512     hardcode_into_libs=yes
19513     ;;
19514   esac
19515   ;;
19516
19517 gnu*)
19518   version_type=linux
19519   need_lib_prefix=no
19520   need_version=no
19521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19522   soname_spec='${libname}${release}${shared_ext}$major'
19523   shlibpath_var=LD_LIBRARY_PATH
19524   hardcode_into_libs=yes
19525   ;;
19526
19527 hpux9* | hpux10* | hpux11*)
19528   # Give a soname corresponding to the major version so that dld.sl refuses to
19529   # link against other versions.
19530   version_type=sunos
19531   need_lib_prefix=no
19532   need_version=no
19533   case $host_cpu in
19534   ia64*)
19535     shrext_cmds='.so'
19536     hardcode_into_libs=yes
19537     dynamic_linker="$host_os dld.so"
19538     shlibpath_var=LD_LIBRARY_PATH
19539     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19540     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19541     soname_spec='${libname}${release}${shared_ext}$major'
19542     if test "X$HPUX_IA64_MODE" = X32; then
19543       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19544     else
19545       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19546     fi
19547     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19548     ;;
19549   hppa*64*)
19550     shrext_cmds='.sl'
19551     hardcode_into_libs=yes
19552     dynamic_linker="$host_os dld.sl"
19553     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19554     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19556     soname_spec='${libname}${release}${shared_ext}$major'
19557     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19558     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19559     ;;
19560   *)
19561     shrext_cmds='.sl'
19562     dynamic_linker="$host_os dld.sl"
19563     shlibpath_var=SHLIB_PATH
19564     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19565     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19566     soname_spec='${libname}${release}${shared_ext}$major'
19567     ;;
19568   esac
19569   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19570   postinstall_cmds='chmod 555 $lib'
19571   ;;
19572
19573 interix[3-9]*)
19574   version_type=linux
19575   need_lib_prefix=no
19576   need_version=no
19577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19578   soname_spec='${libname}${release}${shared_ext}$major'
19579   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19580   shlibpath_var=LD_LIBRARY_PATH
19581   shlibpath_overrides_runpath=no
19582   hardcode_into_libs=yes
19583   ;;
19584
19585 irix5* | irix6* | nonstopux*)
19586   case $host_os in
19587     nonstopux*) version_type=nonstopux ;;
19588     *)
19589         if test "$lt_cv_prog_gnu_ld" = yes; then
19590                 version_type=linux
19591         else
19592                 version_type=irix
19593         fi ;;
19594   esac
19595   need_lib_prefix=no
19596   need_version=no
19597   soname_spec='${libname}${release}${shared_ext}$major'
19598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19599   case $host_os in
19600   irix5* | nonstopux*)
19601     libsuff= shlibsuff=
19602     ;;
19603   *)
19604     case $LD in # libtool.m4 will add one of these switches to LD
19605     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19606       libsuff= shlibsuff= libmagic=32-bit;;
19607     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19608       libsuff=32 shlibsuff=N32 libmagic=N32;;
19609     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19610       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19611     *) libsuff= shlibsuff= libmagic=never-match;;
19612     esac
19613     ;;
19614   esac
19615   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19616   shlibpath_overrides_runpath=no
19617   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19618   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19619   hardcode_into_libs=yes
19620   ;;
19621
19622 # No shared lib support for Linux oldld, aout, or coff.
19623 linux*oldld* | linux*aout* | linux*coff*)
19624   dynamic_linker=no
19625   ;;
19626
19627 # This must be Linux ELF.
19628 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19629   version_type=linux
19630   need_lib_prefix=no
19631   need_version=no
19632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19633   soname_spec='${libname}${release}${shared_ext}$major'
19634   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19635   shlibpath_var=LD_LIBRARY_PATH
19636   shlibpath_overrides_runpath=no
19637
19638   # Some binutils ld are patched to set DT_RUNPATH
19639   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
19640   $as_echo_n "(cached) " >&6
19641 else
19642   lt_cv_shlibpath_overrides_runpath=no
19643     save_LDFLAGS=$LDFLAGS
19644     save_libdir=$libdir
19645     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19646          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19647     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19648 /* end confdefs.h.  */
19649
19650 int
19651 main ()
19652 {
19653
19654   ;
19655   return 0;
19656 }
19657 _ACEOF
19658 if ac_fn_cxx_try_link "$LINENO"; then :
19659   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19660   lt_cv_shlibpath_overrides_runpath=yes
19661 fi
19662 fi
19663 rm -f core conftest.err conftest.$ac_objext \
19664     conftest$ac_exeext conftest.$ac_ext
19665     LDFLAGS=$save_LDFLAGS
19666     libdir=$save_libdir
19667
19668 fi
19669
19670   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19671
19672   # This implies no fast_install, which is unacceptable.
19673   # Some rework will be needed to allow for fast_install
19674   # before this can be enabled.
19675   hardcode_into_libs=yes
19676
19677   # Append ld.so.conf contents to the search path
19678   if test -f /etc/ld.so.conf; then
19679     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;/^$/d' | tr '\n' ' '`
19680     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19681   fi
19682
19683   # We used to test for /lib/ld.so.1 and disable shared libraries on
19684   # powerpc, because MkLinux only supported shared libraries with the
19685   # GNU dynamic linker.  Since this was broken with cross compilers,
19686   # most powerpc-linux boxes support dynamic linking these days and
19687   # people can always --disable-shared, the test was removed, and we
19688   # assume the GNU/Linux dynamic linker is in use.
19689   dynamic_linker='GNU/Linux ld.so'
19690   ;;
19691
19692 netbsd*)
19693   version_type=sunos
19694   need_lib_prefix=no
19695   need_version=no
19696   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19697     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19698     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19699     dynamic_linker='NetBSD (a.out) ld.so'
19700   else
19701     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19702     soname_spec='${libname}${release}${shared_ext}$major'
19703     dynamic_linker='NetBSD ld.elf_so'
19704   fi
19705   shlibpath_var=LD_LIBRARY_PATH
19706   shlibpath_overrides_runpath=yes
19707   hardcode_into_libs=yes
19708   ;;
19709
19710 newsos6)
19711   version_type=linux
19712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19713   shlibpath_var=LD_LIBRARY_PATH
19714   shlibpath_overrides_runpath=yes
19715   ;;
19716
19717 *nto* | *qnx*)
19718   version_type=qnx
19719   need_lib_prefix=no
19720   need_version=no
19721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19722   soname_spec='${libname}${release}${shared_ext}$major'
19723   shlibpath_var=LD_LIBRARY_PATH
19724   shlibpath_overrides_runpath=no
19725   hardcode_into_libs=yes
19726   dynamic_linker='ldqnx.so'
19727   ;;
19728
19729 openbsd*)
19730   version_type=sunos
19731   sys_lib_dlsearch_path_spec="/usr/lib"
19732   need_lib_prefix=no
19733   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19734   case $host_os in
19735     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
19736     *)                          need_version=no  ;;
19737   esac
19738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19739   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19740   shlibpath_var=LD_LIBRARY_PATH
19741   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19742     case $host_os in
19743       openbsd2.[89] | openbsd2.[89].*)
19744         shlibpath_overrides_runpath=no
19745         ;;
19746       *)
19747         shlibpath_overrides_runpath=yes
19748         ;;
19749       esac
19750   else
19751     shlibpath_overrides_runpath=yes
19752   fi
19753   ;;
19754
19755 os2*)
19756   libname_spec='$name'
19757   shrext_cmds=".dll"
19758   need_lib_prefix=no
19759   library_names_spec='$libname${shared_ext} $libname.a'
19760   dynamic_linker='OS/2 ld.exe'
19761   shlibpath_var=LIBPATH
19762   ;;
19763
19764 osf3* | osf4* | osf5*)
19765   version_type=osf
19766   need_lib_prefix=no
19767   need_version=no
19768   soname_spec='${libname}${release}${shared_ext}$major'
19769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19770   shlibpath_var=LD_LIBRARY_PATH
19771   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19772   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19773   ;;
19774
19775 rdos*)
19776   dynamic_linker=no
19777   ;;
19778
19779 solaris*)
19780   version_type=linux
19781   need_lib_prefix=no
19782   need_version=no
19783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19784   soname_spec='${libname}${release}${shared_ext}$major'
19785   shlibpath_var=LD_LIBRARY_PATH
19786   shlibpath_overrides_runpath=yes
19787   hardcode_into_libs=yes
19788   # ldd complains unless libraries are executable
19789   postinstall_cmds='chmod +x $lib'
19790   ;;
19791
19792 sunos4*)
19793   version_type=sunos
19794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19795   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19796   shlibpath_var=LD_LIBRARY_PATH
19797   shlibpath_overrides_runpath=yes
19798   if test "$with_gnu_ld" = yes; then
19799     need_lib_prefix=no
19800   fi
19801   need_version=yes
19802   ;;
19803
19804 sysv4 | sysv4.3*)
19805   version_type=linux
19806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19807   soname_spec='${libname}${release}${shared_ext}$major'
19808   shlibpath_var=LD_LIBRARY_PATH
19809   case $host_vendor in
19810     sni)
19811       shlibpath_overrides_runpath=no
19812       need_lib_prefix=no
19813       runpath_var=LD_RUN_PATH
19814       ;;
19815     siemens)
19816       need_lib_prefix=no
19817       ;;
19818     motorola)
19819       need_lib_prefix=no
19820       need_version=no
19821       shlibpath_overrides_runpath=no
19822       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19823       ;;
19824   esac
19825   ;;
19826
19827 sysv4*MP*)
19828   if test -d /usr/nec ;then
19829     version_type=linux
19830     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19831     soname_spec='$libname${shared_ext}.$major'
19832     shlibpath_var=LD_LIBRARY_PATH
19833   fi
19834   ;;
19835
19836 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19837   version_type=freebsd-elf
19838   need_lib_prefix=no
19839   need_version=no
19840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19841   soname_spec='${libname}${release}${shared_ext}$major'
19842   shlibpath_var=LD_LIBRARY_PATH
19843   shlibpath_overrides_runpath=yes
19844   hardcode_into_libs=yes
19845   if test "$with_gnu_ld" = yes; then
19846     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19847   else
19848     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19849     case $host_os in
19850       sco3.2v5*)
19851         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19852         ;;
19853     esac
19854   fi
19855   sys_lib_dlsearch_path_spec='/usr/lib'
19856   ;;
19857
19858 tpf*)
19859   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19860   version_type=linux
19861   need_lib_prefix=no
19862   need_version=no
19863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19864   shlibpath_var=LD_LIBRARY_PATH
19865   shlibpath_overrides_runpath=no
19866   hardcode_into_libs=yes
19867   ;;
19868
19869 uts4*)
19870   version_type=linux
19871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19872   soname_spec='${libname}${release}${shared_ext}$major'
19873   shlibpath_var=LD_LIBRARY_PATH
19874   ;;
19875
19876 *)
19877   dynamic_linker=no
19878   ;;
19879 esac
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19881 $as_echo "$dynamic_linker" >&6; }
19882 test "$dynamic_linker" = no && can_build_shared=no
19883
19884 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19885 if test "$GCC" = yes; then
19886   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19887 fi
19888
19889 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19890   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19891 fi
19892 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19893   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19894 fi
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19932 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19933 hardcode_action_CXX=
19934 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19935    test -n "$runpath_var_CXX" ||
19936    test "X$hardcode_automatic_CXX" = "Xyes" ; then
19937
19938   # We can hardcode non-existent directories.
19939   if test "$hardcode_direct_CXX" != no &&
19940      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19941      # have to relink, otherwise we might link with an installed library
19942      # when we should be linking with a yet-to-be-installed one
19943      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19944      test "$hardcode_minus_L_CXX" != no; then
19945     # Linking always hardcodes the temporary library directory.
19946     hardcode_action_CXX=relink
19947   else
19948     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19949     hardcode_action_CXX=immediate
19950   fi
19951 else
19952   # We cannot hardcode anything, or else we can only hardcode existing
19953   # directories.
19954   hardcode_action_CXX=unsupported
19955 fi
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19957 $as_echo "$hardcode_action_CXX" >&6; }
19958
19959 if test "$hardcode_action_CXX" = relink ||
19960    test "$inherit_rpath_CXX" = yes; then
19961   # Fast installation is not supported
19962   enable_fast_install=no
19963 elif test "$shlibpath_overrides_runpath" = yes ||
19964      test "$enable_shared" = no; then
19965   # Fast installation is not necessary
19966   enable_fast_install=needless
19967 fi
19968
19969
19970
19971
19972
19973
19974
19975   fi # test -n "$compiler"
19976
19977   CC=$lt_save_CC
19978   LDCXX=$LD
19979   LD=$lt_save_LD
19980   GCC=$lt_save_GCC
19981   with_gnu_ld=$lt_save_with_gnu_ld
19982   lt_cv_path_LDCXX=$lt_cv_path_LD
19983   lt_cv_path_LD=$lt_save_path_LD
19984   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19985   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19986 fi # test "$_lt_caught_CXX_error" != yes
19987
19988 ac_ext=c
19989 ac_cpp='$CPP $CPPFLAGS'
19990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009 # Only expand once:
20010
20011
20012
20013
20014
20015 # Identify the assembler which will work hand-in-glove with the newly
20016 # built GCC, so that we can examine its features.  This is the assembler
20017 # which will be driven by the driver program.
20018 #
20019 # If build != host, and we aren't building gas in-tree, we identify a
20020 # build->target assembler and hope that it will have the same features
20021 # as the host->target assembler we'll be using.
20022 gcc_cv_gas_major_version=
20023 gcc_cv_gas_minor_version=
20024 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20025
20026 if test "${gcc_cv_as+set}" = set; then :
20027
20028 else
20029
20030 if test -x "$DEFAULT_ASSEMBLER"; then
20031         gcc_cv_as="$DEFAULT_ASSEMBLER"
20032 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20033      && test -f ../gas/Makefile \
20034      && test x$build = x$host; then
20035         gcc_cv_as=../gas/as-new$build_exeext
20036 elif test -x as$build_exeext; then
20037         # Build using assembler in the current directory.
20038         gcc_cv_as=./as$build_exeext
20039 elif test -x $AS_FOR_TARGET; then
20040         gcc_cv_as="$AS_FOR_TARGET"
20041 else
20042         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20043 set dummy $AS_FOR_TARGET; ac_word=$2
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20045 $as_echo_n "checking for $ac_word... " >&6; }
20046 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20047   $as_echo_n "(cached) " >&6
20048 else
20049   case $gcc_cv_as in
20050   [\\/]* | ?:[\\/]*)
20051   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20052   ;;
20053   *)
20054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20055 for as_dir in $PATH
20056 do
20057   IFS=$as_save_IFS
20058   test -z "$as_dir" && as_dir=.
20059     for ac_exec_ext in '' $ac_executable_extensions; do
20060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20061     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20063     break 2
20064   fi
20065 done
20066   done
20067 IFS=$as_save_IFS
20068
20069   ;;
20070 esac
20071 fi
20072 gcc_cv_as=$ac_cv_path_gcc_cv_as
20073 if test -n "$gcc_cv_as"; then
20074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20075 $as_echo "$gcc_cv_as" >&6; }
20076 else
20077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20078 $as_echo "no" >&6; }
20079 fi
20080
20081
20082 fi
20083 fi
20084
20085 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20086
20087 case "$ORIGINAL_AS_FOR_TARGET" in
20088   ./as | ./as$build_exeext) ;;
20089   *) ac_config_files="$ac_config_files as:exec-tool.in"
20090  ;;
20091 esac
20092
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20094 $as_echo_n "checking what assembler to use... " >&6; }
20095 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20096   # Single tree build which includes gas.  We want to prefer it
20097   # over whatever linker top-level may have detected, since
20098   # we'll use what we're building after installation anyway.
20099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20100 $as_echo "newly built gas" >&6; }
20101   in_tree_gas=yes
20102   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20103 for f in $gcc_cv_as_bfd_srcdir/configure \
20104          $gcc_cv_as_gas_srcdir/configure \
20105          $gcc_cv_as_gas_srcdir/configure.in \
20106          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20107   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20108   if test x$gcc_cv_gas_version != x; then
20109     break
20110   fi
20111 done
20112 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20113 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20114 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20115 case $gcc_cv_gas_patch_version in
20116   "") gcc_cv_gas_patch_version="0" ;;
20117 esac
20118 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20119                             + $gcc_cv_gas_minor_version \) \* 1000 \
20120                             + $gcc_cv_gas_patch_version`
20121
20122   in_tree_gas_is_elf=no
20123   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20124      || (grep 'obj_format = multi' ../gas/Makefile \
20125          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20126   then
20127     in_tree_gas_is_elf=yes
20128   fi
20129 else
20130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20131 $as_echo "$gcc_cv_as" >&6; }
20132   in_tree_gas=no
20133 fi
20134
20135 # Identify the linker which will work hand-in-glove with the newly
20136 # built GCC, so that we can examine its features.  This is the linker
20137 # which will be driven by the driver program.
20138 #
20139 # If build != host, and we aren't building gas in-tree, we identify a
20140 # build->target linker and hope that it will have the same features
20141 # as the host->target linker we'll be using.
20142 gcc_cv_gld_major_version=
20143 gcc_cv_gld_minor_version=
20144 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20145 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20146
20147 if test "${gcc_cv_ld+set}" = set; then :
20148
20149 else
20150
20151 if test -x "$DEFAULT_LINKER"; then
20152         gcc_cv_ld="$DEFAULT_LINKER"
20153 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20154      && test -f ../ld/Makefile \
20155      && test x$build = x$host; then
20156         gcc_cv_ld=../ld/ld-new$build_exeext
20157 elif test -x collect-ld$build_exeext; then
20158         # Build using linker in the current directory.
20159         gcc_cv_ld=./collect-ld$build_exeext
20160 elif test -x $LD_FOR_TARGET; then
20161         gcc_cv_ld="$LD_FOR_TARGET"
20162 else
20163         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20164 set dummy $LD_FOR_TARGET; ac_word=$2
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20166 $as_echo_n "checking for $ac_word... " >&6; }
20167 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20168   $as_echo_n "(cached) " >&6
20169 else
20170   case $gcc_cv_ld in
20171   [\\/]* | ?:[\\/]*)
20172   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20173   ;;
20174   *)
20175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20176 for as_dir in $PATH
20177 do
20178   IFS=$as_save_IFS
20179   test -z "$as_dir" && as_dir=.
20180     for ac_exec_ext in '' $ac_executable_extensions; do
20181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20182     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20184     break 2
20185   fi
20186 done
20187   done
20188 IFS=$as_save_IFS
20189
20190   ;;
20191 esac
20192 fi
20193 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20194 if test -n "$gcc_cv_ld"; then
20195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20196 $as_echo "$gcc_cv_ld" >&6; }
20197 else
20198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20199 $as_echo "no" >&6; }
20200 fi
20201
20202
20203 fi
20204 fi
20205
20206 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20207
20208 case "$ORIGINAL_LD_FOR_TARGET" in
20209   ./collect-ld | ./collect-ld$build_exeext) ;;
20210   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20211  ;;
20212 esac
20213
20214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20215 $as_echo_n "checking what linker to use... " >&6; }
20216 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20217         # Single tree build which includes ld.  We want to prefer it
20218         # over whatever linker top-level may have detected, since
20219         # we'll use what we're building after installation anyway.
20220         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20221 $as_echo "newly built ld" >&6; }
20222         in_tree_ld=yes
20223         in_tree_ld_is_elf=no
20224         if (grep 'EMUL = .*elf' ../ld/Makefile \
20225             || grep 'EMUL = .*linux' ../ld/Makefile \
20226             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20227           in_tree_ld_is_elf=yes
20228         fi
20229         for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
20230         do
20231                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20232                 if test x$gcc_cv_gld_version != x; then
20233                         break
20234                 fi
20235         done
20236         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20237         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20238 else
20239         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20240 $as_echo "$gcc_cv_ld" >&6; }
20241         in_tree_ld=no
20242 fi
20243
20244 # Figure out what nm we will be using.
20245 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20246 if test "${gcc_cv_nm+set}" = set; then :
20247
20248 else
20249
20250 if test -f $gcc_cv_binutils_srcdir/configure.in \
20251      && test -f ../binutils/Makefile \
20252      && test x$build = x$host; then
20253         gcc_cv_nm=../binutils/nm-new$build_exeext
20254 elif test -x nm$build_exeext; then
20255         gcc_cv_nm=./nm$build_exeext
20256 elif test -x $NM_FOR_TARGET; then
20257         gcc_cv_nm="$NM_FOR_TARGET"
20258 else
20259         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20260 set dummy $NM_FOR_TARGET; ac_word=$2
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20262 $as_echo_n "checking for $ac_word... " >&6; }
20263 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20264   $as_echo_n "(cached) " >&6
20265 else
20266   case $gcc_cv_nm in
20267   [\\/]* | ?:[\\/]*)
20268   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20269   ;;
20270   *)
20271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20272 for as_dir in $PATH
20273 do
20274   IFS=$as_save_IFS
20275   test -z "$as_dir" && as_dir=.
20276     for ac_exec_ext in '' $ac_executable_extensions; do
20277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20278     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20280     break 2
20281   fi
20282 done
20283   done
20284 IFS=$as_save_IFS
20285
20286   ;;
20287 esac
20288 fi
20289 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20290 if test -n "$gcc_cv_nm"; then
20291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20292 $as_echo "$gcc_cv_nm" >&6; }
20293 else
20294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20295 $as_echo "no" >&6; }
20296 fi
20297
20298
20299 fi
20300 fi
20301
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20303 $as_echo_n "checking what nm to use... " >&6; }
20304 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20305         # Single tree build which includes binutils.
20306         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20307 $as_echo "newly built nm" >&6; }
20308         in_tree_nm=yes
20309 else
20310         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20311 $as_echo "$gcc_cv_nm" >&6; }
20312         in_tree_nm=no
20313 fi
20314
20315 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20316
20317 case "$ORIGINAL_NM_FOR_TARGET" in
20318   ./nm | ./nm$build_exeext) ;;
20319   *) ac_config_files="$ac_config_files nm:exec-tool.in"
20320  ;;
20321 esac
20322
20323
20324 # Figure out what objdump we will be using.
20325 if test "${gcc_cv_objdump+set}" = set; then :
20326
20327 else
20328
20329 if test -f $gcc_cv_binutils_srcdir/configure.in \
20330      && test -f ../binutils/Makefile \
20331      && test x$build = x$host; then
20332         # Single tree build which includes binutils.
20333         gcc_cv_objdump=../binutils/objdump$build_exeext
20334 elif test -x objdump$build_exeext; then
20335         gcc_cv_objdump=./objdump$build_exeext
20336 elif test -x $OBJDUMP_FOR_TARGET; then
20337         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20338 else
20339         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20340 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20342 $as_echo_n "checking for $ac_word... " >&6; }
20343 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20344   $as_echo_n "(cached) " >&6
20345 else
20346   case $gcc_cv_objdump in
20347   [\\/]* | ?:[\\/]*)
20348   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20349   ;;
20350   *)
20351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20352 for as_dir in $PATH
20353 do
20354   IFS=$as_save_IFS
20355   test -z "$as_dir" && as_dir=.
20356     for ac_exec_ext in '' $ac_executable_extensions; do
20357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20358     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20360     break 2
20361   fi
20362 done
20363   done
20364 IFS=$as_save_IFS
20365
20366   ;;
20367 esac
20368 fi
20369 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20370 if test -n "$gcc_cv_objdump"; then
20371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20372 $as_echo "$gcc_cv_objdump" >&6; }
20373 else
20374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20375 $as_echo "no" >&6; }
20376 fi
20377
20378
20379 fi
20380 fi
20381
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20383 $as_echo_n "checking what objdump to use... " >&6; }
20384 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20385         # Single tree build which includes binutils.
20386         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20387 $as_echo "newly built objdump" >&6; }
20388 elif test x$gcc_cv_objdump = x; then
20389         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20390 $as_echo "not found" >&6; }
20391 else
20392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20393 $as_echo "$gcc_cv_objdump" >&6; }
20394 fi
20395
20396 # Figure out what readelf we will be using.
20397 if test "${gcc_cv_readelf+set}" = set; then :
20398
20399 else
20400
20401 if test -f $gcc_cv_binutils_srcdir/configure.in \
20402      && test -f ../binutils/Makefile \
20403      && test x$build = x$host; then
20404         # Single tree build which includes binutils.
20405         gcc_cv_readelf=../binutils/readelf$build_exeext
20406 elif test -x readelf$build_exeext; then
20407         gcc_cv_readelf=./readelf$build_exeext
20408 else
20409         # Extract the first word of "readelf", so it can be a program name with args.
20410 set dummy readelf; ac_word=$2
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20412 $as_echo_n "checking for $ac_word... " >&6; }
20413 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20414   $as_echo_n "(cached) " >&6
20415 else
20416   case $gcc_cv_readelf in
20417   [\\/]* | ?:[\\/]*)
20418   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20419   ;;
20420   *)
20421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20422 for as_dir in $PATH
20423 do
20424   IFS=$as_save_IFS
20425   test -z "$as_dir" && as_dir=.
20426     for ac_exec_ext in '' $ac_executable_extensions; do
20427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20428     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20430     break 2
20431   fi
20432 done
20433   done
20434 IFS=$as_save_IFS
20435
20436   ;;
20437 esac
20438 fi
20439 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20440 if test -n "$gcc_cv_readelf"; then
20441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20442 $as_echo "$gcc_cv_readelf" >&6; }
20443 else
20444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20445 $as_echo "no" >&6; }
20446 fi
20447
20448
20449 fi
20450 fi
20451
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20453 $as_echo_n "checking what readelf to use... " >&6; }
20454 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20455         # Single tree build which includes binutils.
20456         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20457 $as_echo "newly built readelf" >&6; }
20458 elif test x$gcc_cv_readelf = x; then
20459         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20460 $as_echo "not found" >&6; }
20461 else
20462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20463 $as_echo "$gcc_cv_readelf" >&6; }
20464 fi
20465
20466 # Figure out what assembler alignment features are present.
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20468 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20469 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20470   $as_echo_n "(cached) " >&6
20471 else
20472   gcc_cv_as_balign_and_p2align=no
20473     if test $in_tree_gas = yes; then
20474     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20475   then gcc_cv_as_balign_and_p2align=yes
20476 fi
20477   elif test x$gcc_cv_as != x; then
20478     echo '.balign 4
20479 .p2align 2' > conftest.s
20480     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20481   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20482   (eval $ac_try) 2>&5
20483   ac_status=$?
20484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20485   test $ac_status = 0; }; }
20486     then
20487         gcc_cv_as_balign_and_p2align=yes
20488     else
20489       echo "configure: failed program was" >&5
20490       cat conftest.s >&5
20491     fi
20492     rm -f conftest.o conftest.s
20493   fi
20494 fi
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
20496 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
20497 if test $gcc_cv_as_balign_and_p2align = yes; then
20498
20499 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
20500
20501 fi
20502
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
20504 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
20505 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
20506   $as_echo_n "(cached) " >&6
20507 else
20508   gcc_cv_as_max_skip_p2align=no
20509     if test $in_tree_gas = yes; then
20510     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20511   then gcc_cv_as_max_skip_p2align=yes
20512 fi
20513   elif test x$gcc_cv_as != x; then
20514     echo '.p2align 4,,7' > conftest.s
20515     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20516   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20517   (eval $ac_try) 2>&5
20518   ac_status=$?
20519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20520   test $ac_status = 0; }; }
20521     then
20522         gcc_cv_as_max_skip_p2align=yes
20523     else
20524       echo "configure: failed program was" >&5
20525       cat conftest.s >&5
20526     fi
20527     rm -f conftest.o conftest.s
20528   fi
20529 fi
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
20531 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
20532 if test $gcc_cv_as_max_skip_p2align = yes; then
20533
20534 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
20535
20536 fi
20537
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
20539 $as_echo_n "checking assembler for .literal16... " >&6; }
20540 if test "${gcc_cv_as_literal16+set}" = set; then :
20541   $as_echo_n "(cached) " >&6
20542 else
20543   gcc_cv_as_literal16=no
20544     if test $in_tree_gas = yes; then
20545     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20546   then gcc_cv_as_literal16=yes
20547 fi
20548   elif test x$gcc_cv_as != x; then
20549     echo '.literal16' > conftest.s
20550     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20551   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20552   (eval $ac_try) 2>&5
20553   ac_status=$?
20554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20555   test $ac_status = 0; }; }
20556     then
20557         gcc_cv_as_literal16=yes
20558     else
20559       echo "configure: failed program was" >&5
20560       cat conftest.s >&5
20561     fi
20562     rm -f conftest.o conftest.s
20563   fi
20564 fi
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
20566 $as_echo "$gcc_cv_as_literal16" >&6; }
20567 if test $gcc_cv_as_literal16 = yes; then
20568
20569 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
20570
20571 fi
20572
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
20574 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
20575 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
20576   $as_echo_n "(cached) " >&6
20577 else
20578   gcc_cv_as_subsection_m1=no
20579     if test $in_tree_gas = yes; then
20580     if test $in_tree_gas_is_elf = yes \
20581   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20582   then gcc_cv_as_subsection_m1=yes
20583 fi
20584   elif test x$gcc_cv_as != x; then
20585     echo 'conftest_label1: .word 0
20586 .subsection -1
20587 conftest_label2: .word 0
20588 .previous' > conftest.s
20589     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20590   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20591   (eval $ac_try) 2>&5
20592   ac_status=$?
20593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20594   test $ac_status = 0; }; }
20595     then
20596         if test x$gcc_cv_nm != x; then
20597     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
20598     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
20599     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
20600     then :
20601     else gcc_cv_as_subsection_m1=yes
20602     fi
20603     rm -f conftest.nm1 conftest.nm2
20604   fi
20605     else
20606       echo "configure: failed program was" >&5
20607       cat conftest.s >&5
20608     fi
20609     rm -f conftest.o conftest.s
20610   fi
20611 fi
20612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
20613 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
20614 if test $gcc_cv_as_subsection_m1 = yes; then
20615
20616 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
20617
20618 fi
20619
20620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
20621 $as_echo_n "checking assembler for .weak... " >&6; }
20622 if test "${gcc_cv_as_weak+set}" = set; then :
20623   $as_echo_n "(cached) " >&6
20624 else
20625   gcc_cv_as_weak=no
20626     if test $in_tree_gas = yes; then
20627     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
20628   then gcc_cv_as_weak=yes
20629 fi
20630   elif test x$gcc_cv_as != x; then
20631     echo '      .weak foobar' > conftest.s
20632     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20633   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20634   (eval $ac_try) 2>&5
20635   ac_status=$?
20636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20637   test $ac_status = 0; }; }
20638     then
20639         gcc_cv_as_weak=yes
20640     else
20641       echo "configure: failed program was" >&5
20642       cat conftest.s >&5
20643     fi
20644     rm -f conftest.o conftest.s
20645   fi
20646 fi
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
20648 $as_echo "$gcc_cv_as_weak" >&6; }
20649 if test $gcc_cv_as_weak = yes; then
20650
20651 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
20652
20653 fi
20654
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
20656 $as_echo_n "checking assembler for .weakref... " >&6; }
20657 if test "${gcc_cv_as_weakref+set}" = set; then :
20658   $as_echo_n "(cached) " >&6
20659 else
20660   gcc_cv_as_weakref=no
20661     if test $in_tree_gas = yes; then
20662     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
20663   then gcc_cv_as_weakref=yes
20664 fi
20665   elif test x$gcc_cv_as != x; then
20666     echo '      .weakref foobar, barfnot' > conftest.s
20667     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20668   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20669   (eval $ac_try) 2>&5
20670   ac_status=$?
20671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20672   test $ac_status = 0; }; }
20673     then
20674         gcc_cv_as_weakref=yes
20675     else
20676       echo "configure: failed program was" >&5
20677       cat conftest.s >&5
20678     fi
20679     rm -f conftest.o conftest.s
20680   fi
20681 fi
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
20683 $as_echo "$gcc_cv_as_weakref" >&6; }
20684 if test $gcc_cv_as_weakref = yes; then
20685
20686 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
20687
20688 fi
20689
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
20691 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
20692 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
20693   $as_echo_n "(cached) " >&6
20694 else
20695   gcc_cv_as_nsubspa_comdat=no
20696     if test $in_tree_gas = yes; then
20697     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
20698   then gcc_cv_as_nsubspa_comdat=yes
20699 fi
20700   elif test x$gcc_cv_as != x; then
20701     echo '      .SPACE $TEXT$
20702         .NSUBSPA $CODE$,COMDAT' > conftest.s
20703     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20704   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20705   (eval $ac_try) 2>&5
20706   ac_status=$?
20707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20708   test $ac_status = 0; }; }
20709     then
20710         gcc_cv_as_nsubspa_comdat=yes
20711     else
20712       echo "configure: failed program was" >&5
20713       cat conftest.s >&5
20714     fi
20715     rm -f conftest.o conftest.s
20716   fi
20717 fi
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
20719 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
20720 if test $gcc_cv_as_nsubspa_comdat = yes; then
20721
20722 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
20723
20724 fi
20725
20726 # .hidden needs to be supported in both the assembler and the linker,
20727 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
20728 # This is irritatingly difficult to feature test for; we have to check the
20729 # date string after the version number.  If we've got an in-tree
20730 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
20731 # to be safe.
20732 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
20734 $as_echo_n "checking assembler for .hidden... " >&6; }
20735 if test "${gcc_cv_as_hidden+set}" = set; then :
20736   $as_echo_n "(cached) " >&6
20737 else
20738   gcc_cv_as_hidden=no
20739     if test $in_tree_gas = yes; then
20740     if test $in_tree_gas_is_elf = yes \
20741   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
20742   then gcc_cv_as_hidden=yes
20743 fi
20744   elif test x$gcc_cv_as != x; then
20745     echo '      .hidden foobar
20746 foobar:' > conftest.s
20747     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20748   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20749   (eval $ac_try) 2>&5
20750   ac_status=$?
20751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20752   test $ac_status = 0; }; }
20753     then
20754         gcc_cv_as_hidden=yes
20755     else
20756       echo "configure: failed program was" >&5
20757       cat conftest.s >&5
20758     fi
20759     rm -f conftest.o conftest.s
20760   fi
20761 fi
20762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
20763 $as_echo "$gcc_cv_as_hidden" >&6; }
20764
20765
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
20767 $as_echo_n "checking linker for .hidden support... " >&6; }
20768 if test "${gcc_cv_ld_hidden+set}" = set; then :
20769   $as_echo_n "(cached) " >&6
20770 else
20771   if test $in_tree_ld = yes ; then
20772   gcc_cv_ld_hidden=no
20773   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 \
20774      && test $in_tree_ld_is_elf = yes; then
20775      gcc_cv_ld_hidden=yes
20776   fi
20777 else
20778   gcc_cv_ld_hidden=yes
20779   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
20780   if echo "$ld_ver" | grep GNU > /dev/null; then
20781     ld_vers=`echo $ld_ver | sed -n \
20782         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20783     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'`
20784     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
20785     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
20786     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20787     if test 0"$ld_date" -lt 20020404; then
20788       if test -n "$ld_date"; then
20789         # If there was date string, but was earlier than 2002-04-04, fail
20790         gcc_cv_ld_hidden=no
20791       elif test -z "$ld_vers"; then
20792         # If there was no date string nor ld version number, something is wrong
20793         gcc_cv_ld_hidden=no
20794       else
20795         test -z "$ld_vers_patch" && ld_vers_patch=0
20796         if test "$ld_vers_major" -lt 2; then
20797           gcc_cv_ld_hidden=no
20798         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
20799           gcc_cv_ld_hidden="no"
20800         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
20801           gcc_cv_ld_hidden=no
20802         fi
20803       fi
20804     fi
20805   else
20806     case "${target}" in
20807       hppa64*-*-hpux* | ia64*-*-hpux*)
20808         gcc_cv_ld_hidden=yes
20809         ;;
20810       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
20811         gcc_cv_ld_hidden=yes
20812         ;;
20813       *)
20814         gcc_cv_ld_hidden=no
20815         ;;
20816     esac
20817   fi
20818 fi
20819 fi
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
20821 $as_echo "$gcc_cv_ld_hidden" >&6; }
20822 libgcc_visibility=no
20823
20824
20825 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
20826   libgcc_visibility=yes
20827
20828 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
20829
20830 fi
20831
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
20833 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
20834 gcc_cv_ld_ro_rw_mix=unknown
20835 if test $in_tree_ld = yes ; then
20836   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 \
20837      && test $in_tree_ld_is_elf = yes; then
20838     gcc_cv_ld_ro_rw_mix=read-write
20839   fi
20840 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
20841   echo '.section myfoosect, "a"' > conftest1.s
20842   echo '.section myfoosect, "aw"' > conftest2.s
20843   echo '.byte 1' >> conftest2.s
20844   echo '.section myfoosect, "a"' > conftest3.s
20845   echo '.byte 0' >> conftest3.s
20846   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
20847      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
20848      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
20849      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
20850         conftest2.o conftest3.o > /dev/null 2>&1; then
20851     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
20852                          | sed -e '/myfoosect/!d' -e N`
20853     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
20854       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
20855         gcc_cv_ld_ro_rw_mix=read-only
20856       else
20857         gcc_cv_ld_ro_rw_mix=read-write
20858       fi
20859     fi
20860   fi
20861   rm -f conftest.* conftest[123].*
20862 fi
20863 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
20864
20865 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
20866
20867 fi
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
20869 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
20870
20871 # Check if we have .[us]leb128, and support symbol arithmetic with it.
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
20873 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
20874 if test "${gcc_cv_as_leb128+set}" = set; then :
20875   $as_echo_n "(cached) " >&6
20876 else
20877   gcc_cv_as_leb128=no
20878     if test $in_tree_gas = yes; then
20879     if test $in_tree_gas_is_elf = yes \
20880   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
20881   then gcc_cv_as_leb128=yes
20882 fi
20883   elif test x$gcc_cv_as != x; then
20884     echo '      .data
20885         .uleb128 L2 - L1
20886 L1:
20887         .uleb128 1280
20888         .sleb128 -1010
20889 L2:' > conftest.s
20890     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20891   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20892   (eval $ac_try) 2>&5
20893   ac_status=$?
20894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20895   test $ac_status = 0; }; }
20896     then
20897         # GAS versions before 2.11 do not support uleb128,
20898   # despite appearing to.
20899   # ??? There exists an elf-specific test that will crash
20900   # the assembler.  Perhaps it's better to figure out whether
20901   # arbitrary sections are supported and try the test.
20902   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
20903   if echo "$as_ver" | grep GNU > /dev/null; then
20904     as_vers=`echo $as_ver | sed -n \
20905         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20906     as_major=`expr "$as_vers" : '\([0-9]*\)'`
20907     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
20908     if test $as_major -eq 2 && test $as_minor -lt 11
20909     then :
20910     else gcc_cv_as_leb128=yes
20911     fi
20912   fi
20913     else
20914       echo "configure: failed program was" >&5
20915       cat conftest.s >&5
20916     fi
20917     rm -f conftest.o conftest.s
20918   fi
20919 fi
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
20921 $as_echo "$gcc_cv_as_leb128" >&6; }
20922 if test $gcc_cv_as_leb128 = yes; then
20923
20924 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
20925
20926 fi
20927
20928 # Check if we have assembler support for unwind directives.
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
20930 $as_echo_n "checking assembler for cfi directives... " >&6; }
20931 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
20932   $as_echo_n "(cached) " >&6
20933 else
20934   gcc_cv_as_cfi_directive=no
20935   if test x$gcc_cv_as != x; then
20936     echo '      .text
20937         .cfi_startproc
20938         .cfi_offset 0, 0
20939         .cfi_same_value 1
20940         .cfi_def_cfa 1, 2
20941         .cfi_escape 1, 2, 3, 4, 5
20942         .cfi_endproc' > conftest.s
20943     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20944   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20945   (eval $ac_try) 2>&5
20946   ac_status=$?
20947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20948   test $ac_status = 0; }; }
20949     then
20950         case "$target" in
20951   *-*-solaris*)
20952     # If the linker used on Solaris (like Sun ld) isn't capable of merging
20953     # read-only and read-write sections, we need to make sure that the
20954     # assembler used emits read-write .eh_frame sections.
20955     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
20956       if test "x$gcc_cv_objdump" != x; then
20957         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
20958                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
20959           gcc_cv_as_cfi_directive=no
20960         else
20961           gcc_cv_as_cfi_directive=yes
20962         fi
20963       else
20964         # no objdump, err on the side of caution
20965         gcc_cv_as_cfi_directive=no
20966       fi
20967     else
20968       gcc_cv_as_cfi_directive=yes
20969     fi
20970     ;;
20971   *-*-*)
20972     gcc_cv_as_cfi_directive=yes
20973     ;;
20974 esac
20975     else
20976       echo "configure: failed program was" >&5
20977       cat conftest.s >&5
20978     fi
20979     rm -f conftest.o conftest.s
20980   fi
20981 fi
20982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
20983 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
20984
20985 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
20987 $as_echo_n "checking assembler for working cfi advance... " >&6; }
20988 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
20989   $as_echo_n "(cached) " >&6
20990 else
20991   gcc_cv_as_cfi_advance_working=no
20992   if test x$gcc_cv_as != x; then
20993     echo '      .text
20994         .cfi_startproc
20995         .cfi_adjust_cfa_offset 64
20996         .skip 512, 0
20997         .cfi_adjust_cfa_offset 128
20998         .cfi_endproc' > conftest.s
20999     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21000   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21001   (eval $ac_try) 2>&5
21002   ac_status=$?
21003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21004   test $ac_status = 0; }; }
21005     then
21006
21007 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21008     | grep 'DW_CFA_advance_loc[12]:[    ][      ]*512[  ]' >/dev/null; then
21009    gcc_cv_as_cfi_advance_working=yes
21010 fi
21011
21012     else
21013       echo "configure: failed program was" >&5
21014       cat conftest.s >&5
21015     fi
21016     rm -f conftest.o conftest.s
21017   fi
21018 fi
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21020 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21021
21022 else
21023   # no readelf, err on the side of caution
21024   gcc_cv_as_cfi_advance_working=no
21025 fi
21026
21027 cat >>confdefs.h <<_ACEOF
21028 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21029        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21030 _ACEOF
21031
21032
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21034 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21035 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21036   $as_echo_n "(cached) " >&6
21037 else
21038   gcc_cv_as_cfi_personality_directive=no
21039   if test x$gcc_cv_as != x; then
21040     echo '      .text
21041         .cfi_startproc
21042         .cfi_personality 0, symbol
21043         .cfi_endproc' > conftest.s
21044     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21045   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21046   (eval $ac_try) 2>&5
21047   ac_status=$?
21048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21049   test $ac_status = 0; }; }
21050     then
21051         gcc_cv_as_cfi_personality_directive=yes
21052     else
21053       echo "configure: failed program was" >&5
21054       cat conftest.s >&5
21055     fi
21056     rm -f conftest.o conftest.s
21057   fi
21058 fi
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21060 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21061
21062
21063 cat >>confdefs.h <<_ACEOF
21064 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21065     then echo 1; else echo 0; fi`
21066 _ACEOF
21067
21068
21069 # GAS versions up to and including 2.11.0 may mis-optimize
21070 # .eh_frame data.
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21072 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21073 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21074   $as_echo_n "(cached) " >&6
21075 else
21076   gcc_cv_as_eh_frame=no
21077     if test $in_tree_gas = yes; then
21078     if test $in_tree_gas_is_elf = yes \
21079   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21080   then gcc_cv_as_eh_frame=yes
21081 fi
21082   elif test x$gcc_cv_as != x; then
21083     echo '      .text
21084 .LFB1:
21085         .4byte  0
21086 .L1:
21087         .4byte  0
21088 .LFE1:
21089         .section        .eh_frame,"aw",@progbits
21090 __FRAME_BEGIN__:
21091         .4byte  .LECIE1-.LSCIE1
21092 .LSCIE1:
21093         .4byte  0x0
21094         .byte   0x1
21095         .ascii "z\0"
21096         .byte   0x1
21097         .byte   0x78
21098         .byte   0x1a
21099         .byte   0x0
21100         .byte   0x4
21101         .4byte  1
21102         .p2align 1
21103 .LECIE1:
21104 .LSFDE1:
21105         .4byte  .LEFDE1-.LASFDE1
21106 .LASFDE1:
21107         .4byte  .LASFDE1-__FRAME_BEGIN__
21108         .4byte  .LFB1
21109         .4byte  .LFE1-.LFB1
21110         .byte   0x4
21111         .4byte  .LFE1-.LFB1
21112         .byte   0x4
21113         .4byte  .L1-.LFB1
21114 .LEFDE1:' > conftest.s
21115     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21116   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21117   (eval $ac_try) 2>&5
21118   ac_status=$?
21119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21120   test $ac_status = 0; }; }
21121     then
21122           cat > conftest.lit <<EOF
21123  0000 10000000 00000000 017a0001 781a0004  .........z..x...
21124  0010 01000000 12000000 18000000 00000000  ................
21125  0020 08000000 04080000 0044               .........D      
21126 EOF
21127 cat > conftest.big <<EOF
21128  0000 00000010 00000000 017a0001 781a0004  .........z..x...
21129  0010 00000001 00000012 00000018 00000000  ................
21130  0020 00000008 04000000 0844               .........D      
21131 EOF
21132   # If the assembler didn't choke, and we can objdump,
21133   # and we got the correct data, then succeed.
21134   # The text in the here-document typically retains its unix-style line
21135   # endings, while the output of objdump will use host line endings.
21136   # Therefore, use diff -b for the comparisons.
21137   if test x$gcc_cv_objdump != x \
21138   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21139      | tail -3 > conftest.got \
21140   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21141     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21142   then
21143     gcc_cv_as_eh_frame=yes
21144   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21145   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21146   (eval $ac_try) 2>&5
21147   ac_status=$?
21148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21149   test $ac_status = 0; }; }; then
21150     gcc_cv_as_eh_frame=buggy
21151   else
21152     # Uh oh, what do we do now?
21153     gcc_cv_as_eh_frame=no
21154   fi
21155     else
21156       echo "configure: failed program was" >&5
21157       cat conftest.s >&5
21158     fi
21159     rm -f conftest.o conftest.s
21160   fi
21161 fi
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21163 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21164
21165
21166 if test $gcc_cv_as_eh_frame = buggy; then
21167
21168 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21169
21170 fi
21171
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21173 $as_echo_n "checking assembler for section merging support... " >&6; }
21174 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21175   $as_echo_n "(cached) " >&6
21176 else
21177   gcc_cv_as_shf_merge=no
21178     if test $in_tree_gas = yes; then
21179     if test $in_tree_gas_is_elf = yes \
21180   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21181   then gcc_cv_as_shf_merge=yes
21182 fi
21183   elif test x$gcc_cv_as != x; then
21184     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21185     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21186   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21187   (eval $ac_try) 2>&5
21188   ac_status=$?
21189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21190   test $ac_status = 0; }; }
21191     then
21192         gcc_cv_as_shf_merge=yes
21193     else
21194       echo "configure: failed program was" >&5
21195       cat conftest.s >&5
21196     fi
21197     rm -f conftest.o conftest.s
21198   fi
21199 fi
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21201 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21202
21203 if test $gcc_cv_as_shf_merge = no; then
21204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21205 $as_echo_n "checking assembler for section merging support... " >&6; }
21206 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21207   $as_echo_n "(cached) " >&6
21208 else
21209   gcc_cv_as_shf_merge=no
21210     if test $in_tree_gas = yes; then
21211     if test $in_tree_gas_is_elf = yes \
21212   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21213   then gcc_cv_as_shf_merge=yes
21214 fi
21215   elif test x$gcc_cv_as != x; then
21216     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21217     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21218   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21219   (eval $ac_try) 2>&5
21220   ac_status=$?
21221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21222   test $ac_status = 0; }; }
21223     then
21224         gcc_cv_as_shf_merge=yes
21225     else
21226       echo "configure: failed program was" >&5
21227       cat conftest.s >&5
21228     fi
21229     rm -f conftest.o conftest.s
21230   fi
21231 fi
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21233 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21234
21235 fi
21236
21237 cat >>confdefs.h <<_ACEOF
21238 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21239 _ACEOF
21240
21241
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21243 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21244 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21245   $as_echo_n "(cached) " >&6
21246 else
21247   gcc_cv_as_comdat_group=no
21248     if test $in_tree_gas = yes; then
21249     if test $in_tree_gas_is_elf = yes \
21250   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21251   then gcc_cv_as_comdat_group=yes
21252 fi
21253   elif test x$gcc_cv_as != x; then
21254     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21255     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21256   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21257   (eval $ac_try) 2>&5
21258   ac_status=$?
21259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21260   test $ac_status = 0; }; }
21261     then
21262         gcc_cv_as_comdat_group=yes
21263     else
21264       echo "configure: failed program was" >&5
21265       cat conftest.s >&5
21266     fi
21267     rm -f conftest.o conftest.s
21268   fi
21269 fi
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21271 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21272
21273 if test $gcc_cv_as_comdat_group = yes; then
21274   gcc_cv_as_comdat_group_percent=no
21275 else
21276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21277 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21278 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21279   $as_echo_n "(cached) " >&6
21280 else
21281   gcc_cv_as_comdat_group_percent=no
21282     if test $in_tree_gas = yes; then
21283     if test $in_tree_gas_is_elf = yes \
21284   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21285   then gcc_cv_as_comdat_group_percent=yes
21286 fi
21287   elif test x$gcc_cv_as != x; then
21288     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21289     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21290   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21291   (eval $ac_try) 2>&5
21292   ac_status=$?
21293   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21294   test $ac_status = 0; }; }
21295     then
21296         gcc_cv_as_comdat_group_percent=yes
21297     else
21298       echo "configure: failed program was" >&5
21299       cat conftest.s >&5
21300     fi
21301     rm -f conftest.o conftest.s
21302   fi
21303 fi
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21305 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21306
21307 fi
21308 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
21309   comdat_group=yes
21310   if test 0"$ld_date" -lt 20050308; then
21311     if test -n "$ld_date"; then
21312       # If there was date string, but was earlier than 2005-03-08, fail
21313       comdat_group=no
21314     elif test "$ld_vers_major" -lt 2; then
21315       comdat_group=no
21316     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21317       comdat_group=no
21318     fi
21319   fi
21320 else
21321   # assume linkers other than GNU ld don't support COMDAT group
21322   comdat_group=no
21323 fi
21324 if test $comdat_group = no; then
21325   gcc_cv_as_comdat_group=no
21326   gcc_cv_as_comdat_group_percent=no
21327 fi
21328
21329 cat >>confdefs.h <<_ACEOF
21330 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
21331 _ACEOF
21332
21333
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21335 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21336 if test "${gcc_cv_as_discriminator+set}" = set; then :
21337   $as_echo_n "(cached) " >&6
21338 else
21339   gcc_cv_as_discriminator=no
21340     if test $in_tree_gas = yes; then
21341     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21342   then gcc_cv_as_discriminator=yes
21343 fi
21344   elif test x$gcc_cv_as != x; then
21345     echo '      .text
21346         .file 1 "conf.c"
21347         .loc 1 1 0 discriminator 1' > conftest.s
21348     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21349   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21350   (eval $ac_try) 2>&5
21351   ac_status=$?
21352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21353   test $ac_status = 0; }; }
21354     then
21355         gcc_cv_as_discriminator=yes
21356     else
21357       echo "configure: failed program was" >&5
21358       cat conftest.s >&5
21359     fi
21360     rm -f conftest.o conftest.s
21361   fi
21362 fi
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21364 $as_echo "$gcc_cv_as_discriminator" >&6; }
21365 if test $gcc_cv_as_discriminator = yes; then
21366
21367 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21368
21369 fi
21370
21371 # Thread-local storage - the check is heavily parameterized.
21372 conftest_s=
21373 tls_first_major=
21374 tls_first_minor=
21375 tls_as_opt=
21376 case "$target" in
21377   alpha*-*-*)
21378     conftest_s='
21379         .section ".tdata","awT",@progbits
21380 foo:    .long   25
21381         .text
21382         ldq     $27,__tls_get_addr($29)         !literal!1
21383         lda     $16,foo($29)                    !tlsgd!1
21384         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
21385         ldq     $27,__tls_get_addr($29)         !literal!2
21386         lda     $16,foo($29)                    !tlsldm!2
21387         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
21388         ldq     $1,foo($29)                     !gotdtprel
21389         ldah    $2,foo($29)                     !dtprelhi
21390         lda     $3,foo($2)                      !dtprello
21391         lda     $4,foo($29)                     !dtprel
21392         ldq     $1,foo($29)                     !gottprel
21393         ldah    $2,foo($29)                     !tprelhi
21394         lda     $3,foo($2)                      !tprello
21395         lda     $4,foo($29)                     !tprel'
21396         tls_first_major=2
21397         tls_first_minor=13
21398         tls_as_opt=--fatal-warnings
21399         ;;
21400   cris-*-*|crisv32-*-*)
21401     conftest_s='
21402         .section ".tdata","awT",@progbits
21403 x:      .long   25
21404         .text
21405         move.d x:IE,$r10
21406         nop'
21407         tls_first_major=2
21408         tls_first_minor=20
21409         tls_as_opt=--fatal-warnings
21410         ;;
21411   frv*-*-*)
21412     conftest_s='
21413         .section ".tdata","awT",@progbits
21414 x:      .long   25
21415         .text
21416         call    #gettlsoff(x)'
21417         tls_first_major=2
21418         tls_first_minor=14
21419         ;;
21420   hppa*-*-linux*)
21421     conftest_s='
21422 t1:     .reg    %r20
21423 t2:     .reg    %r21
21424 gp:     .reg    %r19
21425         .section ".tdata","awT",@progbits
21426 foo:    .long   25
21427         .text
21428         .align  4
21429         addil LT%foo-$tls_gdidx$,gp
21430         ldo RT%foo-$tls_gdidx$(%r1),%arg0
21431         b __tls_get_addr
21432         nop
21433         addil LT%foo-$tls_ldidx$,gp
21434         b __tls_get_addr
21435         ldo RT%foo-$tls_ldidx$(%r1),%arg0
21436         addil LR%foo-$tls_dtpoff$,%ret0
21437         ldo RR%foo-$tls_dtpoff$(%r1),%t1
21438         mfctl %cr27,%t1
21439         addil LT%foo-$tls_ieoff$,gp
21440         ldw RT%foo-$tls_ieoff$(%r1),%t2
21441         add %t1,%t2,%t3
21442         mfctl %cr27,%t1
21443         addil LR%foo-$tls_leoff$,%t1
21444         ldo RR%foo-$tls_leoff$(%r1),%t2'
21445         tls_first_major=2
21446         tls_first_minor=15
21447         tls_as_opt=--fatal-warnings
21448         ;;
21449   arm*-*-*)
21450     conftest_s='
21451         .section ".tdata","awT",%progbits
21452 foo:    .long   25
21453         .text
21454 .word foo(gottpoff)
21455 .word foo(tpoff)
21456 .word foo(tlsgd)
21457 .word foo(tlsldm)
21458 .word foo(tlsldo)'
21459         tls_first_major=2
21460         tls_first_minor=17
21461         ;;
21462   i[34567]86-*-*)
21463     conftest_s='
21464         .section ".tdata","awT",@progbits
21465 foo:    .long   25
21466         .text
21467         movl    %gs:0, %eax
21468         leal    foo@TLSGD(,%ebx,1), %eax
21469         leal    foo@TLSLDM(%ebx), %eax
21470         leal    foo@DTPOFF(%eax), %edx
21471         movl    foo@GOTTPOFF(%ebx), %eax
21472         subl    foo@GOTTPOFF(%ebx), %eax
21473         addl    foo@GOTNTPOFF(%ebx), %eax
21474         movl    foo@INDNTPOFF, %eax
21475         movl    $foo@TPOFF, %eax
21476         subl    $foo@TPOFF, %eax
21477         leal    foo@NTPOFF(%ecx), %eax'
21478         tls_first_major=2
21479         tls_first_minor=14
21480         tls_as_opt=--fatal-warnings
21481         ;;
21482   x86_64-*-*)
21483     conftest_s='
21484         .section ".tdata","awT",@progbits
21485 foo:    .long   25
21486         .text
21487         movq    %fs:0, %rax
21488         leaq    foo@TLSGD(%rip), %rdi
21489         leaq    foo@TLSLD(%rip), %rdi
21490         leaq    foo@DTPOFF(%rax), %rdx
21491         movq    foo@GOTTPOFF(%rip), %rax
21492         movq    $foo@TPOFF, %rax'
21493         tls_first_major=2
21494         tls_first_minor=14
21495         tls_as_opt=--fatal-warnings
21496         ;;
21497   ia64-*-*)
21498     conftest_s='
21499         .section ".tdata","awT",@progbits
21500 foo:    data8   25
21501         .text
21502         addl    r16 = @ltoff(@dtpmod(foo#)), gp
21503         addl    r17 = @ltoff(@dtprel(foo#)), gp
21504         addl    r18 = @ltoff(@tprel(foo#)), gp
21505         addl    r19 = @dtprel(foo#), gp
21506         adds    r21 = @dtprel(foo#), r13
21507         movl    r23 = @dtprel(foo#)
21508         addl    r20 = @tprel(foo#), gp
21509         adds    r22 = @tprel(foo#), r13
21510         movl    r24 = @tprel(foo#)'
21511         tls_first_major=2
21512         tls_first_minor=13
21513         tls_as_opt=--fatal-warnings
21514         ;;
21515   mips*-*-*)
21516     conftest_s='
21517         .section .tdata,"awT",@progbits
21518 x:
21519         .word 2
21520         .text
21521         addiu $4, $28, %tlsgd(x)
21522         addiu $4, $28, %tlsldm(x)
21523         lui $4, %dtprel_hi(x)
21524         addiu $4, $4, %dtprel_lo(x)
21525         lw $4, %gottprel(x)($28)
21526         lui $4, %tprel_hi(x)
21527         addiu $4, $4, %tprel_lo(x)'
21528         tls_first_major=2
21529         tls_first_minor=16
21530         tls_as_opt='-32 --fatal-warnings'
21531         ;;
21532   m68k-*-*)
21533     conftest_s='
21534         .section .tdata,"awT",@progbits
21535 x:
21536         .word 2
21537         .text
21538 foo:
21539         move.l x@TLSGD(%a5),%a0
21540         move.l x@TLSLDM(%a5),%a0
21541         move.l x@TLSLDO(%a5),%a0
21542         move.l x@TLSIE(%a5),%a0
21543         move.l x@TLSLE(%a5),%a0'
21544         tls_first_major=2
21545         tls_first_minor=19
21546         tls_as_opt='--fatal-warnings'
21547         ;;
21548   powerpc-*-*)
21549     conftest_s='
21550         .section ".tdata","awT",@progbits
21551         .align 2
21552 ld0:    .space 4
21553 ld1:    .space 4
21554 x1:     .space 4
21555 x2:     .space 4
21556 x3:     .space 4
21557         .text
21558         addi 3,31,ld0@got@tlsgd
21559         bl __tls_get_addr
21560         addi 3,31,x1@got@tlsld
21561         bl __tls_get_addr
21562         addi 9,3,x1@dtprel
21563         addis 9,3,x2@dtprel@ha
21564         addi 9,9,x2@dtprel@l
21565         lwz 9,x3@got@tprel(31)
21566         add 9,9,x@tls
21567         addi 9,2,x1@tprel
21568         addis 9,2,x2@tprel@ha
21569         addi 9,9,x2@tprel@l'
21570         tls_first_major=2
21571         tls_first_minor=14
21572         tls_as_opt="-a32 --fatal-warnings"
21573         ;;
21574   powerpc64-*-*)
21575     conftest_s='
21576         .section ".tdata","awT",@progbits
21577         .align 3
21578 ld0:    .space 8
21579 ld1:    .space 8
21580 x1:     .space 8
21581 x2:     .space 8
21582 x3:     .space 8
21583         .text
21584         addi 3,2,ld0@got@tlsgd
21585         bl .__tls_get_addr
21586         nop
21587         addi 3,2,ld1@toc
21588         bl .__tls_get_addr
21589         nop
21590         addi 3,2,x1@got@tlsld
21591         bl .__tls_get_addr
21592         nop
21593         addi 9,3,x1@dtprel
21594         bl .__tls_get_addr
21595         nop
21596         addis 9,3,x2@dtprel@ha
21597         addi 9,9,x2@dtprel@l
21598         bl .__tls_get_addr
21599         nop
21600         ld 9,x3@got@dtprel(2)
21601         add 9,9,3
21602         bl .__tls_get_addr
21603         nop'
21604         tls_first_major=2
21605         tls_first_minor=14
21606         tls_as_opt="-a64 --fatal-warnings"
21607         ;;
21608   s390-*-*)
21609     conftest_s='
21610         .section ".tdata","awT",@progbits
21611 foo:    .long   25
21612         .text
21613         .long   foo@TLSGD
21614         .long   foo@TLSLDM
21615         .long   foo@DTPOFF
21616         .long   foo@NTPOFF
21617         .long   foo@GOTNTPOFF
21618         .long   foo@INDNTPOFF
21619         l       %r1,foo@GOTNTPOFF(%r12)
21620         l       %r1,0(%r1):tls_load:foo
21621         bas     %r14,0(%r1,%r13):tls_gdcall:foo
21622         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
21623         tls_first_major=2
21624         tls_first_minor=14
21625         tls_as_opt="-m31 --fatal-warnings"
21626         ;;
21627   s390x-*-*)
21628     conftest_s='
21629         .section ".tdata","awT",@progbits
21630 foo:    .long   25
21631         .text
21632         .quad   foo@TLSGD
21633         .quad   foo@TLSLDM
21634         .quad   foo@DTPOFF
21635         .quad   foo@NTPOFF
21636         .quad   foo@GOTNTPOFF
21637         lg      %r1,foo@GOTNTPOFF(%r12)
21638         larl    %r1,foo@INDNTPOFF
21639         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
21640         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
21641         tls_first_major=2
21642         tls_first_minor=14
21643         tls_as_opt="-m64 -Aesame --fatal-warnings"
21644         ;;
21645   sh-*-* | sh[34]-*-*)
21646     conftest_s='
21647         .section ".tdata","awT",@progbits
21648 foo:    .long   25
21649         .text
21650         .long   foo@TLSGD
21651         .long   foo@TLSLDM
21652         .long   foo@DTPOFF
21653         .long   foo@GOTTPOFF
21654         .long   foo@TPOFF'
21655         tls_first_major=2
21656         tls_first_minor=13
21657         tls_as_opt=--fatal-warnings
21658         ;;
21659   sparc*-*-*)
21660     case "$target" in
21661       sparc*-sun-solaris2.[56789]*)
21662         # TLS was introduced in the Solaris 9 4/04 release but
21663         # we do not enable it by default on Solaris 9 either.
21664         if test "x$enable_tls" = xyes ; then
21665           on_solaris=yes
21666         else
21667           enable_tls=no;
21668         fi
21669         ;;
21670       sparc*-sun-solaris2.*)
21671         on_solaris=yes
21672         ;;
21673       *)
21674         on_solaris=no
21675         ;;
21676     esac
21677     if test x$on_solaris = xyes && test x$gas_flag = xno; then
21678       conftest_s='
21679         .section ".tdata",#alloc,#write,#tls
21680 foo:    .long   25
21681         .text
21682         sethi   %tgd_hi22(foo), %o0
21683         add     %o0, %tgd_lo10(foo), %o1
21684         add     %l7, %o1, %o0, %tgd_add(foo)
21685         call    __tls_get_addr, %tgd_call(foo)
21686         sethi   %tldm_hi22(foo), %l1
21687         add     %l1, %tldm_lo10(foo), %l2
21688         add     %l7, %l2, %o0, %tldm_add(foo)
21689         call    __tls_get_addr, %tldm_call(foo)
21690         sethi   %tldo_hix22(foo), %l3
21691         xor     %l3, %tldo_lox10(foo), %l4
21692         add     %o0, %l4, %l5, %tldo_add(foo)
21693         sethi   %tie_hi22(foo), %o3
21694         add     %o3, %tie_lo10(foo), %o3
21695         ld      [%l7 + %o3], %o2, %tie_ld(foo)
21696         add     %g7, %o2, %o4, %tie_add(foo)
21697         sethi   %tle_hix22(foo), %l1
21698         xor     %l1, %tle_lox10(foo), %o5
21699         ld      [%g7 + %o5], %o1'
21700         tls_first_major=0
21701         tls_first_minor=0
21702     else
21703       conftest_s='
21704         .section ".tdata","awT",@progbits
21705 foo:    .long   25
21706         .text
21707         sethi   %tgd_hi22(foo), %o0
21708         add     %o0, %tgd_lo10(foo), %o1
21709         add     %l7, %o1, %o0, %tgd_add(foo)
21710         call    __tls_get_addr, %tgd_call(foo)
21711         sethi   %tldm_hi22(foo), %l1
21712         add     %l1, %tldm_lo10(foo), %l2
21713         add     %l7, %l2, %o0, %tldm_add(foo)
21714         call    __tls_get_addr, %tldm_call(foo)
21715         sethi   %tldo_hix22(foo), %l3
21716         xor     %l3, %tldo_lox10(foo), %l4
21717         add     %o0, %l4, %l5, %tldo_add(foo)
21718         sethi   %tie_hi22(foo), %o3
21719         add     %o3, %tie_lo10(foo), %o3
21720         ld      [%l7 + %o3], %o2, %tie_ld(foo)
21721         add     %g7, %o2, %o4, %tie_add(foo)
21722         sethi   %tle_hix22(foo), %l1
21723         xor     %l1, %tle_lox10(foo), %o5
21724         ld      [%g7 + %o5], %o1'
21725         tls_first_major=2
21726         tls_first_minor=14
21727         tls_as_opt="-32 --fatal-warnings"
21728       fi
21729         ;;
21730   xtensa*-*-*)
21731     conftest_s='
21732         .section ".tdata","awT",@progbits
21733 foo:    .long   25
21734         .text
21735         movi    a8, foo@TLSFUNC
21736         movi    a10, foo@TLSARG
21737         callx8.tls a8, foo@TLSCALL'
21738         tls_first_major=2
21739         tls_first_minor=19
21740         ;;
21741 esac
21742 set_have_as_tls=no
21743 if test "x$enable_tls" = xno ; then
21744   : # TLS explicitly disabled.
21745 elif test "x$enable_tls" = xyes ; then
21746   set_have_as_tls=yes # TLS explicitly enabled.
21747 elif test -z "$tls_first_major"; then
21748   : # If we don't have a check, assume no support.
21749 else
21750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
21751 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
21752 if test "${gcc_cv_as_tls+set}" = set; then :
21753   $as_echo_n "(cached) " >&6
21754 else
21755   gcc_cv_as_tls=no
21756     if test $in_tree_gas = yes; then
21757     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
21758   then gcc_cv_as_tls=yes
21759 fi
21760   elif test x$gcc_cv_as != x; then
21761     echo "$conftest_s" > conftest.s
21762     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
21763   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21764   (eval $ac_try) 2>&5
21765   ac_status=$?
21766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21767   test $ac_status = 0; }; }
21768     then
21769         gcc_cv_as_tls=yes
21770     else
21771       echo "configure: failed program was" >&5
21772       cat conftest.s >&5
21773     fi
21774     rm -f conftest.o conftest.s
21775   fi
21776 fi
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
21778 $as_echo "$gcc_cv_as_tls" >&6; }
21779 if test $gcc_cv_as_tls = yes; then
21780   set_have_as_tls=yes
21781 fi
21782 fi
21783 if test $set_have_as_tls = yes ; then
21784
21785 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
21786
21787 fi
21788
21789 # Target-specific assembler checks.
21790
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
21792 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
21793 gcc_cv_ld_static_dynamic=no
21794 if test $in_tree_ld = yes ; then
21795   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
21796     gcc_cv_ld_static_dynamic=yes
21797   fi
21798 elif test x$gcc_cv_ld != x; then
21799         # Check if linker supports -Bstatic/-Bdynamic option
21800         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
21801           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
21802                 gcc_cv_ld_static_dynamic=yes
21803         fi
21804 fi
21805 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
21806
21807 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
21808
21809 fi
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
21811 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
21812
21813 if test x"$demangler_in_ld" = xyes; then
21814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
21815 $as_echo_n "checking linker --demangle support... " >&6; }
21816   gcc_cv_ld_demangle=no
21817   if test $in_tree_ld = yes; then
21818     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 \
21819       gcc_cv_ld_demangle=yes
21820     fi
21821   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
21822     # Check if the GNU linker supports --demangle option
21823     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
21824       gcc_cv_ld_demangle=yes
21825     fi
21826   fi
21827   if test x"$gcc_cv_ld_demangle" = xyes; then
21828
21829 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
21830
21831   fi
21832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
21833 $as_echo "$gcc_cv_ld_demangle" >&6; }
21834 fi
21835
21836 case "$target" in
21837   # All TARGET_ABI_OSF targets.
21838   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
21839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
21840 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
21841 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
21842   $as_echo_n "(cached) " >&6
21843 else
21844   gcc_cv_as_alpha_explicit_relocs=no
21845     if test $in_tree_gas = yes; then
21846     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21847   then gcc_cv_as_alpha_explicit_relocs=yes
21848 fi
21849   elif test x$gcc_cv_as != x; then
21850     echo '      .set nomacro
21851         .text
21852         extbl   $3, $2, $3      !lituse_bytoff!1
21853         ldq     $2, a($29)      !literal!1
21854         ldq     $4, b($29)      !literal!2
21855         ldq_u   $3, 0($2)       !lituse_base!1
21856         ldq     $27, f($29)     !literal!5
21857         jsr     $26, ($27), f   !lituse_jsr!5
21858         ldah    $29, 0($26)     !gpdisp!3
21859         lda     $0, c($29)      !gprel
21860         ldah    $1, d($29)      !gprelhigh
21861         lda     $1, d($1)       !gprellow
21862         lda     $29, 0($29)     !gpdisp!3' > conftest.s
21863     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21864   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21865   (eval $ac_try) 2>&5
21866   ac_status=$?
21867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21868   test $ac_status = 0; }; }
21869     then
21870         gcc_cv_as_alpha_explicit_relocs=yes
21871     else
21872       echo "configure: failed program was" >&5
21873       cat conftest.s >&5
21874     fi
21875     rm -f conftest.o conftest.s
21876   fi
21877 fi
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
21879 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
21880 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
21881
21882 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
21883
21884 fi
21885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
21886 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
21887 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
21888   $as_echo_n "(cached) " >&6
21889 else
21890   gcc_cv_as_alpha_jsrdirect_relocs=no
21891     if test $in_tree_gas = yes; then
21892     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
21893   then gcc_cv_as_alpha_jsrdirect_relocs=yes
21894 fi
21895   elif test x$gcc_cv_as != x; then
21896     echo '      .set nomacro
21897         .text
21898         ldq     $27, a($29)     !literal!1
21899         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
21900     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21901   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21902   (eval $ac_try) 2>&5
21903   ac_status=$?
21904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21905   test $ac_status = 0; }; }
21906     then
21907         gcc_cv_as_alpha_jsrdirect_relocs=yes
21908     else
21909       echo "configure: failed program was" >&5
21910       cat conftest.s >&5
21911     fi
21912     rm -f conftest.o conftest.s
21913   fi
21914 fi
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
21916 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
21917 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
21918
21919 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
21920
21921 fi
21922     ;;
21923
21924   cris-*-*)
21925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
21926 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
21927 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
21928   $as_echo_n "(cached) " >&6
21929 else
21930   gcc_cv_as_cris_no_mul_bug=no
21931     if test $in_tree_gas = yes; then
21932     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21933   then gcc_cv_as_cris_no_mul_bug=yes
21934 fi
21935   elif test x$gcc_cv_as != x; then
21936     echo '.text' > conftest.s
21937     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
21938   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21939   (eval $ac_try) 2>&5
21940   ac_status=$?
21941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21942   test $ac_status = 0; }; }
21943     then
21944         gcc_cv_as_cris_no_mul_bug=yes
21945     else
21946       echo "configure: failed program was" >&5
21947       cat conftest.s >&5
21948     fi
21949     rm -f conftest.o conftest.s
21950   fi
21951 fi
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
21953 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
21954 if test $gcc_cv_as_cris_no_mul_bug = yes; then
21955
21956 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
21957
21958 fi
21959     ;;
21960
21961   sparc*-*-*)
21962     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
21963 $as_echo_n "checking assembler for .register... " >&6; }
21964 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
21965   $as_echo_n "(cached) " >&6
21966 else
21967   gcc_cv_as_sparc_register_op=no
21968   if test x$gcc_cv_as != x; then
21969     echo '.register %g2, #scratch' > conftest.s
21970     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21971   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21972   (eval $ac_try) 2>&5
21973   ac_status=$?
21974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21975   test $ac_status = 0; }; }
21976     then
21977         gcc_cv_as_sparc_register_op=yes
21978     else
21979       echo "configure: failed program was" >&5
21980       cat conftest.s >&5
21981     fi
21982     rm -f conftest.o conftest.s
21983   fi
21984 fi
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
21986 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
21987 if test $gcc_cv_as_sparc_register_op = yes; then
21988
21989 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
21990
21991 fi
21992
21993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
21994 $as_echo_n "checking assembler for -relax option... " >&6; }
21995 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
21996   $as_echo_n "(cached) " >&6
21997 else
21998   gcc_cv_as_sparc_relax=no
21999   if test x$gcc_cv_as != x; then
22000     echo '.text' > conftest.s
22001     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22002   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22003   (eval $ac_try) 2>&5
22004   ac_status=$?
22005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22006   test $ac_status = 0; }; }
22007     then
22008         gcc_cv_as_sparc_relax=yes
22009     else
22010       echo "configure: failed program was" >&5
22011       cat conftest.s >&5
22012     fi
22013     rm -f conftest.o conftest.s
22014   fi
22015 fi
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22017 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22018 if test $gcc_cv_as_sparc_relax = yes; then
22019
22020 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22021
22022 fi
22023
22024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22025 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22026 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22027   $as_echo_n "(cached) " >&6
22028 else
22029   gcc_cv_as_sparc_ua_pcrel=no
22030   if test x$gcc_cv_as != x; then
22031     echo '.text
22032 foo:
22033         nop
22034 .data
22035 .align 4
22036 .byte 0
22037 .uaword %r_disp32(foo)' > conftest.s
22038     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22039   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22040   (eval $ac_try) 2>&5
22041   ac_status=$?
22042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22043   test $ac_status = 0; }; }
22044     then
22045         if test x$gcc_cv_ld != x \
22046        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22047          gcc_cv_as_sparc_ua_pcrel=yes
22048        fi
22049        rm -f conftest
22050     else
22051       echo "configure: failed program was" >&5
22052       cat conftest.s >&5
22053     fi
22054     rm -f conftest.o conftest.s
22055   fi
22056 fi
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22058 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22059 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22060
22061 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22062
22063
22064       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22065 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22066 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22067   $as_echo_n "(cached) " >&6
22068 else
22069   gcc_cv_as_sparc_ua_pcrel_hidden=no
22070   if test x$gcc_cv_as != x; then
22071     echo '.data
22072 .align 4
22073 .byte 0x31
22074 .uaword %r_disp32(foo)
22075 .byte 0x32, 0x33, 0x34
22076 .global foo
22077 .hidden foo
22078 foo:
22079 .skip 4' > conftest.s
22080     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22081   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22082   (eval $ac_try) 2>&5
22083   ac_status=$?
22084   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22085   test $ac_status = 0; }; }
22086     then
22087         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22088          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22089          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22090             | grep ' 31000000 07323334' > /dev/null 2>&1; then
22091             if $gcc_cv_objdump -R conftest 2> /dev/null \
22092                | grep 'DISP32' > /dev/null 2>&1; then
22093                 :
22094             else
22095                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22096             fi
22097          fi
22098          rm -f conftest
22099     else
22100       echo "configure: failed program was" >&5
22101       cat conftest.s >&5
22102     fi
22103     rm -f conftest.o conftest.s
22104   fi
22105 fi
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22107 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22108 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22109
22110 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22111
22112 fi
22113
22114 fi # unaligned pcrel relocs
22115
22116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22117 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22118 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22119   $as_echo_n "(cached) " >&6
22120 else
22121   gcc_cv_as_sparc_offsetable_lo10=no
22122   if test x$gcc_cv_as != x; then
22123     echo '.text
22124         or %g1, %lo(ab) + 12, %g1
22125         or %g1, %lo(ab + 12), %g1' > conftest.s
22126     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22127   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22128   (eval $ac_try) 2>&5
22129   ac_status=$?
22130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22131   test $ac_status = 0; }; }
22132     then
22133         if test x$gcc_cv_objdump != x \
22134        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22135           | grep ' 82106000 82106000' > /dev/null 2>&1; then
22136          gcc_cv_as_sparc_offsetable_lo10=yes
22137        fi
22138     else
22139       echo "configure: failed program was" >&5
22140       cat conftest.s >&5
22141     fi
22142     rm -f conftest.o conftest.s
22143   fi
22144 fi
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22146 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22147 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22148
22149 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22150
22151 fi
22152     ;;
22153
22154   i[34567]86-*-* | x86_64-*-*)
22155     case $target_os in
22156       cygwin* | pe | mingw32*)
22157         # Recent binutils allows the three-operand form of ".comm" on PE.  This
22158         # definition is used unconditionally to initialise the default state of
22159         # the target option variable that governs usage of the feature.
22160         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22161 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22162 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22163   $as_echo_n "(cached) " >&6
22164 else
22165   gcc_cv_as_comm_has_align=no
22166     if test $in_tree_gas = yes; then
22167     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22168   then gcc_cv_as_comm_has_align=yes
22169 fi
22170   elif test x$gcc_cv_as != x; then
22171     echo '.comm foo,1,32' > conftest.s
22172     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22173   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22174   (eval $ac_try) 2>&5
22175   ac_status=$?
22176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22177   test $ac_status = 0; }; }
22178     then
22179         gcc_cv_as_comm_has_align=yes
22180     else
22181       echo "configure: failed program was" >&5
22182       cat conftest.s >&5
22183     fi
22184     rm -f conftest.o conftest.s
22185   fi
22186 fi
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22188 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22189
22190
22191 cat >>confdefs.h <<_ACEOF
22192 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22193 _ACEOF
22194
22195         # Used for DWARF 2 in PE
22196         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22197 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22198 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22199   $as_echo_n "(cached) " >&6
22200 else
22201   gcc_cv_as_ix86_pe_secrel32=no
22202     if test $in_tree_gas = yes; then
22203     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22204   then gcc_cv_as_ix86_pe_secrel32=yes
22205 fi
22206   elif test x$gcc_cv_as != x; then
22207     echo '.text
22208 foo:    nop
22209 .data
22210         .secrel32 foo' > conftest.s
22211     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22212   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22213   (eval $ac_try) 2>&5
22214   ac_status=$?
22215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22216   test $ac_status = 0; }; }
22217     then
22218         if test x$gcc_cv_ld != x \
22219            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22220              gcc_cv_as_ix86_pe_secrel32=yes
22221            fi
22222            rm -f conftest
22223     else
22224       echo "configure: failed program was" >&5
22225       cat conftest.s >&5
22226     fi
22227     rm -f conftest.o conftest.s
22228   fi
22229 fi
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22231 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22232 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22233
22234 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22235
22236 fi
22237         ;;
22238     esac
22239
22240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22241 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22242 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22243   $as_echo_n "(cached) " >&6
22244 else
22245   gcc_cv_as_ix86_filds=no
22246   if test x$gcc_cv_as != x; then
22247     echo 'filds mem; fists mem' > conftest.s
22248     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22249   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22250   (eval $ac_try) 2>&5
22251   ac_status=$?
22252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22253   test $ac_status = 0; }; }
22254     then
22255         gcc_cv_as_ix86_filds=yes
22256     else
22257       echo "configure: failed program was" >&5
22258       cat conftest.s >&5
22259     fi
22260     rm -f conftest.o conftest.s
22261   fi
22262 fi
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
22264 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
22265 if test $gcc_cv_as_ix86_filds = yes; then
22266
22267 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
22268
22269 fi
22270
22271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
22272 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
22273 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
22274   $as_echo_n "(cached) " >&6
22275 else
22276   gcc_cv_as_ix86_fildq=no
22277   if test x$gcc_cv_as != x; then
22278     echo 'fildq mem; fistpq mem' > conftest.s
22279     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22280   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22281   (eval $ac_try) 2>&5
22282   ac_status=$?
22283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22284   test $ac_status = 0; }; }
22285     then
22286         gcc_cv_as_ix86_fildq=yes
22287     else
22288       echo "configure: failed program was" >&5
22289       cat conftest.s >&5
22290     fi
22291     rm -f conftest.o conftest.s
22292   fi
22293 fi
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
22295 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
22296 if test $gcc_cv_as_ix86_fildq = yes; then
22297
22298 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
22299
22300 fi
22301
22302     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
22303 $as_echo_n "checking assembler for cmov syntax... " >&6; }
22304 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
22305   $as_echo_n "(cached) " >&6
22306 else
22307   gcc_cv_as_ix86_cmov_sun_syntax=no
22308   if test x$gcc_cv_as != x; then
22309     echo 'cmovl.l %edx, %eax' > conftest.s
22310     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22311   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22312   (eval $ac_try) 2>&5
22313   ac_status=$?
22314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22315   test $ac_status = 0; }; }
22316     then
22317         gcc_cv_as_ix86_cmov_sun_syntax=yes
22318     else
22319       echo "configure: failed program was" >&5
22320       cat conftest.s >&5
22321     fi
22322     rm -f conftest.o conftest.s
22323   fi
22324 fi
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22326 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
22327 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22328
22329 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
22330
22331 fi
22332
22333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
22334 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
22335 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
22336   $as_echo_n "(cached) " >&6
22337 else
22338   gcc_cv_as_ix86_ffreep=no
22339   if test x$gcc_cv_as != x; then
22340     echo 'ffreep %st(1)' > conftest.s
22341     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22342   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22343   (eval $ac_try) 2>&5
22344   ac_status=$?
22345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22346   test $ac_status = 0; }; }
22347     then
22348         gcc_cv_as_ix86_ffreep=yes
22349     else
22350       echo "configure: failed program was" >&5
22351       cat conftest.s >&5
22352     fi
22353     rm -f conftest.o conftest.s
22354   fi
22355 fi
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
22357 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
22358 if test $gcc_cv_as_ix86_ffreep = yes; then
22359
22360 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
22361
22362 fi
22363
22364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
22365 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
22366 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
22367   $as_echo_n "(cached) " >&6
22368 else
22369   gcc_cv_as_ix86_sahf=no
22370   if test x$gcc_cv_as != x; then
22371     echo 'sahf' > conftest.s
22372     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22373   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22374   (eval $ac_try) 2>&5
22375   ac_status=$?
22376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22377   test $ac_status = 0; }; }
22378     then
22379         gcc_cv_as_ix86_sahf=yes
22380     else
22381       echo "configure: failed program was" >&5
22382       cat conftest.s >&5
22383     fi
22384     rm -f conftest.o conftest.s
22385   fi
22386 fi
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
22388 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
22389 if test $gcc_cv_as_ix86_sahf = yes; then
22390
22391 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
22392
22393 fi
22394
22395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
22396 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
22397 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
22398   $as_echo_n "(cached) " >&6
22399 else
22400   gcc_cv_as_ix86_diff_sect_delta=no
22401   if test x$gcc_cv_as != x; then
22402     echo '.section .rodata
22403 .L1:
22404         .long .L2-.L1
22405         .long .L3-.L1
22406         .text
22407 .L3:    nop
22408 .L2:    nop' > conftest.s
22409     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22410   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22411   (eval $ac_try) 2>&5
22412   ac_status=$?
22413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22414   test $ac_status = 0; }; }
22415     then
22416         gcc_cv_as_ix86_diff_sect_delta=yes
22417     else
22418       echo "configure: failed program was" >&5
22419       cat conftest.s >&5
22420     fi
22421     rm -f conftest.o conftest.s
22422   fi
22423 fi
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22425 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
22426 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22427
22428 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
22429
22430 fi
22431
22432     # This one is used unconditionally by i386.[ch]; it is to be defined
22433     # to 1 if the feature is present, 0 otherwise.
22434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
22435 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
22436 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
22437   $as_echo_n "(cached) " >&6
22438 else
22439   gcc_cv_as_ix86_gotoff_in_data=no
22440     if test $in_tree_gas = yes; then
22441     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22442   then gcc_cv_as_ix86_gotoff_in_data=yes
22443 fi
22444   elif test x$gcc_cv_as != x; then
22445     echo '      .text
22446 .L0:
22447         nop
22448         .data
22449         .long .L0@GOTOFF' > conftest.s
22450     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22451   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22452   (eval $ac_try) 2>&5
22453   ac_status=$?
22454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22455   test $ac_status = 0; }; }
22456     then
22457         gcc_cv_as_ix86_gotoff_in_data=yes
22458     else
22459       echo "configure: failed program was" >&5
22460       cat conftest.s >&5
22461     fi
22462     rm -f conftest.o conftest.s
22463   fi
22464 fi
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22466 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
22467
22468
22469 cat >>confdefs.h <<_ACEOF
22470 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22471 _ACEOF
22472
22473     ;;
22474
22475   ia64*-*-*)
22476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
22477 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
22478 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
22479   $as_echo_n "(cached) " >&6
22480 else
22481   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
22482     if test $in_tree_gas = yes; then
22483     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22484   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22485 fi
22486   elif test x$gcc_cv_as != x; then
22487     echo '      .text
22488         addl r15 = @ltoffx(x#), gp
22489         ;;
22490         ld8.mov r16 = [r15], x#' > conftest.s
22491     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22492   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22493   (eval $ac_try) 2>&5
22494   ac_status=$?
22495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22496   test $ac_status = 0; }; }
22497     then
22498         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22499     else
22500       echo "configure: failed program was" >&5
22501       cat conftest.s >&5
22502     fi
22503     rm -f conftest.o conftest.s
22504   fi
22505 fi
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22507 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
22508 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22509
22510 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
22511
22512 fi
22513
22514     ;;
22515
22516   powerpc*-*-*)
22517     case $target in
22518       *-*-aix*) conftest_s='    .machine "pwr5"
22519         .csect .text[PR]
22520         mfcr 3,128';;
22521       *-*-darwin*)
22522         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
22523 $as_echo_n "checking assembler for .machine directive support... " >&6; }
22524 if test "${gcc_cv_as_machine_directive+set}" = set; then :
22525   $as_echo_n "(cached) " >&6
22526 else
22527   gcc_cv_as_machine_directive=no
22528   if test x$gcc_cv_as != x; then
22529     echo '      .machine ppc7400' > conftest.s
22530     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22531   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22532   (eval $ac_try) 2>&5
22533   ac_status=$?
22534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22535   test $ac_status = 0; }; }
22536     then
22537         gcc_cv_as_machine_directive=yes
22538     else
22539       echo "configure: failed program was" >&5
22540       cat conftest.s >&5
22541     fi
22542     rm -f conftest.o conftest.s
22543   fi
22544 fi
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
22546 $as_echo "$gcc_cv_as_machine_directive" >&6; }
22547
22548         if test x$gcc_cv_as_machine_directive != xyes; then
22549           echo "*** This target requires an assembler supporting \".machine\"" >&2
22550           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
22551           test x$build = x$target && exit 1
22552         fi
22553         conftest_s='    .text
22554         mfcr r3,128';;
22555       *) conftest_s='   .machine power4
22556         .text
22557         mfcr 3,128';;
22558     esac
22559
22560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
22561 $as_echo_n "checking assembler for mfcr field support... " >&6; }
22562 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
22563   $as_echo_n "(cached) " >&6
22564 else
22565   gcc_cv_as_powerpc_mfcrf=no
22566     if test $in_tree_gas = yes; then
22567     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22568   then gcc_cv_as_powerpc_mfcrf=yes
22569 fi
22570   elif test x$gcc_cv_as != x; then
22571     echo "$conftest_s" > conftest.s
22572     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22573   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22574   (eval $ac_try) 2>&5
22575   ac_status=$?
22576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22577   test $ac_status = 0; }; }
22578     then
22579         gcc_cv_as_powerpc_mfcrf=yes
22580     else
22581       echo "configure: failed program was" >&5
22582       cat conftest.s >&5
22583     fi
22584     rm -f conftest.o conftest.s
22585   fi
22586 fi
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
22588 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
22589 if test $gcc_cv_as_powerpc_mfcrf = yes; then
22590
22591 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
22592
22593 fi
22594
22595     case $target in
22596       *-*-aix*) conftest_s='    .machine "pwr5"
22597         .csect .text[PR]
22598         popcntb 3,3';;
22599       *) conftest_s='   .machine power5
22600         .text
22601         popcntb 3,3';;
22602     esac
22603
22604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
22605 $as_echo_n "checking assembler for popcntb support... " >&6; }
22606 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
22607   $as_echo_n "(cached) " >&6
22608 else
22609   gcc_cv_as_powerpc_popcntb=no
22610     if test $in_tree_gas = yes; then
22611     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22612   then gcc_cv_as_powerpc_popcntb=yes
22613 fi
22614   elif test x$gcc_cv_as != x; then
22615     echo "$conftest_s" > conftest.s
22616     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22617   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22618   (eval $ac_try) 2>&5
22619   ac_status=$?
22620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22621   test $ac_status = 0; }; }
22622     then
22623         gcc_cv_as_powerpc_popcntb=yes
22624     else
22625       echo "configure: failed program was" >&5
22626       cat conftest.s >&5
22627     fi
22628     rm -f conftest.o conftest.s
22629   fi
22630 fi
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
22632 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
22633 if test $gcc_cv_as_powerpc_popcntb = yes; then
22634
22635 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
22636
22637 fi
22638
22639     case $target in
22640       *-*-aix*) conftest_s='    .machine "pwr5x"
22641         .csect .text[PR]
22642         frin 1,1';;
22643       *) conftest_s='   .machine power5
22644         .text
22645         frin 1,1';;
22646     esac
22647
22648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
22649 $as_echo_n "checking assembler for fp round support... " >&6; }
22650 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
22651   $as_echo_n "(cached) " >&6
22652 else
22653   gcc_cv_as_powerpc_fprnd=no
22654     if test $in_tree_gas = yes; then
22655     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22656   then gcc_cv_as_powerpc_fprnd=yes
22657 fi
22658   elif test x$gcc_cv_as != x; then
22659     echo "$conftest_s" > conftest.s
22660     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22661   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22662   (eval $ac_try) 2>&5
22663   ac_status=$?
22664   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22665   test $ac_status = 0; }; }
22666     then
22667         gcc_cv_as_powerpc_fprnd=yes
22668     else
22669       echo "configure: failed program was" >&5
22670       cat conftest.s >&5
22671     fi
22672     rm -f conftest.o conftest.s
22673   fi
22674 fi
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
22676 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
22677 if test $gcc_cv_as_powerpc_fprnd = yes; then
22678
22679 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
22680
22681 fi
22682
22683     case $target in
22684       *-*-aix*) conftest_s='    .machine "pwr6"
22685         .csect .text[PR]
22686         mffgpr 1,3';;
22687       *) conftest_s='   .machine power6
22688         .text
22689         mffgpr 1,3';;
22690     esac
22691
22692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
22693 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
22694 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
22695   $as_echo_n "(cached) " >&6
22696 else
22697   gcc_cv_as_powerpc_mfpgpr=no
22698     if test $in_tree_gas = yes; then
22699     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22700   then gcc_cv_as_powerpc_mfpgpr=yes
22701 fi
22702   elif test x$gcc_cv_as != x; then
22703     echo "$conftest_s" > conftest.s
22704     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22705   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22706   (eval $ac_try) 2>&5
22707   ac_status=$?
22708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22709   test $ac_status = 0; }; }
22710     then
22711         gcc_cv_as_powerpc_mfpgpr=yes
22712     else
22713       echo "configure: failed program was" >&5
22714       cat conftest.s >&5
22715     fi
22716     rm -f conftest.o conftest.s
22717   fi
22718 fi
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
22720 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
22721 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
22722
22723 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
22724
22725 fi
22726
22727     case $target in
22728       *-*-aix*) conftest_s='    .csect .text[PR]
22729 LCF..0:
22730         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
22731       *-*-darwin*)
22732         conftest_s='    .text
22733 LCF0:
22734         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
22735       *) conftest_s='   .text
22736 .LCF0:
22737         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
22738     esac
22739
22740     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
22741 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
22742 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
22743   $as_echo_n "(cached) " >&6
22744 else
22745   gcc_cv_as_powerpc_rel16=no
22746     if test $in_tree_gas = yes; then
22747     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22748   then gcc_cv_as_powerpc_rel16=yes
22749 fi
22750   elif test x$gcc_cv_as != x; then
22751     echo "$conftest_s" > conftest.s
22752     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22753   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22754   (eval $ac_try) 2>&5
22755   ac_status=$?
22756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22757   test $ac_status = 0; }; }
22758     then
22759         gcc_cv_as_powerpc_rel16=yes
22760     else
22761       echo "configure: failed program was" >&5
22762       cat conftest.s >&5
22763     fi
22764     rm -f conftest.o conftest.s
22765   fi
22766 fi
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
22768 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
22769 if test $gcc_cv_as_powerpc_rel16 = yes; then
22770
22771 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
22772
22773 fi
22774
22775     case $target in
22776       *-*-aix*) conftest_s='    .machine "pwr6"
22777         .csect .text[PR]
22778         cmpb 3,4,5';;
22779       *) conftest_s='   .machine power6
22780         .text
22781         cmpb 3,4,5';;
22782     esac
22783
22784     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
22785 $as_echo_n "checking assembler for compare bytes support... " >&6; }
22786 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
22787   $as_echo_n "(cached) " >&6
22788 else
22789   gcc_cv_as_powerpc_cmpb=no
22790     if test $in_tree_gas = yes; then
22791     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22792   then gcc_cv_as_powerpc_cmpb=yes
22793 fi
22794   elif test x$gcc_cv_as != x; then
22795     echo "$conftest_s" > conftest.s
22796     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22797   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22798   (eval $ac_try) 2>&5
22799   ac_status=$?
22800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22801   test $ac_status = 0; }; }
22802     then
22803         gcc_cv_as_powerpc_cmpb=yes
22804     else
22805       echo "configure: failed program was" >&5
22806       cat conftest.s >&5
22807     fi
22808     rm -f conftest.o conftest.s
22809   fi
22810 fi
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
22812 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
22813 if test $gcc_cv_as_powerpc_cmpb = yes; then
22814
22815 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
22816
22817 fi
22818
22819     case $target in
22820       *-*-aix*) conftest_s='    .machine "pwr6"
22821         .csect .text[PR]
22822         dadd 1,2,3';;
22823       *) conftest_s='   .machine power6
22824         .text
22825         dadd 1,2,3';;
22826     esac
22827
22828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
22829 $as_echo_n "checking assembler for decimal float support... " >&6; }
22830 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
22831   $as_echo_n "(cached) " >&6
22832 else
22833   gcc_cv_as_powerpc_dfp=no
22834     if test $in_tree_gas = yes; then
22835     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22836   then gcc_cv_as_powerpc_dfp=yes
22837 fi
22838   elif test x$gcc_cv_as != x; then
22839     echo "$conftest_s" > conftest.s
22840     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22841   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22842   (eval $ac_try) 2>&5
22843   ac_status=$?
22844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22845   test $ac_status = 0; }; }
22846     then
22847         gcc_cv_as_powerpc_dfp=yes
22848     else
22849       echo "configure: failed program was" >&5
22850       cat conftest.s >&5
22851     fi
22852     rm -f conftest.o conftest.s
22853   fi
22854 fi
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
22856 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
22857 if test $gcc_cv_as_powerpc_dfp = yes; then
22858
22859 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
22860
22861 fi
22862
22863     case $target in
22864       *-*-aix*) conftest_s='    .machine "pwr7"
22865         .csect .text[PR]
22866         lxvd2x 1,2,3';;
22867       *) conftest_s='   .machine power7
22868         .text
22869         lxvd2x 1,2,3';;
22870     esac
22871
22872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
22873 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
22874 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
22875   $as_echo_n "(cached) " >&6
22876 else
22877   gcc_cv_as_powerpc_vsx=no
22878     if test $in_tree_gas = yes; then
22879     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22880   then gcc_cv_as_powerpc_vsx=yes
22881 fi
22882   elif test x$gcc_cv_as != x; then
22883     echo "$conftest_s" > conftest.s
22884     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22885   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22886   (eval $ac_try) 2>&5
22887   ac_status=$?
22888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22889   test $ac_status = 0; }; }
22890     then
22891         gcc_cv_as_powerpc_vsx=yes
22892     else
22893       echo "configure: failed program was" >&5
22894       cat conftest.s >&5
22895     fi
22896     rm -f conftest.o conftest.s
22897   fi
22898 fi
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
22900 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
22901 if test $gcc_cv_as_powerpc_vsx = yes; then
22902
22903 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
22904
22905 fi
22906
22907     case $target in
22908       *-*-aix*) conftest_s='    .machine "pwr7"
22909         .csect .text[PR]
22910         popcntd 3,3';;
22911       *) conftest_s='   .machine power7
22912         .text
22913         popcntd 3,3';;
22914     esac
22915
22916     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
22917 $as_echo_n "checking assembler for popcntd support... " >&6; }
22918 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
22919   $as_echo_n "(cached) " >&6
22920 else
22921   gcc_cv_as_powerpc_popcntd=no
22922     if test $in_tree_gas = yes; then
22923     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22924   then gcc_cv_as_powerpc_popcntd=yes
22925 fi
22926   elif test x$gcc_cv_as != x; then
22927     echo "$conftest_s" > conftest.s
22928     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22929   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22930   (eval $ac_try) 2>&5
22931   ac_status=$?
22932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22933   test $ac_status = 0; }; }
22934     then
22935         gcc_cv_as_powerpc_popcntd=yes
22936     else
22937       echo "configure: failed program was" >&5
22938       cat conftest.s >&5
22939     fi
22940     rm -f conftest.o conftest.s
22941   fi
22942 fi
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
22944 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
22945 if test $gcc_cv_as_powerpc_popcntd = yes; then
22946
22947 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
22948
22949 fi
22950
22951     case $target in
22952       *-*-aix*) conftest_s='    .csect .text[PR]
22953         lwsync';;
22954       *) conftest_s='   .text
22955         lwsync';;
22956     esac
22957
22958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
22959 $as_echo_n "checking assembler for lwsync support... " >&6; }
22960 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
22961   $as_echo_n "(cached) " >&6
22962 else
22963   gcc_cv_as_powerpc_lwsync=no
22964     if test $in_tree_gas = yes; then
22965     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22966   then gcc_cv_as_powerpc_lwsync=yes
22967 fi
22968   elif test x$gcc_cv_as != x; then
22969     echo "$conftest_s" > conftest.s
22970     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22971   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22972   (eval $ac_try) 2>&5
22973   ac_status=$?
22974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22975   test $ac_status = 0; }; }
22976     then
22977         gcc_cv_as_powerpc_lwsync=yes
22978     else
22979       echo "configure: failed program was" >&5
22980       cat conftest.s >&5
22981     fi
22982     rm -f conftest.o conftest.s
22983   fi
22984 fi
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
22986 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
22987 if test $gcc_cv_as_powerpc_lwsync = yes; then
22988
22989 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
22990
22991 fi
22992
22993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
22994 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
22995 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
22996   $as_echo_n "(cached) " >&6
22997 else
22998   gcc_cv_as_powerpc_gnu_attribute=no
22999     if test $in_tree_gas = yes; then
23000     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23001   then gcc_cv_as_powerpc_gnu_attribute=yes
23002 fi
23003   elif test x$gcc_cv_as != x; then
23004     echo '.gnu_attribute 4,1' > conftest.s
23005     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23006   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23007   (eval $ac_try) 2>&5
23008   ac_status=$?
23009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23010   test $ac_status = 0; }; }
23011     then
23012         gcc_cv_as_powerpc_gnu_attribute=yes
23013     else
23014       echo "configure: failed program was" >&5
23015       cat conftest.s >&5
23016     fi
23017     rm -f conftest.o conftest.s
23018   fi
23019 fi
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23021 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23022 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23023
23024 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23025
23026 fi
23027
23028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23029 $as_echo_n "checking assembler for tls marker support... " >&6; }
23030 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23031   $as_echo_n "(cached) " >&6
23032 else
23033   gcc_cv_as_powerpc_tls_markers=no
23034     if test $in_tree_gas = yes; then
23035     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23036   then gcc_cv_as_powerpc_tls_markers=yes
23037 fi
23038   elif test x$gcc_cv_as != x; then
23039     echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23040     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23041   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23042   (eval $ac_try) 2>&5
23043   ac_status=$?
23044   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23045   test $ac_status = 0; }; }
23046     then
23047         gcc_cv_as_powerpc_tls_markers=yes
23048     else
23049       echo "configure: failed program was" >&5
23050       cat conftest.s >&5
23051     fi
23052     rm -f conftest.o conftest.s
23053   fi
23054 fi
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23056 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23057 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23058
23059 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23060
23061 fi
23062     ;;
23063
23064   mips*-*-*)
23065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23066 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23067 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23068   $as_echo_n "(cached) " >&6
23069 else
23070   gcc_cv_as_mips_explicit_relocs=no
23071     if test $in_tree_gas = yes; then
23072     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23073   then gcc_cv_as_mips_explicit_relocs=yes
23074 fi
23075   elif test x$gcc_cv_as != x; then
23076     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
23077     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23078   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23079   (eval $ac_try) 2>&5
23080   ac_status=$?
23081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23082   test $ac_status = 0; }; }
23083     then
23084         gcc_cv_as_mips_explicit_relocs=yes
23085     else
23086       echo "configure: failed program was" >&5
23087       cat conftest.s >&5
23088     fi
23089     rm -f conftest.o conftest.s
23090   fi
23091 fi
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23093 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23094 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23095   if test x$target_cpu_default = x
23096        then target_cpu_default=MASK_EXPLICIT_RELOCS
23097        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23098        fi
23099 fi
23100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23101 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23102 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23103   $as_echo_n "(cached) " >&6
23104 else
23105   gcc_cv_as_mips_no_shared=no
23106     if test $in_tree_gas = yes; then
23107     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23108   then gcc_cv_as_mips_no_shared=yes
23109 fi
23110   elif test x$gcc_cv_as != x; then
23111     echo 'nop' > conftest.s
23112     if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23113   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23114   (eval $ac_try) 2>&5
23115   ac_status=$?
23116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23117   test $ac_status = 0; }; }
23118     then
23119         gcc_cv_as_mips_no_shared=yes
23120     else
23121       echo "configure: failed program was" >&5
23122       cat conftest.s >&5
23123     fi
23124     rm -f conftest.o conftest.s
23125   fi
23126 fi
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23128 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
23129 if test $gcc_cv_as_mips_no_shared = yes; then
23130
23131 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
23132
23133 fi
23134
23135     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23136 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23137 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
23138   $as_echo_n "(cached) " >&6
23139 else
23140   gcc_cv_as_mips_gnu_attribute=no
23141     if test $in_tree_gas = yes; then
23142     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23143   then gcc_cv_as_mips_gnu_attribute=yes
23144 fi
23145   elif test x$gcc_cv_as != x; then
23146     echo '.gnu_attribute 4,1' > conftest.s
23147     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23148   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23149   (eval $ac_try) 2>&5
23150   ac_status=$?
23151   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23152   test $ac_status = 0; }; }
23153     then
23154         gcc_cv_as_mips_gnu_attribute=yes
23155     else
23156       echo "configure: failed program was" >&5
23157       cat conftest.s >&5
23158     fi
23159     rm -f conftest.o conftest.s
23160   fi
23161 fi
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
23163 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
23164 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23165
23166 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23167
23168 fi
23169
23170     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
23171 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
23172 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
23173   $as_echo_n "(cached) " >&6
23174 else
23175   gcc_cv_as_mips_dtprelword=no
23176     if test $in_tree_gas = yes; then
23177     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23178   then gcc_cv_as_mips_dtprelword=yes
23179 fi
23180   elif test x$gcc_cv_as != x; then
23181     echo '.section .tdata,"awT",@progbits
23182 x:
23183         .word 2
23184         .text
23185         .dtprelword x+0x8000' > conftest.s
23186     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23187   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23188   (eval $ac_try) 2>&5
23189   ac_status=$?
23190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23191   test $ac_status = 0; }; }
23192     then
23193         gcc_cv_as_mips_dtprelword=yes
23194     else
23195       echo "configure: failed program was" >&5
23196       cat conftest.s >&5
23197     fi
23198     rm -f conftest.o conftest.s
23199   fi
23200 fi
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
23202 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
23203 if test $gcc_cv_as_mips_dtprelword = yes; then
23204
23205 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
23206
23207 fi
23208     ;;
23209 esac
23210
23211 # Mips and HP-UX need the GNU assembler.
23212 # Linux on IA64 might be able to use the Intel assembler.
23213
23214 case "$target" in
23215   mips*-*-* | *-*-hpux* )
23216     if test x$gas_flag = xyes \
23217        || test x"$host" != x"$build" \
23218        || test ! -x "$gcc_cv_as" \
23219        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
23220       :
23221     else
23222       echo "*** This configuration requires the GNU assembler" >&2
23223       exit 1
23224     fi
23225     ;;
23226 esac
23227
23228 # ??? Not all targets support dwarf2 debug_line, even within a version
23229 # of gas.  Moreover, we need to emit a valid instruction to trigger any
23230 # info to the output file.  So, as supported targets are added to gas 2.11,
23231 # add some instruction here to (also) show we expect this might work.
23232 # ??? Once 2.11 is released, probably need to add first known working
23233 # version to the per-target configury.
23234 case "$target" in
23235   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
23236   | x86_64*-*-* | hppa*-*-* | arm*-*-* \
23237   | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
23238   | spu-*-* | fido*-*-* | m32c-*-*)
23239     insn="nop"
23240     ;;
23241   ia64*-*-* | s390*-*-*)
23242     insn="nop 0"
23243     ;;
23244   mmix-*-*)
23245     insn="swym 0"
23246     ;;
23247 esac
23248 if test x"$insn" != x; then
23249  conftest_s="\
23250         .file 1 \"conftest.s\"
23251         .loc 1 3 0
23252         $insn"
23253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
23254 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
23255 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
23256   $as_echo_n "(cached) " >&6
23257 else
23258   gcc_cv_as_dwarf2_debug_line=no
23259     if test $in_tree_gas = yes; then
23260     if test $in_tree_gas_is_elf = yes \
23261   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23262   then gcc_cv_as_dwarf2_debug_line=yes
23263 fi
23264   elif test x$gcc_cv_as != x; then
23265     echo "$conftest_s" > conftest.s
23266     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23267   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23268   (eval $ac_try) 2>&5
23269   ac_status=$?
23270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23271   test $ac_status = 0; }; }
23272     then
23273         if test x$gcc_cv_objdump != x \
23274    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
23275       | grep debug_line > /dev/null 2>&1; then
23276      gcc_cv_as_dwarf2_debug_line=yes
23277    fi
23278     else
23279       echo "configure: failed program was" >&5
23280       cat conftest.s >&5
23281     fi
23282     rm -f conftest.o conftest.s
23283   fi
23284 fi
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
23286 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
23287
23288
23289 # The .debug_line file table must be in the exact order that
23290 # we specified the files, since these indices are also used
23291 # by DW_AT_decl_file.  Approximate this test by testing if
23292 # the assembler bitches if the same index is assigned twice.
23293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
23294 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
23295 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
23296   $as_echo_n "(cached) " >&6
23297 else
23298   gcc_cv_as_dwarf2_file_buggy=no
23299   if test x$gcc_cv_as != x; then
23300     echo '      .file 1 "foo.s"
23301         .file 1 "bar.s"' > conftest.s
23302     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23303   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23304   (eval $ac_try) 2>&5
23305   ac_status=$?
23306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23307   test $ac_status = 0; }; }
23308     then
23309         gcc_cv_as_dwarf2_file_buggy=yes
23310     else
23311       echo "configure: failed program was" >&5
23312       cat conftest.s >&5
23313     fi
23314     rm -f conftest.o conftest.s
23315   fi
23316 fi
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
23318 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
23319
23320
23321  if test $gcc_cv_as_dwarf2_debug_line = yes \
23322  && test $gcc_cv_as_dwarf2_file_buggy = no; then
23323
23324 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
23325
23326  fi
23327
23328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
23329 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
23330 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
23331   $as_echo_n "(cached) " >&6
23332 else
23333   gcc_cv_as_gdwarf2_flag=no
23334     if test $in_tree_gas = yes; then
23335     if test $in_tree_gas_is_elf = yes \
23336   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23337   then gcc_cv_as_gdwarf2_flag=yes
23338 fi
23339   elif test x$gcc_cv_as != x; then
23340     echo "$insn" > conftest.s
23341     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
23342   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23343   (eval $ac_try) 2>&5
23344   ac_status=$?
23345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23346   test $ac_status = 0; }; }
23347     then
23348         gcc_cv_as_gdwarf2_flag=yes
23349     else
23350       echo "configure: failed program was" >&5
23351       cat conftest.s >&5
23352     fi
23353     rm -f conftest.o conftest.s
23354   fi
23355 fi
23356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
23357 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
23358 if test $gcc_cv_as_gdwarf2_flag = yes; then
23359
23360 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
23361
23362 fi
23363
23364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
23365 $as_echo_n "checking assembler for --gstabs option... " >&6; }
23366 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
23367   $as_echo_n "(cached) " >&6
23368 else
23369   gcc_cv_as_gstabs_flag=no
23370     if test $in_tree_gas = yes; then
23371     if test $in_tree_gas_is_elf = yes \
23372   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23373   then gcc_cv_as_gstabs_flag=yes
23374 fi
23375   elif test x$gcc_cv_as != x; then
23376     echo "$insn" > conftest.s
23377     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
23378   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23379   (eval $ac_try) 2>&5
23380   ac_status=$?
23381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23382   test $ac_status = 0; }; }
23383     then
23384         # The native Solaris 9/Intel assembler doesn't understand --gstabs
23385    # and warns about it, but still exits successfully.  So check for
23386    # this.
23387    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
23388   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23389   (eval $ac_try) 2>&5
23390   ac_status=$?
23391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23392   test $ac_status = 0; }; }
23393    then :
23394    else gcc_cv_as_gstabs_flag=yes
23395    fi
23396     else
23397       echo "configure: failed program was" >&5
23398       cat conftest.s >&5
23399     fi
23400     rm -f conftest.o conftest.s
23401   fi
23402 fi
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
23404 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
23405 if test $gcc_cv_as_gstabs_flag = yes; then
23406
23407 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
23408
23409 fi
23410
23411  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
23412 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
23413 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
23414   $as_echo_n "(cached) " >&6
23415 else
23416   gcc_cv_as_debug_prefix_map_flag=no
23417     if test $in_tree_gas = yes; then
23418     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23419   then gcc_cv_as_debug_prefix_map_flag=yes
23420 fi
23421   elif test x$gcc_cv_as != x; then
23422     echo "$insn" > conftest.s
23423     if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
23424   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23425   (eval $ac_try) 2>&5
23426   ac_status=$?
23427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23428   test $ac_status = 0; }; }
23429     then
23430         gcc_cv_as_debug_prefix_map_flag=yes
23431     else
23432       echo "configure: failed program was" >&5
23433       cat conftest.s >&5
23434     fi
23435     rm -f conftest.o conftest.s
23436   fi
23437 fi
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
23439 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
23440 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
23441
23442 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
23443
23444 fi
23445 fi
23446
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
23448 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
23449 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
23450   $as_echo_n "(cached) " >&6
23451 else
23452   gcc_cv_as_lcomm_with_alignment=no
23453   if test x$gcc_cv_as != x; then
23454     echo '.lcomm bar,4,16' > conftest.s
23455     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23456   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23457   (eval $ac_try) 2>&5
23458   ac_status=$?
23459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23460   test $ac_status = 0; }; }
23461     then
23462         gcc_cv_as_lcomm_with_alignment=yes
23463     else
23464       echo "configure: failed program was" >&5
23465       cat conftest.s >&5
23466     fi
23467     rm -f conftest.o conftest.s
23468   fi
23469 fi
23470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
23471 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
23472 if test $gcc_cv_as_lcomm_with_alignment = yes; then
23473
23474 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
23475
23476 fi
23477
23478 # Check whether --enable-gnu-unique-object was given.
23479 if test "${enable_gnu_unique_object+set}" = set; then :
23480   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
23481     yes | no) ;;
23482     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
23483 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23484   esac
23485 else
23486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
23487 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
23488 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
23489   $as_echo_n "(cached) " >&6
23490 else
23491   gcc_cv_as_gnu_unique_object=no
23492     if test $in_tree_gas = yes; then
23493     if test $in_tree_gas_is_elf = yes \
23494   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23495   then gcc_cv_as_gnu_unique_object=yes
23496 fi
23497   elif test x$gcc_cv_as != x; then
23498     echo '.type foo, @gnu_unique_object' > conftest.s
23499     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23500   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23501   (eval $ac_try) 2>&5
23502   ac_status=$?
23503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23504   test $ac_status = 0; }; }
23505     then
23506         # Also check for ld.so support, i.e. glibc 2.11 or higher.
23507    if test x$host = x$build -a x$host = x$target &&
23508        glibcver=`ldd --version 2>/dev/null`; then
23509       glibcmajor=`expr "$glibcver" : "ldd (GNU libc) \([0-9]*\)"`
23510       glibcminor=`expr "$glibcver" : "ldd (GNU libc) [0-9]*\.\([0-9]*\)"`
23511       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
23512       if test "$glibcnum" -ge 2011 ; then
23513         gcc_cv_as_gnu_unique_object=yes
23514       fi
23515     fi
23516     else
23517       echo "configure: failed program was" >&5
23518       cat conftest.s >&5
23519     fi
23520     rm -f conftest.o conftest.s
23521   fi
23522 fi
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
23524 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
23525 if test $gcc_cv_as_gnu_unique_object = yes; then
23526   enable_gnu_unique_object=yes
23527 fi
23528 fi
23529
23530 if test x$enable_gnu_unique_object = xyes; then
23531
23532 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
23533
23534 fi
23535
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
23537 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
23538 if test "${gcc_cv_as_line_zero+set}" = set; then :
23539   $as_echo_n "(cached) " >&6
23540 else
23541   gcc_cv_as_line_zero=no
23542   if test $in_tree_gas = yes; then
23543     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
23544   then gcc_cv_as_line_zero=yes
23545 fi
23546   elif test "x$gcc_cv_as" != x; then
23547     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
23548     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
23549   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23550   (eval $ac_try) 2>&5
23551   ac_status=$?
23552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23553   test $ac_status = 0; }; } &&
23554        test "x`cat conftest.out`" = x
23555     then
23556       gcc_cv_as_line_zero=yes
23557     else
23558       echo "configure: failed program was" >&5
23559       cat conftest.s >&5
23560       echo "configure: error output was" >&5
23561       cat conftest.out >&5
23562     fi
23563     rm -f conftest.o conftest.s conftest.out
23564   fi
23565 fi
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
23567 $as_echo "$gcc_cv_as_line_zero" >&6; }
23568 if test "x$gcc_cv_as_line_zero" = xyes; then
23569
23570 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
23571
23572 fi
23573
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
23575 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
23576 gcc_cv_ld_eh_frame_hdr=no
23577 if test $in_tree_ld = yes ; then
23578   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 \
23579      && test $in_tree_ld_is_elf = yes; then
23580     gcc_cv_ld_eh_frame_hdr=yes
23581   fi
23582 elif test x$gcc_cv_ld != x; then
23583         # Check if linker supports --eh-frame-hdr option
23584         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
23585                 gcc_cv_ld_eh_frame_hdr=yes
23586         fi
23587 fi
23588
23589 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
23590
23591 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
23592
23593 fi
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
23595 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
23596
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
23598 $as_echo_n "checking linker position independent executable support... " >&6; }
23599 gcc_cv_ld_pie=no
23600 if test $in_tree_ld = yes ; then
23601   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
23602      && test $in_tree_ld_is_elf = yes; then
23603     gcc_cv_ld_pie=yes
23604   fi
23605 elif test x$gcc_cv_ld != x; then
23606         # Check if linker supports -pie option
23607         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
23608                 gcc_cv_ld_pie=yes
23609         fi
23610 fi
23611 if test x"$gcc_cv_ld_pie" = xyes; then
23612
23613 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
23614
23615 fi
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
23617 $as_echo "$gcc_cv_ld_pie" >&6; }
23618
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
23620 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
23621 gcc_cv_ld_eh_gc_sections=no
23622 if test $in_tree_ld = yes ; then
23623   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 \
23624      && test $in_tree_ld_is_elf = yes; then
23625     gcc_cv_ld_eh_gc_sections=yes
23626   fi
23627 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23628   cat > conftest.s <<EOF
23629         .section        .text
23630 .globl _start
23631         .type _start, @function
23632 _start:
23633         .long foo
23634         .size _start, .-_start
23635         .section        .text.foo,"ax",@progbits
23636         .type foo, @function
23637 foo:
23638         .long 0
23639         .size foo, .-foo
23640         .section        .gcc_except_table.foo,"a",@progbits
23641 .L0:
23642         .long 0
23643         .section        .eh_frame,"a",@progbits
23644         .long .L0
23645 EOF
23646   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23647     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23648          | grep "gc-sections option ignored" > /dev/null; then
23649       gcc_cv_ld_eh_gc_sections=no
23650     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23651       gcc_cv_ld_eh_gc_sections=yes
23652       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23653       if test x$gcc_cv_as_comdat_group != xyes; then
23654         gcc_cv_ld_eh_gc_sections=no
23655         cat > conftest.s <<EOF
23656         .section        .text
23657 .globl _start
23658         .type _start, @function
23659 _start:
23660         .long foo
23661         .size _start, .-_start
23662         .section        .gnu.linkonce.t.foo,"ax",@progbits
23663         .type foo, @function
23664 foo:
23665         .long 0
23666         .size foo, .-foo
23667         .section        .gcc_except_table.foo,"a",@progbits
23668 .L0:
23669         .long 0
23670         .section        .eh_frame,"a",@progbits
23671         .long .L0
23672 EOF
23673         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23674           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23675                | grep "gc-sections option ignored" > /dev/null; then
23676             gcc_cv_ld_eh_gc_sections=no
23677           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23678             gcc_cv_ld_eh_gc_sections=yes
23679           fi
23680         fi
23681       fi
23682     fi
23683   fi
23684   rm -f conftest.s conftest.o conftest
23685 fi
23686 case "$target" in
23687   hppa*-*-linux*)
23688     # ??? This apparently exposes a binutils bug with PC-relative relocations.
23689     gcc_cv_ld_eh_gc_sections=no
23690     ;;
23691 esac
23692 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
23693
23694 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
23695
23696 fi
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
23698 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
23699
23700 # --------
23701 # UNSORTED
23702 # --------
23703
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
23705 $as_echo_n "checking linker --as-needed support... " >&6; }
23706 if test "${gcc_cv_ld_as_needed+set}" = set; then :
23707   $as_echo_n "(cached) " >&6
23708 else
23709   gcc_cv_ld_as_needed=no
23710 if test $in_tree_ld = yes ; then
23711   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 \
23712      && test $in_tree_ld_is_elf = yes; then
23713     gcc_cv_ld_as_needed=yes
23714   fi
23715 elif test x$gcc_cv_ld != x; then
23716         # Check if linker supports --as-needed and --no-as-needed options
23717         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
23718                 gcc_cv_ld_as_needed=yes
23719         fi
23720 fi
23721
23722 fi
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
23724 $as_echo "$gcc_cv_ld_as_needed" >&6; }
23725 if test x"$gcc_cv_ld_as_needed" = xyes; then
23726
23727 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
23728
23729 fi
23730
23731 case "$target:$tm_file" in
23732   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
23733     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
23734 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
23735 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
23736   $as_echo_n "(cached) " >&6
23737 else
23738   gcc_cv_ld_no_dot_syms=no
23739     if test $in_tree_ld = yes ; then
23740       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
23741         gcc_cv_ld_no_dot_syms=yes
23742       fi
23743     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
23744       cat > conftest1.s <<EOF
23745         .text
23746         bl .foo
23747 EOF
23748       cat > conftest2.s <<EOF
23749         .section ".opd","aw"
23750         .align 3
23751         .globl foo
23752         .type foo,@function
23753 foo:
23754         .quad .LEfoo,.TOC.@tocbase,0
23755         .text
23756 .LEfoo:
23757         blr
23758         .size foo,.-.LEfoo
23759 EOF
23760       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
23761          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
23762          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
23763         gcc_cv_ld_no_dot_syms=yes
23764       fi
23765       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
23766     fi
23767
23768 fi
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
23770 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
23771     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
23772
23773 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
23774
23775     fi
23776     ;;
23777 esac
23778
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
23780 $as_echo_n "checking linker --build-id support... " >&6; }
23781 if test "${gcc_cv_ld_buildid+set}" = set; then :
23782   $as_echo_n "(cached) " >&6
23783 else
23784   gcc_cv_ld_buildid=no
23785   if test $in_tree_ld = yes ; then
23786     if test "$gcc_cv_gld_major_version" -eq 2 -a \
23787        "$gcc_cv_gld_minor_version" -ge 18 -o \
23788        "$gcc_cv_gld_major_version" -gt 2 \
23789        && test $in_tree_ld_is_elf = yes; then
23790       gcc_cv_ld_buildid=yes
23791     fi
23792   elif test x$gcc_cv_ld != x; then
23793     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
23794       gcc_cv_ld_buildid=yes
23795     fi
23796   fi
23797 fi
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
23799 $as_echo "$gcc_cv_ld_buildid" >&6; }
23800 if test x"$gcc_cv_ld_buildid" = xyes; then
23801
23802 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
23803
23804 fi
23805
23806 # Check whether --enable-linker-build-id was given.
23807 if test "${enable_linker_build_id+set}" = set; then :
23808   enableval=$enable_linker_build_id;
23809 else
23810   enable_linker_build_id=no
23811 fi
23812
23813
23814 if test x"$enable_linker_build_id" = xyes; then
23815   if test x"$gcc_cv_ld_buildid" = xyes; then
23816
23817 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
23818
23819   else
23820     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
23821 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
23822   fi
23823 fi
23824
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
23826 $as_echo_n "checking linker --sysroot support... " >&6; }
23827 if test "${gcc_cv_ld_sysroot+set}" = set; then :
23828   $as_echo_n "(cached) " >&6
23829 else
23830   gcc_cv_ld_sysroot=no
23831   if test $in_tree_ld = yes ; then
23832       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
23833         gcc_cv_ld_sysroot=yes
23834       fi
23835   elif test x$gcc_cv_ld != x; then
23836     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
23837       gcc_cv_ld_sysroot=yes
23838     fi
23839   fi
23840 fi
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
23842 $as_echo "$gcc_cv_ld_sysroot" >&6; }
23843 if test x"$gcc_cv_ld_sysroot" = xyes; then
23844
23845 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
23846
23847 fi
23848
23849 if test x$with_sysroot = x && test x$host = x$target \
23850    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
23851    && test "$prefix" != "NONE"; then
23852
23853 cat >>confdefs.h <<_ACEOF
23854 #define PREFIX_INCLUDE_DIR "$prefix/include"
23855 _ACEOF
23856
23857 fi
23858
23859 # Test for stack protector support in target C library.
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
23861 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
23862 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
23863   $as_echo_n "(cached) " >&6
23864 else
23865   gcc_cv_libc_provides_ssp=no
23866     case "$target" in
23867        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
23868       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23869         if test "x$with_sysroot" = x; then
23870           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23871         elif test "x$with_build_sysroot" != "x"; then
23872           glibc_header_dir="${with_build_sysroot}/usr/include"
23873         elif test "x$with_sysroot" = xyes; then
23874           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23875         else
23876           glibc_header_dir="${with_sysroot}/usr/include"
23877         fi
23878       else
23879         glibc_header_dir=/usr/include
23880       fi
23881       # glibc 2.4 and later provides __stack_chk_fail and
23882       # either __stack_chk_guard, or TLS access to stack guard canary.
23883       if test -f $glibc_header_dir/features.h \
23884          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
23885             $glibc_header_dir/features.h > /dev/null; then
23886         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
23887            $glibc_header_dir/features.h > /dev/null; then
23888           gcc_cv_libc_provides_ssp=yes
23889         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
23890              $glibc_header_dir/features.h > /dev/null \
23891              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
23892              $glibc_header_dir/features.h > /dev/null; then
23893           gcc_cv_libc_provides_ssp=yes
23894         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
23895              $glibc_header_dir/features.h > /dev/null && \
23896              test -f $glibc_header_dir/bits/uClibc_config.h && \
23897              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
23898              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
23899           gcc_cv_libc_provides_ssp=yes
23900         fi
23901       fi
23902         ;;
23903        *-*-gnu*)
23904          # Avoid complicated tests (see
23905          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
23906          # simply assert that glibc does provide this, which is true for all
23907          # realistically usable GNU/Hurd configurations.
23908          gcc_cv_libc_provides_ssp=yes;;
23909        *-*-darwin*)
23910          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
23911 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
23912   gcc_cv_libc_provides_ssp=yes
23913 else
23914   echo "no __stack_chk_fail on this target"
23915 fi
23916
23917         ;;
23918   *) gcc_cv_libc_provides_ssp=no ;;
23919     esac
23920 fi
23921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
23922 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
23923
23924 if test x$gcc_cv_libc_provides_ssp = xyes; then
23925
23926 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
23927
23928 fi
23929
23930 # Check if TFmode long double should be used by default or not.
23931 # Some glibc targets used DFmode long double, but with glibc 2.4
23932 # and later they can use TFmode.
23933 case "$target" in
23934   powerpc*-*-linux* | \
23935   powerpc*-*-gnu* | \
23936   sparc*-*-linux* | \
23937   s390*-*-linux* | \
23938   alpha*-*-linux*)
23939
23940 # Check whether --with-long-double-128 was given.
23941 if test "${with_long_double_128+set}" = set; then :
23942   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
23943 else
23944   gcc_cv_target_ldbl128=no
23945       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23946         if test "x$with_sysroot" = x; then
23947           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23948         elif test "x$with_build_sysroot" != "x"; then
23949           glibc_header_dir="${with_build_sysroot}/usr/include"
23950         elif test "x$with_sysroot" = xyes; then
23951           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23952         else
23953           glibc_header_dir="${with_sysroot}/usr/include"
23954         fi
23955       else
23956         glibc_header_dir=/usr/include
23957       fi
23958       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
23959         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
23960       && gcc_cv_target_ldbl128=yes
23961
23962 fi
23963
23964     ;;
23965 esac
23966 if test x$gcc_cv_target_ldbl128 = xyes; then
23967
23968 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
23969
23970 fi
23971
23972 # Find out what GC implementation we want, or may, use.
23973
23974 # Check whether --with-gc was given.
23975 if test "${with_gc+set}" = set; then :
23976   withval=$with_gc; case "$withval" in
23977   page)
23978     GGC=ggc-$withval
23979     ;;
23980   zone)
23981     GGC=ggc-$withval
23982
23983 $as_echo "#define GGC_ZONE 1" >>confdefs.h
23984
23985     ;;
23986   *)
23987     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
23988     ;;
23989 esac
23990 else
23991   GGC=ggc-page
23992 fi
23993
23994
23995 echo "Using $GGC for garbage collection."
23996
23997 # Libraries to use on the host.  This will normally be set by the top
23998 # level Makefile.  Here we simply capture the value for our Makefile.
23999 if test -z "${HOST_LIBS+set}"; then
24000   HOST_LIBS=
24001 fi
24002
24003
24004 # Use the system's zlib library.
24005 zlibdir=-L../zlib
24006 zlibinc="-I\$(srcdir)/../zlib"
24007
24008 # Check whether --with-system-zlib was given.
24009 if test "${with_system_zlib+set}" = set; then :
24010   withval=$with_system_zlib; zlibdir=
24011 zlibinc=
24012
24013 fi
24014
24015
24016
24017
24018
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24020 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24021     # Check whether --enable-maintainer-mode was given.
24022 if test "${enable_maintainer_mode+set}" = set; then :
24023   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
24024 else
24025   maintainer_mode=no
24026 fi
24027
24028
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24030 $as_echo "$maintainer_mode" >&6; }
24031
24032 if test "$maintainer_mode" = "yes"; then
24033   MAINT=''
24034 else
24035   MAINT='#'
24036 fi
24037
24038 # --------------
24039 # Language hooks
24040 # --------------
24041
24042 # Make empty files to contain the specs and options for each language.
24043 # Then add #include lines to for a compiler that has specs and/or options.
24044
24045 subdirs=
24046 lang_opt_files=
24047 lang_specs_files=
24048 lang_tree_files=
24049 # These (without "all_") are set in each config-lang.in.
24050 # `language' must be a single word so is spelled singularly.
24051 all_languages=
24052 all_compilers=
24053 all_outputs='Makefile gccbug'
24054 # List of language makefile fragments.
24055 all_lang_makefrags=
24056 # List of language subdirectory makefiles.  Deprecated.
24057 all_lang_makefiles=
24058 # Additional files for gengtype
24059 all_gtfiles="$target_gtfiles"
24060
24061 # These are the languages that are set in --enable-languages,
24062 # and are available in the GCC tree.
24063 all_selected_languages=
24064
24065 # Add the language fragments.
24066 # Languages are added via two mechanisms.  Some information must be
24067 # recorded in makefile variables, these are defined in config-lang.in.
24068 # We accumulate them and plug them into the main Makefile.
24069 # The other mechanism is a set of hooks for each of the main targets
24070 # like `clean', `install', etc.
24071
24072 language_hooks="Make-hooks"
24073
24074 for lang in ${srcdir}/*/config-lang.in
24075 do
24076         test "$lang" = "${srcdir}/*/config-lang.in" && continue
24077
24078         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
24079         if test "x$lang_alias" = x
24080         then
24081               echo "$lang doesn't set \$language." 1>&2
24082               exit 1
24083         fi
24084         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24085         subdirs="$subdirs $subdir"
24086
24087         # $gcc_subdir is where the gcc integration files are to be found
24088         # for a language, both for internal compiler purposes (compiler
24089         # sources implementing front-end to GCC tree converters), and for
24090         # build infrastructure purposes (Make-lang.in, etc.)
24091         #
24092         # This will be <subdir> (relative to $srcdir) if a line like
24093         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24094         # is found in <langdir>/config-lang.in, and will remain <langdir>
24095         # otherwise.
24096         #
24097         # Except for the language alias (fetched above), the regular
24098         # "config-lang.in" contents are always retrieved from $gcc_subdir,
24099         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24100         # only this and the language alias.
24101
24102         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
24103         if [ "$gcc_subdir" = "" ]; then
24104            gcc_subdir="$subdir"
24105         fi
24106
24107         case ",$enable_languages," in
24108         *,$lang_alias,*)
24109             all_selected_languages="$all_selected_languages $lang_alias"
24110             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24111                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24112             fi
24113             ;;
24114         esac
24115
24116         language=
24117         boot_language=
24118         compilers=
24119         outputs=
24120         gtfiles=
24121         subdir_requires=
24122         . ${srcdir}/$gcc_subdir/config-lang.in
24123         if test "x$language" = x
24124         then
24125                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24126                 exit 1
24127         fi
24128
24129         ok=:
24130         case ",$enable_languages," in
24131                 *,$lang_alias,*) ;;
24132                 *)
24133                         for i in $subdir_requires; do
24134                                 test -f "${srcdir}/$i/config-lang.in" && continue
24135                                 ok=false
24136                                 break
24137                         done
24138                 ;;
24139         esac
24140         $ok || continue
24141
24142         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24143         if test -f $srcdir/$gcc_subdir/lang.opt; then
24144             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24145         fi
24146         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
24147             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24148         fi
24149         if test -f ${srcdir}/$gcc_subdir/Makefile.in
24150                 then all_lang_makefiles="$gcc_subdir/Makefile"
24151         fi
24152         all_languages="$all_languages $language"
24153         all_compilers="$all_compilers $compilers"
24154         all_outputs="$all_outputs $outputs"
24155         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
24156 done
24157
24158 # Pick up gtfiles for c
24159 gtfiles=
24160 . ${srcdir}/c-config-lang.in
24161 all_gtfiles="$all_gtfiles [c] $gtfiles"
24162
24163 check_languages=
24164 for language in $all_selected_languages
24165 do
24166         check_languages="$check_languages check-$language"
24167 done
24168
24169 # We link each language in with a set of hooks, reached indirectly via
24170 # lang.${target}.  Only do so for selected languages.
24171
24172 rm -f Make-hooks
24173 touch Make-hooks
24174 target_list="all.cross start.encap rest.encap tags \
24175         install-common install-man install-info install-pdf dvi pdf \
24176         html uninstall info man srcextra srcman srcinfo \
24177         mostlyclean clean distclean maintainer-clean install-plugin"
24178
24179 for t in $target_list
24180 do
24181         x=
24182         for lang in $all_selected_languages
24183         do
24184                 x="$x $lang.$t"
24185         done
24186         echo "lang.$t: $x" >> Make-hooks
24187 done
24188
24189 # --------
24190 # UNSORTED
24191 # --------
24192
24193 # Create .gdbinit.
24194
24195 echo "dir ." > .gdbinit
24196 echo "dir ${srcdir}" >> .gdbinit
24197 if test x$gdb_needs_out_file_path = xyes
24198 then
24199         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24200 fi
24201 if test "x$subdirs" != x; then
24202         for s in $subdirs
24203         do
24204                 echo "dir ${srcdir}/$s" >> .gdbinit
24205         done
24206 fi
24207 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24208
24209 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24210
24211
24212
24213 # Find a directory in which to install a shared libgcc.
24214
24215 # Check whether --enable-version-specific-runtime-libs was given.
24216 if test "${enable_version_specific_runtime_libs+set}" = set; then :
24217   enableval=$enable_version_specific_runtime_libs;
24218 fi
24219
24220
24221
24222 # Check whether --with-slibdir was given.
24223 if test "${with_slibdir+set}" = set; then :
24224   withval=$with_slibdir; slibdir="$with_slibdir"
24225 else
24226   if test "${enable_version_specific_runtime_libs+set}" = set; then
24227   slibdir='$(libsubdir)'
24228 elif test "$host" != "$target"; then
24229   slibdir='$(build_tooldir)/lib'
24230 else
24231   slibdir='$(libdir)'
24232 fi
24233 fi
24234
24235
24236
24237
24238 # Check whether --with-datarootdir was given.
24239 if test "${with_datarootdir+set}" = set; then :
24240   withval=$with_datarootdir; datarootdir="\${prefix}/$with_datarootdir"
24241 else
24242   datarootdir='$(prefix)/share'
24243 fi
24244
24245
24246
24247
24248 # Check whether --with-docdir was given.
24249 if test "${with_docdir+set}" = set; then :
24250   withval=$with_docdir; docdir="\${prefix}/$with_docdir"
24251 else
24252   docdir='$(datarootdir)'
24253 fi
24254
24255
24256
24257
24258 # Check whether --with-htmldir was given.
24259 if test "${with_htmldir+set}" = set; then :
24260   withval=$with_htmldir; htmldir="\${prefix}/$with_htmldir"
24261 else
24262   htmldir='$(docdir)'
24263 fi
24264
24265
24266
24267 # Substitute configuration variables
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
24312
24313
24314
24315
24316
24317
24318
24319
24320
24321
24322
24323
24324
24325
24326
24327
24328
24329 # Echo link setup.
24330 if test x${build} = x${host} ; then
24331   if test x${host} = x${target} ; then
24332     echo "Links are now set up to build a native compiler for ${target}." 1>&2
24333   else
24334     echo "Links are now set up to build a cross-compiler" 1>&2
24335     echo " from ${host} to ${target}." 1>&2
24336   fi
24337 else
24338   if test x${host} = x${target} ; then
24339     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
24340     echo " for ${target}." 1>&2
24341   else
24342     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
24343     echo " from ${host} to ${target}." 1>&2
24344   fi
24345 fi
24346
24347
24348
24349
24350 case "${GMPLIBS}" in
24351   *-lmpc*)
24352 $as_echo "#define HAVE_mpc 1" >>confdefs.h
24353  ;;
24354 esac
24355
24356
24357
24358
24359
24360
24361 if test "x${CLOOGLIBS}" != "x" ; then
24362
24363 $as_echo "#define HAVE_cloog 1" >>confdefs.h
24364
24365 fi
24366
24367 # Check for plugin support
24368 # Check whether --enable-plugin was given.
24369 if test "${enable_plugin+set}" = set; then :
24370   enableval=$enable_plugin; enable_plugin=$enableval
24371 else
24372   enable_plugin=yes; default_plugin=yes
24373 fi
24374
24375
24376 pluginlibs=
24377 if test x"$enable_plugin" = x"yes"; then
24378   # Check that the host supports -rdynamic and -ldl
24379   have_rdynamic=no
24380   have_dl=no
24381   saved_LDFLAGS="$LDFLAGS"
24382   saved_LIBS="$LIBS"
24383   LIBS=
24384
24385   # Check -rdynamic
24386   LDFLAGS="$LDFLAGS -rdynamic"
24387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
24388 $as_echo_n "checking for -rdynamic... " >&6; }
24389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24390 /* end confdefs.h.  */
24391
24392 int
24393 main ()
24394 {
24395 return 0;
24396   ;
24397   return 0;
24398 }
24399 _ACEOF
24400 if ac_fn_c_try_link "$LINENO"; then :
24401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24402 $as_echo "yes" >&6; }; have_rdynamic=yes
24403 else
24404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24405 $as_echo "no" >&6; }
24406 fi
24407 rm -f core conftest.err conftest.$ac_objext \
24408     conftest$ac_exeext conftest.$ac_ext
24409   if test x"$have_rdynamic" = x"yes" ; then
24410     pluginlibs="-rdynamic"
24411   fi
24412
24413   # Check -ldl
24414   LDFLAGS="$LDFLAGS -ldl"
24415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldl" >&5
24416 $as_echo_n "checking for -ldl... " >&6; }
24417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24418 /* end confdefs.h.  */
24419 #include <dlfcn.h>
24420 int
24421 main ()
24422 {
24423 volatile int f = 0; if (f) dlopen ("dummy", 0);
24424   ;
24425   return 0;
24426 }
24427 _ACEOF
24428 if ac_fn_c_try_link "$LINENO"; then :
24429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24430 $as_echo "yes" >&6; }; have_dl=yes
24431 else
24432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24433 $as_echo "no" >&6; }
24434 fi
24435 rm -f core conftest.err conftest.$ac_objext \
24436     conftest$ac_exeext conftest.$ac_ext
24437   if test x"$have_dl" = x"yes"; then
24438     pluginlibs="$pluginlibs -ldl"
24439   fi
24440
24441   # Check that we can build shared objects with -fPIC -shared
24442   LDFLAGS="$LDFLAGS -fPIC -shared"
24443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
24444 $as_echo_n "checking for -fPIC -shared... " >&6; }
24445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24446 /* end confdefs.h.  */
24447 extern int X;
24448 int
24449 main ()
24450 {
24451 return X == 0;
24452   ;
24453   return 0;
24454 }
24455 _ACEOF
24456 if ac_fn_c_try_link "$LINENO"; then :
24457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24458 $as_echo "yes" >&6; }; have_pic_shared=yes
24459 else
24460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24461 $as_echo "no" >&6; }; have_pic_shared=no
24462 fi
24463 rm -f core conftest.err conftest.$ac_objext \
24464     conftest$ac_exeext conftest.$ac_ext
24465   if test x"$have_pic_shared" != x"yes"; then
24466     pluginlibs=
24467     enable_plugin=no
24468   fi
24469
24470   # If plugin support had been requested but not available, fail.
24471   if test x"$enable_plugin" = x"no" ; then
24472     if test x"$default_plugin" != x"yes"; then
24473       as_fn_error "
24474 Building GCC with plugin support requires a host that supports
24475 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
24476     fi
24477   fi
24478
24479   LDFLAGS="$saved_LDFLAGS"
24480   LIBS="$saved_LIBS"
24481 fi
24482
24483
24484
24485 if test x"$enable_plugin" = x"yes"; then
24486
24487 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
24488
24489 fi
24490
24491 # Configure the subdirectories
24492 # AC_CONFIG_SUBDIRS($subdirs)
24493
24494 # Create the Makefile
24495 # and configure language subdirectories
24496 ac_config_files="$ac_config_files $all_outputs"
24497
24498
24499 ac_config_commands="$ac_config_commands default"
24500
24501 cat >confcache <<\_ACEOF
24502 # This file is a shell script that caches the results of configure
24503 # tests run on this system so they can be shared between configure
24504 # scripts and configure runs, see configure's option --config-cache.
24505 # It is not useful on other systems.  If it contains results you don't
24506 # want to keep, you may remove or edit it.
24507 #
24508 # config.status only pays attention to the cache file if you give it
24509 # the --recheck option to rerun configure.
24510 #
24511 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24512 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24513 # following values.
24514
24515 _ACEOF
24516
24517 # The following way of writing the cache mishandles newlines in values,
24518 # but we know of no workaround that is simple, portable, and efficient.
24519 # So, we kill variables containing newlines.
24520 # Ultrix sh set writes to stderr and can't be redirected directly,
24521 # and sets the high bit in the cache file unless we assign to the vars.
24522 (
24523   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24524     eval ac_val=\$$ac_var
24525     case $ac_val in #(
24526     *${as_nl}*)
24527       case $ac_var in #(
24528       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24529 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24530       esac
24531       case $ac_var in #(
24532       _ | IFS | as_nl) ;; #(
24533       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24534       *) { eval $ac_var=; unset $ac_var;} ;;
24535       esac ;;
24536     esac
24537   done
24538
24539   (set) 2>&1 |
24540     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24541     *${as_nl}ac_space=\ *)
24542       # `set' does not quote correctly, so add quotes: double-quote
24543       # substitution turns \\\\ into \\, and sed turns \\ into \.
24544       sed -n \
24545         "s/'/'\\\\''/g;
24546           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24547       ;; #(
24548     *)
24549       # `set' quotes correctly as required by POSIX, so do not add quotes.
24550       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24551       ;;
24552     esac |
24553     sort
24554 ) |
24555   sed '
24556      /^ac_cv_env_/b end
24557      t clear
24558      :clear
24559      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24560      t end
24561      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24562      :end' >>confcache
24563 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24564   if test -w "$cache_file"; then
24565     test "x$cache_file" != "x/dev/null" &&
24566       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24567 $as_echo "$as_me: updating cache $cache_file" >&6;}
24568     cat confcache >$cache_file
24569   else
24570     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24571 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24572   fi
24573 fi
24574 rm -f confcache
24575
24576 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24577 # Let make expand exec_prefix.
24578 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24579
24580 DEFS=-DHAVE_CONFIG_H
24581
24582 ac_libobjs=
24583 ac_ltlibobjs=
24584 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24585   # 1. Remove the extension, and $U if already installed.
24586   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24587   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24588   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24589   #    will be set to the directory where LIBOBJS objects are built.
24590   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24591   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24592 done
24593 LIBOBJS=$ac_libobjs
24594
24595 LTLIBOBJS=$ac_ltlibobjs
24596
24597
24598
24599
24600 : ${CONFIG_STATUS=./config.status}
24601 ac_write_fail=0
24602 ac_clean_files_save=$ac_clean_files
24603 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24605 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24606 as_write_fail=0
24607 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24608 #! $SHELL
24609 # Generated by $as_me.
24610 # Run this file to recreate the current configuration.
24611 # Compiler output produced by configure, useful for debugging
24612 # configure, is in config.log if it exists.
24613
24614 debug=false
24615 ac_cs_recheck=false
24616 ac_cs_silent=false
24617
24618 SHELL=\${CONFIG_SHELL-$SHELL}
24619 export SHELL
24620 _ASEOF
24621 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24622 ## -------------------- ##
24623 ## M4sh Initialization. ##
24624 ## -------------------- ##
24625
24626 # Be more Bourne compatible
24627 DUALCASE=1; export DUALCASE # for MKS sh
24628 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24629   emulate sh
24630   NULLCMD=:
24631   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24632   # is contrary to our usage.  Disable this feature.
24633   alias -g '${1+"$@"}'='"$@"'
24634   setopt NO_GLOB_SUBST
24635 else
24636   case `(set -o) 2>/dev/null` in #(
24637   *posix*) :
24638     set -o posix ;; #(
24639   *) :
24640      ;;
24641 esac
24642 fi
24643
24644
24645 as_nl='
24646 '
24647 export as_nl
24648 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24649 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24650 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24651 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24652 # Prefer a ksh shell builtin over an external printf program on Solaris,
24653 # but without wasting forks for bash or zsh.
24654 if test -z "$BASH_VERSION$ZSH_VERSION" \
24655     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24656   as_echo='print -r --'
24657   as_echo_n='print -rn --'
24658 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24659   as_echo='printf %s\n'
24660   as_echo_n='printf %s'
24661 else
24662   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24663     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24664     as_echo_n='/usr/ucb/echo -n'
24665   else
24666     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24667     as_echo_n_body='eval
24668       arg=$1;
24669       case $arg in #(
24670       *"$as_nl"*)
24671         expr "X$arg" : "X\\(.*\\)$as_nl";
24672         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24673       esac;
24674       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24675     '
24676     export as_echo_n_body
24677     as_echo_n='sh -c $as_echo_n_body as_echo'
24678   fi
24679   export as_echo_body
24680   as_echo='sh -c $as_echo_body as_echo'
24681 fi
24682
24683 # The user is always right.
24684 if test "${PATH_SEPARATOR+set}" != set; then
24685   PATH_SEPARATOR=:
24686   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24687     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24688       PATH_SEPARATOR=';'
24689   }
24690 fi
24691
24692
24693 # IFS
24694 # We need space, tab and new line, in precisely that order.  Quoting is
24695 # there to prevent editors from complaining about space-tab.
24696 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24697 # splitting by setting IFS to empty value.)
24698 IFS=" ""        $as_nl"
24699
24700 # Find who we are.  Look in the path if we contain no directory separator.
24701 case $0 in #((
24702   *[\\/]* ) as_myself=$0 ;;
24703   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24704 for as_dir in $PATH
24705 do
24706   IFS=$as_save_IFS
24707   test -z "$as_dir" && as_dir=.
24708     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24709   done
24710 IFS=$as_save_IFS
24711
24712      ;;
24713 esac
24714 # We did not find ourselves, most probably we were run as `sh COMMAND'
24715 # in which case we are not to be found in the path.
24716 if test "x$as_myself" = x; then
24717   as_myself=$0
24718 fi
24719 if test ! -f "$as_myself"; then
24720   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24721   exit 1
24722 fi
24723
24724 # Unset variables that we do not need and which cause bugs (e.g. in
24725 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
24726 # suppresses any "Segmentation fault" message there.  '((' could
24727 # trigger a bug in pdksh 5.2.14.
24728 for as_var in BASH_ENV ENV MAIL MAILPATH
24729 do eval test x\${$as_var+set} = xset \
24730   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24731 done
24732 PS1='$ '
24733 PS2='> '
24734 PS4='+ '
24735
24736 # NLS nuisances.
24737 LC_ALL=C
24738 export LC_ALL
24739 LANGUAGE=C
24740 export LANGUAGE
24741
24742 # CDPATH.
24743 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24744
24745
24746 # as_fn_error ERROR [LINENO LOG_FD]
24747 # ---------------------------------
24748 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24749 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24750 # script with status $?, using 1 if that was 0.
24751 as_fn_error ()
24752 {
24753   as_status=$?; test $as_status -eq 0 && as_status=1
24754   if test "$3"; then
24755     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24756     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24757   fi
24758   $as_echo "$as_me: error: $1" >&2
24759   as_fn_exit $as_status
24760 } # as_fn_error
24761
24762
24763 # as_fn_set_status STATUS
24764 # -----------------------
24765 # Set $? to STATUS, without forking.
24766 as_fn_set_status ()
24767 {
24768   return $1
24769 } # as_fn_set_status
24770
24771 # as_fn_exit STATUS
24772 # -----------------
24773 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24774 as_fn_exit ()
24775 {
24776   set +e
24777   as_fn_set_status $1
24778   exit $1
24779 } # as_fn_exit
24780
24781 # as_fn_unset VAR
24782 # ---------------
24783 # Portably unset VAR.
24784 as_fn_unset ()
24785 {
24786   { eval $1=; unset $1;}
24787 }
24788 as_unset=as_fn_unset
24789 # as_fn_append VAR VALUE
24790 # ----------------------
24791 # Append the text in VALUE to the end of the definition contained in VAR. Take
24792 # advantage of any shell optimizations that allow amortized linear growth over
24793 # repeated appends, instead of the typical quadratic growth present in naive
24794 # implementations.
24795 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24796   eval 'as_fn_append ()
24797   {
24798     eval $1+=\$2
24799   }'
24800 else
24801   as_fn_append ()
24802   {
24803     eval $1=\$$1\$2
24804   }
24805 fi # as_fn_append
24806
24807 # as_fn_arith ARG...
24808 # ------------------
24809 # Perform arithmetic evaluation on the ARGs, and store the result in the
24810 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24811 # must be portable across $(()) and expr.
24812 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24813   eval 'as_fn_arith ()
24814   {
24815     as_val=$(( $* ))
24816   }'
24817 else
24818   as_fn_arith ()
24819   {
24820     as_val=`expr "$@" || test $? -eq 1`
24821   }
24822 fi # as_fn_arith
24823
24824
24825 if expr a : '\(a\)' >/dev/null 2>&1 &&
24826    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24827   as_expr=expr
24828 else
24829   as_expr=false
24830 fi
24831
24832 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24833   as_basename=basename
24834 else
24835   as_basename=false
24836 fi
24837
24838 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24839   as_dirname=dirname
24840 else
24841   as_dirname=false
24842 fi
24843
24844 as_me=`$as_basename -- "$0" ||
24845 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24846          X"$0" : 'X\(//\)$' \| \
24847          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24848 $as_echo X/"$0" |
24849     sed '/^.*\/\([^/][^/]*\)\/*$/{
24850             s//\1/
24851             q
24852           }
24853           /^X\/\(\/\/\)$/{
24854             s//\1/
24855             q
24856           }
24857           /^X\/\(\/\).*/{
24858             s//\1/
24859             q
24860           }
24861           s/.*/./; q'`
24862
24863 # Avoid depending upon Character Ranges.
24864 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24865 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24866 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24867 as_cr_digits='0123456789'
24868 as_cr_alnum=$as_cr_Letters$as_cr_digits
24869
24870 ECHO_C= ECHO_N= ECHO_T=
24871 case `echo -n x` in #(((((
24872 -n*)
24873   case `echo 'xy\c'` in
24874   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24875   xy)  ECHO_C='\c';;
24876   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
24877        ECHO_T=' ';;
24878   esac;;
24879 *)
24880   ECHO_N='-n';;
24881 esac
24882
24883 rm -f conf$$ conf$$.exe conf$$.file
24884 if test -d conf$$.dir; then
24885   rm -f conf$$.dir/conf$$.file
24886 else
24887   rm -f conf$$.dir
24888   mkdir conf$$.dir 2>/dev/null
24889 fi
24890 if (echo >conf$$.file) 2>/dev/null; then
24891   if ln -s conf$$.file conf$$ 2>/dev/null; then
24892     as_ln_s='ln -s'
24893     # ... but there are two gotchas:
24894     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24895     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24896     # In both cases, we have to default to `cp -p'.
24897     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24898       as_ln_s='cp -p'
24899   elif ln conf$$.file conf$$ 2>/dev/null; then
24900     as_ln_s=ln
24901   else
24902     as_ln_s='cp -p'
24903   fi
24904 else
24905   as_ln_s='cp -p'
24906 fi
24907 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24908 rmdir conf$$.dir 2>/dev/null
24909
24910
24911 # as_fn_mkdir_p
24912 # -------------
24913 # Create "$as_dir" as a directory, including parents if necessary.
24914 as_fn_mkdir_p ()
24915 {
24916
24917   case $as_dir in #(
24918   -*) as_dir=./$as_dir;;
24919   esac
24920   test -d "$as_dir" || eval $as_mkdir_p || {
24921     as_dirs=
24922     while :; do
24923       case $as_dir in #(
24924       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24925       *) as_qdir=$as_dir;;
24926       esac
24927       as_dirs="'$as_qdir' $as_dirs"
24928       as_dir=`$as_dirname -- "$as_dir" ||
24929 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24930          X"$as_dir" : 'X\(//\)[^/]' \| \
24931          X"$as_dir" : 'X\(//\)$' \| \
24932          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24933 $as_echo X"$as_dir" |
24934     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24935             s//\1/
24936             q
24937           }
24938           /^X\(\/\/\)[^/].*/{
24939             s//\1/
24940             q
24941           }
24942           /^X\(\/\/\)$/{
24943             s//\1/
24944             q
24945           }
24946           /^X\(\/\).*/{
24947             s//\1/
24948             q
24949           }
24950           s/.*/./; q'`
24951       test -d "$as_dir" && break
24952     done
24953     test -z "$as_dirs" || eval "mkdir $as_dirs"
24954   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
24955
24956
24957 } # as_fn_mkdir_p
24958 if mkdir -p . 2>/dev/null; then
24959   as_mkdir_p='mkdir -p "$as_dir"'
24960 else
24961   test -d ./-p && rmdir ./-p
24962   as_mkdir_p=false
24963 fi
24964
24965 if test -x / >/dev/null 2>&1; then
24966   as_test_x='test -x'
24967 else
24968   if ls -dL / >/dev/null 2>&1; then
24969     as_ls_L_option=L
24970   else
24971     as_ls_L_option=
24972   fi
24973   as_test_x='
24974     eval sh -c '\''
24975       if test -d "$1"; then
24976         test -d "$1/.";
24977       else
24978         case $1 in #(
24979         -*)set "./$1";;
24980         esac;
24981         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24982         ???[sx]*):;;*)false;;esac;fi
24983     '\'' sh
24984   '
24985 fi
24986 as_executable_p=$as_test_x
24987
24988 # Sed expression to map a string onto a valid CPP name.
24989 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24990
24991 # Sed expression to map a string onto a valid variable name.
24992 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24993
24994
24995 exec 6>&1
24996 ## ----------------------------------- ##
24997 ## Main body of $CONFIG_STATUS script. ##
24998 ## ----------------------------------- ##
24999 _ASEOF
25000 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25001
25002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25003 # Save the log message, to keep $0 and so on meaningful, and to
25004 # report actual input values of CONFIG_FILES etc. instead of their
25005 # values after options handling.
25006 ac_log="
25007 This file was extended by $as_me, which was
25008 generated by GNU Autoconf 2.64.  Invocation command line was
25009
25010   CONFIG_FILES    = $CONFIG_FILES
25011   CONFIG_HEADERS  = $CONFIG_HEADERS
25012   CONFIG_LINKS    = $CONFIG_LINKS
25013   CONFIG_COMMANDS = $CONFIG_COMMANDS
25014   $ $0 $@
25015
25016 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25017 "
25018
25019 _ACEOF
25020
25021 case $ac_config_files in *"
25022 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25023 esac
25024
25025 case $ac_config_headers in *"
25026 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25027 esac
25028
25029
25030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25031 # Files that config.status was made for.
25032 config_files="$ac_config_files"
25033 config_headers="$ac_config_headers"
25034 config_commands="$ac_config_commands"
25035
25036 _ACEOF
25037
25038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25039 ac_cs_usage="\
25040 \`$as_me' instantiates files and other configuration actions
25041 from templates according to the current configuration.  Unless the files
25042 and actions are specified as TAGs, all are instantiated by default.
25043
25044 Usage: $0 [OPTION]... [TAG]...
25045
25046   -h, --help       print this help, then exit
25047   -V, --version    print version number and configuration settings, then exit
25048   -q, --quiet, --silent
25049                    do not print progress messages
25050   -d, --debug      don't remove temporary files
25051       --recheck    update $as_me by reconfiguring in the same conditions
25052       --file=FILE[:TEMPLATE]
25053                    instantiate the configuration file FILE
25054       --header=FILE[:TEMPLATE]
25055                    instantiate the configuration header FILE
25056
25057 Configuration files:
25058 $config_files
25059
25060 Configuration headers:
25061 $config_headers
25062
25063 Configuration commands:
25064 $config_commands
25065
25066 Report bugs to the package provider."
25067
25068 _ACEOF
25069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25070 ac_cs_version="\\
25071 config.status
25072 configured by $0, generated by GNU Autoconf 2.64,
25073   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25074
25075 Copyright (C) 2009 Free Software Foundation, Inc.
25076 This config.status script is free software; the Free Software Foundation
25077 gives unlimited permission to copy, distribute and modify it."
25078
25079 ac_pwd='$ac_pwd'
25080 srcdir='$srcdir'
25081 AWK='$AWK'
25082 test -n "\$AWK" || AWK=awk
25083 _ACEOF
25084
25085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25086 # The default lists apply if the user does not specify any file.
25087 ac_need_defaults=:
25088 while test $# != 0
25089 do
25090   case $1 in
25091   --*=*)
25092     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25093     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25094     ac_shift=:
25095     ;;
25096   *)
25097     ac_option=$1
25098     ac_optarg=$2
25099     ac_shift=shift
25100     ;;
25101   esac
25102
25103   case $ac_option in
25104   # Handling of the options.
25105   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25106     ac_cs_recheck=: ;;
25107   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25108     $as_echo "$ac_cs_version"; exit ;;
25109   --debug | --debu | --deb | --de | --d | -d )
25110     debug=: ;;
25111   --file | --fil | --fi | --f )
25112     $ac_shift
25113     case $ac_optarg in
25114     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25115     esac
25116     as_fn_append CONFIG_FILES " '$ac_optarg'"
25117     ac_need_defaults=false;;
25118   --header | --heade | --head | --hea )
25119     $ac_shift
25120     case $ac_optarg in
25121     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25122     esac
25123     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25124     ac_need_defaults=false;;
25125   --he | --h)
25126     # Conflict between --help and --header
25127     as_fn_error "ambiguous option: \`$1'
25128 Try \`$0 --help' for more information.";;
25129   --help | --hel | -h )
25130     $as_echo "$ac_cs_usage"; exit ;;
25131   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25132   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25133     ac_cs_silent=: ;;
25134
25135   # This is an error.
25136   -*) as_fn_error "unrecognized option: \`$1'
25137 Try \`$0 --help' for more information." ;;
25138
25139   *) as_fn_append ac_config_targets " $1"
25140      ac_need_defaults=false ;;
25141
25142   esac
25143   shift
25144 done
25145
25146 ac_configure_extra_args=
25147
25148 if $ac_cs_silent; then
25149   exec 6>/dev/null
25150   ac_configure_extra_args="$ac_configure_extra_args --silent"
25151 fi
25152
25153 _ACEOF
25154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25155 if \$ac_cs_recheck; then
25156   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25157   shift
25158   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25159   CONFIG_SHELL='$SHELL'
25160   export CONFIG_SHELL
25161   exec "\$@"
25162 fi
25163
25164 _ACEOF
25165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25166 exec 5>>config.log
25167 {
25168   echo
25169   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25170 ## Running $as_me. ##
25171 _ASBOX
25172   $as_echo "$ac_log"
25173 } >&5
25174
25175 _ACEOF
25176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25177 #
25178 # INIT-COMMANDS
25179 #
25180 subdirs='$subdirs'
25181
25182 _ACEOF
25183
25184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25185
25186 # Handling of arguments.
25187 for ac_config_target in $ac_config_targets
25188 do
25189   case $ac_config_target in
25190     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
25191     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
25192     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25193     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
25194     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
25195     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25196
25197   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25198   esac
25199 done
25200
25201
25202 # If the user did not use the arguments to specify the items to instantiate,
25203 # then the envvar interface is used.  Set only those that are not.
25204 # We use the long form for the default assignment because of an extremely
25205 # bizarre bug on SunOS 4.1.3.
25206 if $ac_need_defaults; then
25207   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25208   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25209   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25210 fi
25211
25212 # Have a temporary directory for convenience.  Make it in the build tree
25213 # simply because there is no reason against having it here, and in addition,
25214 # creating and moving files from /tmp can sometimes cause problems.
25215 # Hook for its removal unless debugging.
25216 # Note that there is a small window in which the directory will not be cleaned:
25217 # after its creation but before its name has been assigned to `$tmp'.
25218 $debug ||
25219 {
25220   tmp=
25221   trap 'exit_status=$?
25222   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25223 ' 0
25224   trap 'as_fn_exit 1' 1 2 13 15
25225 }
25226 # Create a (secure) tmp directory for tmp files.
25227
25228 {
25229   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25230   test -n "$tmp" && test -d "$tmp"
25231 }  ||
25232 {
25233   tmp=./conf$$-$RANDOM
25234   (umask 077 && mkdir "$tmp")
25235 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25236
25237 # Set up the scripts for CONFIG_FILES section.
25238 # No need to generate them if there are no CONFIG_FILES.
25239 # This happens for instance with `./config.status config.h'.
25240 if test -n "$CONFIG_FILES"; then
25241
25242 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25243   ac_cs_awk_getline=:
25244   ac_cs_awk_pipe_init=
25245   ac_cs_awk_read_file='
25246       while ((getline aline < (F[key])) > 0)
25247         print(aline)
25248       close(F[key])'
25249   ac_cs_awk_pipe_fini=
25250 else
25251   ac_cs_awk_getline=false
25252   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25253   ac_cs_awk_read_file='
25254       print "|#_!!_#|"
25255       print "cat " F[key] " &&"
25256       '$ac_cs_awk_pipe_init
25257   # The final `:' finishes the AND list.
25258   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25259 fi
25260 ac_cr=`echo X | tr X '\015'`
25261 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25262 # But we know of no other shell where ac_cr would be empty at this
25263 # point, so we can use a bashism as a fallback.
25264 if test "x$ac_cr" = x; then
25265   eval ac_cr=\$\'\\r\'
25266 fi
25267 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25268 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25269   ac_cs_awk_cr='\r'
25270 else
25271   ac_cs_awk_cr=$ac_cr
25272 fi
25273
25274 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25275 _ACEOF
25276
25277 # Create commands to substitute file output variables.
25278 {
25279   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25280   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25281   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25282   echo "_ACAWK" &&
25283   echo "_ACEOF"
25284 } >conf$$files.sh &&
25285 . ./conf$$files.sh ||
25286   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25287 rm -f conf$$files.sh
25288
25289 {
25290   echo "cat >conf$$subs.awk <<_ACEOF" &&
25291   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25292   echo "_ACEOF"
25293 } >conf$$subs.sh ||
25294   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25295 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25296 ac_delim='%!_!# '
25297 for ac_last_try in false false false false false :; do
25298   . ./conf$$subs.sh ||
25299     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25300
25301   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25302   if test $ac_delim_n = $ac_delim_num; then
25303     break
25304   elif $ac_last_try; then
25305     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25306   else
25307     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25308   fi
25309 done
25310 rm -f conf$$subs.sh
25311
25312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25313 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25314 _ACEOF
25315 sed -n '
25316 h
25317 s/^/S["/; s/!.*/"]=/
25318 p
25319 g
25320 s/^[^!]*!//
25321 :repl
25322 t repl
25323 s/'"$ac_delim"'$//
25324 t delim
25325 :nl
25326 h
25327 s/\(.\{148\}\).*/\1/
25328 t more1
25329 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25330 p
25331 n
25332 b repl
25333 :more1
25334 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25335 p
25336 g
25337 s/.\{148\}//
25338 t nl
25339 :delim
25340 h
25341 s/\(.\{148\}\).*/\1/
25342 t more2
25343 s/["\\]/\\&/g; s/^/"/; s/$/"/
25344 p
25345 b
25346 :more2
25347 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25348 p
25349 g
25350 s/.\{148\}//
25351 t delim
25352 ' <conf$$subs.awk | sed '
25353 /^[^""]/{
25354   N
25355   s/\n//
25356 }
25357 ' >>$CONFIG_STATUS || ac_write_fail=1
25358 rm -f conf$$subs.awk
25359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25360 _ACAWK
25361 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25362   for (key in S) S_is_set[key] = 1
25363   FS = "\a"
25364   \$ac_cs_awk_pipe_init
25365 }
25366 {
25367   line = $ 0
25368   nfields = split(line, field, "@")
25369   substed = 0
25370   len = length(field[1])
25371   for (i = 2; i < nfields; i++) {
25372     key = field[i]
25373     keylen = length(key)
25374     if (S_is_set[key]) {
25375       value = S[key]
25376       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25377       len += length(value) + length(field[++i])
25378       substed = 1
25379     } else
25380       len += 1 + keylen
25381   }
25382   if (nfields == 3 && !substed) {
25383     key = field[2]
25384     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
25385       \$ac_cs_awk_read_file
25386       next
25387     }
25388   }
25389   print line
25390 }
25391 \$ac_cs_awk_pipe_fini
25392 _ACAWK
25393 _ACEOF
25394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25395 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25396   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25397 else
25398   cat
25399 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25400   || as_fn_error "could not setup config files machinery" "$LINENO" 5
25401 _ACEOF
25402
25403 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25404 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25405 # trailing colons and then remove the whole line if VPATH becomes empty
25406 # (actually we leave an empty line to preserve line numbers).
25407 if test "x$srcdir" = x.; then
25408   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25409 s/:*\$(srcdir):*/:/
25410 s/:*\${srcdir}:*/:/
25411 s/:*@srcdir@:*/:/
25412 s/^\([^=]*=[     ]*\):*/\1/
25413 s/:*$//
25414 s/^[^=]*=[       ]*$//
25415 }'
25416 fi
25417
25418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25419 fi # test -n "$CONFIG_FILES"
25420
25421 # Set up the scripts for CONFIG_HEADERS section.
25422 # No need to generate them if there are no CONFIG_HEADERS.
25423 # This happens for instance with `./config.status Makefile'.
25424 if test -n "$CONFIG_HEADERS"; then
25425 cat >"$tmp/defines.awk" <<\_ACAWK ||
25426 BEGIN {
25427 _ACEOF
25428
25429 # Transform confdefs.h into an awk script `defines.awk', embedded as
25430 # here-document in config.status, that substitutes the proper values into
25431 # config.h.in to produce config.h.
25432
25433 # Create a delimiter string that does not exist in confdefs.h, to ease
25434 # handling of long lines.
25435 ac_delim='%!_!# '
25436 for ac_last_try in false false :; do
25437   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25438   if test -z "$ac_t"; then
25439     break
25440   elif $ac_last_try; then
25441     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25442   else
25443     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25444   fi
25445 done
25446
25447 # For the awk script, D is an array of macro values keyed by name,
25448 # likewise P contains macro parameters if any.  Preserve backslash
25449 # newline sequences.
25450
25451 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25452 sed -n '
25453 s/.\{148\}/&'"$ac_delim"'/g
25454 t rset
25455 :rset
25456 s/^[     ]*#[    ]*define[       ][      ]*/ /
25457 t def
25458 d
25459 :def
25460 s/\\$//
25461 t bsnl
25462 s/["\\]/\\&/g
25463 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
25464 D["\1"]=" \3"/p
25465 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
25466 d
25467 :bsnl
25468 s/["\\]/\\&/g
25469 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
25470 D["\1"]=" \3\\\\\\n"\\/p
25471 t cont
25472 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25473 t cont
25474 d
25475 :cont
25476 n
25477 s/.\{148\}/&'"$ac_delim"'/g
25478 t clear
25479 :clear
25480 s/\\$//
25481 t bsnlc
25482 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25483 d
25484 :bsnlc
25485 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25486 b cont
25487 ' <confdefs.h | sed '
25488 s/'"$ac_delim"'/"\\\
25489 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25490
25491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25492   for (key in D) D_is_set[key] = 1
25493   FS = "\a"
25494 }
25495 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25496   line = \$ 0
25497   split(line, arg, " ")
25498   if (arg[1] == "#") {
25499     defundef = arg[2]
25500     mac1 = arg[3]
25501   } else {
25502     defundef = substr(arg[1], 2)
25503     mac1 = arg[2]
25504   }
25505   split(mac1, mac2, "(") #)
25506   macro = mac2[1]
25507   prefix = substr(line, 1, index(line, defundef) - 1)
25508   if (D_is_set[macro]) {
25509     # Preserve the white space surrounding the "#".
25510     print prefix "define", macro P[macro] D[macro]
25511     next
25512   } else {
25513     # Replace #undef with comments.  This is necessary, for example,
25514     # in the case of _POSIX_SOURCE, which is predefined and required
25515     # on some systems where configure will not decide to define it.
25516     if (defundef == "undef") {
25517       print "/*", prefix defundef, macro, "*/"
25518       next
25519     }
25520   }
25521 }
25522 { print }
25523 _ACAWK
25524 _ACEOF
25525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25526   as_fn_error "could not setup config headers machinery" "$LINENO" 5
25527 fi # test -n "$CONFIG_HEADERS"
25528
25529
25530 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
25531 shift
25532 for ac_tag
25533 do
25534   case $ac_tag in
25535   :[FHLC]) ac_mode=$ac_tag; continue;;
25536   esac
25537   case $ac_mode$ac_tag in
25538   :[FHL]*:*);;
25539   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25540   :[FH]-) ac_tag=-:-;;
25541   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25542   esac
25543   ac_save_IFS=$IFS
25544   IFS=:
25545   set x $ac_tag
25546   IFS=$ac_save_IFS
25547   shift
25548   ac_file=$1
25549   shift
25550
25551   case $ac_mode in
25552   :L) ac_source=$1;;
25553   :[FH])
25554     ac_file_inputs=
25555     for ac_f
25556     do
25557       case $ac_f in
25558       -) ac_f="$tmp/stdin";;
25559       *) # Look for the file first in the build tree, then in the source tree
25560          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25561          # because $ac_f cannot contain `:'.
25562          test -f "$ac_f" ||
25563            case $ac_f in
25564            [\\/$]*) false;;
25565            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25566            esac ||
25567            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25568       esac
25569       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25570       as_fn_append ac_file_inputs " '$ac_f'"
25571     done
25572
25573     # Let's still pretend it is `configure' which instantiates (i.e., don't
25574     # use $as_me), people would be surprised to read:
25575     #    /* config.h.  Generated by config.status.  */
25576     configure_input='Generated from '`
25577           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25578         `' by configure.'
25579     if test x"$ac_file" != x-; then
25580       configure_input="$ac_file.  $configure_input"
25581       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25582 $as_echo "$as_me: creating $ac_file" >&6;}
25583     fi
25584     # Neutralize special characters interpreted by sed in replacement strings.
25585     case $configure_input in #(
25586     *\&* | *\|* | *\\* )
25587        ac_sed_conf_input=`$as_echo "$configure_input" |
25588        sed 's/[\\\\&|]/\\\\&/g'`;; #(
25589     *) ac_sed_conf_input=$configure_input;;
25590     esac
25591
25592     case $ac_tag in
25593     *:-:* | *:-) cat >"$tmp/stdin" \
25594       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25595     esac
25596     ;;
25597   esac
25598
25599   ac_dir=`$as_dirname -- "$ac_file" ||
25600 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25601          X"$ac_file" : 'X\(//\)[^/]' \| \
25602          X"$ac_file" : 'X\(//\)$' \| \
25603          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25604 $as_echo X"$ac_file" |
25605     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25606             s//\1/
25607             q
25608           }
25609           /^X\(\/\/\)[^/].*/{
25610             s//\1/
25611             q
25612           }
25613           /^X\(\/\/\)$/{
25614             s//\1/
25615             q
25616           }
25617           /^X\(\/\).*/{
25618             s//\1/
25619             q
25620           }
25621           s/.*/./; q'`
25622   as_dir="$ac_dir"; as_fn_mkdir_p
25623   ac_builddir=.
25624
25625 case "$ac_dir" in
25626 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25627 *)
25628   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25629   # A ".." for each directory in $ac_dir_suffix.
25630   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25631   case $ac_top_builddir_sub in
25632   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25633   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25634   esac ;;
25635 esac
25636 ac_abs_top_builddir=$ac_pwd
25637 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25638 # for backward compatibility:
25639 ac_top_builddir=$ac_top_build_prefix
25640
25641 case $srcdir in
25642   .)  # We are building in place.
25643     ac_srcdir=.
25644     ac_top_srcdir=$ac_top_builddir_sub
25645     ac_abs_top_srcdir=$ac_pwd ;;
25646   [\\/]* | ?:[\\/]* )  # Absolute name.
25647     ac_srcdir=$srcdir$ac_dir_suffix;
25648     ac_top_srcdir=$srcdir
25649     ac_abs_top_srcdir=$srcdir ;;
25650   *) # Relative name.
25651     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25652     ac_top_srcdir=$ac_top_build_prefix$srcdir
25653     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25654 esac
25655 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25656
25657
25658   case $ac_mode in
25659   :F)
25660   #
25661   # CONFIG_FILE
25662   #
25663
25664 _ACEOF
25665
25666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25667 # If the template does not know about datarootdir, expand it.
25668 # FIXME: This hack should be removed a few years after 2.60.
25669 ac_datarootdir_hack=; ac_datarootdir_seen=
25670 ac_sed_dataroot='
25671 /datarootdir/ {
25672   p
25673   q
25674 }
25675 /@datadir@/p
25676 /@docdir@/p
25677 /@infodir@/p
25678 /@localedir@/p
25679 /@mandir@/p'
25680 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25681 *datarootdir*) ac_datarootdir_seen=yes;;
25682 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25683   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25684 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25685 _ACEOF
25686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25687   ac_datarootdir_hack='
25688   s&@datadir@&$datadir&g
25689   s&@docdir@&$docdir&g
25690   s&@infodir@&$infodir&g
25691   s&@localedir@&$localedir&g
25692   s&@mandir@&$mandir&g
25693   s&\\\${datarootdir}&$datarootdir&g' ;;
25694 esac
25695 _ACEOF
25696
25697 # Neutralize VPATH when `$srcdir' = `.'.
25698 # Shell code in configure.ac might set extrasub.
25699 # FIXME: do we really want to maintain this feature?
25700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25701 ac_sed_extra="$ac_vpsub
25702 $extrasub
25703 _ACEOF
25704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25705 :t
25706 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25707 s|@configure_input@|$ac_sed_conf_input|;t t
25708 s&@top_builddir@&$ac_top_builddir_sub&;t t
25709 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25710 s&@srcdir@&$ac_srcdir&;t t
25711 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25712 s&@top_srcdir@&$ac_top_srcdir&;t t
25713 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25714 s&@builddir@&$ac_builddir&;t t
25715 s&@abs_builddir@&$ac_abs_builddir&;t t
25716 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25717 $ac_datarootdir_hack
25718 "
25719 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25720 if $ac_cs_awk_getline; then
25721   $AWK -f "$tmp/subs.awk"
25722 else
25723   $AWK -f "$tmp/subs.awk" | $SHELL
25724 fi >$tmp/out \
25725   || as_fn_error "could not create $ac_file" "$LINENO" 5
25726
25727 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25728   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25729   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25730   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25731 which seems to be undefined.  Please make sure it is defined." >&5
25732 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25733 which seems to be undefined.  Please make sure it is defined." >&2;}
25734
25735   rm -f "$tmp/stdin"
25736   case $ac_file in
25737   -) cat "$tmp/out" && rm -f "$tmp/out";;
25738   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25739   esac \
25740   || as_fn_error "could not create $ac_file" "$LINENO" 5
25741  ;;
25742   :H)
25743   #
25744   # CONFIG_HEADER
25745   #
25746   if test x"$ac_file" != x-; then
25747     {
25748       $as_echo "/* $configure_input  */" \
25749       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25750     } >"$tmp/config.h" \
25751       || as_fn_error "could not create $ac_file" "$LINENO" 5
25752     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25753       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25754 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25755     else
25756       rm -f "$ac_file"
25757       mv "$tmp/config.h" "$ac_file" \
25758         || as_fn_error "could not create $ac_file" "$LINENO" 5
25759     fi
25760   else
25761     $as_echo "/* $configure_input  */" \
25762       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25763       || as_fn_error "could not create -" "$LINENO" 5
25764   fi
25765  ;;
25766
25767   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25768 $as_echo "$as_me: executing $ac_file commands" >&6;}
25769  ;;
25770   esac
25771
25772
25773   case $ac_file$ac_mode in
25774     "as":F) chmod +x as ;;
25775     "collect-ld":F) chmod +x collect-ld ;;
25776     "nm":F) chmod +x nm ;;
25777     "default":C)
25778 case ${CONFIG_HEADERS} in
25779   *auto-host.h:config.in*)
25780   echo > cstamp-h ;;
25781 esac
25782 # Make sure all the subdirs exist.
25783 for d in $subdirs doc build
25784 do
25785     test -d $d || mkdir $d
25786 done
25787  ;;
25788
25789   esac
25790 done # for ac_tag
25791
25792
25793 as_fn_exit 0
25794 _ACEOF
25795 ac_clean_files=$ac_clean_files_save
25796
25797 test $ac_write_fail = 0 ||
25798   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
25799
25800
25801 # configure is writing to config.log, and then calls config.status.
25802 # config.status does its own redirection, appending to config.log.
25803 # Unfortunately, on DOS this fails, as config.log is still kept open
25804 # by configure, so config.status won't be able to write to it; its
25805 # output is simply discarded.  So we exec the FD to /dev/null,
25806 # effectively closing config.log, so it can be properly (re)opened and
25807 # appended to by config.status.  When coming back to configure, we
25808 # need to make the FD available again.
25809 if test "$no_create" != yes; then
25810   ac_cs_success=:
25811   ac_config_status_args=
25812   test "$silent" = yes &&
25813     ac_config_status_args="$ac_config_status_args --quiet"
25814   exec 5>/dev/null
25815   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25816   exec 5>>config.log
25817   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25818   # would make configure fail if this is the last instruction.
25819   $ac_cs_success || as_fn_exit $?
25820 fi
25821 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25822   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25823 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25824 fi
25825