OSDN Git Service

PR debug/40521
[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 enable_plugin
1045 '
1046       ac_precious_vars='build_alias
1047 host_alias
1048 target_alias
1049 CC
1050 CFLAGS
1051 LDFLAGS
1052 LIBS
1053 CPPFLAGS
1054 CXX
1055 CXXFLAGS
1056 CCC
1057 CPP
1058 CXXCPP
1059 GMPLIBS
1060 GMPINC
1061 PPLLIBS
1062 PPLINC
1063 CLOOGLIBS
1064 CLOOGINC'
1065
1066
1067 # Initialize some variables set by options.
1068 ac_init_help=
1069 ac_init_version=false
1070 ac_unrecognized_opts=
1071 ac_unrecognized_sep=
1072 # The variables have the same names as the options, with
1073 # dashes changed to underlines.
1074 cache_file=/dev/null
1075 exec_prefix=NONE
1076 no_create=
1077 no_recursion=
1078 prefix=NONE
1079 program_prefix=NONE
1080 program_suffix=NONE
1081 program_transform_name=s,x,x,
1082 silent=
1083 site=
1084 srcdir=
1085 verbose=
1086 x_includes=NONE
1087 x_libraries=NONE
1088
1089 # Installation directory options.
1090 # These are left unexpanded so users can "make install exec_prefix=/foo"
1091 # and all the variables that are supposed to be based on exec_prefix
1092 # by default will actually change.
1093 # Use braces instead of parens because sh, perl, etc. also accept them.
1094 # (The list follows the same order as the GNU Coding Standards.)
1095 bindir='${exec_prefix}/bin'
1096 sbindir='${exec_prefix}/sbin'
1097 libexecdir='${exec_prefix}/libexec'
1098 datarootdir='${prefix}/share'
1099 datadir='${datarootdir}'
1100 sysconfdir='${prefix}/etc'
1101 sharedstatedir='${prefix}/com'
1102 localstatedir='${prefix}/var'
1103 includedir='${prefix}/include'
1104 oldincludedir='/usr/include'
1105 docdir='${datarootdir}/doc/${PACKAGE}'
1106 infodir='${datarootdir}/info'
1107 htmldir='${docdir}'
1108 dvidir='${docdir}'
1109 pdfdir='${docdir}'
1110 psdir='${docdir}'
1111 libdir='${exec_prefix}/lib'
1112 localedir='${datarootdir}/locale'
1113 mandir='${datarootdir}/man'
1114
1115 ac_prev=
1116 ac_dashdash=
1117 for ac_option
1118 do
1119   # If the previous option needs an argument, assign it.
1120   if test -n "$ac_prev"; then
1121     eval $ac_prev=\$ac_option
1122     ac_prev=
1123     continue
1124   fi
1125
1126   case $ac_option in
1127   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1128   *)    ac_optarg=yes ;;
1129   esac
1130
1131   # Accept the important Cygnus configure options, so we can diagnose typos.
1132
1133   case $ac_dashdash$ac_option in
1134   --)
1135     ac_dashdash=yes ;;
1136
1137   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1138     ac_prev=bindir ;;
1139   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1140     bindir=$ac_optarg ;;
1141
1142   -build | --build | --buil | --bui | --bu)
1143     ac_prev=build_alias ;;
1144   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1145     build_alias=$ac_optarg ;;
1146
1147   -cache-file | --cache-file | --cache-fil | --cache-fi \
1148   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1149     ac_prev=cache_file ;;
1150   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1151   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1152     cache_file=$ac_optarg ;;
1153
1154   --config-cache | -C)
1155     cache_file=config.cache ;;
1156
1157   -datadir | --datadir | --datadi | --datad)
1158     ac_prev=datadir ;;
1159   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1160     datadir=$ac_optarg ;;
1161
1162   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1163   | --dataroo | --dataro | --datar)
1164     ac_prev=datarootdir ;;
1165   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1166   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1167     datarootdir=$ac_optarg ;;
1168
1169   -disable-* | --disable-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       as_fn_error "invalid feature name: $ac_useropt"
1174     ac_useropt_orig=$ac_useropt
1175     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176     case $ac_user_opts in
1177       *"
1178 "enable_$ac_useropt"
1179 "*) ;;
1180       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval enable_$ac_useropt=no ;;
1184
1185   -docdir | --docdir | --docdi | --doc | --do)
1186     ac_prev=docdir ;;
1187   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1188     docdir=$ac_optarg ;;
1189
1190   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1191     ac_prev=dvidir ;;
1192   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1193     dvidir=$ac_optarg ;;
1194
1195   -enable-* | --enable-*)
1196     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1197     # Reject names that are not valid shell variable names.
1198     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199       as_fn_error "invalid feature name: $ac_useropt"
1200     ac_useropt_orig=$ac_useropt
1201     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202     case $ac_user_opts in
1203       *"
1204 "enable_$ac_useropt"
1205 "*) ;;
1206       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1207          ac_unrecognized_sep=', ';;
1208     esac
1209     eval enable_$ac_useropt=\$ac_optarg ;;
1210
1211   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1212   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1213   | --exec | --exe | --ex)
1214     ac_prev=exec_prefix ;;
1215   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1216   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1217   | --exec=* | --exe=* | --ex=*)
1218     exec_prefix=$ac_optarg ;;
1219
1220   -gas | --gas | --ga | --g)
1221     # Obsolete; use --with-gas.
1222     with_gas=yes ;;
1223
1224   -help | --help | --hel | --he | -h)
1225     ac_init_help=long ;;
1226   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1227     ac_init_help=recursive ;;
1228   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1229     ac_init_help=short ;;
1230
1231   -host | --host | --hos | --ho)
1232     ac_prev=host_alias ;;
1233   -host=* | --host=* | --hos=* | --ho=*)
1234     host_alias=$ac_optarg ;;
1235
1236   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1237     ac_prev=htmldir ;;
1238   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1239   | --ht=*)
1240     htmldir=$ac_optarg ;;
1241
1242   -includedir | --includedir | --includedi | --included | --include \
1243   | --includ | --inclu | --incl | --inc)
1244     ac_prev=includedir ;;
1245   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1246   | --includ=* | --inclu=* | --incl=* | --inc=*)
1247     includedir=$ac_optarg ;;
1248
1249   -infodir | --infodir | --infodi | --infod | --info | --inf)
1250     ac_prev=infodir ;;
1251   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1252     infodir=$ac_optarg ;;
1253
1254   -libdir | --libdir | --libdi | --libd)
1255     ac_prev=libdir ;;
1256   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1257     libdir=$ac_optarg ;;
1258
1259   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1260   | --libexe | --libex | --libe)
1261     ac_prev=libexecdir ;;
1262   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1263   | --libexe=* | --libex=* | --libe=*)
1264     libexecdir=$ac_optarg ;;
1265
1266   -localedir | --localedir | --localedi | --localed | --locale)
1267     ac_prev=localedir ;;
1268   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1269     localedir=$ac_optarg ;;
1270
1271   -localstatedir | --localstatedir | --localstatedi | --localstated \
1272   | --localstate | --localstat | --localsta | --localst | --locals)
1273     ac_prev=localstatedir ;;
1274   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1275   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1276     localstatedir=$ac_optarg ;;
1277
1278   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1279     ac_prev=mandir ;;
1280   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1281     mandir=$ac_optarg ;;
1282
1283   -nfp | --nfp | --nf)
1284     # Obsolete; use --without-fp.
1285     with_fp=no ;;
1286
1287   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1288   | --no-cr | --no-c | -n)
1289     no_create=yes ;;
1290
1291   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1292   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1293     no_recursion=yes ;;
1294
1295   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1296   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1297   | --oldin | --oldi | --old | --ol | --o)
1298     ac_prev=oldincludedir ;;
1299   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1300   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1301   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1302     oldincludedir=$ac_optarg ;;
1303
1304   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1305     ac_prev=prefix ;;
1306   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1307     prefix=$ac_optarg ;;
1308
1309   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1310   | --program-pre | --program-pr | --program-p)
1311     ac_prev=program_prefix ;;
1312   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1313   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1314     program_prefix=$ac_optarg ;;
1315
1316   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1317   | --program-suf | --program-su | --program-s)
1318     ac_prev=program_suffix ;;
1319   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1320   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1321     program_suffix=$ac_optarg ;;
1322
1323   -program-transform-name | --program-transform-name \
1324   | --program-transform-nam | --program-transform-na \
1325   | --program-transform-n | --program-transform- \
1326   | --program-transform | --program-transfor \
1327   | --program-transfo | --program-transf \
1328   | --program-trans | --program-tran \
1329   | --progr-tra | --program-tr | --program-t)
1330     ac_prev=program_transform_name ;;
1331   -program-transform-name=* | --program-transform-name=* \
1332   | --program-transform-nam=* | --program-transform-na=* \
1333   | --program-transform-n=* | --program-transform-=* \
1334   | --program-transform=* | --program-transfor=* \
1335   | --program-transfo=* | --program-transf=* \
1336   | --program-trans=* | --program-tran=* \
1337   | --progr-tra=* | --program-tr=* | --program-t=*)
1338     program_transform_name=$ac_optarg ;;
1339
1340   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1341     ac_prev=pdfdir ;;
1342   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1343     pdfdir=$ac_optarg ;;
1344
1345   -psdir | --psdir | --psdi | --psd | --ps)
1346     ac_prev=psdir ;;
1347   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1348     psdir=$ac_optarg ;;
1349
1350   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1351   | -silent | --silent | --silen | --sile | --sil)
1352     silent=yes ;;
1353
1354   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1355     ac_prev=sbindir ;;
1356   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1357   | --sbi=* | --sb=*)
1358     sbindir=$ac_optarg ;;
1359
1360   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1361   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1362   | --sharedst | --shareds | --shared | --share | --shar \
1363   | --sha | --sh)
1364     ac_prev=sharedstatedir ;;
1365   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1366   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1367   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1368   | --sha=* | --sh=*)
1369     sharedstatedir=$ac_optarg ;;
1370
1371   -site | --site | --sit)
1372     ac_prev=site ;;
1373   -site=* | --site=* | --sit=*)
1374     site=$ac_optarg ;;
1375
1376   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1377     ac_prev=srcdir ;;
1378   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1379     srcdir=$ac_optarg ;;
1380
1381   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1382   | --syscon | --sysco | --sysc | --sys | --sy)
1383     ac_prev=sysconfdir ;;
1384   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1385   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1386     sysconfdir=$ac_optarg ;;
1387
1388   -target | --target | --targe | --targ | --tar | --ta | --t)
1389     ac_prev=target_alias ;;
1390   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1391     target_alias=$ac_optarg ;;
1392
1393   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1394     verbose=yes ;;
1395
1396   -version | --version | --versio | --versi | --vers | -V)
1397     ac_init_version=: ;;
1398
1399   -with-* | --with-*)
1400     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1401     # Reject names that are not valid shell variable names.
1402     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1403       as_fn_error "invalid package name: $ac_useropt"
1404     ac_useropt_orig=$ac_useropt
1405     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1406     case $ac_user_opts in
1407       *"
1408 "with_$ac_useropt"
1409 "*) ;;
1410       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1411          ac_unrecognized_sep=', ';;
1412     esac
1413     eval with_$ac_useropt=\$ac_optarg ;;
1414
1415   -without-* | --without-*)
1416     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1417     # Reject names that are not valid shell variable names.
1418     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1419       as_fn_error "invalid package name: $ac_useropt"
1420     ac_useropt_orig=$ac_useropt
1421     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1422     case $ac_user_opts in
1423       *"
1424 "with_$ac_useropt"
1425 "*) ;;
1426       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1427          ac_unrecognized_sep=', ';;
1428     esac
1429     eval with_$ac_useropt=no ;;
1430
1431   --x)
1432     # Obsolete; use --with-x.
1433     with_x=yes ;;
1434
1435   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1436   | --x-incl | --x-inc | --x-in | --x-i)
1437     ac_prev=x_includes ;;
1438   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1439   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1440     x_includes=$ac_optarg ;;
1441
1442   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1443   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1444     ac_prev=x_libraries ;;
1445   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1446   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1447     x_libraries=$ac_optarg ;;
1448
1449   -*) as_fn_error "unrecognized option: \`$ac_option'
1450 Try \`$0 --help' for more information."
1451     ;;
1452
1453   *=*)
1454     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1455     # Reject names that are not valid shell variable names.
1456     case $ac_envvar in #(
1457       '' | [0-9]* | *[!_$as_cr_alnum]* )
1458       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1459     esac
1460     eval $ac_envvar=\$ac_optarg
1461     export $ac_envvar ;;
1462
1463   *)
1464     # FIXME: should be removed in autoconf 3.0.
1465     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1466     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1467       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1468     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1469     ;;
1470
1471   esac
1472 done
1473
1474 if test -n "$ac_prev"; then
1475   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1476   as_fn_error "missing argument to $ac_option"
1477 fi
1478
1479 if test -n "$ac_unrecognized_opts"; then
1480   case $enable_option_checking in
1481     no) ;;
1482     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1483     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1484   esac
1485 fi
1486
1487 # Check all directory arguments for consistency.
1488 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1489                 datadir sysconfdir sharedstatedir localstatedir includedir \
1490                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1491                 libdir localedir mandir
1492 do
1493   eval ac_val=\$$ac_var
1494   # Remove trailing slashes.
1495   case $ac_val in
1496     */ )
1497       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1498       eval $ac_var=\$ac_val;;
1499   esac
1500   # Be sure to have absolute directory names.
1501   case $ac_val in
1502     [\\/$]* | ?:[\\/]* )  continue;;
1503     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1504   esac
1505   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1506 done
1507
1508 # There might be people who depend on the old broken behavior: `$host'
1509 # used to hold the argument of --host etc.
1510 # FIXME: To remove some day.
1511 build=$build_alias
1512 host=$host_alias
1513 target=$target_alias
1514
1515 # FIXME: To remove some day.
1516 if test "x$host_alias" != x; then
1517   if test "x$build_alias" = x; then
1518     cross_compiling=maybe
1519     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1520     If a cross compiler is detected then cross compile mode will be used." >&2
1521   elif test "x$build_alias" != "x$host_alias"; then
1522     cross_compiling=yes
1523   fi
1524 fi
1525
1526 ac_tool_prefix=
1527 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1528
1529 test "$silent" = yes && exec 6>/dev/null
1530
1531
1532 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1533 ac_ls_di=`ls -di .` &&
1534 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1535   as_fn_error "working directory cannot be determined"
1536 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1537   as_fn_error "pwd does not report name of working directory"
1538
1539
1540 # Find the source files, if location was not specified.
1541 if test -z "$srcdir"; then
1542   ac_srcdir_defaulted=yes
1543   # Try the directory containing this script, then the parent directory.
1544   ac_confdir=`$as_dirname -- "$as_myself" ||
1545 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1546          X"$as_myself" : 'X\(//\)[^/]' \| \
1547          X"$as_myself" : 'X\(//\)$' \| \
1548          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1549 $as_echo X"$as_myself" |
1550     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1551             s//\1/
1552             q
1553           }
1554           /^X\(\/\/\)[^/].*/{
1555             s//\1/
1556             q
1557           }
1558           /^X\(\/\/\)$/{
1559             s//\1/
1560             q
1561           }
1562           /^X\(\/\).*/{
1563             s//\1/
1564             q
1565           }
1566           s/.*/./; q'`
1567   srcdir=$ac_confdir
1568   if test ! -r "$srcdir/$ac_unique_file"; then
1569     srcdir=..
1570   fi
1571 else
1572   ac_srcdir_defaulted=no
1573 fi
1574 if test ! -r "$srcdir/$ac_unique_file"; then
1575   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1576   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1577 fi
1578 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1579 ac_abs_confdir=`(
1580         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1581         pwd)`
1582 # When building in place, set srcdir=.
1583 if test "$ac_abs_confdir" = "$ac_pwd"; then
1584   srcdir=.
1585 fi
1586 # Remove unnecessary trailing slashes from srcdir.
1587 # Double slashes in file names in object file debugging info
1588 # mess up M-x gdb in Emacs.
1589 case $srcdir in
1590 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1591 esac
1592 for ac_var in $ac_precious_vars; do
1593   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1594   eval ac_env_${ac_var}_value=\$${ac_var}
1595   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1596   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1597 done
1598
1599 #
1600 # Report the --help message.
1601 #
1602 if test "$ac_init_help" = "long"; then
1603   # Omit some internal or obsolete options to make the list less imposing.
1604   # This message is too long to be a string in the A/UX 3.1 sh.
1605   cat <<_ACEOF
1606 \`configure' configures this package to adapt to many kinds of systems.
1607
1608 Usage: $0 [OPTION]... [VAR=VALUE]...
1609
1610 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1611 VAR=VALUE.  See below for descriptions of some of the useful variables.
1612
1613 Defaults for the options are specified in brackets.
1614
1615 Configuration:
1616   -h, --help              display this help and exit
1617       --help=short        display options specific to this package
1618       --help=recursive    display the short help of all the included packages
1619   -V, --version           display version information and exit
1620   -q, --quiet, --silent   do not print \`checking...' messages
1621       --cache-file=FILE   cache test results in FILE [disabled]
1622   -C, --config-cache      alias for \`--cache-file=config.cache'
1623   -n, --no-create         do not create output files
1624       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1625
1626 Installation directories:
1627   --prefix=PREFIX         install architecture-independent files in PREFIX
1628                           [$ac_default_prefix]
1629   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1630                           [PREFIX]
1631
1632 By default, \`make install' will install all the files in
1633 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1634 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1635 for instance \`--prefix=\$HOME'.
1636
1637 For better control, use the options below.
1638
1639 Fine tuning of the installation directories:
1640   --bindir=DIR            user executables [EPREFIX/bin]
1641   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1642   --libexecdir=DIR        program executables [EPREFIX/libexec]
1643   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1644   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1645   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1646   --libdir=DIR            object code libraries [EPREFIX/lib]
1647   --includedir=DIR        C header files [PREFIX/include]
1648   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1649   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1650   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1651   --infodir=DIR           info documentation [DATAROOTDIR/info]
1652   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1653   --mandir=DIR            man documentation [DATAROOTDIR/man]
1654   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1655   --htmldir=DIR           html documentation [DOCDIR]
1656   --dvidir=DIR            dvi documentation [DOCDIR]
1657   --pdfdir=DIR            pdf documentation [DOCDIR]
1658   --psdir=DIR             ps documentation [DOCDIR]
1659 _ACEOF
1660
1661   cat <<\_ACEOF
1662
1663 Program names:
1664   --program-prefix=PREFIX            prepend PREFIX to installed program names
1665   --program-suffix=SUFFIX            append SUFFIX to installed program names
1666   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1667
1668 System types:
1669   --build=BUILD     configure for building on BUILD [guessed]
1670   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1671   --target=TARGET   configure for building compilers for TARGET [HOST]
1672 _ACEOF
1673 fi
1674
1675 if test -n "$ac_init_help"; then
1676
1677   cat <<\_ACEOF
1678
1679 Optional Features:
1680   --disable-option-checking  ignore unrecognized --enable/--with options
1681   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1682   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1683   --enable-generated-files-in-srcdir
1684                           put copies of generated files in source dir
1685                           intended for creating source tarballs for users
1686                           without texinfo bison or flex.
1687   --enable-werror-always  enable -Werror despite compiler version
1688   --enable-checking=LIST
1689                           enable expensive run-time checks.  With LIST,
1690                           enable only specific categories of checks.
1691                           Categories are: yes,no,all,none,release.
1692                           Flags are: assert,df,fold,gc,gcac,gimple,misc,
1693                           rtlflag,rtl,runtime,tree,valgrind,types.
1694   --enable-coverage=LEVEL
1695                           enable compiler's code coverage collection.
1696                           Use to measure compiler performance and locate
1697                           unused parts of the compiler. With LEVEL, specify
1698                           optimization. Values are opt, noopt,
1699                           default is noopt
1700   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1701   --enable-build-with-cxx build with C++ compiler instead of C compiler
1702   --enable-multilib       enable library support for multiple ABIs
1703   --enable-__cxa_atexit   enable __cxa_atexit for C++
1704   --enable-decimal-float={no,yes,bid,dpd}
1705                         enable decimal float extension to C.  Selecting 'bid'
1706                         or 'dpd' choses which decimal floating point format
1707                         to use
1708   --enable-fixed-point    enable fixed-point arithmetic extension to C
1709   --enable-threads        enable thread usage for target GCC
1710   --enable-threads=LIB    use LIB thread package for target GCC
1711   --enable-tls            enable or disable generation of tls code
1712                           overriding the assembler check for tls support
1713   --enable-objc-gc        enable the use of Boehm's garbage collector with
1714                           the GNU Objective-C runtime
1715   --disable-shared        don't provide a shared libgcc
1716   --enable-intermodule    build the compiler in one step
1717   --enable-languages=LIST specify which front-ends to build
1718   --disable-rpath         do not hardcode runtime library paths
1719   --enable-initfini-array       use .init_array/.fini_array sections
1720   --enable-sjlj-exceptions
1721                           arrange to use setjmp/longjmp exception handling
1722   --enable-secureplt      enable -msecure-plt by default for PowerPC
1723   --enable-cld            enable -mcld by default for 32bit x86
1724   --disable-win32-registry
1725                           disable lookup of installation paths in the
1726                           Registry on Windows hosts
1727   --enable-win32-registry enable registry lookup (default)
1728   --enable-win32-registry=KEY
1729                           use KEY instead of GCC version as the last portion
1730                           of the registry key
1731   --enable-shared[=PKGS]  build shared libraries [default=yes]
1732   --enable-static[=PKGS]  build static libraries [default=yes]
1733   --enable-fast-install[=PKGS]
1734                           optimize for fast installation [default=yes]
1735   --disable-libtool-lock  avoid locking (might break parallel builds)
1736   --enable-gnu-unique-object    enable the use of the @gnu_unique_object ELF extension on
1737                                 glibc systems
1738   --enable-linker-build-id
1739                           compiler will always pass --build-id to linker
1740   --enable-maintainer-mode
1741                           enable make rules and dependencies not useful
1742                           (and sometimes confusing) to the casual installer
1743   --enable-version-specific-runtime-libs
1744                           specify that runtime libraries should be
1745                           installed in a compiler-specific directory
1746   --enable-plugin         enable plugin support
1747
1748 Optional Packages:
1749   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1750   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1751   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1752   --with-local-prefix=DIR specifies directory to put local include
1753   --with-gxx-include-dir=DIR
1754                           specifies directory to put g++ header files
1755   --with-cpp-install-dir=DIR
1756                           install the user visible C preprocessor in DIR
1757                           (relative to PREFIX) as well as PREFIX/bin
1758   --with-gnu-ld           arrange to work with GNU ld.
1759   --with-ld               arrange to use the specified ld (full pathname)
1760   --with-demangler-in-ld  try to use demangler in GNU ld.
1761   --with-gnu-as           arrange to work with GNU as
1762   --with-as               arrange to use the specified as (full pathname)
1763   --with-stabs            arrange to use stabs instead of host debug format
1764   --with-dwarf2           force the default debug format to be DWARF 2
1765   --with-build-sysroot=sysroot
1766                           use sysroot as the system root during the build
1767   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1768   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1769   --with-bugurl=URL       Direct users to URL to report a bug
1770   --with-multilib-list    Select multilibs (SH only)
1771   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1772   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1773   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1774   --with-system-libunwind use installed libunwind
1775   --with-pic              try to use only PIC/non-PIC objects [default=use
1776                           both]
1777   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1778   --with-long-double-128  Use 128-bit long double by default.
1779   --with-gc={page,zone}   choose the garbage collection mechanism to use
1780                           with the compiler
1781   --with-system-zlib      use installed libz
1782   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1783
1784 Some influential environment variables:
1785   CC          C compiler command
1786   CFLAGS      C compiler flags
1787   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1788               nonstandard directory <lib dir>
1789   LIBS        libraries to pass to the linker, e.g. -l<library>
1790   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1791               you have headers in a nonstandard directory <include dir>
1792   CXX         C++ compiler command
1793   CXXFLAGS    C++ compiler flags
1794   CPP         C preprocessor
1795   CXXCPP      C++ preprocessor
1796   GMPLIBS     How to link GMP
1797   GMPINC      How to find GMP include files
1798   PPLLIBS     How to link PPL
1799   PPLINC      How to find PPL include files
1800   CLOOGLIBS   How to link CLOOG
1801   CLOOGINC    How to find CLOOG include files
1802
1803 Use these variables to override the choices made by `configure' or to help
1804 it to find libraries and programs with nonstandard names/locations.
1805
1806 Report bugs to the package provider.
1807 _ACEOF
1808 ac_status=$?
1809 fi
1810
1811 if test "$ac_init_help" = "recursive"; then
1812   # If there are subdirs, report their specific --help.
1813   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1814     test -d "$ac_dir" ||
1815       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1816       continue
1817     ac_builddir=.
1818
1819 case "$ac_dir" in
1820 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1821 *)
1822   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1823   # A ".." for each directory in $ac_dir_suffix.
1824   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1825   case $ac_top_builddir_sub in
1826   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1827   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1828   esac ;;
1829 esac
1830 ac_abs_top_builddir=$ac_pwd
1831 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1832 # for backward compatibility:
1833 ac_top_builddir=$ac_top_build_prefix
1834
1835 case $srcdir in
1836   .)  # We are building in place.
1837     ac_srcdir=.
1838     ac_top_srcdir=$ac_top_builddir_sub
1839     ac_abs_top_srcdir=$ac_pwd ;;
1840   [\\/]* | ?:[\\/]* )  # Absolute name.
1841     ac_srcdir=$srcdir$ac_dir_suffix;
1842     ac_top_srcdir=$srcdir
1843     ac_abs_top_srcdir=$srcdir ;;
1844   *) # Relative name.
1845     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1846     ac_top_srcdir=$ac_top_build_prefix$srcdir
1847     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1848 esac
1849 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1850
1851     cd "$ac_dir" || { ac_status=$?; continue; }
1852     # Check for guested configure.
1853     if test -f "$ac_srcdir/configure.gnu"; then
1854       echo &&
1855       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1856     elif test -f "$ac_srcdir/configure"; then
1857       echo &&
1858       $SHELL "$ac_srcdir/configure" --help=recursive
1859     else
1860       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1861     fi || ac_status=$?
1862     cd "$ac_pwd" || { ac_status=$?; break; }
1863   done
1864 fi
1865
1866 test -n "$ac_init_help" && exit $ac_status
1867 if $ac_init_version; then
1868   cat <<\_ACEOF
1869 configure
1870 generated by GNU Autoconf 2.64
1871
1872 Copyright (C) 2009 Free Software Foundation, Inc.
1873 This configure script is free software; the Free Software Foundation
1874 gives unlimited permission to copy, distribute and modify it.
1875 _ACEOF
1876   exit
1877 fi
1878
1879 ## ------------------------ ##
1880 ## Autoconf initialization. ##
1881 ## ------------------------ ##
1882
1883 # ac_fn_c_try_compile LINENO
1884 # --------------------------
1885 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_c_try_compile ()
1887 {
1888   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889   rm -f conftest.$ac_objext
1890   if { { ac_try="$ac_compile"
1891 case "(($ac_try" in
1892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893   *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897   (eval "$ac_compile") 2>conftest.err
1898   ac_status=$?
1899   if test -s conftest.err; then
1900     grep -v '^ *+' conftest.err >conftest.er1
1901     cat conftest.er1 >&5
1902     mv -f conftest.er1 conftest.err
1903   fi
1904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905   test $ac_status = 0; } && {
1906          test -z "$ac_c_werror_flag" ||
1907          test ! -s conftest.err
1908        } && test -s conftest.$ac_objext; then :
1909   ac_retval=0
1910 else
1911   $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914         ac_retval=1
1915 fi
1916   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917   return $ac_retval
1918
1919 } # ac_fn_c_try_compile
1920
1921 # ac_fn_cxx_try_compile LINENO
1922 # ----------------------------
1923 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_cxx_try_compile ()
1925 {
1926   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927   rm -f conftest.$ac_objext
1928   if { { ac_try="$ac_compile"
1929 case "(($ac_try" in
1930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931   *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935   (eval "$ac_compile") 2>conftest.err
1936   ac_status=$?
1937   if test -s conftest.err; then
1938     grep -v '^ *+' conftest.err >conftest.er1
1939     cat conftest.er1 >&5
1940     mv -f conftest.er1 conftest.err
1941   fi
1942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943   test $ac_status = 0; } && {
1944          test -z "$ac_cxx_werror_flag" ||
1945          test ! -s conftest.err
1946        } && test -s conftest.$ac_objext; then :
1947   ac_retval=0
1948 else
1949   $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1951
1952         ac_retval=1
1953 fi
1954   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955   return $ac_retval
1956
1957 } # ac_fn_cxx_try_compile
1958
1959 # ac_fn_c_try_cpp LINENO
1960 # ----------------------
1961 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1962 ac_fn_c_try_cpp ()
1963 {
1964   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965   if { { ac_try="$ac_cpp conftest.$ac_ext"
1966 case "(($ac_try" in
1967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968   *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1973   ac_status=$?
1974   if test -s conftest.err; then
1975     grep -v '^ *+' conftest.err >conftest.er1
1976     cat conftest.er1 >&5
1977     mv -f conftest.er1 conftest.err
1978   fi
1979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980   test $ac_status = 0; } >/dev/null && {
1981          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1982          test ! -s conftest.err
1983        }; then :
1984   ac_retval=0
1985 else
1986   $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989     ac_retval=1
1990 fi
1991   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992   return $ac_retval
1993
1994 } # ac_fn_c_try_cpp
1995
1996 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1997 # -------------------------------------------------------
1998 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1999 # the include files in INCLUDES and setting the cache variable VAR
2000 # accordingly.
2001 ac_fn_c_check_header_mongrel ()
2002 {
2003   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 $as_echo_n "checking for $2... " >&6; }
2007 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2008   $as_echo_n "(cached) " >&6
2009 fi
2010 eval ac_res=\$$3
2011                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013 else
2014   # Is the header compilable?
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2016 $as_echo_n "checking $2 usability... " >&6; }
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h.  */
2019 $4
2020 #include <$2>
2021 _ACEOF
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023   ac_header_compiler=yes
2024 else
2025   ac_header_compiler=no
2026 fi
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2029 $as_echo "$ac_header_compiler" >&6; }
2030
2031 # Is the header present?
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2033 $as_echo_n "checking $2 presence... " >&6; }
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h.  */
2036 #include <$2>
2037 _ACEOF
2038 if ac_fn_c_try_cpp "$LINENO"; then :
2039   ac_header_preproc=yes
2040 else
2041   ac_header_preproc=no
2042 fi
2043 rm -f conftest.err conftest.$ac_ext
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2045 $as_echo "$ac_header_preproc" >&6; }
2046
2047 # So?  What about this header?
2048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2049   yes:no: )
2050     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2051 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2052     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2053 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2054     ;;
2055   no:yes:* )
2056     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2057 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2058     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2059 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2060     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2061 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2062     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2063 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2064     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2065 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2066     ;;
2067 esac
2068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2071   $as_echo_n "(cached) " >&6
2072 else
2073   eval "$3=\$ac_header_compiler"
2074 fi
2075 eval ac_res=\$$3
2076                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 $as_echo "$ac_res" >&6; }
2078 fi
2079   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2080
2081 } # ac_fn_c_check_header_mongrel
2082
2083 # ac_fn_c_try_run LINENO
2084 # ----------------------
2085 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2086 # that executables *can* be run.
2087 ac_fn_c_try_run ()
2088 {
2089   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090   if { { ac_try="$ac_link"
2091 case "(($ac_try" in
2092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093   *) ac_try_echo=$ac_try;;
2094 esac
2095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096 $as_echo "$ac_try_echo"; } >&5
2097   (eval "$ac_link") 2>&5
2098   ac_status=$?
2099   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2101   { { case "(($ac_try" in
2102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103   *) ac_try_echo=$ac_try;;
2104 esac
2105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2106 $as_echo "$ac_try_echo"; } >&5
2107   (eval "$ac_try") 2>&5
2108   ac_status=$?
2109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2110   test $ac_status = 0; }; }; then :
2111   ac_retval=0
2112 else
2113   $as_echo "$as_me: program exited with status $ac_status" >&5
2114        $as_echo "$as_me: failed program was:" >&5
2115 sed 's/^/| /' conftest.$ac_ext >&5
2116
2117        ac_retval=$ac_status
2118 fi
2119   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2120   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2121   return $ac_retval
2122
2123 } # ac_fn_c_try_run
2124
2125 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2126 # -------------------------------------------------------
2127 # Tests whether HEADER exists and can be compiled using the include files in
2128 # INCLUDES, setting the cache variable VAR accordingly.
2129 ac_fn_c_check_header_compile ()
2130 {
2131   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133 $as_echo_n "checking for $2... " >&6; }
2134 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2135   $as_echo_n "(cached) " >&6
2136 else
2137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h.  */
2139 $4
2140 #include <$2>
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143   eval "$3=yes"
2144 else
2145   eval "$3=no"
2146 fi
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 fi
2149 eval ac_res=\$$3
2150                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151 $as_echo "$ac_res" >&6; }
2152   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2153
2154 } # ac_fn_c_check_header_compile
2155
2156 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2157 # --------------------------------------------
2158 # Tries to find the compile-time value of EXPR in a program that includes
2159 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2160 # computed
2161 ac_fn_c_compute_int ()
2162 {
2163   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164   if test "$cross_compiling" = yes; then
2165     # Depending upon the size, compute the lo and hi bounds.
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h.  */
2168 $4
2169 int
2170 main ()
2171 {
2172 static int test_array [1 - 2 * !(($2) >= 0)];
2173 test_array [0] = 0
2174
2175   ;
2176   return 0;
2177 }
2178 _ACEOF
2179 if ac_fn_c_try_compile "$LINENO"; then :
2180   ac_lo=0 ac_mid=0
2181   while :; do
2182     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h.  */
2184 $4
2185 int
2186 main ()
2187 {
2188 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2189 test_array [0] = 0
2190
2191   ;
2192   return 0;
2193 }
2194 _ACEOF
2195 if ac_fn_c_try_compile "$LINENO"; then :
2196   ac_hi=$ac_mid; break
2197 else
2198   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2199                         if test $ac_lo -le $ac_mid; then
2200                           ac_lo= ac_hi=
2201                           break
2202                         fi
2203                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2204 fi
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206   done
2207 else
2208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h.  */
2210 $4
2211 int
2212 main ()
2213 {
2214 static int test_array [1 - 2 * !(($2) < 0)];
2215 test_array [0] = 0
2216
2217   ;
2218   return 0;
2219 }
2220 _ACEOF
2221 if ac_fn_c_try_compile "$LINENO"; then :
2222   ac_hi=-1 ac_mid=-1
2223   while :; do
2224     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h.  */
2226 $4
2227 int
2228 main ()
2229 {
2230 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2231 test_array [0] = 0
2232
2233   ;
2234   return 0;
2235 }
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238   ac_lo=$ac_mid; break
2239 else
2240   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2241                         if test $ac_mid -le $ac_hi; then
2242                           ac_lo= ac_hi=
2243                           break
2244                         fi
2245                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2246 fi
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248   done
2249 else
2250   ac_lo= ac_hi=
2251 fi
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 fi
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 # Binary search between lo and hi bounds.
2256 while test "x$ac_lo" != "x$ac_hi"; do
2257   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h.  */
2260 $4
2261 int
2262 main ()
2263 {
2264 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2265 test_array [0] = 0
2266
2267   ;
2268   return 0;
2269 }
2270 _ACEOF
2271 if ac_fn_c_try_compile "$LINENO"; then :
2272   ac_hi=$ac_mid
2273 else
2274   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2275 fi
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 done
2278 case $ac_lo in #((
2279 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2280 '') ac_retval=1 ;;
2281 esac
2282   else
2283     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h.  */
2285 $4
2286 static long int longval () { return $2; }
2287 static unsigned long int ulongval () { return $2; }
2288 #include <stdio.h>
2289 #include <stdlib.h>
2290 int
2291 main ()
2292 {
2293
2294   FILE *f = fopen ("conftest.val", "w");
2295   if (! f)
2296     return 1;
2297   if (($2) < 0)
2298     {
2299       long int i = longval ();
2300       if (i != ($2))
2301         return 1;
2302       fprintf (f, "%ld", i);
2303     }
2304   else
2305     {
2306       unsigned long int i = ulongval ();
2307       if (i != ($2))
2308         return 1;
2309       fprintf (f, "%lu", i);
2310     }
2311   /* Do not output a trailing newline, as this causes \r\n confusion
2312      on some platforms.  */
2313   return ferror (f) || fclose (f) != 0;
2314
2315   ;
2316   return 0;
2317 }
2318 _ACEOF
2319 if ac_fn_c_try_run "$LINENO"; then :
2320   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2321 else
2322   ac_retval=1
2323 fi
2324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2325   conftest.$ac_objext conftest.beam conftest.$ac_ext
2326 rm -f conftest.val
2327
2328   fi
2329   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2330   return $ac_retval
2331
2332 } # ac_fn_c_compute_int
2333
2334 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2335 # -------------------------------------------
2336 # Tests whether TYPE exists after having included INCLUDES, setting cache
2337 # variable VAR accordingly.
2338 ac_fn_c_check_type ()
2339 {
2340   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2344   $as_echo_n "(cached) " >&6
2345 else
2346   eval "$3=no"
2347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h.  */
2349 $4
2350 int
2351 main ()
2352 {
2353 if (sizeof ($2))
2354          return 0;
2355   ;
2356   return 0;
2357 }
2358 _ACEOF
2359 if ac_fn_c_try_compile "$LINENO"; then :
2360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h.  */
2362 $4
2363 int
2364 main ()
2365 {
2366 if (sizeof (($2)))
2367             return 0;
2368   ;
2369   return 0;
2370 }
2371 _ACEOF
2372 if ac_fn_c_try_compile "$LINENO"; then :
2373
2374 else
2375   eval "$3=yes"
2376 fi
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378 fi
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 fi
2381 eval ac_res=\$$3
2382                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2384   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2385
2386 } # ac_fn_c_check_type
2387
2388 # ac_fn_c_find_intX_t LINENO BITS VAR
2389 # -----------------------------------
2390 # Finds a signed integer type with width BITS, setting cache variable VAR
2391 # accordingly.
2392 ac_fn_c_find_intX_t ()
2393 {
2394   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2396 $as_echo_n "checking for int$2_t... " >&6; }
2397 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398   $as_echo_n "(cached) " >&6
2399 else
2400   eval "$3=no"
2401      for ac_type in int$2_t 'int' 'long int' \
2402          'long long int' 'short int' 'signed char'; do
2403        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h.  */
2405 $ac_includes_default
2406 int
2407 main ()
2408 {
2409 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2410 test_array [0] = 0
2411
2412   ;
2413   return 0;
2414 }
2415 _ACEOF
2416 if ac_fn_c_try_compile "$LINENO"; then :
2417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h.  */
2419 $ac_includes_default
2420 int
2421 main ()
2422 {
2423 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2424                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2425 test_array [0] = 0
2426
2427   ;
2428   return 0;
2429 }
2430 _ACEOF
2431 if ac_fn_c_try_compile "$LINENO"; then :
2432
2433 else
2434   case $ac_type in #(
2435   int$2_t) :
2436     eval "$3=yes" ;; #(
2437   *) :
2438     eval "$3=\$ac_type" ;;
2439 esac
2440 fi
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 fi
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444        eval as_val=\$$3
2445    if test "x$as_val" = x""no; then :
2446
2447 else
2448   break
2449 fi
2450      done
2451 fi
2452 eval ac_res=\$$3
2453                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454 $as_echo "$ac_res" >&6; }
2455   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2456
2457 } # ac_fn_c_find_intX_t
2458
2459 # ac_fn_c_try_link LINENO
2460 # -----------------------
2461 # Try to link conftest.$ac_ext, and return whether this succeeded.
2462 ac_fn_c_try_link ()
2463 {
2464   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2465   rm -f conftest.$ac_objext conftest$ac_exeext
2466   if { { ac_try="$ac_link"
2467 case "(($ac_try" in
2468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469   *) ac_try_echo=$ac_try;;
2470 esac
2471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2472 $as_echo "$ac_try_echo"; } >&5
2473   (eval "$ac_link") 2>conftest.err
2474   ac_status=$?
2475   if test -s conftest.err; then
2476     grep -v '^ *+' conftest.err >conftest.er1
2477     cat conftest.er1 >&5
2478     mv -f conftest.er1 conftest.err
2479   fi
2480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2481   test $ac_status = 0; } && {
2482          test -z "$ac_c_werror_flag" ||
2483          test ! -s conftest.err
2484        } && test -s conftest$ac_exeext && {
2485          test "$cross_compiling" = yes ||
2486          $as_test_x conftest$ac_exeext
2487        }; then :
2488   ac_retval=0
2489 else
2490   $as_echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2492
2493         ac_retval=1
2494 fi
2495   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2496   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2497   # interfere with the next link command; also delete a directory that is
2498   # left behind by Apple's compiler.  We do this before executing the actions.
2499   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2500   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2501   return $ac_retval
2502
2503 } # ac_fn_c_try_link
2504
2505 # ac_fn_c_find_uintX_t LINENO BITS VAR
2506 # ------------------------------------
2507 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2508 # accordingly.
2509 ac_fn_c_find_uintX_t ()
2510 {
2511   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2513 $as_echo_n "checking for uint$2_t... " >&6; }
2514 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2515   $as_echo_n "(cached) " >&6
2516 else
2517   eval "$3=no"
2518      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2519          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2520        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h.  */
2522 $ac_includes_default
2523 int
2524 main ()
2525 {
2526 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2527 test_array [0] = 0
2528
2529   ;
2530   return 0;
2531 }
2532 _ACEOF
2533 if ac_fn_c_try_compile "$LINENO"; then :
2534   case $ac_type in #(
2535   uint$2_t) :
2536     eval "$3=yes" ;; #(
2537   *) :
2538     eval "$3=\$ac_type" ;;
2539 esac
2540 fi
2541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542        eval as_val=\$$3
2543    if test "x$as_val" = x""no; then :
2544
2545 else
2546   break
2547 fi
2548      done
2549 fi
2550 eval ac_res=\$$3
2551                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2552 $as_echo "$ac_res" >&6; }
2553   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2554
2555 } # ac_fn_c_find_uintX_t
2556
2557 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2558 # ----------------------------------------------
2559 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2560 ac_fn_c_check_header_preproc ()
2561 {
2562   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2564 $as_echo_n "checking for $2... " >&6; }
2565 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2566   $as_echo_n "(cached) " >&6
2567 else
2568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h.  */
2570 #include <$2>
2571 _ACEOF
2572 if ac_fn_c_try_cpp "$LINENO"; then :
2573   eval "$3=yes"
2574 else
2575   eval "$3=no"
2576 fi
2577 rm -f conftest.err conftest.$ac_ext
2578 fi
2579 eval ac_res=\$$3
2580                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2581 $as_echo "$ac_res" >&6; }
2582   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2583
2584 } # ac_fn_c_check_header_preproc
2585
2586 # ac_fn_c_check_func LINENO FUNC VAR
2587 # ----------------------------------
2588 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2589 ac_fn_c_check_func ()
2590 {
2591   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2593 $as_echo_n "checking for $2... " >&6; }
2594 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2595   $as_echo_n "(cached) " >&6
2596 else
2597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h.  */
2599 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2601 #define $2 innocuous_$2
2602
2603 /* System header to define __stub macros and hopefully few prototypes,
2604     which can conflict with char $2 (); below.
2605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2606     <limits.h> exists even on freestanding compilers.  */
2607
2608 #ifdef __STDC__
2609 # include <limits.h>
2610 #else
2611 # include <assert.h>
2612 #endif
2613
2614 #undef $2
2615
2616 /* Override any GCC internal prototype to avoid an error.
2617    Use char because int might match the return type of a GCC
2618    builtin and then its argument prototype would still apply.  */
2619 #ifdef __cplusplus
2620 extern "C"
2621 #endif
2622 char $2 ();
2623 /* The GNU C library defines this for functions which it implements
2624     to always fail with ENOSYS.  Some functions are actually named
2625     something starting with __ and the normal name is an alias.  */
2626 #if defined __stub_$2 || defined __stub___$2
2627 choke me
2628 #endif
2629
2630 int
2631 main ()
2632 {
2633 return $2 ();
2634   ;
2635   return 0;
2636 }
2637 _ACEOF
2638 if ac_fn_c_try_link "$LINENO"; then :
2639   eval "$3=yes"
2640 else
2641   eval "$3=no"
2642 fi
2643 rm -f core conftest.err conftest.$ac_objext \
2644     conftest$ac_exeext conftest.$ac_ext
2645 fi
2646 eval ac_res=\$$3
2647                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2648 $as_echo "$ac_res" >&6; }
2649   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2650
2651 } # ac_fn_c_check_func
2652
2653 # ac_fn_cxx_try_cpp LINENO
2654 # ------------------------
2655 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2656 ac_fn_cxx_try_cpp ()
2657 {
2658   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2659   if { { ac_try="$ac_cpp conftest.$ac_ext"
2660 case "(($ac_try" in
2661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662   *) ac_try_echo=$ac_try;;
2663 esac
2664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2665 $as_echo "$ac_try_echo"; } >&5
2666   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2667   ac_status=$?
2668   if test -s conftest.err; then
2669     grep -v '^ *+' conftest.err >conftest.er1
2670     cat conftest.er1 >&5
2671     mv -f conftest.er1 conftest.err
2672   fi
2673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2674   test $ac_status = 0; } >/dev/null && {
2675          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2676          test ! -s conftest.err
2677        }; then :
2678   ac_retval=0
2679 else
2680   $as_echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683     ac_retval=1
2684 fi
2685   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2686   return $ac_retval
2687
2688 } # ac_fn_cxx_try_cpp
2689
2690 # ac_fn_cxx_try_link LINENO
2691 # -------------------------
2692 # Try to link conftest.$ac_ext, and return whether this succeeded.
2693 ac_fn_cxx_try_link ()
2694 {
2695   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2696   rm -f conftest.$ac_objext conftest$ac_exeext
2697   if { { ac_try="$ac_link"
2698 case "(($ac_try" in
2699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700   *) ac_try_echo=$ac_try;;
2701 esac
2702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2703 $as_echo "$ac_try_echo"; } >&5
2704   (eval "$ac_link") 2>conftest.err
2705   ac_status=$?
2706   if test -s conftest.err; then
2707     grep -v '^ *+' conftest.err >conftest.er1
2708     cat conftest.er1 >&5
2709     mv -f conftest.er1 conftest.err
2710   fi
2711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2712   test $ac_status = 0; } && {
2713          test -z "$ac_cxx_werror_flag" ||
2714          test ! -s conftest.err
2715        } && test -s conftest$ac_exeext && {
2716          test "$cross_compiling" = yes ||
2717          $as_test_x conftest$ac_exeext
2718        }; then :
2719   ac_retval=0
2720 else
2721   $as_echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2723
2724         ac_retval=1
2725 fi
2726   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2727   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2728   # interfere with the next link command; also delete a directory that is
2729   # left behind by Apple's compiler.  We do this before executing the actions.
2730   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2731   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2732   return $ac_retval
2733
2734 } # ac_fn_cxx_try_link
2735 cat >config.log <<_ACEOF
2736 This file contains any messages produced by compilers while
2737 running configure, to aid debugging if configure makes a mistake.
2738
2739 It was created by $as_me, which was
2740 generated by GNU Autoconf 2.64.  Invocation command line was
2741
2742   $ $0 $@
2743
2744 _ACEOF
2745 exec 5>>config.log
2746 {
2747 cat <<_ASUNAME
2748 ## --------- ##
2749 ## Platform. ##
2750 ## --------- ##
2751
2752 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2753 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2754 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2755 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2756 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2757
2758 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2759 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2760
2761 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2762 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2763 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2764 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2765 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2766 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2767 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2768
2769 _ASUNAME
2770
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774   IFS=$as_save_IFS
2775   test -z "$as_dir" && as_dir=.
2776     $as_echo "PATH: $as_dir"
2777   done
2778 IFS=$as_save_IFS
2779
2780 } >&5
2781
2782 cat >&5 <<_ACEOF
2783
2784
2785 ## ----------- ##
2786 ## Core tests. ##
2787 ## ----------- ##
2788
2789 _ACEOF
2790
2791
2792 # Keep a trace of the command line.
2793 # Strip out --no-create and --no-recursion so they do not pile up.
2794 # Strip out --silent because we don't want to record it for future runs.
2795 # Also quote any args containing shell meta-characters.
2796 # Make two passes to allow for proper duplicate-argument suppression.
2797 ac_configure_args=
2798 ac_configure_args0=
2799 ac_configure_args1=
2800 ac_must_keep_next=false
2801 for ac_pass in 1 2
2802 do
2803   for ac_arg
2804   do
2805     case $ac_arg in
2806     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2807     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2808     | -silent | --silent | --silen | --sile | --sil)
2809       continue ;;
2810     *\'*)
2811       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2812     esac
2813     case $ac_pass in
2814     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2815     2)
2816       as_fn_append ac_configure_args1 " '$ac_arg'"
2817       if test $ac_must_keep_next = true; then
2818         ac_must_keep_next=false # Got value, back to normal.
2819       else
2820         case $ac_arg in
2821           *=* | --config-cache | -C | -disable-* | --disable-* \
2822           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2823           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2824           | -with-* | --with-* | -without-* | --without-* | --x)
2825             case "$ac_configure_args0 " in
2826               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2827             esac
2828             ;;
2829           -* ) ac_must_keep_next=true ;;
2830         esac
2831       fi
2832       as_fn_append ac_configure_args " '$ac_arg'"
2833       ;;
2834     esac
2835   done
2836 done
2837 { ac_configure_args0=; unset ac_configure_args0;}
2838 { ac_configure_args1=; unset ac_configure_args1;}
2839
2840 # When interrupted or exit'd, cleanup temporary files, and complete
2841 # config.log.  We remove comments because anyway the quotes in there
2842 # would cause problems or look ugly.
2843 # WARNING: Use '\'' to represent an apostrophe within the trap.
2844 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2845 trap 'exit_status=$?
2846   # Save into config.log some information that might help in debugging.
2847   {
2848     echo
2849
2850     cat <<\_ASBOX
2851 ## ---------------- ##
2852 ## Cache variables. ##
2853 ## ---------------- ##
2854 _ASBOX
2855     echo
2856     # The following way of writing the cache mishandles newlines in values,
2857 (
2858   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2859     eval ac_val=\$$ac_var
2860     case $ac_val in #(
2861     *${as_nl}*)
2862       case $ac_var in #(
2863       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2864 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2865       esac
2866       case $ac_var in #(
2867       _ | IFS | as_nl) ;; #(
2868       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2869       *) { eval $ac_var=; unset $ac_var;} ;;
2870       esac ;;
2871     esac
2872   done
2873   (set) 2>&1 |
2874     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2875     *${as_nl}ac_space=\ *)
2876       sed -n \
2877         "s/'\''/'\''\\\\'\'''\''/g;
2878           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2879       ;; #(
2880     *)
2881       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2882       ;;
2883     esac |
2884     sort
2885 )
2886     echo
2887
2888     cat <<\_ASBOX
2889 ## ----------------- ##
2890 ## Output variables. ##
2891 ## ----------------- ##
2892 _ASBOX
2893     echo
2894     for ac_var in $ac_subst_vars
2895     do
2896       eval ac_val=\$$ac_var
2897       case $ac_val in
2898       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2899       esac
2900       $as_echo "$ac_var='\''$ac_val'\''"
2901     done | sort
2902     echo
2903
2904     if test -n "$ac_subst_files"; then
2905       cat <<\_ASBOX
2906 ## ------------------- ##
2907 ## File substitutions. ##
2908 ## ------------------- ##
2909 _ASBOX
2910       echo
2911       for ac_var in $ac_subst_files
2912       do
2913         eval ac_val=\$$ac_var
2914         case $ac_val in
2915         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2916         esac
2917         $as_echo "$ac_var='\''$ac_val'\''"
2918       done | sort
2919       echo
2920     fi
2921
2922     if test -s confdefs.h; then
2923       cat <<\_ASBOX
2924 ## ----------- ##
2925 ## confdefs.h. ##
2926 ## ----------- ##
2927 _ASBOX
2928       echo
2929       cat confdefs.h
2930       echo
2931     fi
2932     test "$ac_signal" != 0 &&
2933       $as_echo "$as_me: caught signal $ac_signal"
2934     $as_echo "$as_me: exit $exit_status"
2935   } >&5
2936   rm -f core *.core core.conftest.* &&
2937     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2938     exit $exit_status
2939 ' 0
2940 for ac_signal in 1 2 13 15; do
2941   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2942 done
2943 ac_signal=0
2944
2945 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2946 rm -f -r conftest* confdefs.h
2947
2948 $as_echo "/* confdefs.h */" > confdefs.h
2949
2950 # Predefined preprocessor variables.
2951
2952 cat >>confdefs.h <<_ACEOF
2953 #define PACKAGE_NAME "$PACKAGE_NAME"
2954 _ACEOF
2955
2956 cat >>confdefs.h <<_ACEOF
2957 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2958 _ACEOF
2959
2960 cat >>confdefs.h <<_ACEOF
2961 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2962 _ACEOF
2963
2964 cat >>confdefs.h <<_ACEOF
2965 #define PACKAGE_STRING "$PACKAGE_STRING"
2966 _ACEOF
2967
2968 cat >>confdefs.h <<_ACEOF
2969 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2970 _ACEOF
2971
2972 cat >>confdefs.h <<_ACEOF
2973 #define PACKAGE_URL "$PACKAGE_URL"
2974 _ACEOF
2975
2976
2977 # Let the site file select an alternate cache file if it wants to.
2978 # Prefer an explicitly selected file to automatically selected ones.
2979 ac_site_file1=NONE
2980 ac_site_file2=NONE
2981 if test -n "$CONFIG_SITE"; then
2982   ac_site_file1=$CONFIG_SITE
2983 elif test "x$prefix" != xNONE; then
2984   ac_site_file1=$prefix/share/config.site
2985   ac_site_file2=$prefix/etc/config.site
2986 else
2987   ac_site_file1=$ac_default_prefix/share/config.site
2988   ac_site_file2=$ac_default_prefix/etc/config.site
2989 fi
2990 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2991 do
2992   test "x$ac_site_file" = xNONE && continue
2993   if test -r "$ac_site_file"; then
2994     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2995 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2996     sed 's/^/| /' "$ac_site_file" >&5
2997     . "$ac_site_file"
2998   fi
2999 done
3000
3001 if test -r "$cache_file"; then
3002   # Some versions of bash will fail to source /dev/null (special
3003   # files actually), so we avoid doing that.
3004   if test -f "$cache_file"; then
3005     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3006 $as_echo "$as_me: loading cache $cache_file" >&6;}
3007     case $cache_file in
3008       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3009       *)                      . "./$cache_file";;
3010     esac
3011   fi
3012 else
3013   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3014 $as_echo "$as_me: creating cache $cache_file" >&6;}
3015   >$cache_file
3016 fi
3017
3018 # Check that the precious variables saved in the cache have kept the same
3019 # value.
3020 ac_cache_corrupted=false
3021 for ac_var in $ac_precious_vars; do
3022   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3023   eval ac_new_set=\$ac_env_${ac_var}_set
3024   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3025   eval ac_new_val=\$ac_env_${ac_var}_value
3026   case $ac_old_set,$ac_new_set in
3027     set,)
3028       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3029 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3030       ac_cache_corrupted=: ;;
3031     ,set)
3032       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3033 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3034       ac_cache_corrupted=: ;;
3035     ,);;
3036     *)
3037       if test "x$ac_old_val" != "x$ac_new_val"; then
3038         # differences in whitespace do not lead to failure.
3039         ac_old_val_w=`echo x $ac_old_val`
3040         ac_new_val_w=`echo x $ac_new_val`
3041         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3042           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3043 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3044           ac_cache_corrupted=:
3045         else
3046           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3047 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3048           eval $ac_var=\$ac_old_val
3049         fi
3050         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3051 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3052         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3053 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3054       fi;;
3055   esac
3056   # Pass precious variables to config.status.
3057   if test "$ac_new_set" = set; then
3058     case $ac_new_val in
3059     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3060     *) ac_arg=$ac_var=$ac_new_val ;;
3061     esac
3062     case " $ac_configure_args " in
3063       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3064       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3065     esac
3066   fi
3067 done
3068 if $ac_cache_corrupted; then
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3072 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3073   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3074 fi
3075 ## -------------------- ##
3076 ## Main body of script. ##
3077 ## -------------------- ##
3078
3079 ac_ext=c
3080 ac_cpp='$CPP $CPPFLAGS'
3081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3084
3085
3086
3087
3088
3089
3090 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3091
3092
3093 gcc_version=`cat $srcdir/BASE-VER`
3094
3095 # Determine the host, build, and target systems
3096 ac_aux_dir=
3097 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3098   for ac_t in install-sh install.sh shtool; do
3099     if test -f "$ac_dir/$ac_t"; then
3100       ac_aux_dir=$ac_dir
3101       ac_install_sh="$ac_aux_dir/$ac_t -c"
3102       break 2
3103     fi
3104   done
3105 done
3106 if test -z "$ac_aux_dir"; then
3107   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3108 fi
3109
3110 # These three variables are undocumented and unsupported,
3111 # and are intended to be withdrawn in a future Autoconf release.
3112 # They can cause serious problems if a builder's source tree is in a directory
3113 # whose full name contains unusual characters.
3114 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3115 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3116 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3117
3118
3119 # Make sure we can run config.sub.
3120 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3121   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3122
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3124 $as_echo_n "checking build system type... " >&6; }
3125 if test "${ac_cv_build+set}" = set; then :
3126   $as_echo_n "(cached) " >&6
3127 else
3128   ac_build_alias=$build_alias
3129 test "x$ac_build_alias" = x &&
3130   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3131 test "x$ac_build_alias" = x &&
3132   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3133 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3134   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3135
3136 fi
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3138 $as_echo "$ac_cv_build" >&6; }
3139 case $ac_cv_build in
3140 *-*-*) ;;
3141 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3142 esac
3143 build=$ac_cv_build
3144 ac_save_IFS=$IFS; IFS='-'
3145 set x $ac_cv_build
3146 shift
3147 build_cpu=$1
3148 build_vendor=$2
3149 shift; shift
3150 # Remember, the first character of IFS is used to create $*,
3151 # except with old shells:
3152 build_os=$*
3153 IFS=$ac_save_IFS
3154 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3155
3156
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3158 $as_echo_n "checking host system type... " >&6; }
3159 if test "${ac_cv_host+set}" = set; then :
3160   $as_echo_n "(cached) " >&6
3161 else
3162   if test "x$host_alias" = x; then
3163   ac_cv_host=$ac_cv_build
3164 else
3165   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3166     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3167 fi
3168
3169 fi
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3171 $as_echo "$ac_cv_host" >&6; }
3172 case $ac_cv_host in
3173 *-*-*) ;;
3174 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3175 esac
3176 host=$ac_cv_host
3177 ac_save_IFS=$IFS; IFS='-'
3178 set x $ac_cv_host
3179 shift
3180 host_cpu=$1
3181 host_vendor=$2
3182 shift; shift
3183 # Remember, the first character of IFS is used to create $*,
3184 # except with old shells:
3185 host_os=$*
3186 IFS=$ac_save_IFS
3187 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3188
3189
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3191 $as_echo_n "checking target system type... " >&6; }
3192 if test "${ac_cv_target+set}" = set; then :
3193   $as_echo_n "(cached) " >&6
3194 else
3195   if test "x$target_alias" = x; then
3196   ac_cv_target=$ac_cv_host
3197 else
3198   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3199     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3200 fi
3201
3202 fi
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3204 $as_echo "$ac_cv_target" >&6; }
3205 case $ac_cv_target in
3206 *-*-*) ;;
3207 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3208 esac
3209 target=$ac_cv_target
3210 ac_save_IFS=$IFS; IFS='-'
3211 set x $ac_cv_target
3212 shift
3213 target_cpu=$1
3214 target_vendor=$2
3215 shift; shift
3216 # Remember, the first character of IFS is used to create $*,
3217 # except with old shells:
3218 target_os=$*
3219 IFS=$ac_save_IFS
3220 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3221
3222
3223 # The aliases save the names the user supplied, while $host etc.
3224 # will get canonicalized.
3225 test -n "$target_alias" &&
3226   test "$program_prefix$program_suffix$program_transform_name" = \
3227     NONENONEs,x,x, &&
3228   program_prefix=${target_alias}-
3229
3230 # Determine the noncanonical target name, for directory use.
3231  case ${build_alias} in
3232   "") build_noncanonical=${build} ;;
3233   *) build_noncanonical=${build_alias} ;;
3234 esac
3235
3236  case ${host_alias} in
3237   "") host_noncanonical=${build_noncanonical} ;;
3238   *) host_noncanonical=${host_alias} ;;
3239 esac
3240
3241  case ${target_alias} in
3242   "") target_noncanonical=${host_noncanonical} ;;
3243   *) target_noncanonical=${target_alias} ;;
3244 esac
3245
3246
3247
3248
3249 # Determine the target- and build-specific subdirectories
3250
3251 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3252 # have matching libraries, they should use host libraries: Makefile.tpl
3253 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3254 # However, they still use the build modules, because the corresponding
3255 # host modules (e.g. bison) are only built for the host when bootstrap
3256 # finishes. So:
3257 # - build_subdir is where we find build modules, and never changes.
3258 # - build_libsubdir is where we find build libraries, and can be overridden.
3259
3260 # Prefix 'build-' so this never conflicts with target_subdir.
3261 build_subdir="build-${build_noncanonical}"
3262
3263 # Check whether --with-build-libsubdir was given.
3264 if test "${with_build_libsubdir+set}" = set; then :
3265   withval=$with_build_libsubdir; build_libsubdir="$withval"
3266 else
3267   build_libsubdir="$build_subdir"
3268 fi
3269
3270 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3271 if ( test $srcdir = . && test -d gcc ) \
3272    || test -d $srcdir/../host-${host_noncanonical}; then
3273   host_subdir="host-${host_noncanonical}"
3274 else
3275   host_subdir=.
3276 fi
3277 # No prefix.
3278 target_subdir=${target_noncanonical}
3279
3280
3281 # Set program_transform_name
3282 test "$program_prefix" != NONE &&
3283   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3284 # Use a double $ so make ignores it.
3285 test "$program_suffix" != NONE &&
3286   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3287 # Double any \ or $.
3288 # By default was `s,x,x', remove it if useless.
3289 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3290 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3291
3292
3293 # Check for bogus environment variables.
3294 # Test if LIBRARY_PATH contains the notation for the current directory
3295 # since this would lead to problems installing/building glibc.
3296 # LIBRARY_PATH contains the current directory if one of the following
3297 # is true:
3298 # - one of the terminals (":" and ";") is the first or last sign
3299 # - two terminals occur directly after each other
3300 # - the path contains an element with a dot in it
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3302 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3303 case ${LIBRARY_PATH} in
3304   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3305     library_path_setting="contains current directory"
3306     ;;
3307   *)
3308     library_path_setting="ok"
3309     ;;
3310 esac
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3312 $as_echo "$library_path_setting" >&6; }
3313 if test "$library_path_setting" != "ok"; then
3314 as_fn_error "
3315 *** LIBRARY_PATH shouldn't contain the current directory when
3316 *** building gcc. Please change the environment variable
3317 *** and run configure again." "$LINENO" 5
3318 fi
3319
3320 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3321 # since this would lead to problems installing/building glibc.
3322 # GCC_EXEC_PREFIX contains the current directory if one of the following
3323 # is true:
3324 # - one of the terminals (":" and ";") is the first or last sign
3325 # - two terminals occur directly after each other
3326 # - the path contains an element with a dot in it
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3328 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3329 case ${GCC_EXEC_PREFIX} in
3330   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3331     gcc_exec_prefix_setting="contains current directory"
3332     ;;
3333   *)
3334     gcc_exec_prefix_setting="ok"
3335     ;;
3336 esac
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3338 $as_echo "$gcc_exec_prefix_setting" >&6; }
3339 if test "$gcc_exec_prefix_setting" != "ok"; then
3340 as_fn_error "
3341 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3342 *** building gcc. Please change the environment variable
3343 *** and run configure again." "$LINENO" 5
3344 fi
3345
3346 # -----------
3347 # Directories
3348 # -----------
3349
3350 # Specify the local prefix
3351 local_prefix=
3352
3353 # Check whether --with-local-prefix was given.
3354 if test "${with_local_prefix+set}" = set; then :
3355   withval=$with_local_prefix; case "${withval}" in
3356 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3357 no)     ;;
3358 *)      local_prefix=$with_local_prefix ;;
3359 esac
3360 fi
3361
3362
3363 # Default local prefix if it is empty
3364 if test x$local_prefix = x; then
3365         local_prefix=/usr/local
3366 fi
3367
3368 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3369 # passed in by the toplevel make and thus we'd get different behavior
3370 # depending on where we built the sources.
3371 gcc_gxx_include_dir=
3372 # Specify the g++ header file directory
3373
3374 # Check whether --with-gxx-include-dir was given.
3375 if test "${with_gxx_include_dir+set}" = set; then :
3376   withval=$with_gxx_include_dir; case "${withval}" in
3377 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3378 no)     ;;
3379 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3380 esac
3381 fi
3382
3383
3384 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3385 if test x${gcc_gxx_include_dir} = x; then
3386   if test x${enable_version_specific_runtime_libs} = xyes; then
3387     gcc_gxx_include_dir='${libsubdir}/include/c++'
3388   else
3389     libstdcxx_incdir='include/c++/$(version)'
3390     if test x$host != x$target; then
3391        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3392     fi
3393     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3394   fi
3395 fi
3396
3397
3398 # Check whether --with-cpp_install_dir was given.
3399 if test "${with_cpp_install_dir+set}" = set; then :
3400   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3401   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3402 elif test x$withval != xno; then
3403   cpp_install_dir=$withval
3404 fi
3405 fi
3406
3407
3408 # We would like to our source tree to be readonly.  However when releases or
3409 # pre-releases are generated, the flex/bison generated files as well as the
3410 # various formats of manuals need to be included along with the rest of the
3411 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3412 # just that.
3413
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3415 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3416     # Check whether --enable-generated-files-in-srcdir was given.
3417 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3418   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3419 else
3420   generated_files_in_srcdir=no
3421 fi
3422
3423
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3425 $as_echo "$generated_files_in_srcdir" >&6; }
3426
3427 if test "$generated_files_in_srcdir" = "yes"; then
3428   GENINSRC=''
3429 else
3430   GENINSRC='#'
3431 fi
3432
3433
3434 # -------------------
3435 # Find default linker
3436 # -------------------
3437
3438 # With GNU ld
3439
3440 # Check whether --with-gnu-ld was given.
3441 if test "${with_gnu_ld+set}" = set; then :
3442   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3443 else
3444   gnu_ld_flag=no
3445 fi
3446
3447
3448 # With pre-defined ld
3449
3450 # Check whether --with-ld was given.
3451 if test "${with_ld+set}" = set; then :
3452   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3453 fi
3454
3455 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3456   if test ! -x "$DEFAULT_LINKER"; then
3457     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3458   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3459     gnu_ld_flag=yes
3460   fi
3461
3462 cat >>confdefs.h <<_ACEOF
3463 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3464 _ACEOF
3465
3466 fi
3467
3468 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3469
3470 cat >>confdefs.h <<_ACEOF
3471 #define HAVE_GNU_LD $gnu_ld
3472 _ACEOF
3473
3474
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3476 $as_echo_n "checking whether a default linker was specified... " >&6; }
3477 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3478   if test x"$gnu_ld_flag" = x"no"; then
3479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3480 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3481   else
3482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3483 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3484   fi
3485 else
3486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3488 fi
3489
3490 # With demangler in GNU ld
3491
3492 # Check whether --with-demangler-in-ld was given.
3493 if test "${with_demangler_in_ld+set}" = set; then :
3494   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3495 else
3496   demangler_in_ld=no
3497 fi
3498
3499
3500 # ----------------------
3501 # Find default assembler
3502 # ----------------------
3503
3504 # With GNU as
3505
3506 # Check whether --with-gnu-as was given.
3507 if test "${with_gnu_as+set}" = set; then :
3508   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3509 else
3510   gas_flag=no
3511 fi
3512
3513
3514
3515 # Check whether --with-as was given.
3516 if test "${with_as+set}" = set; then :
3517   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3518 fi
3519
3520 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3521   if test ! -x "$DEFAULT_ASSEMBLER"; then
3522     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3523   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3524     gas_flag=yes
3525   fi
3526
3527 cat >>confdefs.h <<_ACEOF
3528 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3529 _ACEOF
3530
3531 fi
3532
3533 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3534
3535 cat >>confdefs.h <<_ACEOF
3536 #define HAVE_GNU_AS $gnu_as
3537 _ACEOF
3538
3539
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3541 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3542 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3543   if test x"$gas_flag" = x"no"; then
3544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3545 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3546   else
3547     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3548 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3549   fi
3550 else
3551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 fi
3554
3555 # ---------------
3556 # Find C compiler
3557 # ---------------
3558
3559 # If a non-executable a.out is present (e.g. created by GNU as above even if
3560 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3561 # file, even when creating an executable, so an execution test fails.
3562 # Remove possible default executable files to avoid this.
3563 #
3564 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3565 # Autoconf includes it.
3566 rm -f a.out a.exe b.out
3567
3568 # Find the native compiler
3569 ac_ext=c
3570 ac_cpp='$CPP $CPPFLAGS'
3571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574 if test -n "$ac_tool_prefix"; then
3575   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3576 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if test "${ac_cv_prog_CC+set}" = set; then :
3580   $as_echo_n "(cached) " >&6
3581 else
3582   if test -n "$CC"; then
3583   ac_cv_prog_CC="$CC" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3587 do
3588   IFS=$as_save_IFS
3589   test -z "$as_dir" && as_dir=.
3590     for ac_exec_ext in '' $ac_executable_extensions; do
3591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3592     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594     break 2
3595   fi
3596 done
3597   done
3598 IFS=$as_save_IFS
3599
3600 fi
3601 fi
3602 CC=$ac_cv_prog_CC
3603 if test -n "$CC"; then
3604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605 $as_echo "$CC" >&6; }
3606 else
3607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3609 fi
3610
3611
3612 fi
3613 if test -z "$ac_cv_prog_CC"; then
3614   ac_ct_CC=$CC
3615   # Extract the first word of "gcc", so it can be a program name with args.
3616 set dummy gcc; ac_word=$2
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618 $as_echo_n "checking for $ac_word... " >&6; }
3619 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3620   $as_echo_n "(cached) " >&6
3621 else
3622   if test -n "$ac_ct_CC"; then
3623   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3624 else
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3627 do
3628   IFS=$as_save_IFS
3629   test -z "$as_dir" && as_dir=.
3630     for ac_exec_ext in '' $ac_executable_extensions; do
3631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3632     ac_cv_prog_ac_ct_CC="gcc"
3633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3634     break 2
3635   fi
3636 done
3637   done
3638 IFS=$as_save_IFS
3639
3640 fi
3641 fi
3642 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3643 if test -n "$ac_ct_CC"; then
3644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3645 $as_echo "$ac_ct_CC" >&6; }
3646 else
3647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648 $as_echo "no" >&6; }
3649 fi
3650
3651   if test "x$ac_ct_CC" = x; then
3652     CC=""
3653   else
3654     case $cross_compiling:$ac_tool_warned in
3655 yes:)
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658 ac_tool_warned=yes ;;
3659 esac
3660     CC=$ac_ct_CC
3661   fi
3662 else
3663   CC="$ac_cv_prog_CC"
3664 fi
3665
3666 if test -z "$CC"; then
3667           if test -n "$ac_tool_prefix"; then
3668     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3669 set dummy ${ac_tool_prefix}cc; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if test "${ac_cv_prog_CC+set}" = set; then :
3673   $as_echo_n "(cached) " >&6
3674 else
3675   if test -n "$CC"; then
3676   ac_cv_prog_CC="$CC" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681   IFS=$as_save_IFS
3682   test -z "$as_dir" && as_dir=.
3683     for ac_exec_ext in '' $ac_executable_extensions; do
3684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3685     ac_cv_prog_CC="${ac_tool_prefix}cc"
3686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687     break 2
3688   fi
3689 done
3690   done
3691 IFS=$as_save_IFS
3692
3693 fi
3694 fi
3695 CC=$ac_cv_prog_CC
3696 if test -n "$CC"; then
3697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698 $as_echo "$CC" >&6; }
3699 else
3700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3702 fi
3703
3704
3705   fi
3706 fi
3707 if test -z "$CC"; then
3708   # Extract the first word of "cc", so it can be a program name with args.
3709 set dummy cc; ac_word=$2
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711 $as_echo_n "checking for $ac_word... " >&6; }
3712 if test "${ac_cv_prog_CC+set}" = set; then :
3713   $as_echo_n "(cached) " >&6
3714 else
3715   if test -n "$CC"; then
3716   ac_cv_prog_CC="$CC" # Let the user override the test.
3717 else
3718   ac_prog_rejected=no
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3721 do
3722   IFS=$as_save_IFS
3723   test -z "$as_dir" && as_dir=.
3724     for ac_exec_ext in '' $ac_executable_extensions; do
3725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3726     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3727        ac_prog_rejected=yes
3728        continue
3729      fi
3730     ac_cv_prog_CC="cc"
3731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732     break 2
3733   fi
3734 done
3735   done
3736 IFS=$as_save_IFS
3737
3738 if test $ac_prog_rejected = yes; then
3739   # We found a bogon in the path, so make sure we never use it.
3740   set dummy $ac_cv_prog_CC
3741   shift
3742   if test $# != 0; then
3743     # We chose a different compiler from the bogus one.
3744     # However, it has the same basename, so the bogon will be chosen
3745     # first if we set CC to just the basename; use the full file name.
3746     shift
3747     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3748   fi
3749 fi
3750 fi
3751 fi
3752 CC=$ac_cv_prog_CC
3753 if test -n "$CC"; then
3754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3755 $as_echo "$CC" >&6; }
3756 else
3757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3759 fi
3760
3761
3762 fi
3763 if test -z "$CC"; then
3764   if test -n "$ac_tool_prefix"; then
3765   for ac_prog in cl.exe
3766   do
3767     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770 $as_echo_n "checking for $ac_word... " >&6; }
3771 if test "${ac_cv_prog_CC+set}" = set; then :
3772   $as_echo_n "(cached) " >&6
3773 else
3774   if test -n "$CC"; then
3775   ac_cv_prog_CC="$CC" # Let the user override the test.
3776 else
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH
3779 do
3780   IFS=$as_save_IFS
3781   test -z "$as_dir" && as_dir=.
3782     for ac_exec_ext in '' $ac_executable_extensions; do
3783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3784     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3786     break 2
3787   fi
3788 done
3789   done
3790 IFS=$as_save_IFS
3791
3792 fi
3793 fi
3794 CC=$ac_cv_prog_CC
3795 if test -n "$CC"; then
3796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3797 $as_echo "$CC" >&6; }
3798 else
3799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800 $as_echo "no" >&6; }
3801 fi
3802
3803
3804     test -n "$CC" && break
3805   done
3806 fi
3807 if test -z "$CC"; then
3808   ac_ct_CC=$CC
3809   for ac_prog in cl.exe
3810 do
3811   # Extract the first word of "$ac_prog", so it can be a program name with args.
3812 set dummy $ac_prog; ac_word=$2
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814 $as_echo_n "checking for $ac_word... " >&6; }
3815 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3816   $as_echo_n "(cached) " >&6
3817 else
3818   if test -n "$ac_ct_CC"; then
3819   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3820 else
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824   IFS=$as_save_IFS
3825   test -z "$as_dir" && as_dir=.
3826     for ac_exec_ext in '' $ac_executable_extensions; do
3827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3828     ac_cv_prog_ac_ct_CC="$ac_prog"
3829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3830     break 2
3831   fi
3832 done
3833   done
3834 IFS=$as_save_IFS
3835
3836 fi
3837 fi
3838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3839 if test -n "$ac_ct_CC"; then
3840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3841 $as_echo "$ac_ct_CC" >&6; }
3842 else
3843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3845 fi
3846
3847
3848   test -n "$ac_ct_CC" && break
3849 done
3850
3851   if test "x$ac_ct_CC" = x; then
3852     CC=""
3853   else
3854     case $cross_compiling:$ac_tool_warned in
3855 yes:)
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3858 ac_tool_warned=yes ;;
3859 esac
3860     CC=$ac_ct_CC
3861   fi
3862 fi
3863
3864 fi
3865
3866
3867 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869 as_fn_error "no acceptable C compiler found in \$PATH
3870 See \`config.log' for more details." "$LINENO" 5; }
3871
3872 # Provide some information about the compiler.
3873 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3874 set X $ac_compile
3875 ac_compiler=$2
3876 for ac_option in --version -v -V -qversion; do
3877   { { ac_try="$ac_compiler $ac_option >&5"
3878 case "(($ac_try" in
3879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880   *) ac_try_echo=$ac_try;;
3881 esac
3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883 $as_echo "$ac_try_echo"; } >&5
3884   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3885   ac_status=$?
3886   if test -s conftest.err; then
3887     sed '10a\
3888 ... rest of stderr output deleted ...
3889          10q' conftest.err >conftest.er1
3890     cat conftest.er1 >&5
3891     rm -f conftest.er1 conftest.err
3892   fi
3893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894   test $ac_status = 0; }
3895 done
3896
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h.  */
3899
3900 int
3901 main ()
3902 {
3903
3904   ;
3905   return 0;
3906 }
3907 _ACEOF
3908 ac_clean_files_save=$ac_clean_files
3909 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3910 # Try to create an executable without -o first, disregard a.out.
3911 # It will help us diagnose broken compilers, and finding out an intuition
3912 # of exeext.
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3914 $as_echo_n "checking for C compiler default output file name... " >&6; }
3915 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3916
3917 # The possible output files:
3918 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3919
3920 ac_rmfiles=
3921 for ac_file in $ac_files
3922 do
3923   case $ac_file in
3924     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3925     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3926   esac
3927 done
3928 rm -f $ac_rmfiles
3929
3930 if { { ac_try="$ac_link_default"
3931 case "(($ac_try" in
3932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933   *) ac_try_echo=$ac_try;;
3934 esac
3935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 $as_echo "$ac_try_echo"; } >&5
3937   (eval "$ac_link_default") 2>&5
3938   ac_status=$?
3939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940   test $ac_status = 0; }; then :
3941   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3942 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3943 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3944 # so that the user can short-circuit this test for compilers unknown to
3945 # Autoconf.
3946 for ac_file in $ac_files ''
3947 do
3948   test -f "$ac_file" || continue
3949   case $ac_file in
3950     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3951         ;;
3952     [ab].out )
3953         # We found the default executable, but exeext='' is most
3954         # certainly right.
3955         break;;
3956     *.* )
3957         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3958         then :; else
3959            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3960         fi
3961         # We set ac_cv_exeext here because the later test for it is not
3962         # safe: cross compilers may not add the suffix if given an `-o'
3963         # argument, so we may need to know it at that point already.
3964         # Even if this section looks crufty: it has the advantage of
3965         # actually working.
3966         break;;
3967     * )
3968         break;;
3969   esac
3970 done
3971 test "$ac_cv_exeext" = no && ac_cv_exeext=
3972
3973 else
3974   ac_file=''
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3977 $as_echo "$ac_file" >&6; }
3978 if test -z "$ac_file"; then :
3979   $as_echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3981
3982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984 { as_fn_set_status 77
3985 as_fn_error "C compiler cannot create executables
3986 See \`config.log' for more details." "$LINENO" 5; }; }
3987 fi
3988 ac_exeext=$ac_cv_exeext
3989
3990 # Check that the compiler produces executables we can run.  If not, either
3991 # the compiler is broken, or we cross compile.
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3993 $as_echo_n "checking whether the C compiler works... " >&6; }
3994 # If not cross compiling, check that we can run a simple program.
3995 if test "$cross_compiling" != yes; then
3996   if { ac_try='./$ac_file'
3997   { { case "(($ac_try" in
3998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999   *) ac_try_echo=$ac_try;;
4000 esac
4001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4002 $as_echo "$ac_try_echo"; } >&5
4003   (eval "$ac_try") 2>&5
4004   ac_status=$?
4005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4006   test $ac_status = 0; }; }; then
4007     cross_compiling=no
4008   else
4009     if test "$cross_compiling" = maybe; then
4010         cross_compiling=yes
4011     else
4012         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4014 as_fn_error "cannot run C compiled programs.
4015 If you meant to cross compile, use \`--host'.
4016 See \`config.log' for more details." "$LINENO" 5; }
4017     fi
4018   fi
4019 fi
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4021 $as_echo "yes" >&6; }
4022
4023 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4024 ac_clean_files=$ac_clean_files_save
4025 # Check that the compiler produces executables we can run.  If not, either
4026 # the compiler is broken, or we cross compile.
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4028 $as_echo_n "checking whether we are cross compiling... " >&6; }
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4030 $as_echo "$cross_compiling" >&6; }
4031
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4033 $as_echo_n "checking for suffix of executables... " >&6; }
4034 if { { ac_try="$ac_link"
4035 case "(($ac_try" in
4036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037   *) ac_try_echo=$ac_try;;
4038 esac
4039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4040 $as_echo "$ac_try_echo"; } >&5
4041   (eval "$ac_link") 2>&5
4042   ac_status=$?
4043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044   test $ac_status = 0; }; then :
4045   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4046 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4047 # work properly (i.e., refer to `conftest.exe'), while it won't with
4048 # `rm'.
4049 for ac_file in conftest.exe conftest conftest.*; do
4050   test -f "$ac_file" || continue
4051   case $ac_file in
4052     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4053     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4054           break;;
4055     * ) break;;
4056   esac
4057 done
4058 else
4059   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4061 as_fn_error "cannot compute suffix of executables: cannot compile and link
4062 See \`config.log' for more details." "$LINENO" 5; }
4063 fi
4064 rm -f conftest$ac_cv_exeext
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4066 $as_echo "$ac_cv_exeext" >&6; }
4067
4068 rm -f conftest.$ac_ext
4069 EXEEXT=$ac_cv_exeext
4070 ac_exeext=$EXEEXT
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4072 $as_echo_n "checking for suffix of object files... " >&6; }
4073 if test "${ac_cv_objext+set}" = set; then :
4074   $as_echo_n "(cached) " >&6
4075 else
4076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h.  */
4078
4079 int
4080 main ()
4081 {
4082
4083   ;
4084   return 0;
4085 }
4086 _ACEOF
4087 rm -f conftest.o conftest.obj
4088 if { { ac_try="$ac_compile"
4089 case "(($ac_try" in
4090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091   *) ac_try_echo=$ac_try;;
4092 esac
4093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094 $as_echo "$ac_try_echo"; } >&5
4095   (eval "$ac_compile") 2>&5
4096   ac_status=$?
4097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098   test $ac_status = 0; }; then :
4099   for ac_file in conftest.o conftest.obj conftest.*; do
4100   test -f "$ac_file" || continue;
4101   case $ac_file in
4102     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4103     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4104        break;;
4105   esac
4106 done
4107 else
4108   $as_echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4110
4111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4113 as_fn_error "cannot compute suffix of object files: cannot compile
4114 See \`config.log' for more details." "$LINENO" 5; }
4115 fi
4116 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4117 fi
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4119 $as_echo "$ac_cv_objext" >&6; }
4120 OBJEXT=$ac_cv_objext
4121 ac_objext=$OBJEXT
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4123 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4124 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4125   $as_echo_n "(cached) " >&6
4126 else
4127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h.  */
4129
4130 int
4131 main ()
4132 {
4133 #ifndef __GNUC__
4134        choke me
4135 #endif
4136
4137   ;
4138   return 0;
4139 }
4140 _ACEOF
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142   ac_compiler_gnu=yes
4143 else
4144   ac_compiler_gnu=no
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4148
4149 fi
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4151 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4152 if test $ac_compiler_gnu = yes; then
4153   GCC=yes
4154 else
4155   GCC=
4156 fi
4157 ac_test_CFLAGS=${CFLAGS+set}
4158 ac_save_CFLAGS=$CFLAGS
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4160 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4161 if test "${ac_cv_prog_cc_g+set}" = set; then :
4162   $as_echo_n "(cached) " >&6
4163 else
4164   ac_save_c_werror_flag=$ac_c_werror_flag
4165    ac_c_werror_flag=yes
4166    ac_cv_prog_cc_g=no
4167    CFLAGS="-g"
4168    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h.  */
4170
4171 int
4172 main ()
4173 {
4174
4175   ;
4176   return 0;
4177 }
4178 _ACEOF
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180   ac_cv_prog_cc_g=yes
4181 else
4182   CFLAGS=""
4183       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h.  */
4185
4186 int
4187 main ()
4188 {
4189
4190   ;
4191   return 0;
4192 }
4193 _ACEOF
4194 if ac_fn_c_try_compile "$LINENO"; then :
4195
4196 else
4197   ac_c_werror_flag=$ac_save_c_werror_flag
4198          CFLAGS="-g"
4199          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h.  */
4201
4202 int
4203 main ()
4204 {
4205
4206   ;
4207   return 0;
4208 }
4209 _ACEOF
4210 if ac_fn_c_try_compile "$LINENO"; then :
4211   ac_cv_prog_cc_g=yes
4212 fi
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 fi
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 fi
4217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218    ac_c_werror_flag=$ac_save_c_werror_flag
4219 fi
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4221 $as_echo "$ac_cv_prog_cc_g" >&6; }
4222 if test "$ac_test_CFLAGS" = set; then
4223   CFLAGS=$ac_save_CFLAGS
4224 elif test $ac_cv_prog_cc_g = yes; then
4225   if test "$GCC" = yes; then
4226     CFLAGS="-g -O2"
4227   else
4228     CFLAGS="-g"
4229   fi
4230 else
4231   if test "$GCC" = yes; then
4232     CFLAGS="-O2"
4233   else
4234     CFLAGS=
4235   fi
4236 fi
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4238 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4239 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4240   $as_echo_n "(cached) " >&6
4241 else
4242   ac_cv_prog_cc_c89=no
4243 ac_save_CC=$CC
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h.  */
4246 #include <stdarg.h>
4247 #include <stdio.h>
4248 #include <sys/types.h>
4249 #include <sys/stat.h>
4250 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4251 struct buf { int x; };
4252 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4253 static char *e (p, i)
4254      char **p;
4255      int i;
4256 {
4257   return p[i];
4258 }
4259 static char *f (char * (*g) (char **, int), char **p, ...)
4260 {
4261   char *s;
4262   va_list v;
4263   va_start (v,p);
4264   s = g (p, va_arg (v,int));
4265   va_end (v);
4266   return s;
4267 }
4268
4269 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4270    function prototypes and stuff, but not '\xHH' hex character constants.
4271    These don't provoke an error unfortunately, instead are silently treated
4272    as 'x'.  The following induces an error, until -std is added to get
4273    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4274    array size at least.  It's necessary to write '\x00'==0 to get something
4275    that's true only with -std.  */
4276 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4277
4278 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4279    inside strings and character constants.  */
4280 #define FOO(x) 'x'
4281 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4282
4283 int test (int i, double x);
4284 struct s1 {int (*f) (int a);};
4285 struct s2 {int (*f) (double a);};
4286 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4287 int argc;
4288 char **argv;
4289 int
4290 main ()
4291 {
4292 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4293   ;
4294   return 0;
4295 }
4296 _ACEOF
4297 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4298         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4299 do
4300   CC="$ac_save_CC $ac_arg"
4301   if ac_fn_c_try_compile "$LINENO"; then :
4302   ac_cv_prog_cc_c89=$ac_arg
4303 fi
4304 rm -f core conftest.err conftest.$ac_objext
4305   test "x$ac_cv_prog_cc_c89" != "xno" && break
4306 done
4307 rm -f conftest.$ac_ext
4308 CC=$ac_save_CC
4309
4310 fi
4311 # AC_CACHE_VAL
4312 case "x$ac_cv_prog_cc_c89" in
4313   x)
4314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4315 $as_echo "none needed" >&6; } ;;
4316   xno)
4317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4318 $as_echo "unsupported" >&6; } ;;
4319   *)
4320     CC="$CC $ac_cv_prog_cc_c89"
4321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4322 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4323 esac
4324 if test "x$ac_cv_prog_cc_c89" != xno; then :
4325
4326 fi
4327
4328 ac_ext=c
4329 ac_cpp='$CPP $CPPFLAGS'
4330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333
4334 if test "x$CC" != xcc; then
4335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4336 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4337 else
4338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4339 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4340 fi
4341 set dummy $CC; ac_cc=`$as_echo "$2" |
4342                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4343 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4344   $as_echo_n "(cached) " >&6
4345 else
4346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h.  */
4348
4349 int
4350 main ()
4351 {
4352
4353   ;
4354   return 0;
4355 }
4356 _ACEOF
4357 # Make sure it works both with $CC and with simple cc.
4358 # We do the test twice because some compilers refuse to overwrite an
4359 # existing .o file with -o, though they will create one.
4360 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4361 rm -f conftest2.*
4362 if { { case "(($ac_try" in
4363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364   *) ac_try_echo=$ac_try;;
4365 esac
4366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4367 $as_echo "$ac_try_echo"; } >&5
4368   (eval "$ac_try") 2>&5
4369   ac_status=$?
4370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371   test $ac_status = 0; } &&
4372    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374   *) ac_try_echo=$ac_try;;
4375 esac
4376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4377 $as_echo "$ac_try_echo"; } >&5
4378   (eval "$ac_try") 2>&5
4379   ac_status=$?
4380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4381   test $ac_status = 0; };
4382 then
4383   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4384   if test "x$CC" != xcc; then
4385     # Test first that cc exists at all.
4386     if { ac_try='cc -c conftest.$ac_ext >&5'
4387   { { case "(($ac_try" in
4388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389   *) ac_try_echo=$ac_try;;
4390 esac
4391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392 $as_echo "$ac_try_echo"; } >&5
4393   (eval "$ac_try") 2>&5
4394   ac_status=$?
4395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4396   test $ac_status = 0; }; }; then
4397       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4398       rm -f conftest2.*
4399       if { { case "(($ac_try" in
4400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401   *) ac_try_echo=$ac_try;;
4402 esac
4403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4404 $as_echo "$ac_try_echo"; } >&5
4405   (eval "$ac_try") 2>&5
4406   ac_status=$?
4407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4408   test $ac_status = 0; } &&
4409          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411   *) ac_try_echo=$ac_try;;
4412 esac
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415   (eval "$ac_try") 2>&5
4416   ac_status=$?
4417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418   test $ac_status = 0; };
4419       then
4420         # cc works too.
4421         :
4422       else
4423         # cc exists but doesn't like -o.
4424         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4425       fi
4426     fi
4427   fi
4428 else
4429   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4430 fi
4431 rm -f core conftest*
4432
4433 fi
4434 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4436 $as_echo "yes" >&6; }
4437 else
4438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439 $as_echo "no" >&6; }
4440
4441 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4442
4443 fi
4444
4445 # expand $ac_aux_dir to an absolute path
4446 am_aux_dir=`cd $ac_aux_dir && pwd`
4447
4448 # FIXME: we rely on the cache variable name because
4449 # there is no other way.
4450 set dummy $CC
4451 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4452 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4453 if test "$am_t" != yes; then
4454    # Losing compiler, so override with the script.
4455    # FIXME: It is wrong to rewrite CC.
4456    # But if we don't then we get into trouble of one sort or another.
4457    # A longer-term fix would be to have automake use am__CC in this case,
4458    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4459    CC="$am_aux_dir/compile $CC"
4460 fi
4461
4462
4463 ac_ext=cpp
4464 ac_cpp='$CXXCPP $CPPFLAGS'
4465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4468 if test -z "$CXX"; then
4469   if test -n "$CCC"; then
4470     CXX=$CCC
4471   else
4472     if test -n "$ac_tool_prefix"; then
4473   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4474   do
4475     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4478 $as_echo_n "checking for $ac_word... " >&6; }
4479 if test "${ac_cv_prog_CXX+set}" = set; then :
4480   $as_echo_n "(cached) " >&6
4481 else
4482   if test -n "$CXX"; then
4483   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4484 else
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4487 do
4488   IFS=$as_save_IFS
4489   test -z "$as_dir" && as_dir=.
4490     for ac_exec_ext in '' $ac_executable_extensions; do
4491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4492     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4494     break 2
4495   fi
4496 done
4497   done
4498 IFS=$as_save_IFS
4499
4500 fi
4501 fi
4502 CXX=$ac_cv_prog_CXX
4503 if test -n "$CXX"; then
4504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4505 $as_echo "$CXX" >&6; }
4506 else
4507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508 $as_echo "no" >&6; }
4509 fi
4510
4511
4512     test -n "$CXX" && break
4513   done
4514 fi
4515 if test -z "$CXX"; then
4516   ac_ct_CXX=$CXX
4517   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4518 do
4519   # Extract the first word of "$ac_prog", so it can be a program name with args.
4520 set dummy $ac_prog; ac_word=$2
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4522 $as_echo_n "checking for $ac_word... " >&6; }
4523 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4524   $as_echo_n "(cached) " >&6
4525 else
4526   if test -n "$ac_ct_CXX"; then
4527   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4528 else
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4531 do
4532   IFS=$as_save_IFS
4533   test -z "$as_dir" && as_dir=.
4534     for ac_exec_ext in '' $ac_executable_extensions; do
4535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536     ac_cv_prog_ac_ct_CXX="$ac_prog"
4537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4538     break 2
4539   fi
4540 done
4541   done
4542 IFS=$as_save_IFS
4543
4544 fi
4545 fi
4546 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4547 if test -n "$ac_ct_CXX"; then
4548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4549 $as_echo "$ac_ct_CXX" >&6; }
4550 else
4551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 $as_echo "no" >&6; }
4553 fi
4554
4555
4556   test -n "$ac_ct_CXX" && break
4557 done
4558
4559   if test "x$ac_ct_CXX" = x; then
4560     CXX="g++"
4561   else
4562     case $cross_compiling:$ac_tool_warned in
4563 yes:)
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4566 ac_tool_warned=yes ;;
4567 esac
4568     CXX=$ac_ct_CXX
4569   fi
4570 fi
4571
4572   fi
4573 fi
4574 # Provide some information about the compiler.
4575 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4576 set X $ac_compile
4577 ac_compiler=$2
4578 for ac_option in --version -v -V -qversion; do
4579   { { ac_try="$ac_compiler $ac_option >&5"
4580 case "(($ac_try" in
4581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582   *) ac_try_echo=$ac_try;;
4583 esac
4584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4585 $as_echo "$ac_try_echo"; } >&5
4586   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4587   ac_status=$?
4588   if test -s conftest.err; then
4589     sed '10a\
4590 ... rest of stderr output deleted ...
4591          10q' conftest.err >conftest.er1
4592     cat conftest.er1 >&5
4593     rm -f conftest.er1 conftest.err
4594   fi
4595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4596   test $ac_status = 0; }
4597 done
4598
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4600 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4601 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4602   $as_echo_n "(cached) " >&6
4603 else
4604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h.  */
4606
4607 int
4608 main ()
4609 {
4610 #ifndef __GNUC__
4611        choke me
4612 #endif
4613
4614   ;
4615   return 0;
4616 }
4617 _ACEOF
4618 if ac_fn_cxx_try_compile "$LINENO"; then :
4619   ac_compiler_gnu=yes
4620 else
4621   ac_compiler_gnu=no
4622 fi
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4625
4626 fi
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4628 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4629 if test $ac_compiler_gnu = yes; then
4630   GXX=yes
4631 else
4632   GXX=
4633 fi
4634 ac_test_CXXFLAGS=${CXXFLAGS+set}
4635 ac_save_CXXFLAGS=$CXXFLAGS
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4637 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4638 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4639   $as_echo_n "(cached) " >&6
4640 else
4641   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4642    ac_cxx_werror_flag=yes
4643    ac_cv_prog_cxx_g=no
4644    CXXFLAGS="-g"
4645    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h.  */
4647
4648 int
4649 main ()
4650 {
4651
4652   ;
4653   return 0;
4654 }
4655 _ACEOF
4656 if ac_fn_cxx_try_compile "$LINENO"; then :
4657   ac_cv_prog_cxx_g=yes
4658 else
4659   CXXFLAGS=""
4660       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h.  */
4662
4663 int
4664 main ()
4665 {
4666
4667   ;
4668   return 0;
4669 }
4670 _ACEOF
4671 if ac_fn_cxx_try_compile "$LINENO"; then :
4672
4673 else
4674   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4675          CXXFLAGS="-g"
4676          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h.  */
4678
4679 int
4680 main ()
4681 {
4682
4683   ;
4684   return 0;
4685 }
4686 _ACEOF
4687 if ac_fn_cxx_try_compile "$LINENO"; then :
4688   ac_cv_prog_cxx_g=yes
4689 fi
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 fi
4692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 fi
4694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4696 fi
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4698 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4699 if test "$ac_test_CXXFLAGS" = set; then
4700   CXXFLAGS=$ac_save_CXXFLAGS
4701 elif test $ac_cv_prog_cxx_g = yes; then
4702   if test "$GXX" = yes; then
4703     CXXFLAGS="-g -O2"
4704   else
4705     CXXFLAGS="-g"
4706   fi
4707 else
4708   if test "$GXX" = yes; then
4709     CXXFLAGS="-O2"
4710   else
4711     CXXFLAGS=
4712   fi
4713 fi
4714 ac_ext=c
4715 ac_cpp='$CPP $CPPFLAGS'
4716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4719
4720
4721
4722
4723 if test -n "$ac_tool_prefix"; then
4724   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4725 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4729   $as_echo_n "(cached) " >&6
4730 else
4731   if test -n "$GNATBIND"; then
4732   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4733 else
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737   IFS=$as_save_IFS
4738   test -z "$as_dir" && as_dir=.
4739     for ac_exec_ext in '' $ac_executable_extensions; do
4740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743     break 2
4744   fi
4745 done
4746   done
4747 IFS=$as_save_IFS
4748
4749 fi
4750 fi
4751 GNATBIND=$ac_cv_prog_GNATBIND
4752 if test -n "$GNATBIND"; then
4753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4754 $as_echo "$GNATBIND" >&6; }
4755 else
4756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4758 fi
4759
4760
4761 fi
4762 if test -z "$ac_cv_prog_GNATBIND"; then
4763   ac_ct_GNATBIND=$GNATBIND
4764   # Extract the first word of "gnatbind", so it can be a program name with args.
4765 set dummy gnatbind; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4769   $as_echo_n "(cached) " >&6
4770 else
4771   if test -n "$ac_ct_GNATBIND"; then
4772   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4773 else
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4776 do
4777   IFS=$as_save_IFS
4778   test -z "$as_dir" && as_dir=.
4779     for ac_exec_ext in '' $ac_executable_extensions; do
4780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4781     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783     break 2
4784   fi
4785 done
4786   done
4787 IFS=$as_save_IFS
4788
4789 fi
4790 fi
4791 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4792 if test -n "$ac_ct_GNATBIND"; then
4793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4794 $as_echo "$ac_ct_GNATBIND" >&6; }
4795 else
4796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4798 fi
4799
4800   if test "x$ac_ct_GNATBIND" = x; then
4801     GNATBIND="no"
4802   else
4803     case $cross_compiling:$ac_tool_warned in
4804 yes:)
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4807 ac_tool_warned=yes ;;
4808 esac
4809     GNATBIND=$ac_ct_GNATBIND
4810   fi
4811 else
4812   GNATBIND="$ac_cv_prog_GNATBIND"
4813 fi
4814
4815 if test -n "$ac_tool_prefix"; then
4816   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4817 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4821   $as_echo_n "(cached) " >&6
4822 else
4823   if test -n "$GNATMAKE"; then
4824   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829   IFS=$as_save_IFS
4830   test -z "$as_dir" && as_dir=.
4831     for ac_exec_ext in '' $ac_executable_extensions; do
4832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835     break 2
4836   fi
4837 done
4838   done
4839 IFS=$as_save_IFS
4840
4841 fi
4842 fi
4843 GNATMAKE=$ac_cv_prog_GNATMAKE
4844 if test -n "$GNATMAKE"; then
4845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4846 $as_echo "$GNATMAKE" >&6; }
4847 else
4848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4850 fi
4851
4852
4853 fi
4854 if test -z "$ac_cv_prog_GNATMAKE"; then
4855   ac_ct_GNATMAKE=$GNATMAKE
4856   # Extract the first word of "gnatmake", so it can be a program name with args.
4857 set dummy gnatmake; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4861   $as_echo_n "(cached) " >&6
4862 else
4863   if test -n "$ac_ct_GNATMAKE"; then
4864   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869   IFS=$as_save_IFS
4870   test -z "$as_dir" && as_dir=.
4871     for ac_exec_ext in '' $ac_executable_extensions; do
4872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875     break 2
4876   fi
4877 done
4878   done
4879 IFS=$as_save_IFS
4880
4881 fi
4882 fi
4883 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4884 if test -n "$ac_ct_GNATMAKE"; then
4885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4886 $as_echo "$ac_ct_GNATMAKE" >&6; }
4887 else
4888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4890 fi
4891
4892   if test "x$ac_ct_GNATMAKE" = x; then
4893     GNATMAKE="no"
4894   else
4895     case $cross_compiling:$ac_tool_warned in
4896 yes:)
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4899 ac_tool_warned=yes ;;
4900 esac
4901     GNATMAKE=$ac_ct_GNATMAKE
4902   fi
4903 else
4904   GNATMAKE="$ac_cv_prog_GNATMAKE"
4905 fi
4906
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4908 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4909 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4910   $as_echo_n "(cached) " >&6
4911 else
4912   cat >conftest.adb <<EOF
4913 procedure conftest is begin null; end conftest;
4914 EOF
4915 acx_cv_cc_gcc_supports_ada=no
4916 # There is a bug in old released versions of GCC which causes the
4917 # driver to exit successfully when the appropriate language module
4918 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4919 # Therefore we must check for the error message as well as an
4920 # unsuccessful exit.
4921 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4922 # given a .adb file, but produce no object file.  So we must check
4923 # if an object file was really produced to guard against this.
4924 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4925 if test x"$errors" = x && test -f conftest.$ac_objext; then
4926   acx_cv_cc_gcc_supports_ada=yes
4927 fi
4928 rm -f conftest.*
4929 fi
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4931 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4932
4933 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4934   have_gnat=yes
4935 else
4936   have_gnat=no
4937 fi
4938
4939
4940 # autoconf is lame and doesn't give us any substitution variable for this.
4941 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4942   NO_MINUS_C_MINUS_O=yes
4943 else
4944   OUTPUT_OPTION='-o $@'
4945 fi
4946
4947
4948
4949 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4950 # optimizations to be activated explicitly by the toplevel.
4951 case "$CC" in
4952   */prev-gcc/xgcc*) ;;
4953   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4954 esac
4955
4956
4957 # -------------------------
4958 # Check C compiler features
4959 # -------------------------
4960
4961
4962 ac_ext=c
4963 ac_cpp='$CPP $CPPFLAGS'
4964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4968 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4969 # On Suns, sometimes $CPP names a directory.
4970 if test -n "$CPP" && test -d "$CPP"; then
4971   CPP=
4972 fi
4973 if test -z "$CPP"; then
4974   if test "${ac_cv_prog_CPP+set}" = set; then :
4975   $as_echo_n "(cached) " >&6
4976 else
4977       # Double quotes because CPP needs to be expanded
4978     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4979     do
4980       ac_preproc_ok=false
4981 for ac_c_preproc_warn_flag in '' yes
4982 do
4983   # Use a header file that comes with gcc, so configuring glibc
4984   # with a fresh cross-compiler works.
4985   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986   # <limits.h> exists even on freestanding compilers.
4987   # On the NeXT, cc -E runs the code through the compiler's parser,
4988   # not just through cpp. "Syntax error" is here to catch this case.
4989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h.  */
4991 #ifdef __STDC__
4992 # include <limits.h>
4993 #else
4994 # include <assert.h>
4995 #endif
4996                      Syntax error
4997 _ACEOF
4998 if ac_fn_c_try_cpp "$LINENO"; then :
4999
5000 else
5001   # Broken: fails on valid input.
5002 continue
5003 fi
5004 rm -f conftest.err conftest.$ac_ext
5005
5006   # OK, works on sane cases.  Now check whether nonexistent headers
5007   # can be detected and how.
5008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h.  */
5010 #include <ac_nonexistent.h>
5011 _ACEOF
5012 if ac_fn_c_try_cpp "$LINENO"; then :
5013   # Broken: success on invalid input.
5014 continue
5015 else
5016   # Passes both tests.
5017 ac_preproc_ok=:
5018 break
5019 fi
5020 rm -f conftest.err conftest.$ac_ext
5021
5022 done
5023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5024 rm -f conftest.err conftest.$ac_ext
5025 if $ac_preproc_ok; then :
5026   break
5027 fi
5028
5029     done
5030     ac_cv_prog_CPP=$CPP
5031
5032 fi
5033   CPP=$ac_cv_prog_CPP
5034 else
5035   ac_cv_prog_CPP=$CPP
5036 fi
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5038 $as_echo "$CPP" >&6; }
5039 ac_preproc_ok=false
5040 for ac_c_preproc_warn_flag in '' yes
5041 do
5042   # Use a header file that comes with gcc, so configuring glibc
5043   # with a fresh cross-compiler works.
5044   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5045   # <limits.h> exists even on freestanding compilers.
5046   # On the NeXT, cc -E runs the code through the compiler's parser,
5047   # not just through cpp. "Syntax error" is here to catch this case.
5048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h.  */
5050 #ifdef __STDC__
5051 # include <limits.h>
5052 #else
5053 # include <assert.h>
5054 #endif
5055                      Syntax error
5056 _ACEOF
5057 if ac_fn_c_try_cpp "$LINENO"; then :
5058
5059 else
5060   # Broken: fails on valid input.
5061 continue
5062 fi
5063 rm -f conftest.err conftest.$ac_ext
5064
5065   # OK, works on sane cases.  Now check whether nonexistent headers
5066   # can be detected and how.
5067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h.  */
5069 #include <ac_nonexistent.h>
5070 _ACEOF
5071 if ac_fn_c_try_cpp "$LINENO"; then :
5072   # Broken: success on invalid input.
5073 continue
5074 else
5075   # Passes both tests.
5076 ac_preproc_ok=:
5077 break
5078 fi
5079 rm -f conftest.err conftest.$ac_ext
5080
5081 done
5082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5083 rm -f conftest.err conftest.$ac_ext
5084 if $ac_preproc_ok; then :
5085
5086 else
5087   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5089 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5090 See \`config.log' for more details." "$LINENO" 5; }
5091 fi
5092
5093 ac_ext=c
5094 ac_cpp='$CPP $CPPFLAGS'
5095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5098
5099
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5101 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5102 if test "${ac_cv_path_GREP+set}" = set; then :
5103   $as_echo_n "(cached) " >&6
5104 else
5105   if test -z "$GREP"; then
5106   ac_path_GREP_found=false
5107   # Loop through the user's path and test for each of PROGNAME-LIST
5108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113     for ac_prog in grep ggrep; do
5114     for ac_exec_ext in '' $ac_executable_extensions; do
5115       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5116       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5117 # Check for GNU ac_path_GREP and select it if it is found.
5118   # Check for GNU $ac_path_GREP
5119 case `"$ac_path_GREP" --version 2>&1` in
5120 *GNU*)
5121   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5122 *)
5123   ac_count=0
5124   $as_echo_n 0123456789 >"conftest.in"
5125   while :
5126   do
5127     cat "conftest.in" "conftest.in" >"conftest.tmp"
5128     mv "conftest.tmp" "conftest.in"
5129     cp "conftest.in" "conftest.nl"
5130     $as_echo 'GREP' >> "conftest.nl"
5131     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5132     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5133     as_fn_arith $ac_count + 1 && ac_count=$as_val
5134     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5135       # Best one so far, save it but keep looking for a better one
5136       ac_cv_path_GREP="$ac_path_GREP"
5137       ac_path_GREP_max=$ac_count
5138     fi
5139     # 10*(2^10) chars as input seems more than enough
5140     test $ac_count -gt 10 && break
5141   done
5142   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5143 esac
5144
5145       $ac_path_GREP_found && break 3
5146     done
5147   done
5148   done
5149 IFS=$as_save_IFS
5150   if test -z "$ac_cv_path_GREP"; then
5151     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5152   fi
5153 else
5154   ac_cv_path_GREP=$GREP
5155 fi
5156
5157 fi
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5159 $as_echo "$ac_cv_path_GREP" >&6; }
5160  GREP="$ac_cv_path_GREP"
5161
5162
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5164 $as_echo_n "checking for egrep... " >&6; }
5165 if test "${ac_cv_path_EGREP+set}" = set; then :
5166   $as_echo_n "(cached) " >&6
5167 else
5168   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5169    then ac_cv_path_EGREP="$GREP -E"
5170    else
5171      if test -z "$EGREP"; then
5172   ac_path_EGREP_found=false
5173   # Loop through the user's path and test for each of PROGNAME-LIST
5174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5176 do
5177   IFS=$as_save_IFS
5178   test -z "$as_dir" && as_dir=.
5179     for ac_prog in egrep; do
5180     for ac_exec_ext in '' $ac_executable_extensions; do
5181       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5182       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5183 # Check for GNU ac_path_EGREP and select it if it is found.
5184   # Check for GNU $ac_path_EGREP
5185 case `"$ac_path_EGREP" --version 2>&1` in
5186 *GNU*)
5187   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5188 *)
5189   ac_count=0
5190   $as_echo_n 0123456789 >"conftest.in"
5191   while :
5192   do
5193     cat "conftest.in" "conftest.in" >"conftest.tmp"
5194     mv "conftest.tmp" "conftest.in"
5195     cp "conftest.in" "conftest.nl"
5196     $as_echo 'EGREP' >> "conftest.nl"
5197     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5198     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5199     as_fn_arith $ac_count + 1 && ac_count=$as_val
5200     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5201       # Best one so far, save it but keep looking for a better one
5202       ac_cv_path_EGREP="$ac_path_EGREP"
5203       ac_path_EGREP_max=$ac_count
5204     fi
5205     # 10*(2^10) chars as input seems more than enough
5206     test $ac_count -gt 10 && break
5207   done
5208   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5209 esac
5210
5211       $ac_path_EGREP_found && break 3
5212     done
5213   done
5214   done
5215 IFS=$as_save_IFS
5216   if test -z "$ac_cv_path_EGREP"; then
5217     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5218   fi
5219 else
5220   ac_cv_path_EGREP=$EGREP
5221 fi
5222
5223    fi
5224 fi
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5226 $as_echo "$ac_cv_path_EGREP" >&6; }
5227  EGREP="$ac_cv_path_EGREP"
5228
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5231 $as_echo_n "checking for ANSI C header files... " >&6; }
5232 if test "${ac_cv_header_stdc+set}" = set; then :
5233   $as_echo_n "(cached) " >&6
5234 else
5235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h.  */
5237 #include <stdlib.h>
5238 #include <stdarg.h>
5239 #include <string.h>
5240 #include <float.h>
5241
5242 int
5243 main ()
5244 {
5245
5246   ;
5247   return 0;
5248 }
5249 _ACEOF
5250 if ac_fn_c_try_compile "$LINENO"; then :
5251   ac_cv_header_stdc=yes
5252 else
5253   ac_cv_header_stdc=no
5254 fi
5255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5256
5257 if test $ac_cv_header_stdc = yes; then
5258   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h.  */
5261 #include <string.h>
5262
5263 _ACEOF
5264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5265   $EGREP "memchr" >/dev/null 2>&1; then :
5266
5267 else
5268   ac_cv_header_stdc=no
5269 fi
5270 rm -f conftest*
5271
5272 fi
5273
5274 if test $ac_cv_header_stdc = yes; then
5275   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h.  */
5278 #include <stdlib.h>
5279
5280 _ACEOF
5281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5282   $EGREP "free" >/dev/null 2>&1; then :
5283
5284 else
5285   ac_cv_header_stdc=no
5286 fi
5287 rm -f conftest*
5288
5289 fi
5290
5291 if test $ac_cv_header_stdc = yes; then
5292   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5293   if test "$cross_compiling" = yes; then :
5294   :
5295 else
5296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h.  */
5298 #include <ctype.h>
5299 #include <stdlib.h>
5300 #if ((' ' & 0x0FF) == 0x020)
5301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5303 #else
5304 # define ISLOWER(c) \
5305                    (('a' <= (c) && (c) <= 'i') \
5306                      || ('j' <= (c) && (c) <= 'r') \
5307                      || ('s' <= (c) && (c) <= 'z'))
5308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5309 #endif
5310
5311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5312 int
5313 main ()
5314 {
5315   int i;
5316   for (i = 0; i < 256; i++)
5317     if (XOR (islower (i), ISLOWER (i))
5318         || toupper (i) != TOUPPER (i))
5319       return 2;
5320   return 0;
5321 }
5322 _ACEOF
5323 if ac_fn_c_try_run "$LINENO"; then :
5324
5325 else
5326   ac_cv_header_stdc=no
5327 fi
5328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5329   conftest.$ac_objext conftest.beam conftest.$ac_ext
5330 fi
5331
5332 fi
5333 fi
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5335 $as_echo "$ac_cv_header_stdc" >&6; }
5336 if test $ac_cv_header_stdc = yes; then
5337
5338 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5339
5340 fi
5341
5342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5343 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5344                   inttypes.h stdint.h unistd.h
5345 do :
5346   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5347 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5348 "
5349 eval as_val=\$$as_ac_Header
5350    if test "x$as_val" = x""yes; then :
5351   cat >>confdefs.h <<_ACEOF
5352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5353 _ACEOF
5354
5355 fi
5356
5357 done
5358
5359
5360
5361   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5362 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5363   MINIX=yes
5364 else
5365   MINIX=
5366 fi
5367
5368
5369   if test "$MINIX" = yes; then
5370
5371 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5372
5373
5374 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5375
5376
5377 $as_echo "#define _MINIX 1" >>confdefs.h
5378
5379   fi
5380
5381
5382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5383 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5384 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5385   $as_echo_n "(cached) " >&6
5386 else
5387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h.  */
5389
5390 #         define __EXTENSIONS__ 1
5391           $ac_includes_default
5392 int
5393 main ()
5394 {
5395
5396   ;
5397   return 0;
5398 }
5399 _ACEOF
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401   ac_cv_safe_to_define___extensions__=yes
5402 else
5403   ac_cv_safe_to_define___extensions__=no
5404 fi
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 fi
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5408 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5409   test $ac_cv_safe_to_define___extensions__ = yes &&
5410     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5411
5412   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5413
5414   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5415
5416   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5417
5418   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5419
5420
5421 ac_ext=c
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5427 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5428 # On Suns, sometimes $CPP names a directory.
5429 if test -n "$CPP" && test -d "$CPP"; then
5430   CPP=
5431 fi
5432 if test -z "$CPP"; then
5433   if test "${ac_cv_prog_CPP+set}" = set; then :
5434   $as_echo_n "(cached) " >&6
5435 else
5436       # Double quotes because CPP needs to be expanded
5437     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5438     do
5439       ac_preproc_ok=false
5440 for ac_c_preproc_warn_flag in '' yes
5441 do
5442   # Use a header file that comes with gcc, so configuring glibc
5443   # with a fresh cross-compiler works.
5444   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5445   # <limits.h> exists even on freestanding compilers.
5446   # On the NeXT, cc -E runs the code through the compiler's parser,
5447   # not just through cpp. "Syntax error" is here to catch this case.
5448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h.  */
5450 #ifdef __STDC__
5451 # include <limits.h>
5452 #else
5453 # include <assert.h>
5454 #endif
5455                      Syntax error
5456 _ACEOF
5457 if ac_fn_c_try_cpp "$LINENO"; then :
5458
5459 else
5460   # Broken: fails on valid input.
5461 continue
5462 fi
5463 rm -f conftest.err conftest.$ac_ext
5464
5465   # OK, works on sane cases.  Now check whether nonexistent headers
5466   # can be detected and how.
5467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h.  */
5469 #include <ac_nonexistent.h>
5470 _ACEOF
5471 if ac_fn_c_try_cpp "$LINENO"; then :
5472   # Broken: success on invalid input.
5473 continue
5474 else
5475   # Passes both tests.
5476 ac_preproc_ok=:
5477 break
5478 fi
5479 rm -f conftest.err conftest.$ac_ext
5480
5481 done
5482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5483 rm -f conftest.err conftest.$ac_ext
5484 if $ac_preproc_ok; then :
5485   break
5486 fi
5487
5488     done
5489     ac_cv_prog_CPP=$CPP
5490
5491 fi
5492   CPP=$ac_cv_prog_CPP
5493 else
5494   ac_cv_prog_CPP=$CPP
5495 fi
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5497 $as_echo "$CPP" >&6; }
5498 ac_preproc_ok=false
5499 for ac_c_preproc_warn_flag in '' yes
5500 do
5501   # Use a header file that comes with gcc, so configuring glibc
5502   # with a fresh cross-compiler works.
5503   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5504   # <limits.h> exists even on freestanding compilers.
5505   # On the NeXT, cc -E runs the code through the compiler's parser,
5506   # not just through cpp. "Syntax error" is here to catch this case.
5507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h.  */
5509 #ifdef __STDC__
5510 # include <limits.h>
5511 #else
5512 # include <assert.h>
5513 #endif
5514                      Syntax error
5515 _ACEOF
5516 if ac_fn_c_try_cpp "$LINENO"; then :
5517
5518 else
5519   # Broken: fails on valid input.
5520 continue
5521 fi
5522 rm -f conftest.err conftest.$ac_ext
5523
5524   # OK, works on sane cases.  Now check whether nonexistent headers
5525   # can be detected and how.
5526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h.  */
5528 #include <ac_nonexistent.h>
5529 _ACEOF
5530 if ac_fn_c_try_cpp "$LINENO"; then :
5531   # Broken: success on invalid input.
5532 continue
5533 else
5534   # Passes both tests.
5535 ac_preproc_ok=:
5536 break
5537 fi
5538 rm -f conftest.err conftest.$ac_ext
5539
5540 done
5541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5542 rm -f conftest.err conftest.$ac_ext
5543 if $ac_preproc_ok; then :
5544
5545 else
5546   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5548 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5549 See \`config.log' for more details." "$LINENO" 5; }
5550 fi
5551
5552 ac_ext=c
5553 ac_cpp='$CPP $CPPFLAGS'
5554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5557
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5559 $as_echo_n "checking for inline... " >&6; }
5560 if test "${ac_cv_c_inline+set}" = set; then :
5561   $as_echo_n "(cached) " >&6
5562 else
5563   ac_cv_c_inline=no
5564 for ac_kw in inline __inline__ __inline; do
5565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h.  */
5567 #ifndef __cplusplus
5568 typedef int foo_t;
5569 static $ac_kw foo_t static_foo () {return 0; }
5570 $ac_kw foo_t foo () {return 0; }
5571 #endif
5572
5573 _ACEOF
5574 if ac_fn_c_try_compile "$LINENO"; then :
5575   ac_cv_c_inline=$ac_kw
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578   test "$ac_cv_c_inline" != no && break
5579 done
5580
5581 fi
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5583 $as_echo "$ac_cv_c_inline" >&6; }
5584
5585 case $ac_cv_c_inline in
5586   inline | yes) ;;
5587   *)
5588     case $ac_cv_c_inline in
5589       no) ac_val=;;
5590       *) ac_val=$ac_cv_c_inline;;
5591     esac
5592     cat >>confdefs.h <<_ACEOF
5593 #ifndef __cplusplus
5594 #define inline $ac_val
5595 #endif
5596 _ACEOF
5597     ;;
5598 esac
5599
5600
5601 # sizeof(char) is 1 by definition.
5602 # The cast to long int works around a bug in the HP C Compiler
5603 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5604 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5605 # This bug is HP SR number 8606223364.
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5607 $as_echo_n "checking size of void *... " >&6; }
5608 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5612
5613 else
5614   if test "$ac_cv_type_void_p" = yes; then
5615      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5617 { as_fn_set_status 77
5618 as_fn_error "cannot compute sizeof (void *)
5619 See \`config.log' for more details." "$LINENO" 5; }; }
5620    else
5621      ac_cv_sizeof_void_p=0
5622    fi
5623 fi
5624
5625 fi
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5627 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5628
5629
5630
5631 cat >>confdefs.h <<_ACEOF
5632 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5633 _ACEOF
5634
5635
5636 # The cast to long int works around a bug in the HP C Compiler
5637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5639 # This bug is HP SR number 8606223364.
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5641 $as_echo_n "checking size of short... " >&6; }
5642 if test "${ac_cv_sizeof_short+set}" = set; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5646
5647 else
5648   if test "$ac_cv_type_short" = yes; then
5649      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5651 { as_fn_set_status 77
5652 as_fn_error "cannot compute sizeof (short)
5653 See \`config.log' for more details." "$LINENO" 5; }; }
5654    else
5655      ac_cv_sizeof_short=0
5656    fi
5657 fi
5658
5659 fi
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5661 $as_echo "$ac_cv_sizeof_short" >&6; }
5662
5663
5664
5665 cat >>confdefs.h <<_ACEOF
5666 #define SIZEOF_SHORT $ac_cv_sizeof_short
5667 _ACEOF
5668
5669
5670 # The cast to long int works around a bug in the HP C Compiler
5671 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5672 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5673 # This bug is HP SR number 8606223364.
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5675 $as_echo_n "checking size of int... " >&6; }
5676 if test "${ac_cv_sizeof_int+set}" = set; then :
5677   $as_echo_n "(cached) " >&6
5678 else
5679   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5680
5681 else
5682   if test "$ac_cv_type_int" = yes; then
5683      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5685 { as_fn_set_status 77
5686 as_fn_error "cannot compute sizeof (int)
5687 See \`config.log' for more details." "$LINENO" 5; }; }
5688    else
5689      ac_cv_sizeof_int=0
5690    fi
5691 fi
5692
5693 fi
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5695 $as_echo "$ac_cv_sizeof_int" >&6; }
5696
5697
5698
5699 cat >>confdefs.h <<_ACEOF
5700 #define SIZEOF_INT $ac_cv_sizeof_int
5701 _ACEOF
5702
5703
5704 # The cast to long int works around a bug in the HP C Compiler
5705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5707 # This bug is HP SR number 8606223364.
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5709 $as_echo_n "checking size of long... " >&6; }
5710 if test "${ac_cv_sizeof_long+set}" = set; then :
5711   $as_echo_n "(cached) " >&6
5712 else
5713   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5714
5715 else
5716   if test "$ac_cv_type_long" = yes; then
5717      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5719 { as_fn_set_status 77
5720 as_fn_error "cannot compute sizeof (long)
5721 See \`config.log' for more details." "$LINENO" 5; }; }
5722    else
5723      ac_cv_sizeof_long=0
5724    fi
5725 fi
5726
5727 fi
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5729 $as_echo "$ac_cv_sizeof_long" >&6; }
5730
5731
5732
5733 cat >>confdefs.h <<_ACEOF
5734 #define SIZEOF_LONG $ac_cv_sizeof_long
5735 _ACEOF
5736
5737
5738 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5739 if test "x$ac_cv_type_long_long" = x""yes; then :
5740
5741 cat >>confdefs.h <<_ACEOF
5742 #define HAVE_LONG_LONG 1
5743 _ACEOF
5744
5745 # The cast to long int works around a bug in the HP C Compiler
5746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5748 # This bug is HP SR number 8606223364.
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5750 $as_echo_n "checking size of long long... " >&6; }
5751 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5752   $as_echo_n "(cached) " >&6
5753 else
5754   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5755
5756 else
5757   if test "$ac_cv_type_long_long" = yes; then
5758      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5760 { as_fn_set_status 77
5761 as_fn_error "cannot compute sizeof (long long)
5762 See \`config.log' for more details." "$LINENO" 5; }; }
5763    else
5764      ac_cv_sizeof_long_long=0
5765    fi
5766 fi
5767
5768 fi
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5770 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5771
5772
5773
5774 cat >>confdefs.h <<_ACEOF
5775 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5776 _ACEOF
5777
5778
5779 fi
5780
5781 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5782 if test "x$ac_cv_type___int64" = x""yes; then :
5783
5784 cat >>confdefs.h <<_ACEOF
5785 #define HAVE___INT64 1
5786 _ACEOF
5787
5788 # The cast to long int works around a bug in the HP C Compiler
5789 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5790 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5791 # This bug is HP SR number 8606223364.
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5793 $as_echo_n "checking size of __int64... " >&6; }
5794 if test "${ac_cv_sizeof___int64+set}" = set; then :
5795   $as_echo_n "(cached) " >&6
5796 else
5797   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5798
5799 else
5800   if test "$ac_cv_type___int64" = yes; then
5801      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5803 { as_fn_set_status 77
5804 as_fn_error "cannot compute sizeof (__int64)
5805 See \`config.log' for more details." "$LINENO" 5; }; }
5806    else
5807      ac_cv_sizeof___int64=0
5808    fi
5809 fi
5810
5811 fi
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5813 $as_echo "$ac_cv_sizeof___int64" >&6; }
5814
5815
5816
5817 cat >>confdefs.h <<_ACEOF
5818 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5819 _ACEOF
5820
5821
5822 fi
5823
5824 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5825 case $ac_cv_c_int8_t in #(
5826   no|yes) ;; #(
5827   *)
5828
5829 cat >>confdefs.h <<_ACEOF
5830 #define int8_t $ac_cv_c_int8_t
5831 _ACEOF
5832 ;;
5833 esac
5834
5835 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5836 case $ac_cv_c_int16_t in #(
5837   no|yes) ;; #(
5838   *)
5839
5840 cat >>confdefs.h <<_ACEOF
5841 #define int16_t $ac_cv_c_int16_t
5842 _ACEOF
5843 ;;
5844 esac
5845
5846 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5847 case $ac_cv_c_int32_t in #(
5848   no|yes) ;; #(
5849   *)
5850
5851 cat >>confdefs.h <<_ACEOF
5852 #define int32_t $ac_cv_c_int32_t
5853 _ACEOF
5854 ;;
5855 esac
5856
5857 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5858 case $ac_cv_c_int64_t in #(
5859   no|yes) ;; #(
5860   *)
5861
5862 cat >>confdefs.h <<_ACEOF
5863 #define int64_t $ac_cv_c_int64_t
5864 _ACEOF
5865 ;;
5866 esac
5867
5868
5869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5870 $as_echo_n "checking for long long int... " >&6; }
5871 if test "${ac_cv_type_long_long_int+set}" = set; then :
5872   $as_echo_n "(cached) " >&6
5873 else
5874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h.  */
5876
5877   /* For now, do not test the preprocessor; as of 2007 there are too many
5878          implementations with broken preprocessors.  Perhaps this can
5879          be revisited in 2012.  In the meantime, code should not expect
5880          #if to work with literals wider than 32 bits.  */
5881       /* Test literals.  */
5882       long long int ll = 9223372036854775807ll;
5883       long long int nll = -9223372036854775807LL;
5884       unsigned long long int ull = 18446744073709551615ULL;
5885       /* Test constant expressions.   */
5886       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5887                      ? 1 : -1)];
5888       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5889                      ? 1 : -1)];
5890       int i = 63;
5891 int
5892 main ()
5893 {
5894 /* Test availability of runtime routines for shift and division.  */
5895       long long int llmax = 9223372036854775807ll;
5896       unsigned long long int ullmax = 18446744073709551615ull;
5897       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5898               | (llmax / ll) | (llmax % ll)
5899               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5900               | (ullmax / ull) | (ullmax % ull));
5901   ;
5902   return 0;
5903 }
5904
5905 _ACEOF
5906 if ac_fn_c_try_link "$LINENO"; then :
5907                         if test "$cross_compiling" = yes; then :
5908   ac_cv_type_long_long_int=yes
5909 else
5910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h.  */
5912 #include <limits.h>
5913                #ifndef LLONG_MAX
5914                # define HALF \
5915                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5916                # define LLONG_MAX (HALF - 1 + HALF)
5917                #endif
5918 int
5919 main ()
5920 {
5921 long long int n = 1;
5922                int i;
5923                for (i = 0; ; i++)
5924                  {
5925                    long long int m = n << i;
5926                    if (m >> i != n)
5927                      return 1;
5928                    if (LLONG_MAX / 2 < m)
5929                      break;
5930                  }
5931                return 0;
5932   ;
5933   return 0;
5934 }
5935 _ACEOF
5936 if ac_fn_c_try_run "$LINENO"; then :
5937   ac_cv_type_long_long_int=yes
5938 else
5939   ac_cv_type_long_long_int=no
5940 fi
5941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5942   conftest.$ac_objext conftest.beam conftest.$ac_ext
5943 fi
5944
5945 else
5946   ac_cv_type_long_long_int=no
5947 fi
5948 rm -f core conftest.err conftest.$ac_objext \
5949     conftest$ac_exeext conftest.$ac_ext
5950 fi
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5952 $as_echo "$ac_cv_type_long_long_int" >&6; }
5953   if test $ac_cv_type_long_long_int = yes; then
5954
5955 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5956
5957   fi
5958
5959
5960
5961   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5962 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5963
5964 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5965
5966 else
5967   test $ac_cv_type_long_long_int = yes \
5968        && ac_type='long long int' \
5969        || ac_type='long int'
5970
5971 cat >>confdefs.h <<_ACEOF
5972 #define intmax_t $ac_type
5973 _ACEOF
5974
5975 fi
5976
5977
5978
5979   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5980 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5981
5982 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5983
5984 else
5985   for ac_type in 'int' 'long int' 'long long int'; do
5986        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h.  */
5988 $ac_includes_default
5989 int
5990 main ()
5991 {
5992 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5993 test_array [0] = 0
5994
5995   ;
5996   return 0;
5997 }
5998 _ACEOF
5999 if ac_fn_c_try_compile "$LINENO"; then :
6000
6001 cat >>confdefs.h <<_ACEOF
6002 #define intptr_t $ac_type
6003 _ACEOF
6004
6005           ac_type=
6006 fi
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008        test -z "$ac_type" && break
6009      done
6010 fi
6011
6012
6013 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6014 case $ac_cv_c_uint8_t in #(
6015   no|yes) ;; #(
6016   *)
6017
6018 $as_echo "#define _UINT8_T 1" >>confdefs.h
6019
6020
6021 cat >>confdefs.h <<_ACEOF
6022 #define uint8_t $ac_cv_c_uint8_t
6023 _ACEOF
6024 ;;
6025   esac
6026
6027 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6028 case $ac_cv_c_uint16_t in #(
6029   no|yes) ;; #(
6030   *)
6031
6032
6033 cat >>confdefs.h <<_ACEOF
6034 #define uint16_t $ac_cv_c_uint16_t
6035 _ACEOF
6036 ;;
6037   esac
6038
6039 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6040 case $ac_cv_c_uint32_t in #(
6041   no|yes) ;; #(
6042   *)
6043
6044 $as_echo "#define _UINT32_T 1" >>confdefs.h
6045
6046
6047 cat >>confdefs.h <<_ACEOF
6048 #define uint32_t $ac_cv_c_uint32_t
6049 _ACEOF
6050 ;;
6051   esac
6052
6053 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6054 case $ac_cv_c_uint64_t in #(
6055   no|yes) ;; #(
6056   *)
6057
6058 $as_echo "#define _UINT64_T 1" >>confdefs.h
6059
6060
6061 cat >>confdefs.h <<_ACEOF
6062 #define uint64_t $ac_cv_c_uint64_t
6063 _ACEOF
6064 ;;
6065   esac
6066
6067
6068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6069 $as_echo_n "checking for unsigned long long int... " >&6; }
6070 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6071   $as_echo_n "(cached) " >&6
6072 else
6073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h.  */
6075
6076   /* For now, do not test the preprocessor; as of 2007 there are too many
6077          implementations with broken preprocessors.  Perhaps this can
6078          be revisited in 2012.  In the meantime, code should not expect
6079          #if to work with literals wider than 32 bits.  */
6080       /* Test literals.  */
6081       long long int ll = 9223372036854775807ll;
6082       long long int nll = -9223372036854775807LL;
6083       unsigned long long int ull = 18446744073709551615ULL;
6084       /* Test constant expressions.   */
6085       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6086                      ? 1 : -1)];
6087       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6088                      ? 1 : -1)];
6089       int i = 63;
6090 int
6091 main ()
6092 {
6093 /* Test availability of runtime routines for shift and division.  */
6094       long long int llmax = 9223372036854775807ll;
6095       unsigned long long int ullmax = 18446744073709551615ull;
6096       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6097               | (llmax / ll) | (llmax % ll)
6098               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6099               | (ullmax / ull) | (ullmax % ull));
6100   ;
6101   return 0;
6102 }
6103
6104 _ACEOF
6105 if ac_fn_c_try_link "$LINENO"; then :
6106   ac_cv_type_unsigned_long_long_int=yes
6107 else
6108   ac_cv_type_unsigned_long_long_int=no
6109 fi
6110 rm -f core conftest.err conftest.$ac_objext \
6111     conftest$ac_exeext conftest.$ac_ext
6112 fi
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6114 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6115   if test $ac_cv_type_unsigned_long_long_int = yes; then
6116
6117 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6118
6119   fi
6120
6121
6122
6123   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6124 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6125
6126 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6127
6128 else
6129   test $ac_cv_type_unsigned_long_long_int = yes \
6130        && ac_type='unsigned long long int' \
6131        || ac_type='unsigned long int'
6132
6133 cat >>confdefs.h <<_ACEOF
6134 #define uintmax_t $ac_type
6135 _ACEOF
6136
6137 fi
6138
6139
6140
6141   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6142 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6143
6144 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6145
6146 else
6147   for ac_type in 'unsigned int' 'unsigned long int' \
6148         'unsigned long long int'; do
6149        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h.  */
6151 $ac_includes_default
6152 int
6153 main ()
6154 {
6155 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6156 test_array [0] = 0
6157
6158   ;
6159   return 0;
6160 }
6161 _ACEOF
6162 if ac_fn_c_try_compile "$LINENO"; then :
6163
6164 cat >>confdefs.h <<_ACEOF
6165 #define uintptr_t $ac_type
6166 _ACEOF
6167
6168           ac_type=
6169 fi
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171        test -z "$ac_type" && break
6172      done
6173 fi
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189 # ---------------------
6190 # Warnings and checking
6191 # ---------------------
6192
6193 # Check $CC warning features (if it's GCC).
6194 # We want to use -pedantic, but we don't want warnings about
6195 # * 'long long'
6196 # * variadic macros
6197 # * overlong strings
6198 # So, we only use -pedantic if we can disable those warnings.
6199
6200 loose_warn=
6201 save_CFLAGS="$CFLAGS"
6202 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6203   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6204
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6206 $as_echo_n "checking whether $CC supports $option... " >&6; }
6207 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6208   $as_echo_n "(cached) " >&6
6209 else
6210   CFLAGS="$option"
6211     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h.  */
6213
6214 int
6215 main ()
6216 {
6217
6218   ;
6219   return 0;
6220 }
6221 _ACEOF
6222 if ac_fn_c_try_compile "$LINENO"; then :
6223   eval "$as_acx_Woption=yes"
6224 else
6225   eval "$as_acx_Woption=no"
6226 fi
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228
6229 fi
6230 eval ac_res=\$$as_acx_Woption
6231                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6232 $as_echo "$ac_res" >&6; }
6233   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6234   loose_warn="$loose_warn${loose_warn:+ }$option"
6235 fi
6236   done
6237 CFLAGS="$save_CFLAGS"
6238
6239 c_loose_warn=
6240 save_CFLAGS="$CFLAGS"
6241 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6242   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6243
6244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6245 $as_echo_n "checking whether $CC supports $option... " >&6; }
6246 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6247   $as_echo_n "(cached) " >&6
6248 else
6249   CFLAGS="$option"
6250     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h.  */
6252
6253 int
6254 main ()
6255 {
6256
6257   ;
6258   return 0;
6259 }
6260 _ACEOF
6261 if ac_fn_c_try_compile "$LINENO"; then :
6262   eval "$as_acx_Woption=yes"
6263 else
6264   eval "$as_acx_Woption=no"
6265 fi
6266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267
6268 fi
6269 eval ac_res=\$$as_acx_Woption
6270                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6271 $as_echo "$ac_res" >&6; }
6272   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6273   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6274 fi
6275   done
6276 CFLAGS="$save_CFLAGS"
6277
6278 strict_warn=
6279 save_CFLAGS="$CFLAGS"
6280 for option in -Wmissing-format-attribute; do
6281   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6282
6283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6284 $as_echo_n "checking whether $CC supports $option... " >&6; }
6285 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6286   $as_echo_n "(cached) " >&6
6287 else
6288   CFLAGS="$option"
6289     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h.  */
6291
6292 int
6293 main ()
6294 {
6295
6296   ;
6297   return 0;
6298 }
6299 _ACEOF
6300 if ac_fn_c_try_compile "$LINENO"; then :
6301   eval "$as_acx_Woption=yes"
6302 else
6303   eval "$as_acx_Woption=no"
6304 fi
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306
6307 fi
6308 eval ac_res=\$$as_acx_Woption
6309                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6310 $as_echo "$ac_res" >&6; }
6311   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6312   strict_warn="$strict_warn${strict_warn:+ }$option"
6313 fi
6314   done
6315 CFLAGS="$save_CFLAGS"
6316
6317 c_strict_warn=
6318 save_CFLAGS="$CFLAGS"
6319 for option in -Wold-style-definition -Wc++-compat; do
6320   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6321
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6323 $as_echo_n "checking whether $CC supports $option... " >&6; }
6324 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6325   $as_echo_n "(cached) " >&6
6326 else
6327   CFLAGS="$option"
6328     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h.  */
6330
6331 int
6332 main ()
6333 {
6334
6335   ;
6336   return 0;
6337 }
6338 _ACEOF
6339 if ac_fn_c_try_compile "$LINENO"; then :
6340   eval "$as_acx_Woption=yes"
6341 else
6342   eval "$as_acx_Woption=no"
6343 fi
6344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6345
6346 fi
6347 eval ac_res=\$$as_acx_Woption
6348                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6349 $as_echo "$ac_res" >&6; }
6350   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6351   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6352 fi
6353   done
6354 CFLAGS="$save_CFLAGS"
6355
6356 if test "$GCC" = yes; then :
6357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6358 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6359 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6360   $as_echo_n "(cached) " >&6
6361 else
6362   save_CFLAGS="$CFLAGS"
6363 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h.  */
6366
6367 int
6368 main ()
6369 {
6370
6371   ;
6372   return 0;
6373 }
6374 _ACEOF
6375 if ac_fn_c_try_compile "$LINENO"; then :
6376   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6377 else
6378   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6379 fi
6380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6381 CFLAGS="$save_CFLAGS"
6382 fi
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6384 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6385 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6386   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6387 fi
6388
6389 fi
6390
6391 # Check whether --enable-werror-always was given.
6392 if test "${enable_werror_always+set}" = set; then :
6393   enableval=$enable_werror_always;
6394 else
6395   enable_werror_always=no
6396 fi
6397
6398 if test $enable_werror_always = yes; then :
6399   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6400 fi
6401
6402
6403
6404 # The above macros do nothing if the compiler is not GCC.  However, the
6405 # Makefile has more goo to add other flags, so these variables are used
6406 # to enable warnings only for GCC.
6407 warn_cflags=
6408 warn_cxxflags=
6409 if test "x$GCC" = "xyes"; then
6410   warn_cflags='$(GCC_WARN_CFLAGS)'
6411   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6412 fi
6413
6414
6415
6416 # Enable expensive internal checks
6417 is_release=
6418 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6419   is_release=yes
6420 fi
6421
6422 # Check whether --enable-checking was given.
6423 if test "${enable_checking+set}" = set; then :
6424   enableval=$enable_checking; ac_checking_flags="${enableval}"
6425 else
6426
6427 # Determine the default checks.
6428 if test x$is_release = x ; then
6429   ac_checking_flags=yes
6430 else
6431   ac_checking_flags=release
6432 fi
6433 fi
6434
6435 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6436 for check in release $ac_checking_flags
6437 do
6438         case $check in
6439         # these set all the flags to specific states
6440         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6441                         ac_fold_checking= ; ac_gc_checking=1 ;
6442                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6443                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6444                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6445                         ac_types_checking=1 ;;
6446         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6447                         ac_fold_checking= ; ac_gc_checking= ;
6448                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6449                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6450                         ac_tree_checking= ; ac_valgrind_checking= ;
6451                         ac_types_checking= ;;
6452         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6453                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6454                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6455                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6456                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6457                         ac_types_checking=1 ;;
6458         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6459                         ac_fold_checking= ; ac_gc_checking= ;
6460                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6461                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6462                         ac_tree_checking= ; ac_valgrind_checking= ;
6463                         ac_types_checking= ;;
6464         # these enable particular checks
6465         assert)         ac_assert_checking=1 ;;
6466         df)             ac_df_checking=1 ;;
6467         fold)           ac_fold_checking=1 ;;
6468         gc)             ac_gc_checking=1 ;;
6469         gcac)           ac_gc_always_collect=1 ;;
6470         gimple)         ac_gimple_checking=1 ;;
6471         misc)           ac_checking=1 ;;
6472         rtl)            ac_rtl_checking=1 ;;
6473         rtlflag)        ac_rtlflag_checking=1 ;;
6474         runtime)        ac_runtime_checking=1 ;;
6475         tree)           ac_tree_checking=1 ;;
6476         types)          ac_types_checking=1 ;;
6477         valgrind)       ac_valgrind_checking=1 ;;
6478         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6479         esac
6480 done
6481 IFS="$ac_save_IFS"
6482
6483 nocommon_flag=""
6484 if test x$ac_checking != x ; then
6485
6486 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6487
6488   nocommon_flag=-fno-common
6489 fi
6490
6491 if test x$ac_df_checking != x ; then
6492
6493 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6494
6495 fi
6496 if test x$ac_assert_checking != x ; then
6497
6498 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6499
6500 fi
6501 if test x$ac_gimple_checking != x ; then
6502
6503 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6504
6505 fi
6506
6507 if test x$ac_runtime_checking != x ; then
6508
6509 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6510
6511 fi
6512 if test x$ac_tree_checking != x ; then
6513
6514 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6515
6516   TREEBROWSER=tree-browser.o
6517 fi
6518 if test x$ac_types_checking != x ; then
6519
6520 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6521
6522 fi
6523
6524 if test x$ac_rtl_checking != x ; then
6525
6526 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6527
6528 fi
6529 if test x$ac_rtlflag_checking != x ; then
6530
6531 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6532
6533 fi
6534 if test x$ac_gc_checking != x ; then
6535
6536 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6537
6538 fi
6539 if test x$ac_gc_always_collect != x ; then
6540
6541 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6542
6543 fi
6544 if test x$ac_fold_checking != x ; then
6545
6546 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6547
6548 fi
6549 valgrind_path_defines=
6550 valgrind_command=
6551
6552 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6553 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6554   have_valgrind_h=yes
6555 else
6556   have_valgrind_h=no
6557 fi
6558
6559
6560
6561 if test x$ac_valgrind_checking != x ; then
6562   # It is certainly possible that there's valgrind but no valgrind.h.
6563   # GCC relies on making annotations so we must have both.
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6565 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h.  */
6568 #include <valgrind/memcheck.h>
6569 #ifndef VALGRIND_DISCARD
6570 #error VALGRIND_DISCARD not defined
6571 #endif
6572 _ACEOF
6573 if ac_fn_c_try_cpp "$LINENO"; then :
6574   gcc_cv_header_valgrind_memcheck_h=yes
6575 else
6576   gcc_cv_header_valgrind_memcheck_h=no
6577 fi
6578 rm -f conftest.err conftest.$ac_ext
6579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6580 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6582 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h.  */
6585 #include <memcheck.h>
6586 #ifndef VALGRIND_DISCARD
6587 #error VALGRIND_DISCARD not defined
6588 #endif
6589 _ACEOF
6590 if ac_fn_c_try_cpp "$LINENO"; then :
6591   gcc_cv_header_memcheck_h=yes
6592 else
6593   gcc_cv_header_memcheck_h=no
6594 fi
6595 rm -f conftest.err conftest.$ac_ext
6596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6597 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6598
6599 # Prepare PATH_SEPARATOR.
6600 # The user is always right.
6601 if test "${PATH_SEPARATOR+set}" != set; then
6602   echo "#! /bin/sh" >conf$$.sh
6603   echo  "exit 0"   >>conf$$.sh
6604   chmod +x conf$$.sh
6605   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6606     PATH_SEPARATOR=';'
6607   else
6608     PATH_SEPARATOR=:
6609   fi
6610   rm -f conf$$.sh
6611 fi
6612
6613 # Find out how to test for executable files. Don't use a zero-byte file,
6614 # as systems may use methods other than mode bits to determine executability.
6615 cat >conf$$.file <<_ASEOF
6616 #! /bin/sh
6617 exit 0
6618 _ASEOF
6619 chmod +x conf$$.file
6620 if test -x conf$$.file >/dev/null 2>&1; then
6621   ac_executable_p="test -x"
6622 else
6623   ac_executable_p="test -f"
6624 fi
6625 rm -f conf$$.file
6626
6627 # Extract the first word of "valgrind", so it can be a program name with args.
6628 set dummy valgrind; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6632   $as_echo_n "(cached) " >&6
6633 else
6634   case "$valgrind_path" in
6635   [\\/]* | ?:[\\/]*)
6636     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6637     ;;
6638   *)
6639     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6640     for ac_dir in $PATH; do
6641       IFS="$ac_save_IFS"
6642       test -z "$ac_dir" && ac_dir=.
6643       for ac_exec_ext in '' $ac_executable_extensions; do
6644         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6645           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6646             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6647             break 2
6648           fi
6649         fi
6650       done
6651     done
6652     IFS="$ac_save_IFS"
6653     ;;
6654 esac
6655 fi
6656 valgrind_path="$ac_cv_path_valgrind_path"
6657 if test -n "$valgrind_path"; then
6658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6659 $as_echo "$valgrind_path" >&6; }
6660 else
6661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6663 fi
6664
6665   if test "x$valgrind_path" = "x" \
6666     || (test $have_valgrind_h = no \
6667         && test $gcc_cv_header_memcheck_h = no \
6668         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6669         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6670   fi
6671   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6672   valgrind_command="$valgrind_path -q"
6673
6674 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6675
6676   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6677
6678 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6679
6680   fi
6681   if test $gcc_cv_header_memcheck_h = yes; then
6682
6683 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6684
6685   fi
6686 fi
6687
6688
6689
6690 # Enable code coverage collection
6691 # Check whether --enable-coverage was given.
6692 if test "${enable_coverage+set}" = set; then :
6693   enableval=$enable_coverage; case "${enableval}" in
6694   yes|noopt)
6695     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6696     ;;
6697   opt)
6698     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6699     ;;
6700   no)
6701     # a.k.a. --disable-coverage
6702     coverage_flags=""
6703     ;;
6704   *)
6705     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6706     ;;
6707 esac
6708 else
6709   coverage_flags=""
6710 fi
6711
6712
6713
6714 # Check whether --enable-gather-detailed-mem-stats was given.
6715 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6716   enableval=$enable_gather_detailed_mem_stats;
6717 else
6718   enable_gather_detailed_mem_stats=no
6719 fi
6720
6721 if test x$enable_gather_detailed_mem_stats = xyes ; then
6722
6723 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6724
6725 fi
6726
6727 # -------------------------------
6728 # Miscenalleous configure options
6729 # -------------------------------
6730
6731 # See if we are building gcc with C++.
6732 # Check whether --enable-build-with-cxx was given.
6733 if test "${enable_build_with_cxx+set}" = set; then :
6734   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6735 else
6736   ENABLE_BUILD_WITH_CXX=no
6737 fi
6738
6739
6740
6741 # With stabs
6742
6743 # Check whether --with-stabs was given.
6744 if test "${with_stabs+set}" = set; then :
6745   withval=$with_stabs; stabs="$with_stabs"
6746 else
6747   stabs=no
6748 fi
6749
6750
6751 # Determine whether or not multilibs are enabled.
6752 # Check whether --enable-multilib was given.
6753 if test "${enable_multilib+set}" = set; then :
6754   enableval=$enable_multilib;
6755 else
6756   enable_multilib=yes
6757 fi
6758
6759
6760
6761 # Enable __cxa_atexit for C++.
6762 # Check whether --enable-__cxa_atexit was given.
6763 if test "${enable___cxa_atexit+set}" = set; then :
6764   enableval=$enable___cxa_atexit;
6765 fi
6766
6767
6768 # Enable C extension for decimal float if target supports it.
6769 # Check whether --enable-decimal-float was given.
6770 if test "${enable_decimal_float+set}" = set; then :
6771   enableval=$enable_decimal_float;
6772   case $enable_decimal_float in
6773     yes | no | bid | dpd) ;;
6774     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6775 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6776   esac
6777
6778 else
6779
6780   case $target in
6781     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6782       enable_decimal_float=yes
6783       ;;
6784     *)
6785       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6786 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6787       enable_decimal_float=no
6788       ;;
6789   esac
6790
6791 fi
6792
6793
6794 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6795
6796 cat >>confdefs.h <<_ACEOF
6797 #define ENABLE_DECIMAL_FLOAT $dfp
6798 _ACEOF
6799
6800
6801 # x86's use BID format instead of DPD
6802 case x$enable_decimal_float in
6803   xyes)
6804     case $target in
6805       i?86*-*-linux* | x86_64*-*-linux*)
6806         enable_decimal_float=bid
6807         ;;
6808       *)
6809         enable_decimal_float=dpd
6810         ;;
6811     esac
6812     ;;
6813   xno)
6814     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6815     # dependency on libdecnumber.
6816     enable_decimal_float=dpd
6817     ;;
6818 esac
6819
6820
6821 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6822
6823 cat >>confdefs.h <<_ACEOF
6824 #define ENABLE_DECIMAL_BID_FORMAT $bid
6825 _ACEOF
6826
6827
6828 # Enable C extension for fixed-point arithmetic.
6829 # Check whether --enable-fixed-point was given.
6830 if test "${enable_fixed_point+set}" = set; then :
6831   enableval=$enable_fixed_point;
6832
6833 else
6834
6835   case $target in
6836     mips*-*-*)
6837       case $host in
6838         mips*-sgi-irix*)
6839           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6840 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6841           enable_fixed_point=no
6842           ;;
6843         *)
6844           enable_fixed_point=yes
6845           ;;
6846       esac
6847       ;;
6848     *)
6849       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6850 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6851       enable_fixed_point=no
6852       ;;
6853   esac
6854
6855 fi
6856
6857
6858
6859 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6860
6861 cat >>confdefs.h <<_ACEOF
6862 #define ENABLE_FIXED_POINT $fixedpoint
6863 _ACEOF
6864
6865
6866 # Enable threads
6867 # Pass with no value to take the default
6868 # Pass with a value to specify a thread package
6869 # Check whether --enable-threads was given.
6870 if test "${enable_threads+set}" = set; then :
6871   enableval=$enable_threads;
6872 else
6873   enable_threads=''
6874 fi
6875
6876
6877 # Check whether --enable-tls was given.
6878 if test "${enable_tls+set}" = set; then :
6879   enableval=$enable_tls;
6880   case $enable_tls in
6881     yes | no) ;;
6882     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6883 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6884   esac
6885
6886 else
6887   enable_tls=''
6888 fi
6889
6890
6891 # Check whether --enable-objc-gc was given.
6892 if test "${enable_objc_gc+set}" = set; then :
6893   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6894         objc_boehm_gc=''
6895 else
6896         objc_boehm_gc=1
6897 fi
6898 else
6899   objc_boehm_gc=''
6900 fi
6901
6902
6903
6904 # Check whether --with-dwarf2 was given.
6905 if test "${with_dwarf2+set}" = set; then :
6906   withval=$with_dwarf2; dwarf2="$with_dwarf2"
6907 else
6908   dwarf2=no
6909 fi
6910
6911
6912 # Check whether --enable-shared was given.
6913 if test "${enable_shared+set}" = set; then :
6914   enableval=$enable_shared;
6915   case $enable_shared in
6916   yes | no) ;;
6917   *)
6918     enable_shared=no
6919     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6920     for pkg in $enableval; do
6921       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6922         enable_shared=yes
6923       fi
6924     done
6925     IFS="$ac_save_ifs"
6926     ;;
6927   esac
6928
6929 else
6930   enable_shared=yes
6931 fi
6932
6933
6934
6935
6936 # Check whether --with-build-sysroot was given.
6937 if test "${with_build_sysroot+set}" = set; then :
6938   withval=$with_build_sysroot;
6939 fi
6940
6941
6942
6943 # Check whether --with-sysroot was given.
6944 if test "${with_sysroot+set}" = set; then :
6945   withval=$with_sysroot;
6946  case ${with_sysroot} in
6947  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6948  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6949  esac
6950
6951  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6952  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6953
6954  if test "x$prefix" = xNONE; then
6955   test_prefix=/usr/local
6956  else
6957   test_prefix=$prefix
6958  fi
6959  if test "x$exec_prefix" = xNONE; then
6960   test_exec_prefix=$test_prefix
6961  else
6962   test_exec_prefix=$exec_prefix
6963  fi
6964  case ${TARGET_SYSTEM_ROOT} in
6965  "${test_prefix}"|"${test_prefix}/"*|\
6966  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6967  '${prefix}'|'${prefix}/'*|\
6968  '${exec_prefix}'|'${exec_prefix}/'*)
6969    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6970    TARGET_SYSTEM_ROOT_DEFINE="$t"
6971    ;;
6972  esac
6973
6974 else
6975
6976  TARGET_SYSTEM_ROOT=
6977  TARGET_SYSTEM_ROOT_DEFINE=
6978  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6979
6980 fi
6981
6982
6983
6984
6985
6986 # Build with intermodule optimisations
6987 # Check whether --enable-intermodule was given.
6988 if test "${enable_intermodule+set}" = set; then :
6989   enableval=$enable_intermodule; case ${enable_intermodule} in
6990   yes) onestep="-onestep";;
6991   *) onestep="";;
6992 esac
6993 else
6994   onestep=""
6995 fi
6996
6997
6998
6999
7000
7001 # Check whether --with-pkgversion was given.
7002 if test "${with_pkgversion+set}" = set; then :
7003   withval=$with_pkgversion; case "$withval" in
7004       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7005       no)  PKGVERSION= ;;
7006       *)   PKGVERSION="($withval) " ;;
7007      esac
7008 else
7009   PKGVERSION="(GCC) "
7010
7011 fi
7012
7013
7014
7015
7016
7017 # Check whether --with-bugurl was given.
7018 if test "${with_bugurl+set}" = set; then :
7019   withval=$with_bugurl; case "$withval" in
7020       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7021       no)  BUGURL=
7022            ;;
7023       *)   BUGURL="$withval"
7024            ;;
7025      esac
7026 else
7027   BUGURL="http://gcc.gnu.org/bugs.html"
7028
7029 fi
7030
7031   case ${BUGURL} in
7032   "")
7033     REPORT_BUGS_TO=
7034     REPORT_BUGS_TEXI=
7035     ;;
7036   *)
7037     REPORT_BUGS_TO="<$BUGURL>"
7038     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7039     ;;
7040   esac;
7041
7042
7043
7044
7045 # Sanity check enable_languages in case someone does not run the toplevel
7046 # configure # script.
7047 # Check whether --enable-languages was given.
7048 if test "${enable_languages+set}" = set; then :
7049   enableval=$enable_languages; case ,${enable_languages}, in
7050        ,,|,yes,)
7051                 # go safe -- we cannot be much sure without the toplevel
7052                 # configure's
7053                 # analysis of which target libs are present and usable
7054                 enable_languages=c
7055                 ;;
7056          *,all,*)
7057                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7058                 ;;
7059         *,c,*)
7060                 ;;
7061         *)
7062                 enable_languages=c,${enable_languages}
7063                 ;;
7064 esac
7065 else
7066   enable_languages=c
7067 fi
7068
7069
7070
7071 # Check whether --with-multilib-list was given.
7072 if test "${with_multilib_list+set}" = set; then :
7073   withval=$with_multilib_list; :
7074 else
7075   with_multilib_list=default
7076 fi
7077
7078
7079 # -------------------------
7080 # Checks for other programs
7081 # -------------------------
7082
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7084 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7085 set x ${MAKE-make}
7086 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7087 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7088   $as_echo_n "(cached) " >&6
7089 else
7090   cat >conftest.make <<\_ACEOF
7091 SHELL = /bin/sh
7092 all:
7093         @echo '@@@%%%=$(MAKE)=@@@%%%'
7094 _ACEOF
7095 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7096 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7097   *@@@%%%=?*=@@@%%%*)
7098     eval ac_cv_prog_make_${ac_make}_set=yes;;
7099   *)
7100     eval ac_cv_prog_make_${ac_make}_set=no;;
7101 esac
7102 rm -f conftest.make
7103 fi
7104 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7106 $as_echo "yes" >&6; }
7107   SET_MAKE=
7108 else
7109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7111   SET_MAKE="MAKE=${MAKE-make}"
7112 fi
7113
7114
7115 # Find some useful tools
7116 for ac_prog in gawk mawk nawk awk
7117 do
7118   # Extract the first word of "$ac_prog", so it can be a program name with args.
7119 set dummy $ac_prog; ac_word=$2
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121 $as_echo_n "checking for $ac_word... " >&6; }
7122 if test "${ac_cv_prog_AWK+set}" = set; then :
7123   $as_echo_n "(cached) " >&6
7124 else
7125   if test -n "$AWK"; then
7126   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131   IFS=$as_save_IFS
7132   test -z "$as_dir" && as_dir=.
7133     for ac_exec_ext in '' $ac_executable_extensions; do
7134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135     ac_cv_prog_AWK="$ac_prog"
7136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137     break 2
7138   fi
7139 done
7140   done
7141 IFS=$as_save_IFS
7142
7143 fi
7144 fi
7145 AWK=$ac_cv_prog_AWK
7146 if test -n "$AWK"; then
7147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7148 $as_echo "$AWK" >&6; }
7149 else
7150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7152 fi
7153
7154
7155   test -n "$AWK" && break
7156 done
7157
7158 # We need awk to create options.c and options.h.
7159 # Bail out if it's missing.
7160 case ${AWK} in
7161   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7162 esac
7163
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7165 $as_echo_n "checking whether ln -s works... " >&6; }
7166 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7167   $as_echo_n "(cached) " >&6
7168 else
7169   rm -f conftestdata_t
7170 echo >conftestdata_f
7171 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7172 then
7173   gcc_cv_prog_LN_S="ln -s"
7174 else
7175   if ln conftestdata_f conftestdata_t 2>/dev/null
7176   then
7177     gcc_cv_prog_LN_S=ln
7178   else
7179     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7180     then
7181       gcc_cv_prog_LN_S="cp -p"
7182     else
7183       gcc_cv_prog_LN_S=cp
7184     fi
7185   fi
7186 fi
7187 rm -f conftestdata_f conftestdata_t
7188
7189 fi
7190 LN_S="$gcc_cv_prog_LN_S"
7191 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7193 $as_echo "yes" >&6; }
7194 else
7195   if test "$gcc_cv_prog_LN_S" = "ln"; then
7196     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7197 $as_echo "no, using ln" >&6; }
7198   else
7199     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7200 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7201   fi
7202 fi
7203
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7205 $as_echo_n "checking whether ln works... " >&6; }
7206 if test "${acx_cv_prog_LN+set}" = set; then :
7207   $as_echo_n "(cached) " >&6
7208 else
7209   rm -f conftestdata_t
7210 echo >conftestdata_f
7211 if ln conftestdata_f conftestdata_t 2>/dev/null
7212 then
7213   acx_cv_prog_LN=ln
7214 else
7215   acx_cv_prog_LN=no
7216 fi
7217 rm -f conftestdata_f conftestdata_t
7218
7219 fi
7220 if test $acx_cv_prog_LN = no; then
7221   LN="$LN_S"
7222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7223 $as_echo "no, using $LN" >&6; }
7224 else
7225   LN="$acx_cv_prog_LN"
7226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7227 $as_echo "yes" >&6; }
7228 fi
7229
7230 if test -n "$ac_tool_prefix"; then
7231   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7232 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7236   $as_echo_n "(cached) " >&6
7237 else
7238   if test -n "$RANLIB"; then
7239   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7243 do
7244   IFS=$as_save_IFS
7245   test -z "$as_dir" && as_dir=.
7246     for ac_exec_ext in '' $ac_executable_extensions; do
7247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250     break 2
7251   fi
7252 done
7253   done
7254 IFS=$as_save_IFS
7255
7256 fi
7257 fi
7258 RANLIB=$ac_cv_prog_RANLIB
7259 if test -n "$RANLIB"; then
7260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7261 $as_echo "$RANLIB" >&6; }
7262 else
7263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7265 fi
7266
7267
7268 fi
7269 if test -z "$ac_cv_prog_RANLIB"; then
7270   ac_ct_RANLIB=$RANLIB
7271   # Extract the first word of "ranlib", so it can be a program name with args.
7272 set dummy ranlib; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7276   $as_echo_n "(cached) " >&6
7277 else
7278   if test -n "$ac_ct_RANLIB"; then
7279   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284   IFS=$as_save_IFS
7285   test -z "$as_dir" && as_dir=.
7286     for ac_exec_ext in '' $ac_executable_extensions; do
7287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7288     ac_cv_prog_ac_ct_RANLIB="ranlib"
7289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290     break 2
7291   fi
7292 done
7293   done
7294 IFS=$as_save_IFS
7295
7296 fi
7297 fi
7298 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7299 if test -n "$ac_ct_RANLIB"; then
7300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7301 $as_echo "$ac_ct_RANLIB" >&6; }
7302 else
7303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7305 fi
7306
7307   if test "x$ac_ct_RANLIB" = x; then
7308     RANLIB=":"
7309   else
7310     case $cross_compiling:$ac_tool_warned in
7311 yes:)
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7314 ac_tool_warned=yes ;;
7315 esac
7316     RANLIB=$ac_ct_RANLIB
7317   fi
7318 else
7319   RANLIB="$ac_cv_prog_RANLIB"
7320 fi
7321
7322 case "${host}" in
7323 *-*-darwin*)
7324   # By default, the Darwin ranlib will not treat common symbols as
7325   # definitions when  building the archive table of contents.  Other
7326   # ranlibs do that; pass an option to the Darwin ranlib that makes
7327   # it behave similarly.
7328   ranlib_flags="-c"
7329   ;;
7330 *)
7331   ranlib_flags=""
7332 esac
7333
7334
7335 # Find a good install program.  We prefer a C program (faster),
7336 # so one script is as good as another.  But avoid the broken or
7337 # incompatible versions:
7338 # SysV /etc/install, /usr/sbin/install
7339 # SunOS /usr/etc/install
7340 # IRIX /sbin/install
7341 # AIX /bin/install
7342 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7343 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7344 # ./install, which can be erroneously created by make from ./install.sh.
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7346 $as_echo_n "checking for a BSD compatible install... " >&6; }
7347 if test -z "$INSTALL"; then
7348 if test "${ac_cv_path_install+set}" = set; then :
7349   $as_echo_n "(cached) " >&6
7350 else
7351     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7352   for ac_dir in $PATH; do
7353     # Account for people who put trailing slashes in PATH elements.
7354     case "$ac_dir/" in
7355     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7356     *)
7357       # OSF1 and SCO ODT 3.0 have their own names for install.
7358       for ac_prog in ginstall scoinst install; do
7359         if test -f $ac_dir/$ac_prog; then
7360           if test $ac_prog = install &&
7361             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7362             # AIX install.  It has an incompatible calling convention.
7363             # OSF/1 installbsd also uses dspmsg, but is usable.
7364             :
7365           else
7366             ac_cv_path_install="$ac_dir/$ac_prog -c"
7367             break 2
7368           fi
7369         fi
7370       done
7371       ;;
7372     esac
7373   done
7374   IFS="$ac_save_IFS"
7375
7376 fi
7377   if test "${ac_cv_path_install+set}" = set; then
7378     INSTALL="$ac_cv_path_install"
7379   else
7380     # As a last resort, use the slow shell script.  We don't cache a
7381     # path for INSTALL within a source directory, because that will
7382     # break other packages using the cache if that directory is
7383     # removed, or if the path is relative.
7384     INSTALL="$ac_install_sh"
7385   fi
7386 fi
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7388 $as_echo "$INSTALL" >&6; }
7389
7390 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7391 # It thinks the first close brace ends the variable substitution.
7392 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7393
7394 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7395
7396
7397 # See if cmp has --ignore-initial.
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7399 $as_echo_n "checking for cmp's capabilities... " >&6; }
7400 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7401   $as_echo_n "(cached) " >&6
7402 else
7403    echo abfoo >t1
7404   echo cdfoo >t2
7405   gcc_cv_prog_cmp_skip=slowcompare
7406   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7407     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7408       :
7409     else
7410       gcc_cv_prog_cmp_skip=gnucompare
7411     fi
7412   fi
7413   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7414     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7415       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7416         :
7417       else
7418         gcc_cv_prog_cmp_skip=fastcompare
7419       fi
7420     fi
7421   fi
7422   rm t1 t2
7423
7424 fi
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7426 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7427 make_compare_target=$gcc_cv_prog_cmp_skip
7428
7429
7430
7431 # See if we have the mktemp command.
7432 # Extract the first word of "mktemp", so it can be a program name with args.
7433 set dummy mktemp; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7437   $as_echo_n "(cached) " >&6
7438 else
7439   if test -n "$have_mktemp_command"; then
7440   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7441 else
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7444 do
7445   IFS=$as_save_IFS
7446   test -z "$as_dir" && as_dir=.
7447     for ac_exec_ext in '' $ac_executable_extensions; do
7448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7449     ac_cv_prog_have_mktemp_command="yes"
7450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7451     break 2
7452   fi
7453 done
7454   done
7455 IFS=$as_save_IFS
7456
7457   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7458 fi
7459 fi
7460 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7461 if test -n "$have_mktemp_command"; then
7462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7463 $as_echo "$have_mktemp_command" >&6; }
7464 else
7465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7467 fi
7468
7469
7470
7471 # See if makeinfo has been installed and is modern enough
7472 # that we can use it.
7473
7474   # Extract the first word of "makeinfo", so it can be a program name with args.
7475 set dummy makeinfo; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7479   $as_echo_n "(cached) " >&6
7480 else
7481   if test -n "$MAKEINFO"; then
7482   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7483 else
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7486 do
7487   IFS=$as_save_IFS
7488   test -z "$as_dir" && as_dir=.
7489     for ac_exec_ext in '' $ac_executable_extensions; do
7490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7491     ac_cv_prog_MAKEINFO="makeinfo"
7492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493     break 2
7494   fi
7495 done
7496   done
7497 IFS=$as_save_IFS
7498
7499 fi
7500 fi
7501 MAKEINFO=$ac_cv_prog_MAKEINFO
7502 if test -n "$MAKEINFO"; then
7503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7504 $as_echo "$MAKEINFO" >&6; }
7505 else
7506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7508 fi
7509
7510
7511   if test -n "$MAKEINFO"; then
7512     # Found it, now check the version.
7513     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7514 $as_echo_n "checking for modern makeinfo... " >&6; }
7515 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7516   $as_echo_n "(cached) " >&6
7517 else
7518   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7519                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7520
7521                     case $ac_prog_version in
7522                       '')  gcc_cv_prog_makeinfo_modern=no;;
7523                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7524                       *)   gcc_cv_prog_makeinfo_modern=no;;
7525                     esac
7526
7527 fi
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7529 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7530   else
7531     gcc_cv_prog_makeinfo_modern=no
7532   fi
7533   if test $gcc_cv_prog_makeinfo_modern = no; then
7534     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7535   fi
7536
7537 if test $gcc_cv_prog_makeinfo_modern = no; then
7538   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7539 *** Makeinfo is missing or too old.
7540 *** Info documentation will not be built." >&5
7541 $as_echo "$as_me: WARNING:
7542 *** Makeinfo is missing or too old.
7543 *** Info documentation will not be built." >&2;}
7544   BUILD_INFO=
7545 else
7546   BUILD_INFO=info
7547 fi
7548
7549
7550 # Is pod2man recent enough to regenerate manpages?
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7552 $as_echo_n "checking for recent Pod::Man... " >&6; }
7553 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7555 $as_echo "yes" >&6; }
7556   GENERATED_MANPAGES=generated-manpages
7557 else
7558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 $as_echo "no" >&6; }
7560   GENERATED_MANPAGES=
7561 fi
7562
7563
7564 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7565
7566 # How about lex?
7567 for ac_prog in flex
7568 do
7569   # Extract the first word of "$ac_prog", so it can be a program name with args.
7570 set dummy $ac_prog; ac_word=$2
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572 $as_echo_n "checking for $ac_word... " >&6; }
7573 if test "${ac_cv_prog_FLEX+set}" = set; then :
7574   $as_echo_n "(cached) " >&6
7575 else
7576   if test -n "$FLEX"; then
7577   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7578 else
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 for as_dir in $PATH
7581 do
7582   IFS=$as_save_IFS
7583   test -z "$as_dir" && as_dir=.
7584     for ac_exec_ext in '' $ac_executable_extensions; do
7585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7586     ac_cv_prog_FLEX="$ac_prog"
7587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588     break 2
7589   fi
7590 done
7591   done
7592 IFS=$as_save_IFS
7593
7594 fi
7595 fi
7596 FLEX=$ac_cv_prog_FLEX
7597 if test -n "$FLEX"; then
7598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7599 $as_echo "$FLEX" >&6; }
7600 else
7601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7603 fi
7604
7605
7606   test -n "$FLEX" && break
7607 done
7608 test -n "$FLEX" || FLEX="$MISSING flex"
7609
7610
7611 # Bison?
7612 for ac_prog in bison
7613 do
7614   # Extract the first word of "$ac_prog", so it can be a program name with args.
7615 set dummy $ac_prog; ac_word=$2
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617 $as_echo_n "checking for $ac_word... " >&6; }
7618 if test "${ac_cv_prog_BISON+set}" = set; then :
7619   $as_echo_n "(cached) " >&6
7620 else
7621   if test -n "$BISON"; then
7622   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7623 else
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 for as_dir in $PATH
7626 do
7627   IFS=$as_save_IFS
7628   test -z "$as_dir" && as_dir=.
7629     for ac_exec_ext in '' $ac_executable_extensions; do
7630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7631     ac_cv_prog_BISON="$ac_prog"
7632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633     break 2
7634   fi
7635 done
7636   done
7637 IFS=$as_save_IFS
7638
7639 fi
7640 fi
7641 BISON=$ac_cv_prog_BISON
7642 if test -n "$BISON"; then
7643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7644 $as_echo "$BISON" >&6; }
7645 else
7646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7648 fi
7649
7650
7651   test -n "$BISON" && break
7652 done
7653 test -n "$BISON" || BISON="$MISSING bison"
7654
7655
7656 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7657 # check for build == host before using them.
7658
7659 # NM
7660 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7661   && test -d ../binutils ; then
7662   NM='$(objdir)/../binutils/nm-new'
7663 else
7664   # Extract the first word of "nm", so it can be a program name with args.
7665 set dummy nm; ac_word=$2
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667 $as_echo_n "checking for $ac_word... " >&6; }
7668 if test "${ac_cv_prog_NM+set}" = set; then :
7669   $as_echo_n "(cached) " >&6
7670 else
7671   if test -n "$NM"; then
7672   ac_cv_prog_NM="$NM" # Let the user override the test.
7673 else
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 for as_dir in $PATH
7676 do
7677   IFS=$as_save_IFS
7678   test -z "$as_dir" && as_dir=.
7679     for ac_exec_ext in '' $ac_executable_extensions; do
7680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7681     ac_cv_prog_NM="nm"
7682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683     break 2
7684   fi
7685 done
7686   done
7687 IFS=$as_save_IFS
7688
7689   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7690 fi
7691 fi
7692 NM=$ac_cv_prog_NM
7693 if test -n "$NM"; then
7694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7695 $as_echo "$NM" >&6; }
7696 else
7697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7699 fi
7700
7701
7702 fi
7703
7704 # AR
7705 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7706   && test -d ../binutils ; then
7707   AR='$(objdir)/../binutils/ar'
7708 else
7709   # Extract the first word of "ar", so it can be a program name with args.
7710 set dummy ar; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if test "${ac_cv_prog_AR+set}" = set; then :
7714   $as_echo_n "(cached) " >&6
7715 else
7716   if test -n "$AR"; then
7717   ac_cv_prog_AR="$AR" # Let the user override the test.
7718 else
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722   IFS=$as_save_IFS
7723   test -z "$as_dir" && as_dir=.
7724     for ac_exec_ext in '' $ac_executable_extensions; do
7725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7726     ac_cv_prog_AR="ar"
7727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728     break 2
7729   fi
7730 done
7731   done
7732 IFS=$as_save_IFS
7733
7734   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7735 fi
7736 fi
7737 AR=$ac_cv_prog_AR
7738 if test -n "$AR"; then
7739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7740 $as_echo "$AR" >&6; }
7741 else
7742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7744 fi
7745
7746
7747 fi
7748
7749
7750 # --------------------
7751 # Checks for C headers
7752 # --------------------
7753
7754 # Need to reject headers which give warnings, so that the -Werror bootstrap
7755 # works later. *sigh*  This needs to come before all header checks.
7756
7757 ac_c_preproc_warn_flag=yes
7758
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7760 $as_echo_n "checking for ANSI C header files... " >&6; }
7761 if test "${ac_cv_header_stdc+set}" = set; then :
7762   $as_echo_n "(cached) " >&6
7763 else
7764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h.  */
7766 #include <stdlib.h>
7767 #include <stdarg.h>
7768 #include <string.h>
7769 #include <float.h>
7770
7771 int
7772 main ()
7773 {
7774
7775   ;
7776   return 0;
7777 }
7778 _ACEOF
7779 if ac_fn_c_try_compile "$LINENO"; then :
7780   ac_cv_header_stdc=yes
7781 else
7782   ac_cv_header_stdc=no
7783 fi
7784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7785
7786 if test $ac_cv_header_stdc = yes; then
7787   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h.  */
7790 #include <string.h>
7791
7792 _ACEOF
7793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7794   $EGREP "memchr" >/dev/null 2>&1; then :
7795
7796 else
7797   ac_cv_header_stdc=no
7798 fi
7799 rm -f conftest*
7800
7801 fi
7802
7803 if test $ac_cv_header_stdc = yes; then
7804   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h.  */
7807 #include <stdlib.h>
7808
7809 _ACEOF
7810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7811   $EGREP "free" >/dev/null 2>&1; then :
7812
7813 else
7814   ac_cv_header_stdc=no
7815 fi
7816 rm -f conftest*
7817
7818 fi
7819
7820 if test $ac_cv_header_stdc = yes; then
7821   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7822   if test "$cross_compiling" = yes; then :
7823   :
7824 else
7825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h.  */
7827 #include <ctype.h>
7828 #include <stdlib.h>
7829 #if ((' ' & 0x0FF) == 0x020)
7830 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7831 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7832 #else
7833 # define ISLOWER(c) \
7834                    (('a' <= (c) && (c) <= 'i') \
7835                      || ('j' <= (c) && (c) <= 'r') \
7836                      || ('s' <= (c) && (c) <= 'z'))
7837 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7838 #endif
7839
7840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7841 int
7842 main ()
7843 {
7844   int i;
7845   for (i = 0; i < 256; i++)
7846     if (XOR (islower (i), ISLOWER (i))
7847         || toupper (i) != TOUPPER (i))
7848       return 2;
7849   return 0;
7850 }
7851 _ACEOF
7852 if ac_fn_c_try_run "$LINENO"; then :
7853
7854 else
7855   ac_cv_header_stdc=no
7856 fi
7857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7858   conftest.$ac_objext conftest.beam conftest.$ac_ext
7859 fi
7860
7861 fi
7862 fi
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7864 $as_echo "$ac_cv_header_stdc" >&6; }
7865 if test $ac_cv_header_stdc = yes; then
7866
7867 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7868
7869 fi
7870
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7872 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7873 if test "${ac_cv_header_time+set}" = set; then :
7874   $as_echo_n "(cached) " >&6
7875 else
7876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h.  */
7878 #include <sys/types.h>
7879 #include <sys/time.h>
7880 #include <time.h>
7881
7882 int
7883 main ()
7884 {
7885 if ((struct tm *) 0)
7886 return 0;
7887   ;
7888   return 0;
7889 }
7890 _ACEOF
7891 if ac_fn_c_try_compile "$LINENO"; then :
7892   ac_cv_header_time=yes
7893 else
7894   ac_cv_header_time=no
7895 fi
7896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7897 fi
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7899 $as_echo "$ac_cv_header_time" >&6; }
7900 if test $ac_cv_header_time = yes; then
7901
7902 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7903
7904 fi
7905
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7907 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7908 if test "${gcc_cv_header_string+set}" = set; then :
7909   $as_echo_n "(cached) " >&6
7910 else
7911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h.  */
7913 #include <string.h>
7914 #include <strings.h>
7915 int
7916 main ()
7917 {
7918
7919   ;
7920   return 0;
7921 }
7922 _ACEOF
7923 if ac_fn_c_try_compile "$LINENO"; then :
7924   gcc_cv_header_string=yes
7925 else
7926   gcc_cv_header_string=no
7927 fi
7928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7929 fi
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7931 $as_echo "$gcc_cv_header_string" >&6; }
7932 if test $gcc_cv_header_string = yes; then
7933
7934 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7935
7936 fi
7937
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7939 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7940 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7941   $as_echo_n "(cached) " >&6
7942 else
7943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h.  */
7945 #include <sys/types.h>
7946 #include <sys/wait.h>
7947 #ifndef WEXITSTATUS
7948 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7949 #endif
7950 #ifndef WIFEXITED
7951 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7952 #endif
7953
7954 int
7955 main ()
7956 {
7957   int s;
7958   wait (&s);
7959   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7960   ;
7961   return 0;
7962 }
7963 _ACEOF
7964 if ac_fn_c_try_compile "$LINENO"; then :
7965   ac_cv_header_sys_wait_h=yes
7966 else
7967   ac_cv_header_sys_wait_h=no
7968 fi
7969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970 fi
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7972 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7973 if test $ac_cv_header_sys_wait_h = yes; then
7974
7975 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7976
7977 fi
7978
7979 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7980                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7981                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
7982                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7983 do :
7984   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7985 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7986 eval as_val=\$$as_ac_Header
7987    if test "x$as_val" = x""yes; then :
7988   cat >>confdefs.h <<_ACEOF
7989 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7990 _ACEOF
7991
7992 fi
7993 done
7994
7995
7996 # Check for thread headers.
7997 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7998 if test "x$ac_cv_header_thread_h" = x""yes; then :
7999   have_thread_h=yes
8000 else
8001   have_thread_h=
8002 fi
8003
8004 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8005 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8006   have_pthread_h=yes
8007 else
8008   have_pthread_h=
8009 fi
8010
8011
8012 # These tests can't be done till we know if we have limits.h.
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8014 $as_echo_n "checking for CHAR_BIT... " >&6; }
8015 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8016   $as_echo_n "(cached) " >&6
8017 else
8018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019 /* end confdefs.h.  */
8020 #ifdef HAVE_LIMITS_H
8021 #include <limits.h>
8022 #endif
8023 #ifdef CHAR_BIT
8024 found
8025 #endif
8026 _ACEOF
8027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8028   $EGREP "found" >/dev/null 2>&1; then :
8029   gcc_cv_decl_char_bit=yes
8030 else
8031   gcc_cv_decl_char_bit=no
8032 fi
8033 rm -f conftest*
8034
8035
8036 fi
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8038 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8039 if test $gcc_cv_decl_char_bit = no; then
8040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8041 $as_echo_n "checking number of bits in a byte... " >&6; }
8042 if test "${gcc_cv_c_nbby+set}" = set; then :
8043   $as_echo_n "(cached) " >&6
8044 else
8045   i=8
8046  gcc_cv_c_nbby=
8047  while test $i -lt 65; do
8048    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h.  */
8050
8051 int
8052 main ()
8053 {
8054 switch(0) {
8055   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8056   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8057   ; }
8058   ;
8059   return 0;
8060 }
8061 _ACEOF
8062 if ac_fn_c_try_compile "$LINENO"; then :
8063   gcc_cv_c_nbby=$i; break
8064 fi
8065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066    i=`expr $i + 1`
8067  done
8068  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8069
8070 fi
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8072 $as_echo "$gcc_cv_c_nbby" >&6; }
8073 if test $gcc_cv_c_nbby = failed; then
8074   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8075 else
8076
8077 cat >>confdefs.h <<_ACEOF
8078 #define CHAR_BIT $gcc_cv_c_nbby
8079 _ACEOF
8080
8081 fi
8082 fi
8083  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8084 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8085 if test "${ac_cv_c_bigendian+set}" = set; then :
8086   $as_echo_n "(cached) " >&6
8087 else
8088   ac_cv_c_bigendian=unknown
8089     # See if we're dealing with a universal compiler.
8090     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h.  */
8092 #ifndef __APPLE_CC__
8093                not a universal capable compiler
8094              #endif
8095              typedef int dummy;
8096
8097 _ACEOF
8098 if ac_fn_c_try_compile "$LINENO"; then :
8099
8100         # Check for potential -arch flags.  It is not universal unless
8101         # there are at least two -arch flags with different values.
8102         ac_arch=
8103         ac_prev=
8104         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8105          if test -n "$ac_prev"; then
8106            case $ac_word in
8107              i?86 | x86_64 | ppc | ppc64)
8108                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8109                  ac_arch=$ac_word
8110                else
8111                  ac_cv_c_bigendian=universal
8112                  break
8113                fi
8114                ;;
8115            esac
8116            ac_prev=
8117          elif test "x$ac_word" = "x-arch"; then
8118            ac_prev=arch
8119          fi
8120        done
8121 fi
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123     if test $ac_cv_c_bigendian = unknown; then
8124       # See if sys/param.h defines the BYTE_ORDER macro.
8125       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h.  */
8127 #include <sys/types.h>
8128              #include <sys/param.h>
8129
8130 int
8131 main ()
8132 {
8133 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8134                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8135                      && LITTLE_ENDIAN)
8136               bogus endian macros
8137              #endif
8138
8139   ;
8140   return 0;
8141 }
8142 _ACEOF
8143 if ac_fn_c_try_compile "$LINENO"; then :
8144   # It does; now see whether it defined to BIG_ENDIAN or not.
8145          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h.  */
8147 #include <sys/types.h>
8148                 #include <sys/param.h>
8149
8150 int
8151 main ()
8152 {
8153 #if BYTE_ORDER != BIG_ENDIAN
8154                  not big endian
8155                 #endif
8156
8157   ;
8158   return 0;
8159 }
8160 _ACEOF
8161 if ac_fn_c_try_compile "$LINENO"; then :
8162   ac_cv_c_bigendian=yes
8163 else
8164   ac_cv_c_bigendian=no
8165 fi
8166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8167 fi
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169     fi
8170     if test $ac_cv_c_bigendian = unknown; then
8171       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8172       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173 /* end confdefs.h.  */
8174 #include <limits.h>
8175
8176 int
8177 main ()
8178 {
8179 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8180               bogus endian macros
8181              #endif
8182
8183   ;
8184   return 0;
8185 }
8186 _ACEOF
8187 if ac_fn_c_try_compile "$LINENO"; then :
8188   # It does; now see whether it defined to _BIG_ENDIAN or not.
8189          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h.  */
8191 #include <limits.h>
8192
8193 int
8194 main ()
8195 {
8196 #ifndef _BIG_ENDIAN
8197                  not big endian
8198                 #endif
8199
8200   ;
8201   return 0;
8202 }
8203 _ACEOF
8204 if ac_fn_c_try_compile "$LINENO"; then :
8205   ac_cv_c_bigendian=yes
8206 else
8207   ac_cv_c_bigendian=no
8208 fi
8209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210 fi
8211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212     fi
8213     if test $ac_cv_c_bigendian = unknown; then
8214       # Compile a test program.
8215       if test "$cross_compiling" = yes; then :
8216   # Try to guess by grepping values from an object file.
8217          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h.  */
8219 short int ascii_mm[] =
8220                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8221                 short int ascii_ii[] =
8222                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8223                 int use_ascii (int i) {
8224                   return ascii_mm[i] + ascii_ii[i];
8225                 }
8226                 short int ebcdic_ii[] =
8227                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8228                 short int ebcdic_mm[] =
8229                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8230                 int use_ebcdic (int i) {
8231                   return ebcdic_mm[i] + ebcdic_ii[i];
8232                 }
8233                 extern int foo;
8234
8235 int
8236 main ()
8237 {
8238 return use_ascii (foo) == use_ebcdic (foo);
8239   ;
8240   return 0;
8241 }
8242 _ACEOF
8243 if ac_fn_c_try_compile "$LINENO"; then :
8244   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8245               ac_cv_c_bigendian=yes
8246             fi
8247             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8248               if test "$ac_cv_c_bigendian" = unknown; then
8249                 ac_cv_c_bigendian=no
8250               else
8251                 # finding both strings is unlikely to happen, but who knows?
8252                 ac_cv_c_bigendian=unknown
8253               fi
8254             fi
8255 fi
8256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8257 else
8258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h.  */
8260 $ac_includes_default
8261 int
8262 main ()
8263 {
8264
8265              /* Are we little or big endian?  From Harbison&Steele.  */
8266              union
8267              {
8268                long int l;
8269                char c[sizeof (long int)];
8270              } u;
8271              u.l = 1;
8272              return u.c[sizeof (long int) - 1] == 1;
8273
8274   ;
8275   return 0;
8276 }
8277 _ACEOF
8278 if ac_fn_c_try_run "$LINENO"; then :
8279   ac_cv_c_bigendian=no
8280 else
8281   ac_cv_c_bigendian=yes
8282 fi
8283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8284   conftest.$ac_objext conftest.beam conftest.$ac_ext
8285 fi
8286
8287     fi
8288 fi
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8290 $as_echo "$ac_cv_c_bigendian" >&6; }
8291  case $ac_cv_c_bigendian in #(
8292    yes)
8293      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8294 ;; #(
8295    no)
8296       ;; #(
8297    universal)
8298
8299 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8300
8301      ;; #(
8302    *)
8303      as_fn_error "unknown endianness
8304  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8305  esac
8306
8307
8308 # --------
8309 # UNSORTED
8310 # --------
8311
8312
8313 # These libraries may be used by collect2.
8314 # We may need a special search path to get them linked.
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8316 $as_echo_n "checking for collect2 libraries... " >&6; }
8317 if test "${gcc_cv_collect2_libs+set}" = set; then :
8318   $as_echo_n "(cached) " >&6
8319 else
8320   save_LIBS="$LIBS"
8321 for libs in '' -lld -lmld \
8322                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8323                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8324 do
8325         LIBS="$libs"
8326         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h.  */
8328
8329 /* Override any GCC internal prototype to avoid an error.
8330    Use char because int might match the return type of a GCC
8331    builtin and then its argument prototype would still apply.  */
8332 #ifdef __cplusplus
8333 extern "C"
8334 #endif
8335 char ldopen ();
8336 int
8337 main ()
8338 {
8339 return ldopen ();
8340   ;
8341   return 0;
8342 }
8343 _ACEOF
8344 if ac_fn_c_try_link "$LINENO"; then :
8345   gcc_cv_collect2_libs="$libs"; break
8346 fi
8347 rm -f core conftest.err conftest.$ac_objext \
8348     conftest$ac_exeext conftest.$ac_ext
8349 done
8350 LIBS="$save_LIBS"
8351 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8352 fi
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8354 $as_echo "$gcc_cv_collect2_libs" >&6; }
8355 case $gcc_cv_collect2_libs in
8356         "none required")        ;;
8357         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8358 esac
8359
8360
8361 # When building Ada code on Alpha, we need exc_resume which is usually in
8362 # -lexc.  So test for it.
8363 save_LIBS="$LIBS"
8364 LIBS=
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8366 $as_echo_n "checking for library containing exc_resume... " >&6; }
8367 if test "${ac_cv_search_exc_resume+set}" = set; then :
8368   $as_echo_n "(cached) " >&6
8369 else
8370   ac_func_search_save_LIBS=$LIBS
8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372 /* end confdefs.h.  */
8373
8374 /* Override any GCC internal prototype to avoid an error.
8375    Use char because int might match the return type of a GCC
8376    builtin and then its argument prototype would still apply.  */
8377 #ifdef __cplusplus
8378 extern "C"
8379 #endif
8380 char exc_resume ();
8381 int
8382 main ()
8383 {
8384 return exc_resume ();
8385   ;
8386   return 0;
8387 }
8388 _ACEOF
8389 for ac_lib in '' exc; do
8390   if test -z "$ac_lib"; then
8391     ac_res="none required"
8392   else
8393     ac_res=-l$ac_lib
8394     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8395   fi
8396   if ac_fn_c_try_link "$LINENO"; then :
8397   ac_cv_search_exc_resume=$ac_res
8398 fi
8399 rm -f core conftest.err conftest.$ac_objext \
8400     conftest$ac_exeext
8401   if test "${ac_cv_search_exc_resume+set}" = set; then :
8402   break
8403 fi
8404 done
8405 if test "${ac_cv_search_exc_resume+set}" = set; then :
8406
8407 else
8408   ac_cv_search_exc_resume=no
8409 fi
8410 rm conftest.$ac_ext
8411 LIBS=$ac_func_search_save_LIBS
8412 fi
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8414 $as_echo "$ac_cv_search_exc_resume" >&6; }
8415 ac_res=$ac_cv_search_exc_resume
8416 if test "$ac_res" != no; then :
8417   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8418
8419 fi
8420
8421 GNAT_LIBEXC="$LIBS"
8422 LIBS="$save_LIBS"
8423
8424
8425 # Some systems put ldexp and frexp in libm instead of libc; assume
8426 # they're both in the same place.  jcf-dump needs them.
8427 save_LIBS="$LIBS"
8428 LIBS=
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8430 $as_echo_n "checking for library containing ldexp... " >&6; }
8431 if test "${ac_cv_search_ldexp+set}" = set; then :
8432   $as_echo_n "(cached) " >&6
8433 else
8434   ac_func_search_save_LIBS=$LIBS
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h.  */
8437
8438 /* Override any GCC internal prototype to avoid an error.
8439    Use char because int might match the return type of a GCC
8440    builtin and then its argument prototype would still apply.  */
8441 #ifdef __cplusplus
8442 extern "C"
8443 #endif
8444 char ldexp ();
8445 int
8446 main ()
8447 {
8448 return ldexp ();
8449   ;
8450   return 0;
8451 }
8452 _ACEOF
8453 for ac_lib in '' m; do
8454   if test -z "$ac_lib"; then
8455     ac_res="none required"
8456   else
8457     ac_res=-l$ac_lib
8458     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8459   fi
8460   if ac_fn_c_try_link "$LINENO"; then :
8461   ac_cv_search_ldexp=$ac_res
8462 fi
8463 rm -f core conftest.err conftest.$ac_objext \
8464     conftest$ac_exeext
8465   if test "${ac_cv_search_ldexp+set}" = set; then :
8466   break
8467 fi
8468 done
8469 if test "${ac_cv_search_ldexp+set}" = set; then :
8470
8471 else
8472   ac_cv_search_ldexp=no
8473 fi
8474 rm conftest.$ac_ext
8475 LIBS=$ac_func_search_save_LIBS
8476 fi
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8478 $as_echo "$ac_cv_search_ldexp" >&6; }
8479 ac_res=$ac_cv_search_ldexp
8480 if test "$ac_res" != no; then :
8481   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8482
8483 fi
8484
8485 LDEXP_LIB="$LIBS"
8486 LIBS="$save_LIBS"
8487
8488
8489 # Use <inttypes.h> only if it exists,
8490 # doesn't clash with <sys/types.h>, and declares intmax_t.
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8492 $as_echo_n "checking for inttypes.h... " >&6; }
8493 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8494   $as_echo_n "(cached) " >&6
8495 else
8496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h.  */
8498 #include <sys/types.h>
8499 #include <inttypes.h>
8500 int
8501 main ()
8502 {
8503 intmax_t i = -1;
8504   ;
8505   return 0;
8506 }
8507 _ACEOF
8508 if ac_fn_c_try_compile "$LINENO"; then :
8509   gcc_cv_header_inttypes_h=yes
8510 else
8511   gcc_cv_header_inttypes_h=no
8512 fi
8513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8514 fi
8515
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8517 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8518 if test $gcc_cv_header_inttypes_h = yes; then
8519
8520 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8521
8522 fi
8523
8524
8525
8526 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8527         sysconf strsignal getrusage nl_langinfo \
8528         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8529         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
8530 do :
8531   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8532 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8533 eval as_val=\$$as_ac_var
8534    if test "x$as_val" = x""yes; then :
8535   cat >>confdefs.h <<_ACEOF
8536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8537 _ACEOF
8538
8539 fi
8540 done
8541
8542
8543 if test x$ac_cv_func_mbstowcs = xyes; then
8544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8545 $as_echo_n "checking whether mbstowcs works... " >&6; }
8546 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8547   $as_echo_n "(cached) " >&6
8548 else
8549       if test "$cross_compiling" = yes; then :
8550   gcc_cv_func_mbstowcs_works=yes
8551 else
8552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h.  */
8554 #include <stdlib.h>
8555 int main()
8556 {
8557   mbstowcs(0, "", 0);
8558   return 0;
8559 }
8560 _ACEOF
8561 if ac_fn_c_try_run "$LINENO"; then :
8562   gcc_cv_func_mbstowcs_works=yes
8563 else
8564   gcc_cv_func_mbstowcs_works=no
8565 fi
8566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8567   conftest.$ac_objext conftest.beam conftest.$ac_ext
8568 fi
8569
8570 fi
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8572 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8573   if test x$gcc_cv_func_mbstowcs_works = xyes; then
8574
8575 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8576
8577   fi
8578 fi
8579
8580 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8581 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8582
8583 else
8584
8585 cat >>confdefs.h <<_ACEOF
8586 #define ssize_t int
8587 _ACEOF
8588
8589 fi
8590
8591 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8592 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8593
8594 else
8595
8596 cat >>confdefs.h <<_ACEOF
8597 #define caddr_t char *
8598 _ACEOF
8599
8600 fi
8601
8602
8603
8604 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8605 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8606   gcc_header_sys_mman_h=yes
8607 else
8608   gcc_header_sys_mman_h=no
8609 fi
8610
8611 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8612 if test "x$ac_cv_func_mmap" = x""yes; then :
8613   gcc_func_mmap=yes
8614 else
8615   gcc_func_mmap=no
8616 fi
8617
8618 if test "$gcc_header_sys_mman_h" != yes \
8619  || test "$gcc_func_mmap" != yes; then
8620    gcc_cv_func_mmap_file=no
8621    gcc_cv_func_mmap_dev_zero=no
8622    gcc_cv_func_mmap_anon=no
8623 else
8624    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8625 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8626 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8627   $as_echo_n "(cached) " >&6
8628 else
8629   # Add a system to this blacklist if
8630    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8631    # memory area containing the same data that you'd get if you applied
8632    # read() to the same fd.  The only system known to have a problem here
8633    # is VMS, where text files have record structure.
8634    case "$host_os" in
8635      vms* | ultrix*)
8636         gcc_cv_func_mmap_file=no ;;
8637      *)
8638         gcc_cv_func_mmap_file=yes;;
8639    esac
8640 fi
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8642 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8643    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8644 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8645 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8646   $as_echo_n "(cached) " >&6
8647 else
8648   # Add a system to this blacklist if it has mmap() but /dev/zero
8649    # does not exist, or if mmapping /dev/zero does not give anonymous
8650    # zeroed pages with both the following properties:
8651    # 1. If you map N consecutive pages in with one call, and then
8652    #    unmap any subset of those pages, the pages that were not
8653    #    explicitly unmapped remain accessible.
8654    # 2. If you map two adjacent blocks of memory and then unmap them
8655    #    both at once, they must both go away.
8656    # Systems known to be in this category are Windows (all variants),
8657    # VMS, and Darwin.
8658    case "$host_os" in
8659      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8660         gcc_cv_func_mmap_dev_zero=no ;;
8661      *)
8662         gcc_cv_func_mmap_dev_zero=yes;;
8663    esac
8664 fi
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8666 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8667
8668    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8669    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8670 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8671 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8672   $as_echo_n "(cached) " >&6
8673 else
8674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h.  */
8676 #include <sys/types.h>
8677 #include <sys/mman.h>
8678 #include <unistd.h>
8679
8680 #ifndef MAP_ANONYMOUS
8681 #define MAP_ANONYMOUS MAP_ANON
8682 #endif
8683
8684 int
8685 main ()
8686 {
8687 int n = MAP_ANONYMOUS;
8688   ;
8689   return 0;
8690 }
8691 _ACEOF
8692 if ac_fn_c_try_compile "$LINENO"; then :
8693   gcc_cv_decl_map_anon=yes
8694 else
8695   gcc_cv_decl_map_anon=no
8696 fi
8697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698 fi
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8700 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8701
8702    if test $gcc_cv_decl_map_anon = no; then
8703      gcc_cv_func_mmap_anon=no
8704    else
8705      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8706 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8707 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8708   $as_echo_n "(cached) " >&6
8709 else
8710   # Add a system to this blacklist if it has mmap() and MAP_ANON or
8711    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8712    # doesn't give anonymous zeroed pages with the same properties listed
8713    # above for use of /dev/zero.
8714    # Systems known to be in this category are Windows, VMS, and SCO Unix.
8715    case "$host_os" in
8716      vms* | cygwin* | pe | mingw* | sco* | udk* )
8717         gcc_cv_func_mmap_anon=no ;;
8718      *)
8719         gcc_cv_func_mmap_anon=yes;;
8720    esac
8721 fi
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8723 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8724    fi
8725 fi
8726
8727 if test $gcc_cv_func_mmap_file = yes; then
8728
8729 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8730
8731 fi
8732 if test $gcc_cv_func_mmap_dev_zero = yes; then
8733
8734 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8735
8736 fi
8737 if test $gcc_cv_func_mmap_anon = yes; then
8738
8739 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8740
8741 fi
8742
8743
8744 case "${host}" in
8745 *-*-*vms*)
8746   # Under VMS, vfork works very differently than on Unix. The standard test
8747   # won't work, and it isn't easily adaptable. It makes more sense to
8748   # just force it.
8749   ac_cv_func_vfork_works=yes
8750   ;;
8751 esac
8752 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8753 if test "x$ac_cv_type_pid_t" = x""yes; then :
8754
8755 else
8756
8757 cat >>confdefs.h <<_ACEOF
8758 #define pid_t int
8759 _ACEOF
8760
8761 fi
8762
8763 for ac_header in vfork.h
8764 do :
8765   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8766 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8767   cat >>confdefs.h <<_ACEOF
8768 #define HAVE_VFORK_H 1
8769 _ACEOF
8770
8771 fi
8772 done
8773
8774 for ac_func in fork vfork
8775 do :
8776   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8777 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8778 eval as_val=\$$as_ac_var
8779    if test "x$as_val" = x""yes; then :
8780   cat >>confdefs.h <<_ACEOF
8781 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8782 _ACEOF
8783
8784 fi
8785 done
8786
8787 if test "x$ac_cv_func_fork" = xyes; then
8788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8789 $as_echo_n "checking for working fork... " >&6; }
8790 if test "${ac_cv_func_fork_works+set}" = set; then :
8791   $as_echo_n "(cached) " >&6
8792 else
8793   if test "$cross_compiling" = yes; then :
8794   ac_cv_func_fork_works=cross
8795 else
8796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h.  */
8798 $ac_includes_default
8799 int
8800 main ()
8801 {
8802
8803           /* By Ruediger Kuhlmann. */
8804           return fork () < 0;
8805
8806   ;
8807   return 0;
8808 }
8809 _ACEOF
8810 if ac_fn_c_try_run "$LINENO"; then :
8811   ac_cv_func_fork_works=yes
8812 else
8813   ac_cv_func_fork_works=no
8814 fi
8815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8816   conftest.$ac_objext conftest.beam conftest.$ac_ext
8817 fi
8818
8819 fi
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8821 $as_echo "$ac_cv_func_fork_works" >&6; }
8822
8823 else
8824   ac_cv_func_fork_works=$ac_cv_func_fork
8825 fi
8826 if test "x$ac_cv_func_fork_works" = xcross; then
8827   case $host in
8828     *-*-amigaos* | *-*-msdosdjgpp*)
8829       # Override, as these systems have only a dummy fork() stub
8830       ac_cv_func_fork_works=no
8831       ;;
8832     *)
8833       ac_cv_func_fork_works=yes
8834       ;;
8835   esac
8836   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8837 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8838 fi
8839 ac_cv_func_vfork_works=$ac_cv_func_vfork
8840 if test "x$ac_cv_func_vfork" = xyes; then
8841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8842 $as_echo_n "checking for working vfork... " >&6; }
8843 if test "${ac_cv_func_vfork_works+set}" = set; then :
8844   $as_echo_n "(cached) " >&6
8845 else
8846   if test "$cross_compiling" = yes; then :
8847   ac_cv_func_vfork_works=cross
8848 else
8849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850 /* end confdefs.h.  */
8851 /* Thanks to Paul Eggert for this test.  */
8852 $ac_includes_default
8853 #include <sys/wait.h>
8854 #ifdef HAVE_VFORK_H
8855 # include <vfork.h>
8856 #endif
8857 /* On some sparc systems, changes by the child to local and incoming
8858    argument registers are propagated back to the parent.  The compiler
8859    is told about this with #include <vfork.h>, but some compilers
8860    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8861    static variable whose address is put into a register that is
8862    clobbered by the vfork.  */
8863 static void
8864 #ifdef __cplusplus
8865 sparc_address_test (int arg)
8866 # else
8867 sparc_address_test (arg) int arg;
8868 #endif
8869 {
8870   static pid_t child;
8871   if (!child) {
8872     child = vfork ();
8873     if (child < 0) {
8874       perror ("vfork");
8875       _exit(2);
8876     }
8877     if (!child) {
8878       arg = getpid();
8879       write(-1, "", 0);
8880       _exit (arg);
8881     }
8882   }
8883 }
8884
8885 int
8886 main ()
8887 {
8888   pid_t parent = getpid ();
8889   pid_t child;
8890
8891   sparc_address_test (0);
8892
8893   child = vfork ();
8894
8895   if (child == 0) {
8896     /* Here is another test for sparc vfork register problems.  This
8897        test uses lots of local variables, at least as many local
8898        variables as main has allocated so far including compiler
8899        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8900        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8901        reuse the register of parent for one of the local variables,
8902        since it will think that parent can't possibly be used any more
8903        in this routine.  Assigning to the local variable will thus
8904        munge parent in the parent process.  */
8905     pid_t
8906       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8907       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8908     /* Convince the compiler that p..p7 are live; otherwise, it might
8909        use the same hardware register for all 8 local variables.  */
8910     if (p != p1 || p != p2 || p != p3 || p != p4
8911         || p != p5 || p != p6 || p != p7)
8912       _exit(1);
8913
8914     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8915        from child file descriptors.  If the child closes a descriptor
8916        before it execs or exits, this munges the parent's descriptor
8917        as well.  Test for this by closing stdout in the child.  */
8918     _exit(close(fileno(stdout)) != 0);
8919   } else {
8920     int status;
8921     struct stat st;
8922
8923     while (wait(&status) != child)
8924       ;
8925     return (
8926          /* Was there some problem with vforking?  */
8927          child < 0
8928
8929          /* Did the child fail?  (This shouldn't happen.)  */
8930          || status
8931
8932          /* Did the vfork/compiler bug occur?  */
8933          || parent != getpid()
8934
8935          /* Did the file descriptor bug occur?  */
8936          || fstat(fileno(stdout), &st) != 0
8937          );
8938   }
8939 }
8940 _ACEOF
8941 if ac_fn_c_try_run "$LINENO"; then :
8942   ac_cv_func_vfork_works=yes
8943 else
8944   ac_cv_func_vfork_works=no
8945 fi
8946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8947   conftest.$ac_objext conftest.beam conftest.$ac_ext
8948 fi
8949
8950 fi
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8952 $as_echo "$ac_cv_func_vfork_works" >&6; }
8953
8954 fi;
8955 if test "x$ac_cv_func_fork_works" = xcross; then
8956   ac_cv_func_vfork_works=$ac_cv_func_vfork
8957   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8958 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8959 fi
8960
8961 if test "x$ac_cv_func_vfork_works" = xyes; then
8962
8963 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8964
8965 else
8966
8967 $as_echo "#define vfork fork" >>confdefs.h
8968
8969 fi
8970 if test "x$ac_cv_func_fork_works" = xyes; then
8971
8972 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8973
8974 fi
8975
8976
8977
8978       if test "X$prefix" = "XNONE"; then
8979     acl_final_prefix="$ac_default_prefix"
8980   else
8981     acl_final_prefix="$prefix"
8982   fi
8983   if test "X$exec_prefix" = "XNONE"; then
8984     acl_final_exec_prefix='${prefix}'
8985   else
8986     acl_final_exec_prefix="$exec_prefix"
8987   fi
8988   acl_save_prefix="$prefix"
8989   prefix="$acl_final_prefix"
8990   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8991   prefix="$acl_save_prefix"
8992
8993
8994 # Check whether --with-gnu-ld was given.
8995 if test "${with_gnu_ld+set}" = set; then :
8996   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8997 else
8998   with_gnu_ld=no
8999 fi
9000
9001 # Prepare PATH_SEPARATOR.
9002 # The user is always right.
9003 if test "${PATH_SEPARATOR+set}" != set; then
9004   echo "#! /bin/sh" >conf$$.sh
9005   echo  "exit 0"   >>conf$$.sh
9006   chmod +x conf$$.sh
9007   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9008     PATH_SEPARATOR=';'
9009   else
9010     PATH_SEPARATOR=:
9011   fi
9012   rm -f conf$$.sh
9013 fi
9014 ac_prog=ld
9015 if test "$GCC" = yes; then
9016   # Check if gcc -print-prog-name=ld gives a path.
9017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9018 $as_echo_n "checking for ld used by GCC... " >&6; }
9019   case $host in
9020   *-*-mingw*)
9021     # gcc leaves a trailing carriage return which upsets mingw
9022     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9023   *)
9024     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9025   esac
9026   case $ac_prog in
9027     # Accept absolute paths.
9028     [\\/]* | [A-Za-z]:[\\/]*)
9029       re_direlt='/[^/][^/]*/\.\./'
9030       # Canonicalize the path of ld
9031       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9032       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9033         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9034       done
9035       test -z "$LD" && LD="$ac_prog"
9036       ;;
9037   "")
9038     # If it fails, then pretend we aren't using GCC.
9039     ac_prog=ld
9040     ;;
9041   *)
9042     # If it is relative, then search for the first ld in PATH.
9043     with_gnu_ld=unknown
9044     ;;
9045   esac
9046 elif test "$with_gnu_ld" = yes; then
9047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9048 $as_echo_n "checking for GNU ld... " >&6; }
9049 else
9050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9051 $as_echo_n "checking for non-GNU ld... " >&6; }
9052 fi
9053 if test "${acl_cv_path_LD+set}" = set; then :
9054   $as_echo_n "(cached) " >&6
9055 else
9056   if test -z "$LD"; then
9057   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9058   for ac_dir in $PATH; do
9059     test -z "$ac_dir" && ac_dir=.
9060     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9061       acl_cv_path_LD="$ac_dir/$ac_prog"
9062       # Check to see if the program is GNU ld.  I'd rather use --version,
9063       # but apparently some GNU ld's only accept -v.
9064       # Break only if it was the GNU/non-GNU ld that we prefer.
9065       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9066         test "$with_gnu_ld" != no && break
9067       else
9068         test "$with_gnu_ld" != yes && break
9069       fi
9070     fi
9071   done
9072   IFS="$ac_save_ifs"
9073 else
9074   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9075 fi
9076 fi
9077
9078 LD="$acl_cv_path_LD"
9079 if test -n "$LD"; then
9080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9081 $as_echo "$LD" >&6; }
9082 else
9083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084 $as_echo "no" >&6; }
9085 fi
9086 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9088 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9089 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9090   $as_echo_n "(cached) " >&6
9091 else
9092   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9093 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9094   acl_cv_prog_gnu_ld=yes
9095 else
9096   acl_cv_prog_gnu_ld=no
9097 fi
9098 fi
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9100 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9101 with_gnu_ld=$acl_cv_prog_gnu_ld
9102
9103
9104
9105                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9106 $as_echo_n "checking for shared library run path origin... " >&6; }
9107 if test "${acl_cv_rpath+set}" = set; then :
9108   $as_echo_n "(cached) " >&6
9109 else
9110
9111     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9112     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9113     . ./conftest.sh
9114     rm -f ./conftest.sh
9115     acl_cv_rpath=done
9116
9117 fi
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9119 $as_echo "$acl_cv_rpath" >&6; }
9120   wl="$acl_cv_wl"
9121   libext="$acl_cv_libext"
9122   shlibext="$acl_cv_shlibext"
9123   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9124   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9125   hardcode_direct="$acl_cv_hardcode_direct"
9126   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9127     # Check whether --enable-rpath was given.
9128 if test "${enable_rpath+set}" = set; then :
9129   enableval=$enable_rpath; :
9130 else
9131   enable_rpath=yes
9132 fi
9133
9134
9135
9136
9137
9138
9139
9140
9141     use_additional=yes
9142
9143   acl_save_prefix="$prefix"
9144   prefix="$acl_final_prefix"
9145   acl_save_exec_prefix="$exec_prefix"
9146   exec_prefix="$acl_final_exec_prefix"
9147
9148     eval additional_includedir=\"$includedir\"
9149     eval additional_libdir=\"$libdir\"
9150
9151   exec_prefix="$acl_save_exec_prefix"
9152   prefix="$acl_save_prefix"
9153
9154
9155 # Check whether --with-libiconv-prefix was given.
9156 if test "${with_libiconv_prefix+set}" = set; then :
9157   withval=$with_libiconv_prefix;
9158     if test "X$withval" = "Xno"; then
9159       use_additional=no
9160     else
9161       if test "X$withval" = "X"; then
9162
9163   acl_save_prefix="$prefix"
9164   prefix="$acl_final_prefix"
9165   acl_save_exec_prefix="$exec_prefix"
9166   exec_prefix="$acl_final_exec_prefix"
9167
9168           eval additional_includedir=\"$includedir\"
9169           eval additional_libdir=\"$libdir\"
9170
9171   exec_prefix="$acl_save_exec_prefix"
9172   prefix="$acl_save_prefix"
9173
9174       else
9175         additional_includedir="$withval/include"
9176         additional_libdir="$withval/lib"
9177       fi
9178     fi
9179
9180 fi
9181
9182       LIBICONV=
9183   LTLIBICONV=
9184   INCICONV=
9185   rpathdirs=
9186   ltrpathdirs=
9187   names_already_handled=
9188   names_next_round='iconv '
9189   while test -n "$names_next_round"; do
9190     names_this_round="$names_next_round"
9191     names_next_round=
9192     for name in $names_this_round; do
9193       already_handled=
9194       for n in $names_already_handled; do
9195         if test "$n" = "$name"; then
9196           already_handled=yes
9197           break
9198         fi
9199       done
9200       if test -z "$already_handled"; then
9201         names_already_handled="$names_already_handled $name"
9202                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9203         eval value=\"\$HAVE_LIB$uppername\"
9204         if test -n "$value"; then
9205           if test "$value" = yes; then
9206             eval value=\"\$LIB$uppername\"
9207             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9208             eval value=\"\$LTLIB$uppername\"
9209             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9210           else
9211                                     :
9212           fi
9213         else
9214                               found_dir=
9215           found_la=
9216           found_so=
9217           found_a=
9218           if test $use_additional = yes; then
9219             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9220               found_dir="$additional_libdir"
9221               found_so="$additional_libdir/lib$name.$shlibext"
9222               if test -f "$additional_libdir/lib$name.la"; then
9223                 found_la="$additional_libdir/lib$name.la"
9224               fi
9225             else
9226               if test -f "$additional_libdir/lib$name.$libext"; then
9227                 found_dir="$additional_libdir"
9228                 found_a="$additional_libdir/lib$name.$libext"
9229                 if test -f "$additional_libdir/lib$name.la"; then
9230                   found_la="$additional_libdir/lib$name.la"
9231                 fi
9232               fi
9233             fi
9234           fi
9235           if test "X$found_dir" = "X"; then
9236             for x in $LDFLAGS $LTLIBICONV; do
9237
9238   acl_save_prefix="$prefix"
9239   prefix="$acl_final_prefix"
9240   acl_save_exec_prefix="$exec_prefix"
9241   exec_prefix="$acl_final_exec_prefix"
9242   eval x=\"$x\"
9243   exec_prefix="$acl_save_exec_prefix"
9244   prefix="$acl_save_prefix"
9245
9246               case "$x" in
9247                 -L*)
9248                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9249                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9250                     found_dir="$dir"
9251                     found_so="$dir/lib$name.$shlibext"
9252                     if test -f "$dir/lib$name.la"; then
9253                       found_la="$dir/lib$name.la"
9254                     fi
9255                   else
9256                     if test -f "$dir/lib$name.$libext"; then
9257                       found_dir="$dir"
9258                       found_a="$dir/lib$name.$libext"
9259                       if test -f "$dir/lib$name.la"; then
9260                         found_la="$dir/lib$name.la"
9261                       fi
9262                     fi
9263                   fi
9264                   ;;
9265               esac
9266               if test "X$found_dir" != "X"; then
9267                 break
9268               fi
9269             done
9270           fi
9271           if test "X$found_dir" != "X"; then
9272                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9273             if test "X$found_so" != "X"; then
9274                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9275                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9276               else
9277                                                                                 haveit=
9278                 for x in $ltrpathdirs; do
9279                   if test "X$x" = "X$found_dir"; then
9280                     haveit=yes
9281                     break
9282                   fi
9283                 done
9284                 if test -z "$haveit"; then
9285                   ltrpathdirs="$ltrpathdirs $found_dir"
9286                 fi
9287                                 if test "$hardcode_direct" = yes; then
9288                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9289                 else
9290                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9291                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9292                                                             haveit=
9293                     for x in $rpathdirs; do
9294                       if test "X$x" = "X$found_dir"; then
9295                         haveit=yes
9296                         break
9297                       fi
9298                     done
9299                     if test -z "$haveit"; then
9300                       rpathdirs="$rpathdirs $found_dir"
9301                     fi
9302                   else
9303                                                                                 haveit=
9304                     for x in $LDFLAGS $LIBICONV; do
9305
9306   acl_save_prefix="$prefix"
9307   prefix="$acl_final_prefix"
9308   acl_save_exec_prefix="$exec_prefix"
9309   exec_prefix="$acl_final_exec_prefix"
9310   eval x=\"$x\"
9311   exec_prefix="$acl_save_exec_prefix"
9312   prefix="$acl_save_prefix"
9313
9314                       if test "X$x" = "X-L$found_dir"; then
9315                         haveit=yes
9316                         break
9317                       fi
9318                     done
9319                     if test -z "$haveit"; then
9320                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9321                     fi
9322                     if test "$hardcode_minus_L" != no; then
9323                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9324                     else
9325                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9326                     fi
9327                   fi
9328                 fi
9329               fi
9330             else
9331               if test "X$found_a" != "X"; then
9332                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9333               else
9334                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9335               fi
9336             fi
9337                         additional_includedir=
9338             case "$found_dir" in
9339               */lib | */lib/)
9340                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9341                 additional_includedir="$basedir/include"
9342                 ;;
9343             esac
9344             if test "X$additional_includedir" != "X"; then
9345                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9346                 haveit=
9347                 if test "X$additional_includedir" = "X/usr/local/include"; then
9348                   if test -n "$GCC"; then
9349                     case $host_os in
9350                       linux*) haveit=yes;;
9351                     esac
9352                   fi
9353                 fi
9354                 if test -z "$haveit"; then
9355                   for x in $CPPFLAGS $INCICONV; do
9356
9357   acl_save_prefix="$prefix"
9358   prefix="$acl_final_prefix"
9359   acl_save_exec_prefix="$exec_prefix"
9360   exec_prefix="$acl_final_exec_prefix"
9361   eval x=\"$x\"
9362   exec_prefix="$acl_save_exec_prefix"
9363   prefix="$acl_save_prefix"
9364
9365                     if test "X$x" = "X-I$additional_includedir"; then
9366                       haveit=yes
9367                       break
9368                     fi
9369                   done
9370                   if test -z "$haveit"; then
9371                     if test -d "$additional_includedir"; then
9372                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9373                     fi
9374                   fi
9375                 fi
9376               fi
9377             fi
9378                         if test -n "$found_la"; then
9379                                                         save_libdir="$libdir"
9380               case "$found_la" in
9381                 */* | *\\*) . "$found_la" ;;
9382                 *) . "./$found_la" ;;
9383               esac
9384               libdir="$save_libdir"
9385                             for dep in $dependency_libs; do
9386                 case "$dep" in
9387                   -L*)
9388                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9389                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9390                       haveit=
9391                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9392                         if test -n "$GCC"; then
9393                           case $host_os in
9394                             linux*) haveit=yes;;
9395                           esac
9396                         fi
9397                       fi
9398                       if test -z "$haveit"; then
9399                         haveit=
9400                         for x in $LDFLAGS $LIBICONV; do
9401
9402   acl_save_prefix="$prefix"
9403   prefix="$acl_final_prefix"
9404   acl_save_exec_prefix="$exec_prefix"
9405   exec_prefix="$acl_final_exec_prefix"
9406   eval x=\"$x\"
9407   exec_prefix="$acl_save_exec_prefix"
9408   prefix="$acl_save_prefix"
9409
9410                           if test "X$x" = "X-L$additional_libdir"; then
9411                             haveit=yes
9412                             break
9413                           fi
9414                         done
9415                         if test -z "$haveit"; then
9416                           if test -d "$additional_libdir"; then
9417                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9418                           fi
9419                         fi
9420                         haveit=
9421                         for x in $LDFLAGS $LTLIBICONV; do
9422
9423   acl_save_prefix="$prefix"
9424   prefix="$acl_final_prefix"
9425   acl_save_exec_prefix="$exec_prefix"
9426   exec_prefix="$acl_final_exec_prefix"
9427   eval x=\"$x\"
9428   exec_prefix="$acl_save_exec_prefix"
9429   prefix="$acl_save_prefix"
9430
9431                           if test "X$x" = "X-L$additional_libdir"; then
9432                             haveit=yes
9433                             break
9434                           fi
9435                         done
9436                         if test -z "$haveit"; then
9437                           if test -d "$additional_libdir"; then
9438                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9439                           fi
9440                         fi
9441                       fi
9442                     fi
9443                     ;;
9444                   -R*)
9445                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9446                     if test "$enable_rpath" != no; then
9447                                                                   haveit=
9448                       for x in $rpathdirs; do
9449                         if test "X$x" = "X$dir"; then
9450                           haveit=yes
9451                           break
9452                         fi
9453                       done
9454                       if test -z "$haveit"; then
9455                         rpathdirs="$rpathdirs $dir"
9456                       fi
9457                                                                   haveit=
9458                       for x in $ltrpathdirs; do
9459                         if test "X$x" = "X$dir"; then
9460                           haveit=yes
9461                           break
9462                         fi
9463                       done
9464                       if test -z "$haveit"; then
9465                         ltrpathdirs="$ltrpathdirs $dir"
9466                       fi
9467                     fi
9468                     ;;
9469                   -l*)
9470                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9471                     ;;
9472                   *.la)
9473                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9474                     ;;
9475                   *)
9476                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9477                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9478                     ;;
9479                 esac
9480               done
9481             fi
9482           else
9483                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9484             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9485           fi
9486         fi
9487       fi
9488     done
9489   done
9490   if test "X$rpathdirs" != "X"; then
9491     if test -n "$hardcode_libdir_separator"; then
9492                         alldirs=
9493       for found_dir in $rpathdirs; do
9494         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9495       done
9496             acl_save_libdir="$libdir"
9497       libdir="$alldirs"
9498       eval flag=\"$hardcode_libdir_flag_spec\"
9499       libdir="$acl_save_libdir"
9500       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9501     else
9502             for found_dir in $rpathdirs; do
9503         acl_save_libdir="$libdir"
9504         libdir="$found_dir"
9505         eval flag=\"$hardcode_libdir_flag_spec\"
9506         libdir="$acl_save_libdir"
9507         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9508       done
9509     fi
9510   fi
9511   if test "X$ltrpathdirs" != "X"; then
9512             for found_dir in $ltrpathdirs; do
9513       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9514     done
9515   fi
9516
9517
9518
9519
9520
9521
9522
9523           am_save_CPPFLAGS="$CPPFLAGS"
9524
9525   for element in $INCICONV; do
9526     haveit=
9527     for x in $CPPFLAGS; do
9528
9529   acl_save_prefix="$prefix"
9530   prefix="$acl_final_prefix"
9531   acl_save_exec_prefix="$exec_prefix"
9532   exec_prefix="$acl_final_exec_prefix"
9533   eval x=\"$x\"
9534   exec_prefix="$acl_save_exec_prefix"
9535   prefix="$acl_save_prefix"
9536
9537       if test "X$x" = "X$element"; then
9538         haveit=yes
9539         break
9540       fi
9541     done
9542     if test -z "$haveit"; then
9543       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9544     fi
9545   done
9546
9547
9548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9549 $as_echo_n "checking for iconv... " >&6; }
9550 if test "${am_cv_func_iconv+set}" = set; then :
9551   $as_echo_n "(cached) " >&6
9552 else
9553
9554     am_cv_func_iconv="no, consider installing GNU libiconv"
9555     am_cv_lib_iconv=no
9556     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9557 /* end confdefs.h.  */
9558 #include <stdlib.h>
9559 #include <iconv.h>
9560 int
9561 main ()
9562 {
9563 iconv_t cd = iconv_open("","");
9564        iconv(cd,NULL,NULL,NULL,NULL);
9565        iconv_close(cd);
9566   ;
9567   return 0;
9568 }
9569 _ACEOF
9570 if ac_fn_c_try_link "$LINENO"; then :
9571   am_cv_func_iconv=yes
9572 fi
9573 rm -f core conftest.err conftest.$ac_objext \
9574     conftest$ac_exeext conftest.$ac_ext
9575     if test "$am_cv_func_iconv" != yes; then
9576       am_save_LIBS="$LIBS"
9577       LIBS="$LIBS $LIBICONV"
9578       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h.  */
9580 #include <stdlib.h>
9581 #include <iconv.h>
9582 int
9583 main ()
9584 {
9585 iconv_t cd = iconv_open("","");
9586          iconv(cd,NULL,NULL,NULL,NULL);
9587          iconv_close(cd);
9588   ;
9589   return 0;
9590 }
9591 _ACEOF
9592 if ac_fn_c_try_link "$LINENO"; then :
9593   am_cv_lib_iconv=yes
9594         am_cv_func_iconv=yes
9595 fi
9596 rm -f core conftest.err conftest.$ac_objext \
9597     conftest$ac_exeext conftest.$ac_ext
9598       LIBS="$am_save_LIBS"
9599     fi
9600
9601 fi
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9603 $as_echo "$am_cv_func_iconv" >&6; }
9604   if test "$am_cv_func_iconv" = yes; then
9605
9606 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9607
9608   fi
9609   if test "$am_cv_lib_iconv" = yes; then
9610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9611 $as_echo_n "checking how to link with libiconv... " >&6; }
9612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9613 $as_echo "$LIBICONV" >&6; }
9614   else
9615             CPPFLAGS="$am_save_CPPFLAGS"
9616     LIBICONV=
9617     LTLIBICONV=
9618   fi
9619
9620
9621
9622   if test "$am_cv_func_iconv" = yes; then
9623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9624 $as_echo_n "checking for iconv declaration... " >&6; }
9625     if test "${am_cv_proto_iconv+set}" = set; then :
9626   $as_echo_n "(cached) " >&6
9627 else
9628
9629       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h.  */
9631
9632 #include <stdlib.h>
9633 #include <iconv.h>
9634 extern
9635 #ifdef __cplusplus
9636 "C"
9637 #endif
9638 #if defined(__STDC__) || defined(__cplusplus)
9639 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9640 #else
9641 size_t iconv();
9642 #endif
9643
9644 int
9645 main ()
9646 {
9647
9648   ;
9649   return 0;
9650 }
9651 _ACEOF
9652 if ac_fn_c_try_compile "$LINENO"; then :
9653   am_cv_proto_iconv_arg1=""
9654 else
9655   am_cv_proto_iconv_arg1="const"
9656 fi
9657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9658       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);"
9659 fi
9660
9661     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9662     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9663          }$am_cv_proto_iconv" >&5
9664 $as_echo "${ac_t:-
9665          }$am_cv_proto_iconv" >&6; }
9666
9667 cat >>confdefs.h <<_ACEOF
9668 #define ICONV_CONST $am_cv_proto_iconv_arg1
9669 _ACEOF
9670
9671   fi
9672
9673 # Until we have in-tree GNU iconv:
9674 LIBICONV_DEP=
9675
9676
9677
9678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9679 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9680 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9681   $as_echo_n "(cached) " >&6
9682 else
9683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684 /* end confdefs.h.  */
9685 #include <locale.h>
9686 int
9687 main ()
9688 {
9689 return LC_MESSAGES
9690   ;
9691   return 0;
9692 }
9693 _ACEOF
9694 if ac_fn_c_try_link "$LINENO"; then :
9695   am_cv_val_LC_MESSAGES=yes
9696 else
9697   am_cv_val_LC_MESSAGES=no
9698 fi
9699 rm -f core conftest.err conftest.$ac_objext \
9700     conftest$ac_exeext conftest.$ac_ext
9701 fi
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9703 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9704   if test $am_cv_val_LC_MESSAGES = yes; then
9705
9706 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9707
9708   fi
9709
9710
9711
9712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9713 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9714 if test "${am_cv_langinfo_codeset+set}" = set; then :
9715   $as_echo_n "(cached) " >&6
9716 else
9717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h.  */
9719 #include <langinfo.h>
9720 int
9721 main ()
9722 {
9723 char* cs = nl_langinfo(CODESET);
9724   ;
9725   return 0;
9726 }
9727 _ACEOF
9728 if ac_fn_c_try_link "$LINENO"; then :
9729   am_cv_langinfo_codeset=yes
9730 else
9731   am_cv_langinfo_codeset=no
9732 fi
9733 rm -f core conftest.err conftest.$ac_objext \
9734     conftest$ac_exeext conftest.$ac_ext
9735
9736 fi
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9738 $as_echo "$am_cv_langinfo_codeset" >&6; }
9739   if test $am_cv_langinfo_codeset = yes; then
9740
9741 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9742
9743   fi
9744
9745
9746 # We will need to find libiberty.h and ansidecl.h
9747 saved_CFLAGS="$CFLAGS"
9748 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9749 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9750         strsignal strstr strverscmp \
9751         errno snprintf vsnprintf vasprintf malloc realloc calloc \
9752         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
9753 do
9754   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9756 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9757 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9758   $as_echo_n "(cached) " >&6
9759 else
9760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761 /* end confdefs.h.  */
9762 #undef $ac_tr_decl
9763 #define $ac_tr_decl 1
9764
9765 #include "ansidecl.h"
9766 #include "system.h"
9767
9768 int
9769 main ()
9770 {
9771 #ifndef $ac_func
9772 char *(*pfn) = (char *(*)) $ac_func ;
9773 #endif
9774   ;
9775   return 0;
9776 }
9777 _ACEOF
9778 if ac_fn_c_try_compile "$LINENO"; then :
9779   eval "gcc_cv_have_decl_$ac_func=yes"
9780 else
9781   eval "gcc_cv_have_decl_$ac_func=no"
9782 fi
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784 fi
9785
9786 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9788 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9789 #define $ac_tr_decl 1
9790 _ACEOF
9791
9792 else
9793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9795 #define $ac_tr_decl 0
9796 _ACEOF
9797
9798 fi
9799
9800 done
9801
9802
9803 for ac_func in getrlimit setrlimit getrusage
9804 do
9805   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9807 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9808 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9809   $as_echo_n "(cached) " >&6
9810 else
9811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h.  */
9813 #undef $ac_tr_decl
9814 #define $ac_tr_decl 1
9815
9816 #include "ansidecl.h"
9817 #include "system.h"
9818 #ifdef HAVE_SYS_RESOURCE_H
9819 #include <sys/resource.h>
9820 #endif
9821
9822
9823 int
9824 main ()
9825 {
9826 #ifndef $ac_func
9827 char *(*pfn) = (char *(*)) $ac_func ;
9828 #endif
9829   ;
9830   return 0;
9831 }
9832 _ACEOF
9833 if ac_fn_c_try_compile "$LINENO"; then :
9834   eval "gcc_cv_have_decl_$ac_func=yes"
9835 else
9836   eval "gcc_cv_have_decl_$ac_func=no"
9837 fi
9838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9839 fi
9840
9841 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9843 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9844 #define $ac_tr_decl 1
9845 _ACEOF
9846
9847 else
9848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9849 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9850 #define $ac_tr_decl 0
9851 _ACEOF
9852
9853 fi
9854
9855 done
9856
9857
9858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859 /* end confdefs.h.  */
9860
9861 #include "ansidecl.h"
9862 #include "system.h"
9863 #ifdef HAVE_SYS_RESOURCE_H
9864 #include <sys/resource.h>
9865 #endif
9866
9867 int
9868 main ()
9869 {
9870 rlim_t l = 0;
9871   ;
9872   return 0;
9873 }
9874 _ACEOF
9875 if ac_fn_c_try_compile "$LINENO"; then :
9876
9877 else
9878
9879 $as_echo "#define rlim_t long" >>confdefs.h
9880
9881 fi
9882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9883
9884 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9885 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
9886 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9887 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9888 for ac_func in ldgetname
9889 do
9890   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9892 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9893 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9894   $as_echo_n "(cached) " >&6
9895 else
9896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h.  */
9898 #undef $ac_tr_decl
9899 #define $ac_tr_decl 1
9900
9901 #include "ansidecl.h"
9902 #include "system.h"
9903 #ifdef HAVE_LDFCN_H
9904 #undef FREAD
9905 #undef FWRITE
9906 #include <ldfcn.h>
9907 #endif
9908
9909
9910 int
9911 main ()
9912 {
9913 #ifndef $ac_func
9914 char *(*pfn) = (char *(*)) $ac_func ;
9915 #endif
9916   ;
9917   return 0;
9918 }
9919 _ACEOF
9920 if ac_fn_c_try_compile "$LINENO"; then :
9921   eval "gcc_cv_have_decl_$ac_func=yes"
9922 else
9923   eval "gcc_cv_have_decl_$ac_func=no"
9924 fi
9925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9926 fi
9927
9928 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9930 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9931 #define $ac_tr_decl 1
9932 _ACEOF
9933
9934 else
9935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9936 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9937 #define $ac_tr_decl 0
9938 _ACEOF
9939
9940 fi
9941
9942 done
9943
9944
9945 for ac_func in times
9946 do
9947   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9949 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9950 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9951   $as_echo_n "(cached) " >&6
9952 else
9953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h.  */
9955 #undef $ac_tr_decl
9956 #define $ac_tr_decl 1
9957
9958 #include "ansidecl.h"
9959 #include "system.h"
9960 #ifdef HAVE_SYS_TIMES_H
9961 #include <sys/times.h>
9962 #endif
9963
9964
9965 int
9966 main ()
9967 {
9968 #ifndef $ac_func
9969 char *(*pfn) = (char *(*)) $ac_func ;
9970 #endif
9971   ;
9972   return 0;
9973 }
9974 _ACEOF
9975 if ac_fn_c_try_compile "$LINENO"; then :
9976   eval "gcc_cv_have_decl_$ac_func=yes"
9977 else
9978   eval "gcc_cv_have_decl_$ac_func=no"
9979 fi
9980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9981 fi
9982
9983 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9985 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9986 #define $ac_tr_decl 1
9987 _ACEOF
9988
9989 else
9990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9991 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9992 #define $ac_tr_decl 0
9993 _ACEOF
9994
9995 fi
9996
9997 done
9998
9999
10000 for ac_func in sigaltstack
10001 do
10002   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10004 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10005 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10006   $as_echo_n "(cached) " >&6
10007 else
10008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h.  */
10010 #undef $ac_tr_decl
10011 #define $ac_tr_decl 1
10012
10013 #include "ansidecl.h"
10014 #include "system.h"
10015 #include <signal.h>
10016
10017
10018 int
10019 main ()
10020 {
10021 #ifndef $ac_func
10022 char *(*pfn) = (char *(*)) $ac_func ;
10023 #endif
10024   ;
10025   return 0;
10026 }
10027 _ACEOF
10028 if ac_fn_c_try_compile "$LINENO"; then :
10029   eval "gcc_cv_have_decl_$ac_func=yes"
10030 else
10031   eval "gcc_cv_have_decl_$ac_func=no"
10032 fi
10033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10034 fi
10035
10036 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10038 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10039 #define $ac_tr_decl 1
10040 _ACEOF
10041
10042 else
10043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10044 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10045 #define $ac_tr_decl 0
10046 _ACEOF
10047
10048 fi
10049
10050 done
10051
10052
10053 # More time-related stuff.
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10055 $as_echo_n "checking for struct tms... " >&6; }
10056 if test "${ac_cv_struct_tms+set}" = set; then :
10057   $as_echo_n "(cached) " >&6
10058 else
10059
10060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061 /* end confdefs.h.  */
10062
10063 #include "ansidecl.h"
10064 #include "system.h"
10065 #ifdef HAVE_SYS_TIMES_H
10066 #include <sys/times.h>
10067 #endif
10068
10069 int
10070 main ()
10071 {
10072 struct tms tms;
10073   ;
10074   return 0;
10075 }
10076 _ACEOF
10077 if ac_fn_c_try_compile "$LINENO"; then :
10078   ac_cv_struct_tms=yes
10079 else
10080   ac_cv_struct_tms=no
10081 fi
10082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10083 fi
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10085 $as_echo "$ac_cv_struct_tms" >&6; }
10086 if test $ac_cv_struct_tms = yes; then
10087
10088 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10089
10090 fi
10091
10092 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10093 # revisit after autoconf 2.50.
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10095 $as_echo_n "checking for clock_t... " >&6; }
10096 if test "${gcc_cv_type_clock_t+set}" = set; then :
10097   $as_echo_n "(cached) " >&6
10098 else
10099
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h.  */
10102
10103 #include "ansidecl.h"
10104 #include "system.h"
10105
10106 int
10107 main ()
10108 {
10109 clock_t x;
10110   ;
10111   return 0;
10112 }
10113 _ACEOF
10114 if ac_fn_c_try_compile "$LINENO"; then :
10115   gcc_cv_type_clock_t=yes
10116 else
10117   gcc_cv_type_clock_t=no
10118 fi
10119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10120 fi
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10122 $as_echo "$gcc_cv_type_clock_t" >&6; }
10123 if test $gcc_cv_type_clock_t = yes; then
10124
10125 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10126
10127 fi
10128
10129 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10130 CFLAGS="$saved_CFLAGS"
10131
10132 # Check whether --enable-initfini-array was given.
10133 if test "${enable_initfini_array+set}" = set; then :
10134   enableval=$enable_initfini_array;
10135 else
10136
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10138 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10139 if test "${gcc_cv_initfini_array+set}" = set; then :
10140   $as_echo_n "(cached) " >&6
10141 else
10142     if test "$cross_compiling" = yes; then :
10143   gcc_cv_initfini_array=no
10144 else
10145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h.  */
10147
10148 static int x = -1;
10149 int main (void) { return x; }
10150 int foo (void) { x = 0; }
10151 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10152 _ACEOF
10153 if ac_fn_c_try_run "$LINENO"; then :
10154   gcc_cv_initfini_array=yes
10155 else
10156   gcc_cv_initfini_array=no
10157 fi
10158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10159   conftest.$ac_objext conftest.beam conftest.$ac_ext
10160 fi
10161
10162 fi
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10164 $as_echo "$gcc_cv_initfini_array" >&6; }
10165   enable_initfini_array=$gcc_cv_initfini_array
10166
10167 fi
10168
10169 if test $enable_initfini_array = yes; then
10170
10171 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10172
10173 fi
10174
10175 # mkdir takes a single argument on some systems.
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10177 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10178 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10179   $as_echo_n "(cached) " >&6
10180 else
10181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182 /* end confdefs.h.  */
10183
10184 #include <sys/types.h>
10185 #ifdef HAVE_SYS_STAT_H
10186 # include <sys/stat.h>
10187 #endif
10188 #ifdef HAVE_UNISTD_H
10189 # include <unistd.h>
10190 #endif
10191 #ifdef HAVE_DIRECT_H
10192 # include <direct.h>
10193 #endif
10194 int
10195 main ()
10196 {
10197 mkdir ("foo", 0);
10198   ;
10199   return 0;
10200 }
10201 _ACEOF
10202 if ac_fn_c_try_compile "$LINENO"; then :
10203   gcc_cv_mkdir_takes_one_arg=no
10204 else
10205   gcc_cv_mkdir_takes_one_arg=yes
10206 fi
10207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10208 fi
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10210 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10211 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10212
10213 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10214
10215 fi
10216
10217
10218 # File extensions
10219 manext='.1'
10220 objext='.o'
10221
10222
10223
10224 # With Setjmp/Longjmp based exception handling.
10225 # Check whether --enable-sjlj-exceptions was given.
10226 if test "${enable_sjlj_exceptions+set}" = set; then :
10227   enableval=$enable_sjlj_exceptions; case $target in
10228   *-*-hpux10*)
10229     if test $enableval != yes; then
10230       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10231 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10232       enableval=yes
10233     fi
10234     ;;
10235 esac
10236 force_sjlj_exceptions=yes
10237 else
10238   case $target in
10239   *-*-hpux10*)
10240     force_sjlj_exceptions=yes
10241     enableval=yes
10242     ;;
10243   *)
10244     force_sjlj_exceptions=no
10245     ;;
10246 esac
10247 fi
10248
10249 if test $force_sjlj_exceptions = yes; then
10250   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10251
10252 cat >>confdefs.h <<_ACEOF
10253 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10254 _ACEOF
10255
10256 fi
10257
10258 # For platforms with the unwind ABI which includes an unwind library,
10259 # libunwind, we can choose to use the system libunwind.
10260 # config.gcc also contains tests of with_system_libunwind.
10261
10262
10263 # Check whether --with-system-libunwind was given.
10264 if test "${with_system_libunwind+set}" = set; then :
10265   withval=$with_system_libunwind;
10266 fi
10267
10268   # If system-libunwind was not specifically set, pick a default setting.
10269   if test x$with_system_libunwind = x; then
10270     case ${target} in
10271       ia64-*-hpux*) with_system_libunwind=yes ;;
10272       *) with_system_libunwind=no ;;
10273     esac
10274   fi
10275   # Based on system-libunwind and target, do we have ipinfo?
10276   if  test x$with_system_libunwind = xyes; then
10277     case ${target} in
10278       ia64-*-*) have_unwind_getipinfo=no ;;
10279       *) have_unwind_getipinfo=yes ;;
10280     esac
10281   else
10282     # Darwin before version 9 does not have _Unwind_GetIPInfo.
10283
10284     case ${target} in
10285       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10286       *) have_unwind_getipinfo=yes ;;
10287     esac
10288
10289   fi
10290
10291   if test x$have_unwind_getipinfo = xyes; then
10292
10293 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10294
10295   fi
10296
10297
10298 # --------------------------------------------------------
10299 # Build, host, and target specific configuration fragments
10300 # --------------------------------------------------------
10301
10302 # Collect build-machine-specific information.
10303 . ${srcdir}/config.build
10304
10305 # Collect host-machine-specific information.
10306 . ${srcdir}/config.host
10307
10308 target_gtfiles=
10309
10310 # Collect target-machine-specific information.
10311 . ${srcdir}/config.gcc
10312
10313 extra_objs="${host_extra_objs} ${extra_objs}"
10314 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10315
10316 # Default the target-machine variables that were not explicitly set.
10317 if test x"$tm_file" = x
10318 then tm_file=$cpu_type/$cpu_type.h; fi
10319
10320 if test x"$extra_headers" = x
10321 then extra_headers=; fi
10322
10323 if test x$md_file = x
10324 then md_file=$cpu_type/$cpu_type.md; fi
10325
10326 if test x$out_file = x
10327 then out_file=$cpu_type/$cpu_type.c; fi
10328
10329 if test x"$tmake_file" = x
10330 then tmake_file=$cpu_type/t-$cpu_type
10331 fi
10332
10333 if test x"$dwarf2" = xyes
10334 then tm_file="$tm_file tm-dwarf2.h"
10335 fi
10336
10337 # Say what files are being used for the output code and MD file.
10338 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10339 echo "Using \`$srcdir/config/$md_file' as machine description file."
10340
10341 # If any of the xm_file variables contain nonexistent files, warn
10342 # about them and drop them.
10343
10344 bx=
10345 for x in $build_xm_file; do
10346   if    test -f $srcdir/config/$x
10347   then      bx="$bx $x"
10348   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10349 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10350   fi
10351 done
10352 build_xm_file="$bx"
10353
10354 hx=
10355 for x in $host_xm_file; do
10356   if    test -f $srcdir/config/$x
10357   then      hx="$hx $x"
10358   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10359 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10360   fi
10361 done
10362 host_xm_file="$hx"
10363
10364 tx=
10365 for x in $xm_file; do
10366   if    test -f $srcdir/config/$x
10367   then      tx="$tx $x"
10368   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10369 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10370   fi
10371 done
10372 xm_file="$tx"
10373
10374 count=a
10375 for f in $tm_file; do
10376         count=${count}x
10377 done
10378 if test $count = ax; then
10379         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10380 else
10381         echo "Using the following target machine macro files:"
10382         for f in $tm_file; do
10383                 echo "  $srcdir/config/$f"
10384         done
10385 fi
10386
10387 if test x$need_64bit_hwint = xyes; then
10388
10389 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10390
10391 fi
10392
10393 if test x$use_long_long_for_widest_fast_int = xyes; then
10394
10395 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10396
10397 fi
10398
10399 count=a
10400 for f in $host_xm_file; do
10401         count=${count}x
10402 done
10403 if test $count = a; then
10404         :
10405 elif test $count = ax; then
10406         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10407 else
10408         echo "Using the following host machine macro files:"
10409         for f in $host_xm_file; do
10410                 echo "  $srcdir/config/$f"
10411         done
10412 fi
10413 echo "Using ${out_host_hook_obj} for host machine hooks."
10414
10415 if test "$host_xm_file" != "$build_xm_file"; then
10416         count=a
10417         for f in $build_xm_file; do
10418                 count=${count}x
10419         done
10420         if test $count = a; then
10421                 :
10422         elif test $count = ax; then
10423                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10424         else
10425                 echo "Using the following build machine macro files:"
10426                 for f in $build_xm_file; do
10427                         echo "  $srcdir/config/$f"
10428                 done
10429         fi
10430 fi
10431
10432 case ${host} in
10433   powerpc*-*-darwin*)
10434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10435 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10436 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10437   $as_echo_n "(cached) " >&6
10438 else
10439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h.  */
10441
10442 #include <sys/cdefs.h>
10443 #include <sys/signal.h>
10444 #include <ucontext.h>
10445 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10446
10447 _ACEOF
10448 if ac_fn_c_try_compile "$LINENO"; then :
10449   gcc_cv_mcontext_underscores=no
10450 else
10451   gcc_cv_mcontext_underscores=yes
10452 fi
10453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10454 fi
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10456 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10457       if test $gcc_cv_mcontext_underscores = yes; then
10458
10459 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10460
10461       fi
10462     ;;
10463 esac
10464
10465 # ---------
10466 # Threading
10467 # ---------
10468
10469 # Check if a valid thread package
10470 case ${enable_threads} in
10471   "" | no)
10472     # No threads
10473     target_thread_file='single'
10474     ;;
10475   yes)
10476     # default
10477     target_thread_file='single'
10478     ;;
10479   aix | dce | gnat | irix | posix | posix95 | rtems | \
10480   single | solaris | vxworks | win32 | mipssde)
10481     target_thread_file=${enable_threads}
10482     ;;
10483   *)
10484     echo "${enable_threads} is an unknown thread package" 1>&2
10485     exit 1
10486     ;;
10487 esac
10488
10489 if test x${thread_file} = x; then
10490   # No thread file set by target-specific clauses in config.gcc,
10491   # so use file chosen by default logic above
10492   thread_file=${target_thread_file}
10493 fi
10494
10495 # Make gthr-default.h if we have a thread file.
10496 gthread_flags=
10497 if test $thread_file != single; then
10498   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10499   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10500     rm -f gthr-default.h-t
10501   else
10502     mv -f gthr-default.h-t gthr-default.h
10503   fi
10504   gthread_flags=-DHAVE_GTHR_DEFAULT
10505 fi
10506
10507
10508 # --------
10509 # UNSORTED
10510 # --------
10511
10512 use_cxa_atexit=no
10513 if test x$enable___cxa_atexit = xyes || \
10514    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10515   if test x$host = x$target; then
10516     case $host in
10517       # mingw32 doesn't have __cxa_atexit but uses atexit registration
10518       # keyed to flag_use_cxa_atexit
10519       *-*-mingw32*)
10520         use_cxa_atexit=yes
10521         ;;
10522       *)
10523         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10524 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10525   use_cxa_atexit=yes
10526 else
10527   echo "__cxa_atexit can't be enabled on this target"
10528 fi
10529
10530         ;;
10531     esac
10532   else
10533     # We can't check for __cxa_atexit when building a cross, so assume
10534     # it is available
10535     use_cxa_atexit=yes
10536   fi
10537   if test x$use_cxa_atexit = xyes; then
10538
10539 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10540
10541   fi
10542 fi
10543
10544 # Look for a file containing extra machine modes.
10545 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10546   extra_modes_file='$(srcdir)'/config/${extra_modes}
10547
10548
10549 cat >>confdefs.h <<_ACEOF
10550 #define EXTRA_MODES_FILE "config/$extra_modes"
10551 _ACEOF
10552
10553 fi
10554
10555 # Convert extra_options into a form suitable for Makefile use.
10556 extra_opt_files=
10557 for f in $extra_options; do
10558   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10559 done
10560
10561
10562 # auto-host.h is the file containing items generated by autoconf and is
10563 # the first file included by config.h.
10564 # If host=build, it is correct to have bconfig include auto-host.h
10565 # as well.  If host!=build, we are in error and need to do more
10566 # work to find out the build config parameters.
10567 if test x$host = x$build
10568 then
10569         build_auto=auto-host.h
10570 else
10571         # We create a subdir, then run autoconf in the subdir.
10572         # To prevent recursion we set host and build for the new
10573         # invocation of configure to the build for this invocation
10574         # of configure.
10575         tempdir=build.$$
10576         rm -rf $tempdir
10577         mkdir $tempdir
10578         cd $tempdir
10579         case ${srcdir} in
10580         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10581         *) realsrcdir=../${srcdir};;
10582         esac
10583         saved_CFLAGS="${CFLAGS}"
10584         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10585         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10586         ${realsrcdir}/configure \
10587                 --enable-languages=${enable_languages-all} \
10588                 --target=$target_alias --host=$build_alias --build=$build_alias
10589         CFLAGS="${saved_CFLAGS}"
10590
10591         # We just finished tests for the build machine, so rename
10592         # the file auto-build.h in the gcc directory.
10593         mv auto-host.h ../auto-build.h
10594         cd ..
10595         rm -rf $tempdir
10596         build_auto=auto-build.h
10597 fi
10598
10599
10600 tm_file="${tm_file} defaults.h"
10601 tm_p_file="${tm_p_file} tm-preds.h"
10602 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10603 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10604 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10605 # put this back in temporarily.
10606 xm_file="auto-host.h ansidecl.h ${xm_file}"
10607
10608 # --------
10609 # UNSORTED
10610 # --------
10611
10612 # Compile in configure arguments.
10613 if test -f configargs.h ; then
10614         # Being re-configured.
10615         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10616         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10617 else
10618         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10619 fi
10620
10621 # Double all backslashes and backslash all quotes to turn
10622 # gcc_config_arguments into a C string.
10623 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10624 $gcc_config_arguments
10625 EOF
10626 gcc_config_arguments_str=`cat conftest.out`
10627 rm -f conftest.out
10628
10629 cat > configargs.h <<EOF
10630 /* Generated automatically. */
10631 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10632 static const char thread_model[] = "$thread_file";
10633
10634 static const struct {
10635   const char *name, *value;
10636 } configure_default_options[] = $configure_default_options;
10637 EOF
10638
10639 gcc_BASEVER=`cat $srcdir/BASE-VER`
10640 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10641 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10642 if test -f $srcdir/REVISION ; then
10643         gcc_REVISION=`cat $srcdir/REVISION`
10644 else
10645         gcc_REVISION=""
10646 fi
10647 cat > plugin-version.h <<EOF
10648 #include "configargs.h"
10649
10650 static char basever[] = "$gcc_BASEVER";
10651 static char datestamp[] = "$gcc_DATESTAMP";
10652 static char devphase[] = "$gcc_DEVPHASE";
10653 static char revision[] = "$gcc_REVISION";
10654
10655 /* FIXME plugins: We should make the version information more precise.
10656    One way to do is to add a checksum. */
10657
10658 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10659                                                 devphase, revision,
10660                                                 configuration_arguments};
10661 EOF
10662
10663 # Internationalization
10664 # If we haven't got the data from the intl directory,
10665 # assume NLS is disabled.
10666 USE_NLS=no
10667 LIBINTL=
10668 LIBINTL_DEP=
10669 INCINTL=
10670 XGETTEXT=
10671 GMSGFMT=
10672 POSUB=
10673
10674 if test -f  ../intl/config.intl; then
10675   .  ../intl/config.intl
10676 fi
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10678 $as_echo_n "checking whether NLS is requested... " >&6; }
10679 if test x"$USE_NLS" != xyes; then
10680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10682 else
10683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10684 $as_echo "yes" >&6; }
10685
10686 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10687
10688
10689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10690 $as_echo_n "checking for catalogs to be installed... " >&6; }
10691   # Look for .po and .gmo files in the source directory.
10692   CATALOGS=
10693   XLINGUAS=
10694   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10695     # If there aren't any .gmo files the shell will give us the
10696     # literal string "../path/to/srcdir/po/*.gmo" which has to be
10697     # weeded out.
10698     case "$cat" in *\**)
10699       continue;;
10700     esac
10701     # The quadruple backslash is collapsed to a double backslash
10702     # by the backticks, then collapsed again by the double quotes,
10703     # leaving us with one backslash in the sed expression (right
10704     # before the dot that mustn't act as a wildcard).
10705     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10706     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10707     # The user is allowed to set LINGUAS to a list of languages to
10708     # install catalogs for.  If it's empty that means "all of them."
10709     if test "x$LINGUAS" = x; then
10710       CATALOGS="$CATALOGS $cat"
10711       XLINGUAS="$XLINGUAS $lang"
10712     else
10713       case "$LINGUAS" in *$lang*)
10714         CATALOGS="$CATALOGS $cat"
10715         XLINGUAS="$XLINGUAS $lang"
10716         ;;
10717       esac
10718     fi
10719   done
10720   LINGUAS="$XLINGUAS"
10721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10722 $as_echo "$LINGUAS" >&6; }
10723
10724
10725     DATADIRNAME=share
10726
10727   INSTOBJEXT=.mo
10728
10729   GENCAT=gencat
10730
10731   CATOBJEXT=.gmo
10732
10733 fi
10734
10735 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10736 # -liconv on the link line twice.
10737 case "$LIBINTL" in *$LIBICONV*)
10738         LIBICONV= ;;
10739 esac
10740
10741 # Check whether --enable-secureplt was given.
10742 if test "${enable_secureplt+set}" = set; then :
10743   enableval=$enable_secureplt;
10744 fi
10745
10746
10747 # Check whether --enable-cld was given.
10748 if test "${enable_cld+set}" = set; then :
10749   enableval=$enable_cld;
10750 else
10751   enable_cld=no
10752 fi
10753
10754
10755 # Windows32 Registry support for specifying GCC installation paths.
10756 # Check whether --enable-win32-registry was given.
10757 if test "${enable_win32_registry+set}" = set; then :
10758   enableval=$enable_win32_registry;
10759 fi
10760
10761
10762 case $host_os in
10763   win32 | pe | cygwin* | mingw32* | uwin*)
10764     if test "x$enable_win32_registry" != xno; then
10765       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10766 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10767 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10768   $as_echo_n "(cached) " >&6
10769 else
10770   ac_func_search_save_LIBS=$LIBS
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h.  */
10773
10774 /* Override any GCC internal prototype to avoid an error.
10775    Use char because int might match the return type of a GCC
10776    builtin and then its argument prototype would still apply.  */
10777 #ifdef __cplusplus
10778 extern "C"
10779 #endif
10780 char RegOpenKeyExA ();
10781 int
10782 main ()
10783 {
10784 return RegOpenKeyExA ();
10785   ;
10786   return 0;
10787 }
10788 _ACEOF
10789 for ac_lib in '' advapi32; do
10790   if test -z "$ac_lib"; then
10791     ac_res="none required"
10792   else
10793     ac_res=-l$ac_lib
10794     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10795   fi
10796   if ac_fn_c_try_link "$LINENO"; then :
10797   ac_cv_search_RegOpenKeyExA=$ac_res
10798 fi
10799 rm -f core conftest.err conftest.$ac_objext \
10800     conftest$ac_exeext
10801   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10802   break
10803 fi
10804 done
10805 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10806
10807 else
10808   ac_cv_search_RegOpenKeyExA=no
10809 fi
10810 rm conftest.$ac_ext
10811 LIBS=$ac_func_search_save_LIBS
10812 fi
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10814 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10815 ac_res=$ac_cv_search_RegOpenKeyExA
10816 if test "$ac_res" != no; then :
10817   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10818
10819 else
10820   enable_win32_registry=no
10821 fi
10822
10823     fi
10824
10825     if test "x$enable_win32_registry" != xno; then
10826
10827 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10828
10829
10830       if test "x$enable_win32_registry" != xyes \
10831          && test "x$enable_win32_registry" != x; then
10832
10833 cat >>confdefs.h <<_ACEOF
10834 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10835 _ACEOF
10836
10837       fi
10838     fi
10839   ;;
10840 esac
10841
10842 # Get an absolute path to the GCC top-level source directory
10843 holddir=`${PWDCMD-pwd}`
10844 cd $srcdir
10845 topdir=`${PWDCMD-pwd}`
10846 cd $holddir
10847
10848 # Conditionalize the makefile for this host machine.
10849 xmake_file=
10850 for f in ${host_xmake_file}
10851 do
10852         if test -f ${srcdir}/config/$f
10853         then
10854                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10855         fi
10856 done
10857
10858 # Conditionalize the makefile for this target machine.
10859 tmake_file_=
10860 for f in ${tmake_file}
10861 do
10862         if test -f ${srcdir}/config/$f
10863         then
10864                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10865         fi
10866 done
10867 tmake_file="${tmake_file_}"
10868
10869 out_object_file=`basename $out_file .c`.o
10870
10871 tm_file_list="options.h"
10872 tm_include_list="options.h"
10873 for f in $tm_file; do
10874   case $f in
10875     ./* )
10876        f=`echo $f | sed 's/^..//'`
10877        tm_file_list="${tm_file_list} $f"
10878        tm_include_list="${tm_include_list} $f"
10879        ;;
10880     defaults.h )
10881        tm_file_list="${tm_file_list} \$(srcdir)/$f"
10882        tm_include_list="${tm_include_list} $f"
10883        ;;
10884     * )
10885        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10886        tm_include_list="${tm_include_list} config/$f"
10887        ;;
10888   esac
10889 done
10890
10891 tm_p_file_list=
10892 tm_p_include_list=
10893 for f in $tm_p_file; do
10894   case $f in
10895     tm-preds.h )
10896        tm_p_file_list="${tm_p_file_list} $f"
10897        tm_p_include_list="${tm_p_include_list} $f"
10898        ;;
10899     * )
10900        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10901        tm_p_include_list="${tm_p_include_list} config/$f"
10902   esac
10903 done
10904
10905 xm_file_list=
10906 xm_include_list=
10907 for f in $xm_file; do
10908   case $f in
10909     ansidecl.h )
10910        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10911        xm_include_list="${xm_include_list} $f"
10912        ;;
10913     auto-host.h )
10914        xm_file_list="${xm_file_list} $f"
10915        xm_include_list="${xm_include_list} $f"
10916        ;;
10917     * )
10918        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10919        xm_include_list="${xm_include_list} config/$f"
10920        ;;
10921   esac
10922 done
10923
10924 host_xm_file_list=
10925 host_xm_include_list=
10926 for f in $host_xm_file; do
10927   case $f in
10928     ansidecl.h )
10929        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10930        host_xm_include_list="${host_xm_include_list} $f"
10931        ;;
10932     auto-host.h )
10933        host_xm_file_list="${host_xm_file_list} $f"
10934        host_xm_include_list="${host_xm_include_list} $f"
10935        ;;
10936     * )
10937        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10938        host_xm_include_list="${host_xm_include_list} config/$f"
10939        ;;
10940   esac
10941 done
10942
10943 build_xm_file_list=
10944 for f in $build_xm_file; do
10945   case $f in
10946     ansidecl.h )
10947        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10948        build_xm_include_list="${build_xm_include_list} $f"
10949        ;;
10950     auto-build.h | auto-host.h )
10951        build_xm_file_list="${build_xm_file_list} $f"
10952        build_xm_include_list="${build_xm_include_list} $f"
10953        ;;
10954     * )
10955        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10956        build_xm_include_list="${build_xm_include_list} config/$f"
10957        ;;
10958   esac
10959 done
10960
10961 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10962 # cross-compiler which does not use the native headers and libraries.
10963 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10964 CROSS=
10965 ALL=all.internal
10966 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10967
10968 if test "x$with_build_sysroot" != x; then
10969   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10970 else
10971   # This value is used, even on a native system, because
10972   # CROSS_SYSTEM_HEADER_DIR is just
10973   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10974   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10975 fi
10976
10977 if test x$host != x$target
10978 then
10979         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10980         ALL=all.cross
10981         SYSTEM_HEADER_DIR=$build_system_header_dir
10982         case "$host","$target" in
10983         # Darwin crosses can use the host system's libraries and headers,
10984         # because of the fat library support.  Of course, it must be the
10985         # same version of Darwin on both sides.  Allow the user to
10986         # just say --target=foo-darwin without a version number to mean
10987         # "the version on this system".
10988             *-*-darwin*,*-*-darwin*)
10989                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10990                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10991                 if test $hostos = $targetos -o $targetos = darwin ; then
10992                     CROSS=
10993                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10994                     with_headers=yes
10995                 fi
10996                 ;;
10997
10998             i?86-*-*,x86_64-*-* \
10999             | powerpc*-*-*,powerpc64*-*-*)
11000                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11001         esac
11002 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11003         SYSTEM_HEADER_DIR=$build_system_header_dir
11004 fi
11005
11006 # If this is a cross-compiler that does not
11007 # have its own set of headers then define
11008 # inhibit_libc
11009
11010 # If this is using newlib, without having the headers available now,
11011 # then define inhibit_libc in LIBGCC2_CFLAGS.
11012 # This prevents libgcc2 from containing any code which requires libc
11013 # support.
11014 : ${inhibit_libc=false}
11015 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11016        test x$with_newlib = xyes ; } &&
11017      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11018        inhibit_libc=true
11019 fi
11020
11021
11022 # When building gcc with a cross-compiler, we need to adjust things so
11023 # that the generator programs are still built with the native compiler.
11024 # Also, we cannot run fixincludes.
11025
11026 # These are the normal (build=host) settings:
11027 CC_FOR_BUILD='$(CC)'
11028 BUILD_CFLAGS='$(ALL_CFLAGS)'
11029 BUILD_LDFLAGS='$(LDFLAGS)'
11030 STMP_FIXINC=stmp-fixinc
11031
11032 # And these apply if build != host, or we are generating coverage data
11033 if test x$build != x$host || test "x$coverage_flags" != x
11034 then
11035     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11036     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11037 fi
11038
11039 # Expand extra_headers to include complete path.
11040 # This substitutes for lots of t-* files.
11041 extra_headers_list=
11042 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11043 for file in ${extra_headers} ; do
11044   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11045 done
11046
11047 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11048 if test x"$use_gcc_tgmath" = xyes
11049 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11050 fi
11051
11052 # Define collect2 in Makefile.
11053 case $host_can_use_collect2 in
11054   no) collect2= ;;
11055   *) collect2='collect2$(exeext)' ;;
11056 esac
11057
11058
11059 # Add a definition of USE_COLLECT2 if system wants one.
11060 case $use_collect2 in
11061   no) use_collect2= ;;
11062   "") ;;
11063   *)
11064     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11065     xm_defines="${xm_defines} USE_COLLECT2"
11066     case $host_can_use_collect2 in
11067       no)
11068         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11069         ;;
11070     esac
11071     ;;
11072 esac
11073
11074 # ---------------------------
11075 # Assembler & linker features
11076 # ---------------------------
11077
11078 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11079 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11080 # However when ld-new is first executed from the build tree, libtool will
11081 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11082 # to the build tree.  While doing this we need to use the previous-stage
11083 # linker, or we have an infinite loop.  The presence of a shell script as
11084 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11085 # the gcc/collect-ld script.  So we need to know how libtool works, or
11086 # exec-tool will fail.
11087
11088
11089 case `pwd` in
11090   *\ * | *\     *)
11091     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11092 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11093 esac
11094
11095
11096
11097 macro_version='2.2.6'
11098 macro_revision='1.3012'
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112 ltmain="$ac_aux_dir/ltmain.sh"
11113
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11115 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11116 if test "${ac_cv_path_SED+set}" = set; then :
11117   $as_echo_n "(cached) " >&6
11118 else
11119             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11120      for ac_i in 1 2 3 4 5 6 7; do
11121        ac_script="$ac_script$as_nl$ac_script"
11122      done
11123      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11124      { ac_script=; unset ac_script;}
11125      if test -z "$SED"; then
11126   ac_path_SED_found=false
11127   # Loop through the user's path and test for each of PROGNAME-LIST
11128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129 for as_dir in $PATH
11130 do
11131   IFS=$as_save_IFS
11132   test -z "$as_dir" && as_dir=.
11133     for ac_prog in sed gsed; do
11134     for ac_exec_ext in '' $ac_executable_extensions; do
11135       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11136       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11137 # Check for GNU ac_path_SED and select it if it is found.
11138   # Check for GNU $ac_path_SED
11139 case `"$ac_path_SED" --version 2>&1` in
11140 *GNU*)
11141   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11142 *)
11143   ac_count=0
11144   $as_echo_n 0123456789 >"conftest.in"
11145   while :
11146   do
11147     cat "conftest.in" "conftest.in" >"conftest.tmp"
11148     mv "conftest.tmp" "conftest.in"
11149     cp "conftest.in" "conftest.nl"
11150     $as_echo '' >> "conftest.nl"
11151     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11152     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11153     as_fn_arith $ac_count + 1 && ac_count=$as_val
11154     if test $ac_count -gt ${ac_path_SED_max-0}; then
11155       # Best one so far, save it but keep looking for a better one
11156       ac_cv_path_SED="$ac_path_SED"
11157       ac_path_SED_max=$ac_count
11158     fi
11159     # 10*(2^10) chars as input seems more than enough
11160     test $ac_count -gt 10 && break
11161   done
11162   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11163 esac
11164
11165       $ac_path_SED_found && break 3
11166     done
11167   done
11168   done
11169 IFS=$as_save_IFS
11170   if test -z "$ac_cv_path_SED"; then
11171     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11172   fi
11173 else
11174   ac_cv_path_SED=$SED
11175 fi
11176
11177 fi
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11179 $as_echo "$ac_cv_path_SED" >&6; }
11180  SED="$ac_cv_path_SED"
11181   rm -f conftest.sed
11182
11183 test -z "$SED" && SED=sed
11184 Xsed="$SED -e 1s/^X//"
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11197 $as_echo_n "checking for fgrep... " >&6; }
11198 if test "${ac_cv_path_FGREP+set}" = set; then :
11199   $as_echo_n "(cached) " >&6
11200 else
11201   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11202    then ac_cv_path_FGREP="$GREP -F"
11203    else
11204      if test -z "$FGREP"; then
11205   ac_path_FGREP_found=false
11206   # Loop through the user's path and test for each of PROGNAME-LIST
11207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11209 do
11210   IFS=$as_save_IFS
11211   test -z "$as_dir" && as_dir=.
11212     for ac_prog in fgrep; do
11213     for ac_exec_ext in '' $ac_executable_extensions; do
11214       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11215       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11216 # Check for GNU ac_path_FGREP and select it if it is found.
11217   # Check for GNU $ac_path_FGREP
11218 case `"$ac_path_FGREP" --version 2>&1` in
11219 *GNU*)
11220   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11221 *)
11222   ac_count=0
11223   $as_echo_n 0123456789 >"conftest.in"
11224   while :
11225   do
11226     cat "conftest.in" "conftest.in" >"conftest.tmp"
11227     mv "conftest.tmp" "conftest.in"
11228     cp "conftest.in" "conftest.nl"
11229     $as_echo 'FGREP' >> "conftest.nl"
11230     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11231     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11232     as_fn_arith $ac_count + 1 && ac_count=$as_val
11233     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11234       # Best one so far, save it but keep looking for a better one
11235       ac_cv_path_FGREP="$ac_path_FGREP"
11236       ac_path_FGREP_max=$ac_count
11237     fi
11238     # 10*(2^10) chars as input seems more than enough
11239     test $ac_count -gt 10 && break
11240   done
11241   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11242 esac
11243
11244       $ac_path_FGREP_found && break 3
11245     done
11246   done
11247   done
11248 IFS=$as_save_IFS
11249   if test -z "$ac_cv_path_FGREP"; then
11250     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11251   fi
11252 else
11253   ac_cv_path_FGREP=$FGREP
11254 fi
11255
11256    fi
11257 fi
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11259 $as_echo "$ac_cv_path_FGREP" >&6; }
11260  FGREP="$ac_cv_path_FGREP"
11261
11262
11263 test -z "$GREP" && GREP=grep
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283 # Check whether --with-gnu-ld was given.
11284 if test "${with_gnu_ld+set}" = set; then :
11285   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11286 else
11287   with_gnu_ld=no
11288 fi
11289
11290 ac_prog=ld
11291 if test "$GCC" = yes; then
11292   # Check if gcc -print-prog-name=ld gives a path.
11293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11294 $as_echo_n "checking for ld used by $CC... " >&6; }
11295   case $host in
11296   *-*-mingw*)
11297     # gcc leaves a trailing carriage return which upsets mingw
11298     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11299   *)
11300     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11301   esac
11302   case $ac_prog in
11303     # Accept absolute paths.
11304     [\\/]* | ?:[\\/]*)
11305       re_direlt='/[^/][^/]*/\.\./'
11306       # Canonicalize the pathname of ld
11307       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11308       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11309         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11310       done
11311       test -z "$LD" && LD="$ac_prog"
11312       ;;
11313   "")
11314     # If it fails, then pretend we aren't using GCC.
11315     ac_prog=ld
11316     ;;
11317   *)
11318     # If it is relative, then search for the first ld in PATH.
11319     with_gnu_ld=unknown
11320     ;;
11321   esac
11322 elif test "$with_gnu_ld" = yes; then
11323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11324 $as_echo_n "checking for GNU ld... " >&6; }
11325 else
11326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11327 $as_echo_n "checking for non-GNU ld... " >&6; }
11328 fi
11329 if test "${lt_cv_path_LD+set}" = set; then :
11330   $as_echo_n "(cached) " >&6
11331 else
11332   if test -z "$LD"; then
11333   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11334   for ac_dir in $PATH; do
11335     IFS="$lt_save_ifs"
11336     test -z "$ac_dir" && ac_dir=.
11337     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11338       lt_cv_path_LD="$ac_dir/$ac_prog"
11339       # Check to see if the program is GNU ld.  I'd rather use --version,
11340       # but apparently some variants of GNU ld only accept -v.
11341       # Break only if it was the GNU/non-GNU ld that we prefer.
11342       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11343       *GNU* | *'with BFD'*)
11344         test "$with_gnu_ld" != no && break
11345         ;;
11346       *)
11347         test "$with_gnu_ld" != yes && break
11348         ;;
11349       esac
11350     fi
11351   done
11352   IFS="$lt_save_ifs"
11353 else
11354   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11355 fi
11356 fi
11357
11358 LD="$lt_cv_path_LD"
11359 if test -n "$LD"; then
11360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11361 $as_echo "$LD" >&6; }
11362 else
11363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364 $as_echo "no" >&6; }
11365 fi
11366 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11368 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11369 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11370   $as_echo_n "(cached) " >&6
11371 else
11372   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11373 case `$LD -v 2>&1 </dev/null` in
11374 *GNU* | *'with BFD'*)
11375   lt_cv_prog_gnu_ld=yes
11376   ;;
11377 *)
11378   lt_cv_prog_gnu_ld=no
11379   ;;
11380 esac
11381 fi
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11383 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11384 with_gnu_ld=$lt_cv_prog_gnu_ld
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11395 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11396 if test "${lt_cv_path_NM+set}" = set; then :
11397   $as_echo_n "(cached) " >&6
11398 else
11399   if test -n "$NM"; then
11400   # Let the user override the test.
11401   lt_cv_path_NM="$NM"
11402 else
11403   lt_nm_to_check="${ac_tool_prefix}nm"
11404   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11405     lt_nm_to_check="$lt_nm_to_check nm"
11406   fi
11407   for lt_tmp_nm in $lt_nm_to_check; do
11408     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11409     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11410       IFS="$lt_save_ifs"
11411       test -z "$ac_dir" && ac_dir=.
11412       tmp_nm="$ac_dir/$lt_tmp_nm"
11413       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11414         # Check to see if the nm accepts a BSD-compat flag.
11415         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11416         #   nm: unknown option "B" ignored
11417         # Tru64's nm complains that /dev/null is an invalid object file
11418         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11419         */dev/null* | *'Invalid file or object type'*)
11420           lt_cv_path_NM="$tmp_nm -B"
11421           break
11422           ;;
11423         *)
11424           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11425           */dev/null*)
11426             lt_cv_path_NM="$tmp_nm -p"
11427             break
11428             ;;
11429           *)
11430             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11431             continue # so that we can try to find one that supports BSD flags
11432             ;;
11433           esac
11434           ;;
11435         esac
11436       fi
11437     done
11438     IFS="$lt_save_ifs"
11439   done
11440   : ${lt_cv_path_NM=no}
11441 fi
11442 fi
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11444 $as_echo "$lt_cv_path_NM" >&6; }
11445 if test "$lt_cv_path_NM" != "no"; then
11446   NM="$lt_cv_path_NM"
11447 else
11448   # Didn't find any BSD compatible name lister, look for dumpbin.
11449   if test -n "$ac_tool_prefix"; then
11450   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11451   do
11452     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455 $as_echo_n "checking for $ac_word... " >&6; }
11456 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11457   $as_echo_n "(cached) " >&6
11458 else
11459   if test -n "$DUMPBIN"; then
11460   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11461 else
11462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11463 for as_dir in $PATH
11464 do
11465   IFS=$as_save_IFS
11466   test -z "$as_dir" && as_dir=.
11467     for ac_exec_ext in '' $ac_executable_extensions; do
11468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11469     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11471     break 2
11472   fi
11473 done
11474   done
11475 IFS=$as_save_IFS
11476
11477 fi
11478 fi
11479 DUMPBIN=$ac_cv_prog_DUMPBIN
11480 if test -n "$DUMPBIN"; then
11481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11482 $as_echo "$DUMPBIN" >&6; }
11483 else
11484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485 $as_echo "no" >&6; }
11486 fi
11487
11488
11489     test -n "$DUMPBIN" && break
11490   done
11491 fi
11492 if test -z "$DUMPBIN"; then
11493   ac_ct_DUMPBIN=$DUMPBIN
11494   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11495 do
11496   # Extract the first word of "$ac_prog", so it can be a program name with args.
11497 set dummy $ac_prog; ac_word=$2
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11499 $as_echo_n "checking for $ac_word... " >&6; }
11500 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11501   $as_echo_n "(cached) " >&6
11502 else
11503   if test -n "$ac_ct_DUMPBIN"; then
11504   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11505 else
11506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507 for as_dir in $PATH
11508 do
11509   IFS=$as_save_IFS
11510   test -z "$as_dir" && as_dir=.
11511     for ac_exec_ext in '' $ac_executable_extensions; do
11512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11513     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11515     break 2
11516   fi
11517 done
11518   done
11519 IFS=$as_save_IFS
11520
11521 fi
11522 fi
11523 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11524 if test -n "$ac_ct_DUMPBIN"; then
11525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11526 $as_echo "$ac_ct_DUMPBIN" >&6; }
11527 else
11528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529 $as_echo "no" >&6; }
11530 fi
11531
11532
11533   test -n "$ac_ct_DUMPBIN" && break
11534 done
11535
11536   if test "x$ac_ct_DUMPBIN" = x; then
11537     DUMPBIN=":"
11538   else
11539     case $cross_compiling:$ac_tool_warned in
11540 yes:)
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11543 ac_tool_warned=yes ;;
11544 esac
11545     DUMPBIN=$ac_ct_DUMPBIN
11546   fi
11547 fi
11548
11549
11550   if test "$DUMPBIN" != ":"; then
11551     NM="$DUMPBIN"
11552   fi
11553 fi
11554 test -z "$NM" && NM=nm
11555
11556
11557
11558
11559
11560
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11562 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11563 if test "${lt_cv_nm_interface+set}" = set; then :
11564   $as_echo_n "(cached) " >&6
11565 else
11566   lt_cv_nm_interface="BSD nm"
11567   echo "int some_variable = 0;" > conftest.$ac_ext
11568   (eval echo "\"\$as_me:11568: $ac_compile\"" >&5)
11569   (eval "$ac_compile" 2>conftest.err)
11570   cat conftest.err >&5
11571   (eval echo "\"\$as_me:11571: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11572   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11573   cat conftest.err >&5
11574   (eval echo "\"\$as_me:11574: output\"" >&5)
11575   cat conftest.out >&5
11576   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11577     lt_cv_nm_interface="MS dumpbin"
11578   fi
11579   rm -f conftest*
11580 fi
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11582 $as_echo "$lt_cv_nm_interface" >&6; }
11583
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11585 $as_echo_n "checking whether ln -s works... " >&6; }
11586 LN_S=$as_ln_s
11587 if test "$LN_S" = "ln -s"; then
11588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11589 $as_echo "yes" >&6; }
11590 else
11591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11592 $as_echo "no, using $LN_S" >&6; }
11593 fi
11594
11595 # find the maximum length of command line arguments
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11597 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11598 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11599   $as_echo_n "(cached) " >&6
11600 else
11601     i=0
11602   teststring="ABCD"
11603
11604   case $build_os in
11605   msdosdjgpp*)
11606     # On DJGPP, this test can blow up pretty badly due to problems in libc
11607     # (any single argument exceeding 2000 bytes causes a buffer overrun
11608     # during glob expansion).  Even if it were fixed, the result of this
11609     # check would be larger than it should be.
11610     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11611     ;;
11612
11613   gnu*)
11614     # Under GNU Hurd, this test is not required because there is
11615     # no limit to the length of command line arguments.
11616     # Libtool will interpret -1 as no limit whatsoever
11617     lt_cv_sys_max_cmd_len=-1;
11618     ;;
11619
11620   cygwin* | mingw* | cegcc*)
11621     # On Win9x/ME, this test blows up -- it succeeds, but takes
11622     # about 5 minutes as the teststring grows exponentially.
11623     # Worse, since 9x/ME are not pre-emptively multitasking,
11624     # you end up with a "frozen" computer, even though with patience
11625     # the test eventually succeeds (with a max line length of 256k).
11626     # Instead, let's just punt: use the minimum linelength reported by
11627     # all of the supported platforms: 8192 (on NT/2K/XP).
11628     lt_cv_sys_max_cmd_len=8192;
11629     ;;
11630
11631   amigaos*)
11632     # On AmigaOS with pdksh, this test takes hours, literally.
11633     # So we just punt and use a minimum line length of 8192.
11634     lt_cv_sys_max_cmd_len=8192;
11635     ;;
11636
11637   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11638     # This has been around since 386BSD, at least.  Likely further.
11639     if test -x /sbin/sysctl; then
11640       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11641     elif test -x /usr/sbin/sysctl; then
11642       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11643     else
11644       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
11645     fi
11646     # And add a safety zone
11647     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11648     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11649     ;;
11650
11651   interix*)
11652     # We know the value 262144 and hardcode it with a safety zone (like BSD)
11653     lt_cv_sys_max_cmd_len=196608
11654     ;;
11655
11656   osf*)
11657     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11658     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11659     # nice to cause kernel panics so lets avoid the loop below.
11660     # First set a reasonable default.
11661     lt_cv_sys_max_cmd_len=16384
11662     #
11663     if test -x /sbin/sysconfig; then
11664       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11665         *1*) lt_cv_sys_max_cmd_len=-1 ;;
11666       esac
11667     fi
11668     ;;
11669   sco3.2v5*)
11670     lt_cv_sys_max_cmd_len=102400
11671     ;;
11672   sysv5* | sco5v6* | sysv4.2uw2*)
11673     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11674     if test -n "$kargmax"; then
11675       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
11676     else
11677       lt_cv_sys_max_cmd_len=32768
11678     fi
11679     ;;
11680   *)
11681     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11682     if test -n "$lt_cv_sys_max_cmd_len"; then
11683       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11684       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11685     else
11686       # Make teststring a little bigger before we do anything with it.
11687       # a 1K string should be a reasonable start.
11688       for i in 1 2 3 4 5 6 7 8 ; do
11689         teststring=$teststring$teststring
11690       done
11691       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11692       # If test is not a shell built-in, we'll probably end up computing a
11693       # maximum length that is only half of the actual maximum length, but
11694       # we can't tell.
11695       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
11696                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
11697               test $i != 17 # 1/2 MB should be enough
11698       do
11699         i=`expr $i + 1`
11700         teststring=$teststring$teststring
11701       done
11702       # Only check the string length outside the loop.
11703       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11704       teststring=
11705       # Add a significant safety factor because C++ compilers can tack on
11706       # massive amounts of additional arguments before passing them to the
11707       # linker.  It appears as though 1/2 is a usable value.
11708       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11709     fi
11710     ;;
11711   esac
11712
11713 fi
11714
11715 if test -n $lt_cv_sys_max_cmd_len ; then
11716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11717 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11718 else
11719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11720 $as_echo "none" >&6; }
11721 fi
11722 max_cmd_len=$lt_cv_sys_max_cmd_len
11723
11724
11725
11726
11727
11728
11729 : ${CP="cp -f"}
11730 : ${MV="mv -f"}
11731 : ${RM="rm -f"}
11732
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11734 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11735 # Try some XSI features
11736 xsi_shell=no
11737 ( _lt_dummy="a/b/c"
11738   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11739       = c,a/b,, \
11740     && eval 'test $(( 1 + 1 )) -eq 2 \
11741     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11742   && xsi_shell=yes
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11744 $as_echo "$xsi_shell" >&6; }
11745
11746
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11748 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11749 lt_shell_append=no
11750 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11751     >/dev/null 2>&1 \
11752   && lt_shell_append=yes
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11754 $as_echo "$lt_shell_append" >&6; }
11755
11756
11757 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11758   lt_unset=unset
11759 else
11760   lt_unset=false
11761 fi
11762
11763
11764
11765
11766
11767 # test EBCDIC or ASCII
11768 case `echo X|tr X '\101'` in
11769  A) # ASCII based system
11770     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11771   lt_SP2NL='tr \040 \012'
11772   lt_NL2SP='tr \015\012 \040\040'
11773   ;;
11774  *) # EBCDIC based system
11775   lt_SP2NL='tr \100 \n'
11776   lt_NL2SP='tr \r\n \100\100'
11777   ;;
11778 esac
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11789 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11790 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11791   $as_echo_n "(cached) " >&6
11792 else
11793   lt_cv_ld_reload_flag='-r'
11794 fi
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11796 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11797 reload_flag=$lt_cv_ld_reload_flag
11798 case $reload_flag in
11799 "" | " "*) ;;
11800 *) reload_flag=" $reload_flag" ;;
11801 esac
11802 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11803 case $host_os in
11804   darwin*)
11805     if test "$GCC" = yes; then
11806       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11807     else
11808       reload_cmds='$LD$reload_flag -o $output$reload_objs'
11809     fi
11810     ;;
11811 esac
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821 if test -n "$ac_tool_prefix"; then
11822   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11823 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825 $as_echo_n "checking for $ac_word... " >&6; }
11826 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11827   $as_echo_n "(cached) " >&6
11828 else
11829   if test -n "$OBJDUMP"; then
11830   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11831 else
11832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833 for as_dir in $PATH
11834 do
11835   IFS=$as_save_IFS
11836   test -z "$as_dir" && as_dir=.
11837     for ac_exec_ext in '' $ac_executable_extensions; do
11838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11839     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11841     break 2
11842   fi
11843 done
11844   done
11845 IFS=$as_save_IFS
11846
11847 fi
11848 fi
11849 OBJDUMP=$ac_cv_prog_OBJDUMP
11850 if test -n "$OBJDUMP"; then
11851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11852 $as_echo "$OBJDUMP" >&6; }
11853 else
11854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855 $as_echo "no" >&6; }
11856 fi
11857
11858
11859 fi
11860 if test -z "$ac_cv_prog_OBJDUMP"; then
11861   ac_ct_OBJDUMP=$OBJDUMP
11862   # Extract the first word of "objdump", so it can be a program name with args.
11863 set dummy objdump; ac_word=$2
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11865 $as_echo_n "checking for $ac_word... " >&6; }
11866 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11867   $as_echo_n "(cached) " >&6
11868 else
11869   if test -n "$ac_ct_OBJDUMP"; then
11870   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11871 else
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in $PATH
11874 do
11875   IFS=$as_save_IFS
11876   test -z "$as_dir" && as_dir=.
11877     for ac_exec_ext in '' $ac_executable_extensions; do
11878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11879     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881     break 2
11882   fi
11883 done
11884   done
11885 IFS=$as_save_IFS
11886
11887 fi
11888 fi
11889 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11890 if test -n "$ac_ct_OBJDUMP"; then
11891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11892 $as_echo "$ac_ct_OBJDUMP" >&6; }
11893 else
11894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11896 fi
11897
11898   if test "x$ac_ct_OBJDUMP" = x; then
11899     OBJDUMP="false"
11900   else
11901     case $cross_compiling:$ac_tool_warned in
11902 yes:)
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11905 ac_tool_warned=yes ;;
11906 esac
11907     OBJDUMP=$ac_ct_OBJDUMP
11908   fi
11909 else
11910   OBJDUMP="$ac_cv_prog_OBJDUMP"
11911 fi
11912
11913 test -z "$OBJDUMP" && OBJDUMP=objdump
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11924 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11925 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11926   $as_echo_n "(cached) " >&6
11927 else
11928   lt_cv_file_magic_cmd='$MAGIC_CMD'
11929 lt_cv_file_magic_test_file=
11930 lt_cv_deplibs_check_method='unknown'
11931 # Need to set the preceding variable on all platforms that support
11932 # interlibrary dependencies.
11933 # 'none' -- dependencies not supported.
11934 # `unknown' -- same as none, but documents that we really don't know.
11935 # 'pass_all' -- all dependencies passed with no checks.
11936 # 'test_compile' -- check by making test program.
11937 # 'file_magic [[regex]]' -- check by looking for files in library path
11938 # which responds to the $file_magic_cmd with a given extended regex.
11939 # If you have `file' or equivalent on your system and you're not sure
11940 # whether `pass_all' will *always* work, you probably want this one.
11941
11942 case $host_os in
11943 aix[4-9]*)
11944   lt_cv_deplibs_check_method=pass_all
11945   ;;
11946
11947 beos*)
11948   lt_cv_deplibs_check_method=pass_all
11949   ;;
11950
11951 bsdi[45]*)
11952   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11953   lt_cv_file_magic_cmd='/usr/bin/file -L'
11954   lt_cv_file_magic_test_file=/shlib/libc.so
11955   ;;
11956
11957 cygwin*)
11958   # func_win32_libid is a shell function defined in ltmain.sh
11959   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11960   lt_cv_file_magic_cmd='func_win32_libid'
11961   ;;
11962
11963 mingw* | pw32*)
11964   # Base MSYS/MinGW do not provide the 'file' command needed by
11965   # func_win32_libid shell function, so use a weaker test based on 'objdump',
11966   # unless we find 'file', for example because we are cross-compiling.
11967   if ( file / ) >/dev/null 2>&1; then
11968     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11969     lt_cv_file_magic_cmd='func_win32_libid'
11970   else
11971     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11972     lt_cv_file_magic_cmd='$OBJDUMP -f'
11973   fi
11974   ;;
11975
11976 cegcc)
11977   # use the weaker test based on 'objdump'. See mingw*.
11978   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11979   lt_cv_file_magic_cmd='$OBJDUMP -f'
11980   ;;
11981
11982 darwin* | rhapsody*)
11983   lt_cv_deplibs_check_method=pass_all
11984   ;;
11985
11986 freebsd* | dragonfly*)
11987   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11988     case $host_cpu in
11989     i*86 )
11990       # Not sure whether the presence of OpenBSD here was a mistake.
11991       # Let's accept both of them until this is cleared up.
11992       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11993       lt_cv_file_magic_cmd=/usr/bin/file
11994       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11995       ;;
11996     esac
11997   else
11998     lt_cv_deplibs_check_method=pass_all
11999   fi
12000   ;;
12001
12002 gnu*)
12003   lt_cv_deplibs_check_method=pass_all
12004   ;;
12005
12006 hpux10.20* | hpux11*)
12007   lt_cv_file_magic_cmd=/usr/bin/file
12008   case $host_cpu in
12009   ia64*)
12010     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12011     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12012     ;;
12013   hppa*64*)
12014     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]'
12015     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12016     ;;
12017   *)
12018     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12019     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12020     ;;
12021   esac
12022   ;;
12023
12024 interix[3-9]*)
12025   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12026   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12027   ;;
12028
12029 irix5* | irix6* | nonstopux*)
12030   case $LD in
12031   *-32|*"-32 ") libmagic=32-bit;;
12032   *-n32|*"-n32 ") libmagic=N32;;
12033   *-64|*"-64 ") libmagic=64-bit;;
12034   *) libmagic=never-match;;
12035   esac
12036   lt_cv_deplibs_check_method=pass_all
12037   ;;
12038
12039 # This must be Linux ELF.
12040 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12041   lt_cv_deplibs_check_method=pass_all
12042   ;;
12043
12044 netbsd*)
12045   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12046     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12047   else
12048     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12049   fi
12050   ;;
12051
12052 newos6*)
12053   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12054   lt_cv_file_magic_cmd=/usr/bin/file
12055   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12056   ;;
12057
12058 *nto* | *qnx*)
12059   lt_cv_deplibs_check_method=pass_all
12060   ;;
12061
12062 openbsd*)
12063   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12064     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12065   else
12066     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12067   fi
12068   ;;
12069
12070 osf3* | osf4* | osf5*)
12071   lt_cv_deplibs_check_method=pass_all
12072   ;;
12073
12074 rdos*)
12075   lt_cv_deplibs_check_method=pass_all
12076   ;;
12077
12078 solaris*)
12079   lt_cv_deplibs_check_method=pass_all
12080   ;;
12081
12082 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12083   lt_cv_deplibs_check_method=pass_all
12084   ;;
12085
12086 sysv4 | sysv4.3*)
12087   case $host_vendor in
12088   motorola)
12089     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]'
12090     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12091     ;;
12092   ncr)
12093     lt_cv_deplibs_check_method=pass_all
12094     ;;
12095   sequent)
12096     lt_cv_file_magic_cmd='/bin/file'
12097     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12098     ;;
12099   sni)
12100     lt_cv_file_magic_cmd='/bin/file'
12101     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12102     lt_cv_file_magic_test_file=/lib/libc.so
12103     ;;
12104   siemens)
12105     lt_cv_deplibs_check_method=pass_all
12106     ;;
12107   pc)
12108     lt_cv_deplibs_check_method=pass_all
12109     ;;
12110   esac
12111   ;;
12112
12113 tpf*)
12114   lt_cv_deplibs_check_method=pass_all
12115   ;;
12116 esac
12117
12118 fi
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12120 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12121 file_magic_cmd=$lt_cv_file_magic_cmd
12122 deplibs_check_method=$lt_cv_deplibs_check_method
12123 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136 if test -n "$ac_tool_prefix"; then
12137   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12138 set dummy ${ac_tool_prefix}ar; ac_word=$2
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140 $as_echo_n "checking for $ac_word... " >&6; }
12141 if test "${ac_cv_prog_AR+set}" = set; then :
12142   $as_echo_n "(cached) " >&6
12143 else
12144   if test -n "$AR"; then
12145   ac_cv_prog_AR="$AR" # Let the user override the test.
12146 else
12147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148 for as_dir in $PATH
12149 do
12150   IFS=$as_save_IFS
12151   test -z "$as_dir" && as_dir=.
12152     for ac_exec_ext in '' $ac_executable_extensions; do
12153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12154     ac_cv_prog_AR="${ac_tool_prefix}ar"
12155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12156     break 2
12157   fi
12158 done
12159   done
12160 IFS=$as_save_IFS
12161
12162 fi
12163 fi
12164 AR=$ac_cv_prog_AR
12165 if test -n "$AR"; then
12166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12167 $as_echo "$AR" >&6; }
12168 else
12169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170 $as_echo "no" >&6; }
12171 fi
12172
12173
12174 fi
12175 if test -z "$ac_cv_prog_AR"; then
12176   ac_ct_AR=$AR
12177   # Extract the first word of "ar", so it can be a program name with args.
12178 set dummy ar; ac_word=$2
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12180 $as_echo_n "checking for $ac_word... " >&6; }
12181 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12182   $as_echo_n "(cached) " >&6
12183 else
12184   if test -n "$ac_ct_AR"; then
12185   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12186 else
12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188 for as_dir in $PATH
12189 do
12190   IFS=$as_save_IFS
12191   test -z "$as_dir" && as_dir=.
12192     for ac_exec_ext in '' $ac_executable_extensions; do
12193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12194     ac_cv_prog_ac_ct_AR="ar"
12195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12196     break 2
12197   fi
12198 done
12199   done
12200 IFS=$as_save_IFS
12201
12202 fi
12203 fi
12204 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12205 if test -n "$ac_ct_AR"; then
12206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12207 $as_echo "$ac_ct_AR" >&6; }
12208 else
12209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12211 fi
12212
12213   if test "x$ac_ct_AR" = x; then
12214     AR="false"
12215   else
12216     case $cross_compiling:$ac_tool_warned in
12217 yes:)
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12220 ac_tool_warned=yes ;;
12221 esac
12222     AR=$ac_ct_AR
12223   fi
12224 else
12225   AR="$ac_cv_prog_AR"
12226 fi
12227
12228 test -z "$AR" && AR=ar
12229 test -z "$AR_FLAGS" && AR_FLAGS=cru
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241 if test -n "$ac_tool_prefix"; then
12242   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12243 set dummy ${ac_tool_prefix}strip; ac_word=$2
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12245 $as_echo_n "checking for $ac_word... " >&6; }
12246 if test "${ac_cv_prog_STRIP+set}" = set; then :
12247   $as_echo_n "(cached) " >&6
12248 else
12249   if test -n "$STRIP"; then
12250   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12251 else
12252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253 for as_dir in $PATH
12254 do
12255   IFS=$as_save_IFS
12256   test -z "$as_dir" && as_dir=.
12257     for ac_exec_ext in '' $ac_executable_extensions; do
12258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12259     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12261     break 2
12262   fi
12263 done
12264   done
12265 IFS=$as_save_IFS
12266
12267 fi
12268 fi
12269 STRIP=$ac_cv_prog_STRIP
12270 if test -n "$STRIP"; then
12271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12272 $as_echo "$STRIP" >&6; }
12273 else
12274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275 $as_echo "no" >&6; }
12276 fi
12277
12278
12279 fi
12280 if test -z "$ac_cv_prog_STRIP"; then
12281   ac_ct_STRIP=$STRIP
12282   # Extract the first word of "strip", so it can be a program name with args.
12283 set dummy strip; ac_word=$2
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12285 $as_echo_n "checking for $ac_word... " >&6; }
12286 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12287   $as_echo_n "(cached) " >&6
12288 else
12289   if test -n "$ac_ct_STRIP"; then
12290   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12291 else
12292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12293 for as_dir in $PATH
12294 do
12295   IFS=$as_save_IFS
12296   test -z "$as_dir" && as_dir=.
12297     for ac_exec_ext in '' $ac_executable_extensions; do
12298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12299     ac_cv_prog_ac_ct_STRIP="strip"
12300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12301     break 2
12302   fi
12303 done
12304   done
12305 IFS=$as_save_IFS
12306
12307 fi
12308 fi
12309 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12310 if test -n "$ac_ct_STRIP"; then
12311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12312 $as_echo "$ac_ct_STRIP" >&6; }
12313 else
12314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315 $as_echo "no" >&6; }
12316 fi
12317
12318   if test "x$ac_ct_STRIP" = x; then
12319     STRIP=":"
12320   else
12321     case $cross_compiling:$ac_tool_warned in
12322 yes:)
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12325 ac_tool_warned=yes ;;
12326 esac
12327     STRIP=$ac_ct_STRIP
12328   fi
12329 else
12330   STRIP="$ac_cv_prog_STRIP"
12331 fi
12332
12333 test -z "$STRIP" && STRIP=:
12334
12335
12336
12337
12338
12339
12340 if test -n "$ac_tool_prefix"; then
12341   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12342 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12344 $as_echo_n "checking for $ac_word... " >&6; }
12345 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12346   $as_echo_n "(cached) " >&6
12347 else
12348   if test -n "$RANLIB"; then
12349   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12350 else
12351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12352 for as_dir in $PATH
12353 do
12354   IFS=$as_save_IFS
12355   test -z "$as_dir" && as_dir=.
12356     for ac_exec_ext in '' $ac_executable_extensions; do
12357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12358     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12360     break 2
12361   fi
12362 done
12363   done
12364 IFS=$as_save_IFS
12365
12366 fi
12367 fi
12368 RANLIB=$ac_cv_prog_RANLIB
12369 if test -n "$RANLIB"; then
12370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12371 $as_echo "$RANLIB" >&6; }
12372 else
12373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374 $as_echo "no" >&6; }
12375 fi
12376
12377
12378 fi
12379 if test -z "$ac_cv_prog_RANLIB"; then
12380   ac_ct_RANLIB=$RANLIB
12381   # Extract the first word of "ranlib", so it can be a program name with args.
12382 set dummy ranlib; ac_word=$2
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12384 $as_echo_n "checking for $ac_word... " >&6; }
12385 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12386   $as_echo_n "(cached) " >&6
12387 else
12388   if test -n "$ac_ct_RANLIB"; then
12389   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12390 else
12391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12392 for as_dir in $PATH
12393 do
12394   IFS=$as_save_IFS
12395   test -z "$as_dir" && as_dir=.
12396     for ac_exec_ext in '' $ac_executable_extensions; do
12397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12398     ac_cv_prog_ac_ct_RANLIB="ranlib"
12399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12400     break 2
12401   fi
12402 done
12403   done
12404 IFS=$as_save_IFS
12405
12406 fi
12407 fi
12408 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12409 if test -n "$ac_ct_RANLIB"; then
12410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12411 $as_echo "$ac_ct_RANLIB" >&6; }
12412 else
12413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414 $as_echo "no" >&6; }
12415 fi
12416
12417   if test "x$ac_ct_RANLIB" = x; then
12418     RANLIB=":"
12419   else
12420     case $cross_compiling:$ac_tool_warned in
12421 yes:)
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12424 ac_tool_warned=yes ;;
12425 esac
12426     RANLIB=$ac_ct_RANLIB
12427   fi
12428 else
12429   RANLIB="$ac_cv_prog_RANLIB"
12430 fi
12431
12432 test -z "$RANLIB" && RANLIB=:
12433
12434
12435
12436
12437
12438
12439 # Determine commands to create old-style static archives.
12440 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12441 old_postinstall_cmds='chmod 644 $oldlib'
12442 old_postuninstall_cmds=
12443
12444 if test -n "$RANLIB"; then
12445   case $host_os in
12446   openbsd*)
12447     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12448     ;;
12449   *)
12450     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12451     ;;
12452   esac
12453   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12454 fi
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489 # If no C compiler was specified, use CC.
12490 LTCC=${LTCC-"$CC"}
12491
12492 # If no C compiler flags were specified, use CFLAGS.
12493 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12494
12495 # Allow CC to be a program name with arguments.
12496 compiler=$CC
12497
12498
12499 # Check for command to grab the raw symbol name followed by C symbol from nm.
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12501 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12502 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12503   $as_echo_n "(cached) " >&6
12504 else
12505
12506 # These are sane defaults that work on at least a few old systems.
12507 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12508
12509 # Character class describing NM global symbol codes.
12510 symcode='[BCDEGRST]'
12511
12512 # Regexp to match symbols that can be accessed directly from C.
12513 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12514
12515 # Define system-specific variables.
12516 case $host_os in
12517 aix*)
12518   symcode='[BCDT]'
12519   ;;
12520 cygwin* | mingw* | pw32* | cegcc*)
12521   symcode='[ABCDGISTW]'
12522   ;;
12523 hpux*)
12524   if test "$host_cpu" = ia64; then
12525     symcode='[ABCDEGRST]'
12526   fi
12527   ;;
12528 irix* | nonstopux*)
12529   symcode='[BCDEGRST]'
12530   ;;
12531 osf*)
12532   symcode='[BCDEGQRST]'
12533   ;;
12534 solaris*)
12535   symcode='[BDRT]'
12536   ;;
12537 sco3.2v5*)
12538   symcode='[DT]'
12539   ;;
12540 sysv4.2uw2*)
12541   symcode='[DT]'
12542   ;;
12543 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12544   symcode='[ABDT]'
12545   ;;
12546 sysv4)
12547   symcode='[DFNSTU]'
12548   ;;
12549 esac
12550
12551 # If we're using GNU nm, then use its standard symbol codes.
12552 case `$NM -V 2>&1` in
12553 *GNU* | *'with BFD'*)
12554   symcode='[ABCDGIRSTW]' ;;
12555 esac
12556
12557 # Transform an extracted symbol line into a proper C declaration.
12558 # Some systems (esp. on ia64) link data and code symbols differently,
12559 # so use this general approach.
12560 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12561
12562 # Transform an extracted symbol line into symbol name and symbol address
12563 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12564 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'"
12565
12566 # Handle CRLF in mingw tool chain
12567 opt_cr=
12568 case $build_os in
12569 mingw*)
12570   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12571   ;;
12572 esac
12573
12574 # Try without a prefix underscore, then with it.
12575 for ac_symprfx in "" "_"; do
12576
12577   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12578   symxfrm="\\1 $ac_symprfx\\2 \\2"
12579
12580   # Write the raw and C identifiers.
12581   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12582     # Fake it for dumpbin and say T for any non-static function
12583     # and D for any global variable.
12584     # Also find C++ and __fastcall symbols from MSVC++,
12585     # which start with @ or ?.
12586     lt_cv_sys_global_symbol_pipe="$AWK '"\
12587 "     {last_section=section; section=\$ 3};"\
12588 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12589 "     \$ 0!~/External *\|/{next};"\
12590 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12591 "     {if(hide[section]) next};"\
12592 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12593 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12594 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12595 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12596 "     ' prfx=^$ac_symprfx"
12597   else
12598     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12599   fi
12600
12601   # Check to see that the pipe works correctly.
12602   pipe_works=no
12603
12604   rm -f conftest*
12605   cat > conftest.$ac_ext <<_LT_EOF
12606 #ifdef __cplusplus
12607 extern "C" {
12608 #endif
12609 char nm_test_var;
12610 void nm_test_func(void);
12611 void nm_test_func(void){}
12612 #ifdef __cplusplus
12613 }
12614 #endif
12615 int main(){nm_test_var='a';nm_test_func();return(0);}
12616 _LT_EOF
12617
12618   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12619   (eval $ac_compile) 2>&5
12620   ac_status=$?
12621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12622   test $ac_status = 0; }; then
12623     # Now try to grab the symbols.
12624     nlist=conftest.nm
12625     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
12626   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12627   ac_status=$?
12628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12629   test $ac_status = 0; } && test -s "$nlist"; then
12630       # Try sorting and uniquifying the output.
12631       if sort "$nlist" | uniq > "$nlist"T; then
12632         mv -f "$nlist"T "$nlist"
12633       else
12634         rm -f "$nlist"T
12635       fi
12636
12637       # Make sure that we snagged all the symbols we need.
12638       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12639         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12640           cat <<_LT_EOF > conftest.$ac_ext
12641 #ifdef __cplusplus
12642 extern "C" {
12643 #endif
12644
12645 _LT_EOF
12646           # Now generate the symbol file.
12647           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12648
12649           cat <<_LT_EOF >> conftest.$ac_ext
12650
12651 /* The mapping between symbol names and symbols.  */
12652 const struct {
12653   const char *name;
12654   void       *address;
12655 }
12656 lt__PROGRAM__LTX_preloaded_symbols[] =
12657 {
12658   { "@PROGRAM@", (void *) 0 },
12659 _LT_EOF
12660           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12661           cat <<\_LT_EOF >> conftest.$ac_ext
12662   {0, (void *) 0}
12663 };
12664
12665 /* This works around a problem in FreeBSD linker */
12666 #ifdef FREEBSD_WORKAROUND
12667 static const void *lt_preloaded_setup() {
12668   return lt__PROGRAM__LTX_preloaded_symbols;
12669 }
12670 #endif
12671
12672 #ifdef __cplusplus
12673 }
12674 #endif
12675 _LT_EOF
12676           # Now try linking the two files.
12677           mv conftest.$ac_objext conftstm.$ac_objext
12678           lt_save_LIBS="$LIBS"
12679           lt_save_CFLAGS="$CFLAGS"
12680           LIBS="conftstm.$ac_objext"
12681           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12682           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12683   (eval $ac_link) 2>&5
12684   ac_status=$?
12685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12686   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12687             pipe_works=yes
12688           fi
12689           LIBS="$lt_save_LIBS"
12690           CFLAGS="$lt_save_CFLAGS"
12691         else
12692           echo "cannot find nm_test_func in $nlist" >&5
12693         fi
12694       else
12695         echo "cannot find nm_test_var in $nlist" >&5
12696       fi
12697     else
12698       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12699     fi
12700   else
12701     echo "$progname: failed program was:" >&5
12702     cat conftest.$ac_ext >&5
12703   fi
12704   rm -rf conftest* conftst*
12705
12706   # Do not use the global_symbol_pipe unless it works.
12707   if test "$pipe_works" = yes; then
12708     break
12709   else
12710     lt_cv_sys_global_symbol_pipe=
12711   fi
12712 done
12713
12714 fi
12715
12716 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12717   lt_cv_sys_global_symbol_to_cdecl=
12718 fi
12719 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12721 $as_echo "failed" >&6; }
12722 else
12723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12724 $as_echo "ok" >&6; }
12725 fi
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748 # Check whether --enable-libtool-lock was given.
12749 if test "${enable_libtool_lock+set}" = set; then :
12750   enableval=$enable_libtool_lock;
12751 fi
12752
12753 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12754
12755 # Some flags need to be propagated to the compiler or linker for good
12756 # libtool support.
12757 case $host in
12758 ia64-*-hpux*)
12759   # Find out which ABI we are using.
12760   echo 'int i;' > conftest.$ac_ext
12761   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12762   (eval $ac_compile) 2>&5
12763   ac_status=$?
12764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12765   test $ac_status = 0; }; then
12766     case `/usr/bin/file conftest.$ac_objext` in
12767       *ELF-32*)
12768         HPUX_IA64_MODE="32"
12769         ;;
12770       *ELF-64*)
12771         HPUX_IA64_MODE="64"
12772         ;;
12773     esac
12774   fi
12775   rm -rf conftest*
12776   ;;
12777 *-*-irix6*)
12778   # Find out which ABI we are using.
12779   echo '#line 12779 "configure"' > conftest.$ac_ext
12780   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12781   (eval $ac_compile) 2>&5
12782   ac_status=$?
12783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12784   test $ac_status = 0; }; then
12785     if test "$lt_cv_prog_gnu_ld" = yes; then
12786       case `/usr/bin/file conftest.$ac_objext` in
12787         *32-bit*)
12788           LD="${LD-ld} -melf32bsmip"
12789           ;;
12790         *N32*)
12791           LD="${LD-ld} -melf32bmipn32"
12792           ;;
12793         *64-bit*)
12794           LD="${LD-ld} -melf64bmip"
12795         ;;
12796       esac
12797     else
12798       case `/usr/bin/file conftest.$ac_objext` in
12799         *32-bit*)
12800           LD="${LD-ld} -32"
12801           ;;
12802         *N32*)
12803           LD="${LD-ld} -n32"
12804           ;;
12805         *64-bit*)
12806           LD="${LD-ld} -64"
12807           ;;
12808       esac
12809     fi
12810   fi
12811   rm -rf conftest*
12812   ;;
12813
12814 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12815 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12816   # Find out which ABI we are using.
12817   echo 'int i;' > conftest.$ac_ext
12818   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12819   (eval $ac_compile) 2>&5
12820   ac_status=$?
12821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12822   test $ac_status = 0; }; then
12823     case `/usr/bin/file conftest.o` in
12824       *32-bit*)
12825         case $host in
12826           x86_64-*kfreebsd*-gnu)
12827             LD="${LD-ld} -m elf_i386_fbsd"
12828             ;;
12829           x86_64-*linux*)
12830             LD="${LD-ld} -m elf_i386"
12831             ;;
12832           ppc64-*linux*|powerpc64-*linux*)
12833             LD="${LD-ld} -m elf32ppclinux"
12834             ;;
12835           s390x-*linux*)
12836             LD="${LD-ld} -m elf_s390"
12837             ;;
12838           sparc64-*linux*)
12839             LD="${LD-ld} -m elf32_sparc"
12840             ;;
12841         esac
12842         ;;
12843       *64-bit*)
12844         case $host in
12845           x86_64-*kfreebsd*-gnu)
12846             LD="${LD-ld} -m elf_x86_64_fbsd"
12847             ;;
12848           x86_64-*linux*)
12849             LD="${LD-ld} -m elf_x86_64"
12850             ;;
12851           ppc*-*linux*|powerpc*-*linux*)
12852             LD="${LD-ld} -m elf64ppc"
12853             ;;
12854           s390*-*linux*|s390*-*tpf*)
12855             LD="${LD-ld} -m elf64_s390"
12856             ;;
12857           sparc*-*linux*)
12858             LD="${LD-ld} -m elf64_sparc"
12859             ;;
12860         esac
12861         ;;
12862     esac
12863   fi
12864   rm -rf conftest*
12865   ;;
12866
12867 *-*-sco3.2v5*)
12868   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12869   SAVE_CFLAGS="$CFLAGS"
12870   CFLAGS="$CFLAGS -belf"
12871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12872 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12873 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12874   $as_echo_n "(cached) " >&6
12875 else
12876   ac_ext=c
12877 ac_cpp='$CPP $CPPFLAGS'
12878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12881
12882      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h.  */
12884
12885 int
12886 main ()
12887 {
12888
12889   ;
12890   return 0;
12891 }
12892 _ACEOF
12893 if ac_fn_c_try_link "$LINENO"; then :
12894   lt_cv_cc_needs_belf=yes
12895 else
12896   lt_cv_cc_needs_belf=no
12897 fi
12898 rm -f core conftest.err conftest.$ac_objext \
12899     conftest$ac_exeext conftest.$ac_ext
12900      ac_ext=c
12901 ac_cpp='$CPP $CPPFLAGS'
12902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12905
12906 fi
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12908 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12909   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12910     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12911     CFLAGS="$SAVE_CFLAGS"
12912   fi
12913   ;;
12914 sparc*-*solaris*)
12915   # Find out which ABI we are using.
12916   echo 'int i;' > conftest.$ac_ext
12917   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12918   (eval $ac_compile) 2>&5
12919   ac_status=$?
12920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12921   test $ac_status = 0; }; then
12922     case `/usr/bin/file conftest.o` in
12923     *64-bit*)
12924       case $lt_cv_prog_gnu_ld in
12925       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12926       *)
12927         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12928           LD="${LD-ld} -64"
12929         fi
12930         ;;
12931       esac
12932       ;;
12933     esac
12934   fi
12935   rm -rf conftest*
12936   ;;
12937 esac
12938
12939 need_locks="$enable_libtool_lock"
12940
12941
12942   case $host_os in
12943     rhapsody* | darwin*)
12944     if test -n "$ac_tool_prefix"; then
12945   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12946 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12948 $as_echo_n "checking for $ac_word... " >&6; }
12949 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12950   $as_echo_n "(cached) " >&6
12951 else
12952   if test -n "$DSYMUTIL"; then
12953   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12954 else
12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956 for as_dir in $PATH
12957 do
12958   IFS=$as_save_IFS
12959   test -z "$as_dir" && as_dir=.
12960     for ac_exec_ext in '' $ac_executable_extensions; do
12961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12962     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12964     break 2
12965   fi
12966 done
12967   done
12968 IFS=$as_save_IFS
12969
12970 fi
12971 fi
12972 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12973 if test -n "$DSYMUTIL"; then
12974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12975 $as_echo "$DSYMUTIL" >&6; }
12976 else
12977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12979 fi
12980
12981
12982 fi
12983 if test -z "$ac_cv_prog_DSYMUTIL"; then
12984   ac_ct_DSYMUTIL=$DSYMUTIL
12985   # Extract the first word of "dsymutil", so it can be a program name with args.
12986 set dummy dsymutil; ac_word=$2
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988 $as_echo_n "checking for $ac_word... " >&6; }
12989 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
12990   $as_echo_n "(cached) " >&6
12991 else
12992   if test -n "$ac_ct_DSYMUTIL"; then
12993   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12994 else
12995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996 for as_dir in $PATH
12997 do
12998   IFS=$as_save_IFS
12999   test -z "$as_dir" && as_dir=.
13000     for ac_exec_ext in '' $ac_executable_extensions; do
13001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13002     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13004     break 2
13005   fi
13006 done
13007   done
13008 IFS=$as_save_IFS
13009
13010 fi
13011 fi
13012 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13013 if test -n "$ac_ct_DSYMUTIL"; then
13014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13015 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13016 else
13017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018 $as_echo "no" >&6; }
13019 fi
13020
13021   if test "x$ac_ct_DSYMUTIL" = x; then
13022     DSYMUTIL=":"
13023   else
13024     case $cross_compiling:$ac_tool_warned in
13025 yes:)
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13028 ac_tool_warned=yes ;;
13029 esac
13030     DSYMUTIL=$ac_ct_DSYMUTIL
13031   fi
13032 else
13033   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13034 fi
13035
13036     if test -n "$ac_tool_prefix"; then
13037   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13038 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040 $as_echo_n "checking for $ac_word... " >&6; }
13041 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13042   $as_echo_n "(cached) " >&6
13043 else
13044   if test -n "$NMEDIT"; then
13045   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13046 else
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13049 do
13050   IFS=$as_save_IFS
13051   test -z "$as_dir" && as_dir=.
13052     for ac_exec_ext in '' $ac_executable_extensions; do
13053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13054     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056     break 2
13057   fi
13058 done
13059   done
13060 IFS=$as_save_IFS
13061
13062 fi
13063 fi
13064 NMEDIT=$ac_cv_prog_NMEDIT
13065 if test -n "$NMEDIT"; then
13066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13067 $as_echo "$NMEDIT" >&6; }
13068 else
13069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070 $as_echo "no" >&6; }
13071 fi
13072
13073
13074 fi
13075 if test -z "$ac_cv_prog_NMEDIT"; then
13076   ac_ct_NMEDIT=$NMEDIT
13077   # Extract the first word of "nmedit", so it can be a program name with args.
13078 set dummy nmedit; ac_word=$2
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13080 $as_echo_n "checking for $ac_word... " >&6; }
13081 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13082   $as_echo_n "(cached) " >&6
13083 else
13084   if test -n "$ac_ct_NMEDIT"; then
13085   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13086 else
13087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088 for as_dir in $PATH
13089 do
13090   IFS=$as_save_IFS
13091   test -z "$as_dir" && as_dir=.
13092     for ac_exec_ext in '' $ac_executable_extensions; do
13093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13094     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13096     break 2
13097   fi
13098 done
13099   done
13100 IFS=$as_save_IFS
13101
13102 fi
13103 fi
13104 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13105 if test -n "$ac_ct_NMEDIT"; then
13106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13107 $as_echo "$ac_ct_NMEDIT" >&6; }
13108 else
13109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13111 fi
13112
13113   if test "x$ac_ct_NMEDIT" = x; then
13114     NMEDIT=":"
13115   else
13116     case $cross_compiling:$ac_tool_warned in
13117 yes:)
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13120 ac_tool_warned=yes ;;
13121 esac
13122     NMEDIT=$ac_ct_NMEDIT
13123   fi
13124 else
13125   NMEDIT="$ac_cv_prog_NMEDIT"
13126 fi
13127
13128     if test -n "$ac_tool_prefix"; then
13129   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13130 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13132 $as_echo_n "checking for $ac_word... " >&6; }
13133 if test "${ac_cv_prog_LIPO+set}" = set; then :
13134   $as_echo_n "(cached) " >&6
13135 else
13136   if test -n "$LIPO"; then
13137   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13138 else
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140 for as_dir in $PATH
13141 do
13142   IFS=$as_save_IFS
13143   test -z "$as_dir" && as_dir=.
13144     for ac_exec_ext in '' $ac_executable_extensions; do
13145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13146     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13148     break 2
13149   fi
13150 done
13151   done
13152 IFS=$as_save_IFS
13153
13154 fi
13155 fi
13156 LIPO=$ac_cv_prog_LIPO
13157 if test -n "$LIPO"; then
13158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13159 $as_echo "$LIPO" >&6; }
13160 else
13161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162 $as_echo "no" >&6; }
13163 fi
13164
13165
13166 fi
13167 if test -z "$ac_cv_prog_LIPO"; then
13168   ac_ct_LIPO=$LIPO
13169   # Extract the first word of "lipo", so it can be a program name with args.
13170 set dummy lipo; ac_word=$2
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13172 $as_echo_n "checking for $ac_word... " >&6; }
13173 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13174   $as_echo_n "(cached) " >&6
13175 else
13176   if test -n "$ac_ct_LIPO"; then
13177   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13178 else
13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180 for as_dir in $PATH
13181 do
13182   IFS=$as_save_IFS
13183   test -z "$as_dir" && as_dir=.
13184     for ac_exec_ext in '' $ac_executable_extensions; do
13185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13186     ac_cv_prog_ac_ct_LIPO="lipo"
13187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13188     break 2
13189   fi
13190 done
13191   done
13192 IFS=$as_save_IFS
13193
13194 fi
13195 fi
13196 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13197 if test -n "$ac_ct_LIPO"; then
13198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13199 $as_echo "$ac_ct_LIPO" >&6; }
13200 else
13201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202 $as_echo "no" >&6; }
13203 fi
13204
13205   if test "x$ac_ct_LIPO" = x; then
13206     LIPO=":"
13207   else
13208     case $cross_compiling:$ac_tool_warned in
13209 yes:)
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13212 ac_tool_warned=yes ;;
13213 esac
13214     LIPO=$ac_ct_LIPO
13215   fi
13216 else
13217   LIPO="$ac_cv_prog_LIPO"
13218 fi
13219
13220     if test -n "$ac_tool_prefix"; then
13221   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13222 set dummy ${ac_tool_prefix}otool; ac_word=$2
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13224 $as_echo_n "checking for $ac_word... " >&6; }
13225 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13226   $as_echo_n "(cached) " >&6
13227 else
13228   if test -n "$OTOOL"; then
13229   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13230 else
13231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13232 for as_dir in $PATH
13233 do
13234   IFS=$as_save_IFS
13235   test -z "$as_dir" && as_dir=.
13236     for ac_exec_ext in '' $ac_executable_extensions; do
13237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13238     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13240     break 2
13241   fi
13242 done
13243   done
13244 IFS=$as_save_IFS
13245
13246 fi
13247 fi
13248 OTOOL=$ac_cv_prog_OTOOL
13249 if test -n "$OTOOL"; then
13250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13251 $as_echo "$OTOOL" >&6; }
13252 else
13253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13254 $as_echo "no" >&6; }
13255 fi
13256
13257
13258 fi
13259 if test -z "$ac_cv_prog_OTOOL"; then
13260   ac_ct_OTOOL=$OTOOL
13261   # Extract the first word of "otool", so it can be a program name with args.
13262 set dummy otool; ac_word=$2
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13264 $as_echo_n "checking for $ac_word... " >&6; }
13265 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13266   $as_echo_n "(cached) " >&6
13267 else
13268   if test -n "$ac_ct_OTOOL"; then
13269   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13270 else
13271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272 for as_dir in $PATH
13273 do
13274   IFS=$as_save_IFS
13275   test -z "$as_dir" && as_dir=.
13276     for ac_exec_ext in '' $ac_executable_extensions; do
13277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13278     ac_cv_prog_ac_ct_OTOOL="otool"
13279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13280     break 2
13281   fi
13282 done
13283   done
13284 IFS=$as_save_IFS
13285
13286 fi
13287 fi
13288 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13289 if test -n "$ac_ct_OTOOL"; then
13290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13291 $as_echo "$ac_ct_OTOOL" >&6; }
13292 else
13293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294 $as_echo "no" >&6; }
13295 fi
13296
13297   if test "x$ac_ct_OTOOL" = x; then
13298     OTOOL=":"
13299   else
13300     case $cross_compiling:$ac_tool_warned in
13301 yes:)
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13304 ac_tool_warned=yes ;;
13305 esac
13306     OTOOL=$ac_ct_OTOOL
13307   fi
13308 else
13309   OTOOL="$ac_cv_prog_OTOOL"
13310 fi
13311
13312     if test -n "$ac_tool_prefix"; then
13313   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13314 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13316 $as_echo_n "checking for $ac_word... " >&6; }
13317 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13318   $as_echo_n "(cached) " >&6
13319 else
13320   if test -n "$OTOOL64"; then
13321   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13322 else
13323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324 for as_dir in $PATH
13325 do
13326   IFS=$as_save_IFS
13327   test -z "$as_dir" && as_dir=.
13328     for ac_exec_ext in '' $ac_executable_extensions; do
13329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13330     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13332     break 2
13333   fi
13334 done
13335   done
13336 IFS=$as_save_IFS
13337
13338 fi
13339 fi
13340 OTOOL64=$ac_cv_prog_OTOOL64
13341 if test -n "$OTOOL64"; then
13342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13343 $as_echo "$OTOOL64" >&6; }
13344 else
13345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13347 fi
13348
13349
13350 fi
13351 if test -z "$ac_cv_prog_OTOOL64"; then
13352   ac_ct_OTOOL64=$OTOOL64
13353   # Extract the first word of "otool64", so it can be a program name with args.
13354 set dummy otool64; ac_word=$2
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13356 $as_echo_n "checking for $ac_word... " >&6; }
13357 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13358   $as_echo_n "(cached) " >&6
13359 else
13360   if test -n "$ac_ct_OTOOL64"; then
13361   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13362 else
13363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13364 for as_dir in $PATH
13365 do
13366   IFS=$as_save_IFS
13367   test -z "$as_dir" && as_dir=.
13368     for ac_exec_ext in '' $ac_executable_extensions; do
13369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13370     ac_cv_prog_ac_ct_OTOOL64="otool64"
13371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13372     break 2
13373   fi
13374 done
13375   done
13376 IFS=$as_save_IFS
13377
13378 fi
13379 fi
13380 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13381 if test -n "$ac_ct_OTOOL64"; then
13382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13383 $as_echo "$ac_ct_OTOOL64" >&6; }
13384 else
13385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386 $as_echo "no" >&6; }
13387 fi
13388
13389   if test "x$ac_ct_OTOOL64" = x; then
13390     OTOOL64=":"
13391   else
13392     case $cross_compiling:$ac_tool_warned in
13393 yes:)
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13396 ac_tool_warned=yes ;;
13397 esac
13398     OTOOL64=$ac_ct_OTOOL64
13399   fi
13400 else
13401   OTOOL64="$ac_cv_prog_OTOOL64"
13402 fi
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13431 $as_echo_n "checking for -single_module linker flag... " >&6; }
13432 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13433   $as_echo_n "(cached) " >&6
13434 else
13435   lt_cv_apple_cc_single_mod=no
13436       if test -z "${LT_MULTI_MODULE}"; then
13437         # By default we will add the -single_module flag. You can override
13438         # by either setting the environment variable LT_MULTI_MODULE
13439         # non-empty at configure time, or by adding -multi_module to the
13440         # link flags.
13441         rm -rf libconftest.dylib*
13442         echo "int foo(void){return 1;}" > conftest.c
13443         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13444 -dynamiclib -Wl,-single_module conftest.c" >&5
13445         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13446           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13447         _lt_result=$?
13448         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13449           lt_cv_apple_cc_single_mod=yes
13450         else
13451           cat conftest.err >&5
13452         fi
13453         rm -rf libconftest.dylib*
13454         rm -f conftest.*
13455       fi
13456 fi
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13458 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13460 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13461 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13462   $as_echo_n "(cached) " >&6
13463 else
13464   lt_cv_ld_exported_symbols_list=no
13465       save_LDFLAGS=$LDFLAGS
13466       echo "_main" > conftest.sym
13467       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13468       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h.  */
13470
13471 int
13472 main ()
13473 {
13474
13475   ;
13476   return 0;
13477 }
13478 _ACEOF
13479 if ac_fn_c_try_link "$LINENO"; then :
13480   lt_cv_ld_exported_symbols_list=yes
13481 else
13482   lt_cv_ld_exported_symbols_list=no
13483 fi
13484 rm -f core conftest.err conftest.$ac_objext \
13485     conftest$ac_exeext conftest.$ac_ext
13486         LDFLAGS="$save_LDFLAGS"
13487
13488 fi
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13490 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13491     case $host_os in
13492     rhapsody* | darwin1.[012])
13493       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13494     darwin1.*)
13495       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13496     darwin*) # darwin 5.x on
13497       # if running on 10.5 or later, the deployment target defaults
13498       # to the OS version, if on x86, and 10.4, the deployment
13499       # target defaults to 10.4. Don't you love it?
13500       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13501         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13502           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13503         10.[012]*)
13504           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13505         10.*)
13506           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13507       esac
13508     ;;
13509   esac
13510     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13511       _lt_dar_single_mod='$single_module'
13512     fi
13513     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13514       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13515     else
13516       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13517     fi
13518     if test "$DSYMUTIL" != ":"; then
13519       _lt_dsymutil='~$DSYMUTIL $lib || :'
13520     else
13521       _lt_dsymutil=
13522     fi
13523     ;;
13524   esac
13525
13526 for ac_header in dlfcn.h
13527 do :
13528   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13529 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13530   cat >>confdefs.h <<_ACEOF
13531 #define HAVE_DLFCN_H 1
13532 _ACEOF
13533
13534 fi
13535 done
13536
13537
13538
13539 ac_ext=cpp
13540 ac_cpp='$CXXCPP $CPPFLAGS'
13541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13544 if test -z "$CXX"; then
13545   if test -n "$CCC"; then
13546     CXX=$CCC
13547   else
13548     if test -n "$ac_tool_prefix"; then
13549   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13550   do
13551     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13552 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13554 $as_echo_n "checking for $ac_word... " >&6; }
13555 if test "${ac_cv_prog_CXX+set}" = set; then :
13556   $as_echo_n "(cached) " >&6
13557 else
13558   if test -n "$CXX"; then
13559   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13560 else
13561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13562 for as_dir in $PATH
13563 do
13564   IFS=$as_save_IFS
13565   test -z "$as_dir" && as_dir=.
13566     for ac_exec_ext in '' $ac_executable_extensions; do
13567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13568     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13570     break 2
13571   fi
13572 done
13573   done
13574 IFS=$as_save_IFS
13575
13576 fi
13577 fi
13578 CXX=$ac_cv_prog_CXX
13579 if test -n "$CXX"; then
13580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13581 $as_echo "$CXX" >&6; }
13582 else
13583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13584 $as_echo "no" >&6; }
13585 fi
13586
13587
13588     test -n "$CXX" && break
13589   done
13590 fi
13591 if test -z "$CXX"; then
13592   ac_ct_CXX=$CXX
13593   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13594 do
13595   # Extract the first word of "$ac_prog", so it can be a program name with args.
13596 set dummy $ac_prog; ac_word=$2
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13598 $as_echo_n "checking for $ac_word... " >&6; }
13599 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13600   $as_echo_n "(cached) " >&6
13601 else
13602   if test -n "$ac_ct_CXX"; then
13603   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13604 else
13605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13606 for as_dir in $PATH
13607 do
13608   IFS=$as_save_IFS
13609   test -z "$as_dir" && as_dir=.
13610     for ac_exec_ext in '' $ac_executable_extensions; do
13611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13612     ac_cv_prog_ac_ct_CXX="$ac_prog"
13613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13614     break 2
13615   fi
13616 done
13617   done
13618 IFS=$as_save_IFS
13619
13620 fi
13621 fi
13622 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13623 if test -n "$ac_ct_CXX"; then
13624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13625 $as_echo "$ac_ct_CXX" >&6; }
13626 else
13627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13628 $as_echo "no" >&6; }
13629 fi
13630
13631
13632   test -n "$ac_ct_CXX" && break
13633 done
13634
13635   if test "x$ac_ct_CXX" = x; then
13636     CXX="g++"
13637   else
13638     case $cross_compiling:$ac_tool_warned in
13639 yes:)
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13642 ac_tool_warned=yes ;;
13643 esac
13644     CXX=$ac_ct_CXX
13645   fi
13646 fi
13647
13648   fi
13649 fi
13650 # Provide some information about the compiler.
13651 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13652 set X $ac_compile
13653 ac_compiler=$2
13654 for ac_option in --version -v -V -qversion; do
13655   { { ac_try="$ac_compiler $ac_option >&5"
13656 case "(($ac_try" in
13657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658   *) ac_try_echo=$ac_try;;
13659 esac
13660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13661 $as_echo "$ac_try_echo"; } >&5
13662   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13663   ac_status=$?
13664   if test -s conftest.err; then
13665     sed '10a\
13666 ... rest of stderr output deleted ...
13667          10q' conftest.err >conftest.er1
13668     cat conftest.er1 >&5
13669     rm -f conftest.er1 conftest.err
13670   fi
13671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13672   test $ac_status = 0; }
13673 done
13674
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13676 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13677 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13678   $as_echo_n "(cached) " >&6
13679 else
13680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h.  */
13682
13683 int
13684 main ()
13685 {
13686 #ifndef __GNUC__
13687        choke me
13688 #endif
13689
13690   ;
13691   return 0;
13692 }
13693 _ACEOF
13694 if ac_fn_cxx_try_compile "$LINENO"; then :
13695   ac_compiler_gnu=yes
13696 else
13697   ac_compiler_gnu=no
13698 fi
13699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13700 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13701
13702 fi
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13704 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13705 if test $ac_compiler_gnu = yes; then
13706   GXX=yes
13707 else
13708   GXX=
13709 fi
13710 ac_test_CXXFLAGS=${CXXFLAGS+set}
13711 ac_save_CXXFLAGS=$CXXFLAGS
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13713 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13714 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13715   $as_echo_n "(cached) " >&6
13716 else
13717   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13718    ac_cxx_werror_flag=yes
13719    ac_cv_prog_cxx_g=no
13720    CXXFLAGS="-g"
13721    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h.  */
13723
13724 int
13725 main ()
13726 {
13727
13728   ;
13729   return 0;
13730 }
13731 _ACEOF
13732 if ac_fn_cxx_try_compile "$LINENO"; then :
13733   ac_cv_prog_cxx_g=yes
13734 else
13735   CXXFLAGS=""
13736       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737 /* end confdefs.h.  */
13738
13739 int
13740 main ()
13741 {
13742
13743   ;
13744   return 0;
13745 }
13746 _ACEOF
13747 if ac_fn_cxx_try_compile "$LINENO"; then :
13748
13749 else
13750   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13751          CXXFLAGS="-g"
13752          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h.  */
13754
13755 int
13756 main ()
13757 {
13758
13759   ;
13760   return 0;
13761 }
13762 _ACEOF
13763 if ac_fn_cxx_try_compile "$LINENO"; then :
13764   ac_cv_prog_cxx_g=yes
13765 fi
13766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13767 fi
13768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13769 fi
13770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13771    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13772 fi
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13774 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13775 if test "$ac_test_CXXFLAGS" = set; then
13776   CXXFLAGS=$ac_save_CXXFLAGS
13777 elif test $ac_cv_prog_cxx_g = yes; then
13778   if test "$GXX" = yes; then
13779     CXXFLAGS="-g -O2"
13780   else
13781     CXXFLAGS="-g"
13782   fi
13783 else
13784   if test "$GXX" = yes; then
13785     CXXFLAGS="-O2"
13786   else
13787     CXXFLAGS=
13788   fi
13789 fi
13790 ac_ext=c
13791 ac_cpp='$CPP $CPPFLAGS'
13792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13795
13796 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13797     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13798     (test "X$CXX" != "Xg++"))) ; then
13799   ac_ext=cpp
13800 ac_cpp='$CXXCPP $CPPFLAGS'
13801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13805 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13806 if test -z "$CXXCPP"; then
13807   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13808   $as_echo_n "(cached) " >&6
13809 else
13810       # Double quotes because CXXCPP needs to be expanded
13811     for CXXCPP in "$CXX -E" "/lib/cpp"
13812     do
13813       ac_preproc_ok=false
13814 for ac_cxx_preproc_warn_flag in '' yes
13815 do
13816   # Use a header file that comes with gcc, so configuring glibc
13817   # with a fresh cross-compiler works.
13818   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13819   # <limits.h> exists even on freestanding compilers.
13820   # On the NeXT, cc -E runs the code through the compiler's parser,
13821   # not just through cpp. "Syntax error" is here to catch this case.
13822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13823 /* end confdefs.h.  */
13824 #ifdef __STDC__
13825 # include <limits.h>
13826 #else
13827 # include <assert.h>
13828 #endif
13829                      Syntax error
13830 _ACEOF
13831 if ac_fn_cxx_try_cpp "$LINENO"; then :
13832
13833 else
13834   # Broken: fails on valid input.
13835 continue
13836 fi
13837 rm -f conftest.err conftest.$ac_ext
13838
13839   # OK, works on sane cases.  Now check whether nonexistent headers
13840   # can be detected and how.
13841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h.  */
13843 #include <ac_nonexistent.h>
13844 _ACEOF
13845 if ac_fn_cxx_try_cpp "$LINENO"; then :
13846   # Broken: success on invalid input.
13847 continue
13848 else
13849   # Passes both tests.
13850 ac_preproc_ok=:
13851 break
13852 fi
13853 rm -f conftest.err conftest.$ac_ext
13854
13855 done
13856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13857 rm -f conftest.err conftest.$ac_ext
13858 if $ac_preproc_ok; then :
13859   break
13860 fi
13861
13862     done
13863     ac_cv_prog_CXXCPP=$CXXCPP
13864
13865 fi
13866   CXXCPP=$ac_cv_prog_CXXCPP
13867 else
13868   ac_cv_prog_CXXCPP=$CXXCPP
13869 fi
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13871 $as_echo "$CXXCPP" >&6; }
13872 ac_preproc_ok=false
13873 for ac_cxx_preproc_warn_flag in '' yes
13874 do
13875   # Use a header file that comes with gcc, so configuring glibc
13876   # with a fresh cross-compiler works.
13877   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13878   # <limits.h> exists even on freestanding compilers.
13879   # On the NeXT, cc -E runs the code through the compiler's parser,
13880   # not just through cpp. "Syntax error" is here to catch this case.
13881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h.  */
13883 #ifdef __STDC__
13884 # include <limits.h>
13885 #else
13886 # include <assert.h>
13887 #endif
13888                      Syntax error
13889 _ACEOF
13890 if ac_fn_cxx_try_cpp "$LINENO"; then :
13891
13892 else
13893   # Broken: fails on valid input.
13894 continue
13895 fi
13896 rm -f conftest.err conftest.$ac_ext
13897
13898   # OK, works on sane cases.  Now check whether nonexistent headers
13899   # can be detected and how.
13900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h.  */
13902 #include <ac_nonexistent.h>
13903 _ACEOF
13904 if ac_fn_cxx_try_cpp "$LINENO"; then :
13905   # Broken: success on invalid input.
13906 continue
13907 else
13908   # Passes both tests.
13909 ac_preproc_ok=:
13910 break
13911 fi
13912 rm -f conftest.err conftest.$ac_ext
13913
13914 done
13915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13916 rm -f conftest.err conftest.$ac_ext
13917 if $ac_preproc_ok; then :
13918
13919 else
13920   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13922 _lt_caught_CXX_error=yes; }
13923 fi
13924
13925 ac_ext=c
13926 ac_cpp='$CPP $CPPFLAGS'
13927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13930
13931 else
13932   _lt_caught_CXX_error=yes
13933 fi
13934
13935
13936
13937
13938
13939 # Set options
13940
13941
13942
13943         enable_dlopen=no
13944
13945
13946   enable_win32_dll=no
13947
13948
13949             # Check whether --enable-shared was given.
13950 if test "${enable_shared+set}" = set; then :
13951   enableval=$enable_shared; p=${PACKAGE-default}
13952     case $enableval in
13953     yes) enable_shared=yes ;;
13954     no) enable_shared=no ;;
13955     *)
13956       enable_shared=no
13957       # Look at the argument we got.  We use all the common list separators.
13958       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13959       for pkg in $enableval; do
13960         IFS="$lt_save_ifs"
13961         if test "X$pkg" = "X$p"; then
13962           enable_shared=yes
13963         fi
13964       done
13965       IFS="$lt_save_ifs"
13966       ;;
13967     esac
13968 else
13969   enable_shared=yes
13970 fi
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980   # Check whether --enable-static was given.
13981 if test "${enable_static+set}" = set; then :
13982   enableval=$enable_static; p=${PACKAGE-default}
13983     case $enableval in
13984     yes) enable_static=yes ;;
13985     no) enable_static=no ;;
13986     *)
13987      enable_static=no
13988       # Look at the argument we got.  We use all the common list separators.
13989       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13990       for pkg in $enableval; do
13991         IFS="$lt_save_ifs"
13992         if test "X$pkg" = "X$p"; then
13993           enable_static=yes
13994         fi
13995       done
13996       IFS="$lt_save_ifs"
13997       ;;
13998     esac
13999 else
14000   enable_static=yes
14001 fi
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012 # Check whether --with-pic was given.
14013 if test "${with_pic+set}" = set; then :
14014   withval=$with_pic; pic_mode="$withval"
14015 else
14016   pic_mode=default
14017 fi
14018
14019
14020 test -z "$pic_mode" && pic_mode=default
14021
14022
14023
14024
14025
14026
14027
14028   # Check whether --enable-fast-install was given.
14029 if test "${enable_fast_install+set}" = set; then :
14030   enableval=$enable_fast_install; p=${PACKAGE-default}
14031     case $enableval in
14032     yes) enable_fast_install=yes ;;
14033     no) enable_fast_install=no ;;
14034     *)
14035       enable_fast_install=no
14036       # Look at the argument we got.  We use all the common list separators.
14037       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14038       for pkg in $enableval; do
14039         IFS="$lt_save_ifs"
14040         if test "X$pkg" = "X$p"; then
14041           enable_fast_install=yes
14042         fi
14043       done
14044       IFS="$lt_save_ifs"
14045       ;;
14046     esac
14047 else
14048   enable_fast_install=yes
14049 fi
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061 # This can be used to rebuild libtool when needed
14062 LIBTOOL_DEPS="$ltmain"
14063
14064 # Always use our own libtool.
14065 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091 test -z "$LN_S" && LN_S="ln -s"
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106 if test -n "${ZSH_VERSION+set}" ; then
14107    setopt NO_GLOB_SUBST
14108 fi
14109
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14111 $as_echo_n "checking for objdir... " >&6; }
14112 if test "${lt_cv_objdir+set}" = set; then :
14113   $as_echo_n "(cached) " >&6
14114 else
14115   rm -f .libs 2>/dev/null
14116 mkdir .libs 2>/dev/null
14117 if test -d .libs; then
14118   lt_cv_objdir=.libs
14119 else
14120   # MS-DOS does not allow filenames that begin with a dot.
14121   lt_cv_objdir=_libs
14122 fi
14123 rmdir .libs 2>/dev/null
14124 fi
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14126 $as_echo "$lt_cv_objdir" >&6; }
14127 objdir=$lt_cv_objdir
14128
14129
14130
14131
14132
14133 cat >>confdefs.h <<_ACEOF
14134 #define LT_OBJDIR "$lt_cv_objdir/"
14135 _ACEOF
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153 case $host_os in
14154 aix3*)
14155   # AIX sometimes has problems with the GCC collect2 program.  For some
14156   # reason, if we set the COLLECT_NAMES environment variable, the problems
14157   # vanish in a puff of smoke.
14158   if test "X${COLLECT_NAMES+set}" != Xset; then
14159     COLLECT_NAMES=
14160     export COLLECT_NAMES
14161   fi
14162   ;;
14163 esac
14164
14165 # Sed substitution that helps us do robust quoting.  It backslashifies
14166 # metacharacters that are still active within double-quoted strings.
14167 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
14168
14169 # Same as above, but do not quote variable references.
14170 double_quote_subst='s/\(["`\\]\)/\\\1/g'
14171
14172 # Sed substitution to delay expansion of an escaped shell variable in a
14173 # double_quote_subst'ed string.
14174 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14175
14176 # Sed substitution to delay expansion of an escaped single quote.
14177 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
14178
14179 # Sed substitution to avoid accidental globbing in evaled expressions
14180 no_glob_subst='s/\*/\\\*/g'
14181
14182 # Global variables:
14183 ofile=libtool
14184 can_build_shared=yes
14185
14186 # All known linkers require a `.a' archive for static linking (except MSVC,
14187 # which needs '.lib').
14188 libext=a
14189
14190 with_gnu_ld="$lt_cv_prog_gnu_ld"
14191
14192 old_CC="$CC"
14193 old_CFLAGS="$CFLAGS"
14194
14195 # Set sane defaults for various variables
14196 test -z "$CC" && CC=cc
14197 test -z "$LTCC" && LTCC=$CC
14198 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14199 test -z "$LD" && LD=ld
14200 test -z "$ac_objext" && ac_objext=o
14201
14202 for cc_temp in $compiler""; do
14203   case $cc_temp in
14204     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14205     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14206     \-*) ;;
14207     *) break;;
14208   esac
14209 done
14210 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14211
14212
14213 # Only perform the check for file, if the check method requires it
14214 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14215 case $deplibs_check_method in
14216 file_magic*)
14217   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14219 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14220 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14221   $as_echo_n "(cached) " >&6
14222 else
14223   case $MAGIC_CMD in
14224 [\\/*] |  ?:[\\/]*)
14225   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14226   ;;
14227 *)
14228   lt_save_MAGIC_CMD="$MAGIC_CMD"
14229   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14230   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14231   for ac_dir in $ac_dummy; do
14232     IFS="$lt_save_ifs"
14233     test -z "$ac_dir" && ac_dir=.
14234     if test -f $ac_dir/${ac_tool_prefix}file; then
14235       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14236       if test -n "$file_magic_test_file"; then
14237         case $deplibs_check_method in
14238         "file_magic "*)
14239           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14240           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14241           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14242             $EGREP "$file_magic_regex" > /dev/null; then
14243             :
14244           else
14245             cat <<_LT_EOF 1>&2
14246
14247 *** Warning: the command libtool uses to detect shared libraries,
14248 *** $file_magic_cmd, produces output that libtool cannot recognize.
14249 *** The result is that libtool may fail to recognize shared libraries
14250 *** as such.  This will affect the creation of libtool libraries that
14251 *** depend on shared libraries, but programs linked with such libtool
14252 *** libraries will work regardless of this problem.  Nevertheless, you
14253 *** may want to report the problem to your system manager and/or to
14254 *** bug-libtool@gnu.org
14255
14256 _LT_EOF
14257           fi ;;
14258         esac
14259       fi
14260       break
14261     fi
14262   done
14263   IFS="$lt_save_ifs"
14264   MAGIC_CMD="$lt_save_MAGIC_CMD"
14265   ;;
14266 esac
14267 fi
14268
14269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14270 if test -n "$MAGIC_CMD"; then
14271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14272 $as_echo "$MAGIC_CMD" >&6; }
14273 else
14274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14275 $as_echo "no" >&6; }
14276 fi
14277
14278
14279
14280
14281
14282 if test -z "$lt_cv_path_MAGIC_CMD"; then
14283   if test -n "$ac_tool_prefix"; then
14284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14285 $as_echo_n "checking for file... " >&6; }
14286 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14287   $as_echo_n "(cached) " >&6
14288 else
14289   case $MAGIC_CMD in
14290 [\\/*] |  ?:[\\/]*)
14291   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14292   ;;
14293 *)
14294   lt_save_MAGIC_CMD="$MAGIC_CMD"
14295   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14296   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14297   for ac_dir in $ac_dummy; do
14298     IFS="$lt_save_ifs"
14299     test -z "$ac_dir" && ac_dir=.
14300     if test -f $ac_dir/file; then
14301       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14302       if test -n "$file_magic_test_file"; then
14303         case $deplibs_check_method in
14304         "file_magic "*)
14305           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14306           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14307           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14308             $EGREP "$file_magic_regex" > /dev/null; then
14309             :
14310           else
14311             cat <<_LT_EOF 1>&2
14312
14313 *** Warning: the command libtool uses to detect shared libraries,
14314 *** $file_magic_cmd, produces output that libtool cannot recognize.
14315 *** The result is that libtool may fail to recognize shared libraries
14316 *** as such.  This will affect the creation of libtool libraries that
14317 *** depend on shared libraries, but programs linked with such libtool
14318 *** libraries will work regardless of this problem.  Nevertheless, you
14319 *** may want to report the problem to your system manager and/or to
14320 *** bug-libtool@gnu.org
14321
14322 _LT_EOF
14323           fi ;;
14324         esac
14325       fi
14326       break
14327     fi
14328   done
14329   IFS="$lt_save_ifs"
14330   MAGIC_CMD="$lt_save_MAGIC_CMD"
14331   ;;
14332 esac
14333 fi
14334
14335 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14336 if test -n "$MAGIC_CMD"; then
14337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14338 $as_echo "$MAGIC_CMD" >&6; }
14339 else
14340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14341 $as_echo "no" >&6; }
14342 fi
14343
14344
14345   else
14346     MAGIC_CMD=:
14347   fi
14348 fi
14349
14350   fi
14351   ;;
14352 esac
14353
14354 # Use C for the default configuration in the libtool script
14355
14356 lt_save_CC="$CC"
14357 ac_ext=c
14358 ac_cpp='$CPP $CPPFLAGS'
14359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14362
14363
14364 # Source file extension for C test sources.
14365 ac_ext=c
14366
14367 # Object file extension for compiled C test sources.
14368 objext=o
14369 objext=$objext
14370
14371 # Code to be used in simple compile tests
14372 lt_simple_compile_test_code="int some_variable = 0;"
14373
14374 # Code to be used in simple link tests
14375 lt_simple_link_test_code='int main(){return(0);}'
14376
14377
14378
14379
14380
14381
14382
14383 # If no C compiler was specified, use CC.
14384 LTCC=${LTCC-"$CC"}
14385
14386 # If no C compiler flags were specified, use CFLAGS.
14387 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14388
14389 # Allow CC to be a program name with arguments.
14390 compiler=$CC
14391
14392 # Save the default compiler, since it gets overwritten when the other
14393 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14394 compiler_DEFAULT=$CC
14395
14396 # save warnings/boilerplate of simple test code
14397 ac_outfile=conftest.$ac_objext
14398 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14399 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14400 _lt_compiler_boilerplate=`cat conftest.err`
14401 $RM conftest*
14402
14403 ac_outfile=conftest.$ac_objext
14404 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14405 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14406 _lt_linker_boilerplate=`cat conftest.err`
14407 $RM -r conftest*
14408
14409
14410 ## CAVEAT EMPTOR:
14411 ## There is no encapsulation within the following macros, do not change
14412 ## the running order or otherwise move them around unless you know exactly
14413 ## what you are doing...
14414 if test -n "$compiler"; then
14415
14416 lt_prog_compiler_no_builtin_flag=
14417
14418 if test "$GCC" = yes; then
14419   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14420
14421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14422 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14423 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14424   $as_echo_n "(cached) " >&6
14425 else
14426   lt_cv_prog_compiler_rtti_exceptions=no
14427    ac_outfile=conftest.$ac_objext
14428    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14429    lt_compiler_flag="-fno-rtti -fno-exceptions"
14430    # Insert the option either (1) after the last *FLAGS variable, or
14431    # (2) before a word containing "conftest.", or (3) at the end.
14432    # Note that $ac_compile itself does not contain backslashes and begins
14433    # with a dollar sign (not a hyphen), so the echo should work correctly.
14434    # The option is referenced via a variable to avoid confusing sed.
14435    lt_compile=`echo "$ac_compile" | $SED \
14436    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14437    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14438    -e 's:$: $lt_compiler_flag:'`
14439    (eval echo "\"\$as_me:14439: $lt_compile\"" >&5)
14440    (eval "$lt_compile" 2>conftest.err)
14441    ac_status=$?
14442    cat conftest.err >&5
14443    echo "$as_me:14443: \$? = $ac_status" >&5
14444    if (exit $ac_status) && test -s "$ac_outfile"; then
14445      # The compiler can only warn and ignore the option if not recognized
14446      # So say no if there are warnings other than the usual output.
14447      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14448      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14449      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14450        lt_cv_prog_compiler_rtti_exceptions=yes
14451      fi
14452    fi
14453    $RM conftest*
14454
14455 fi
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14457 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14458
14459 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14460     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14461 else
14462     :
14463 fi
14464
14465 fi
14466
14467
14468
14469
14470
14471
14472   lt_prog_compiler_wl=
14473 lt_prog_compiler_pic=
14474 lt_prog_compiler_static=
14475
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14477 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14478
14479   if test "$GCC" = yes; then
14480     lt_prog_compiler_wl='-Wl,'
14481     lt_prog_compiler_static='-static'
14482
14483     case $host_os in
14484       aix*)
14485       # All AIX code is PIC.
14486       if test "$host_cpu" = ia64; then
14487         # AIX 5 now supports IA64 processor
14488         lt_prog_compiler_static='-Bstatic'
14489       fi
14490       ;;
14491
14492     amigaos*)
14493       case $host_cpu in
14494       powerpc)
14495             # see comment about AmigaOS4 .so support
14496             lt_prog_compiler_pic='-fPIC'
14497         ;;
14498       m68k)
14499             # FIXME: we need at least 68020 code to build shared libraries, but
14500             # adding the `-m68020' flag to GCC prevents building anything better,
14501             # like `-m68040'.
14502             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14503         ;;
14504       esac
14505       ;;
14506
14507     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14508       # PIC is the default for these OSes.
14509       ;;
14510
14511     mingw* | cygwin* | pw32* | os2* | cegcc*)
14512       # This hack is so that the source file can tell whether it is being
14513       # built for inclusion in a dll (and should export symbols for example).
14514       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14515       # (--disable-auto-import) libraries
14516       lt_prog_compiler_pic='-DDLL_EXPORT'
14517       ;;
14518
14519     darwin* | rhapsody*)
14520       # PIC is the default on this platform
14521       # Common symbols not allowed in MH_DYLIB files
14522       lt_prog_compiler_pic='-fno-common'
14523       ;;
14524
14525     hpux*)
14526       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14527       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14528       # sets the default TLS model and affects inlining.
14529       case $host_cpu in
14530       hppa*64*)
14531         # +Z the default
14532         ;;
14533       *)
14534         lt_prog_compiler_pic='-fPIC'
14535         ;;
14536       esac
14537       ;;
14538
14539     interix[3-9]*)
14540       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14541       # Instead, we relocate shared libraries at runtime.
14542       ;;
14543
14544     msdosdjgpp*)
14545       # Just because we use GCC doesn't mean we suddenly get shared libraries
14546       # on systems that don't support them.
14547       lt_prog_compiler_can_build_shared=no
14548       enable_shared=no
14549       ;;
14550
14551     *nto* | *qnx*)
14552       # QNX uses GNU C++, but need to define -shared option too, otherwise
14553       # it will coredump.
14554       lt_prog_compiler_pic='-fPIC -shared'
14555       ;;
14556
14557     sysv4*MP*)
14558       if test -d /usr/nec; then
14559         lt_prog_compiler_pic=-Kconform_pic
14560       fi
14561       ;;
14562
14563     *)
14564       lt_prog_compiler_pic='-fPIC'
14565       ;;
14566     esac
14567   else
14568     # PORTME Check for flag to pass linker flags through the system compiler.
14569     case $host_os in
14570     aix*)
14571       lt_prog_compiler_wl='-Wl,'
14572       if test "$host_cpu" = ia64; then
14573         # AIX 5 now supports IA64 processor
14574         lt_prog_compiler_static='-Bstatic'
14575       else
14576         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14577       fi
14578       ;;
14579
14580     mingw* | cygwin* | pw32* | os2* | cegcc*)
14581       # This hack is so that the source file can tell whether it is being
14582       # built for inclusion in a dll (and should export symbols for example).
14583       lt_prog_compiler_pic='-DDLL_EXPORT'
14584       ;;
14585
14586     hpux9* | hpux10* | hpux11*)
14587       lt_prog_compiler_wl='-Wl,'
14588       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14589       # not for PA HP-UX.
14590       case $host_cpu in
14591       hppa*64*|ia64*)
14592         # +Z the default
14593         ;;
14594       *)
14595         lt_prog_compiler_pic='+Z'
14596         ;;
14597       esac
14598       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14599       lt_prog_compiler_static='${wl}-a ${wl}archive'
14600       ;;
14601
14602     irix5* | irix6* | nonstopux*)
14603       lt_prog_compiler_wl='-Wl,'
14604       # PIC (with -KPIC) is the default.
14605       lt_prog_compiler_static='-non_shared'
14606       ;;
14607
14608     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14609       case $cc_basename in
14610       # old Intel for x86_64 which still supported -KPIC.
14611       ecc*)
14612         lt_prog_compiler_wl='-Wl,'
14613         lt_prog_compiler_pic='-KPIC'
14614         lt_prog_compiler_static='-static'
14615         ;;
14616       # icc used to be incompatible with GCC.
14617       # ICC 10 doesn't accept -KPIC any more.
14618       icc* | ifort*)
14619         lt_prog_compiler_wl='-Wl,'
14620         lt_prog_compiler_pic='-fPIC'
14621         lt_prog_compiler_static='-static'
14622         ;;
14623       # Lahey Fortran 8.1.
14624       lf95*)
14625         lt_prog_compiler_wl='-Wl,'
14626         lt_prog_compiler_pic='--shared'
14627         lt_prog_compiler_static='--static'
14628         ;;
14629       pgcc* | pgf77* | pgf90* | pgf95*)
14630         # Portland Group compilers (*not* the Pentium gcc compiler,
14631         # which looks to be a dead project)
14632         lt_prog_compiler_wl='-Wl,'
14633         lt_prog_compiler_pic='-fpic'
14634         lt_prog_compiler_static='-Bstatic'
14635         ;;
14636       ccc*)
14637         lt_prog_compiler_wl='-Wl,'
14638         # All Alpha code is PIC.
14639         lt_prog_compiler_static='-non_shared'
14640         ;;
14641       xl*)
14642         # IBM XL C 8.0/Fortran 10.1 on PPC
14643         lt_prog_compiler_wl='-Wl,'
14644         lt_prog_compiler_pic='-qpic'
14645         lt_prog_compiler_static='-qstaticlink'
14646         ;;
14647       *)
14648         case `$CC -V 2>&1 | sed 5q` in
14649         *Sun\ C*)
14650           # Sun C 5.9
14651           lt_prog_compiler_pic='-KPIC'
14652           lt_prog_compiler_static='-Bstatic'
14653           lt_prog_compiler_wl='-Wl,'
14654           ;;
14655         *Sun\ F*)
14656           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14657           lt_prog_compiler_pic='-KPIC'
14658           lt_prog_compiler_static='-Bstatic'
14659           lt_prog_compiler_wl=''
14660           ;;
14661         esac
14662         ;;
14663       esac
14664       ;;
14665
14666     newsos6)
14667       lt_prog_compiler_pic='-KPIC'
14668       lt_prog_compiler_static='-Bstatic'
14669       ;;
14670
14671     *nto* | *qnx*)
14672       # QNX uses GNU C++, but need to define -shared option too, otherwise
14673       # it will coredump.
14674       lt_prog_compiler_pic='-fPIC -shared'
14675       ;;
14676
14677     osf3* | osf4* | osf5*)
14678       lt_prog_compiler_wl='-Wl,'
14679       # All OSF/1 code is PIC.
14680       lt_prog_compiler_static='-non_shared'
14681       ;;
14682
14683     rdos*)
14684       lt_prog_compiler_static='-non_shared'
14685       ;;
14686
14687     solaris*)
14688       lt_prog_compiler_pic='-KPIC'
14689       lt_prog_compiler_static='-Bstatic'
14690       case $cc_basename in
14691       f77* | f90* | f95*)
14692         lt_prog_compiler_wl='-Qoption ld ';;
14693       *)
14694         lt_prog_compiler_wl='-Wl,';;
14695       esac
14696       ;;
14697
14698     sunos4*)
14699       lt_prog_compiler_wl='-Qoption ld '
14700       lt_prog_compiler_pic='-PIC'
14701       lt_prog_compiler_static='-Bstatic'
14702       ;;
14703
14704     sysv4 | sysv4.2uw2* | sysv4.3*)
14705       lt_prog_compiler_wl='-Wl,'
14706       lt_prog_compiler_pic='-KPIC'
14707       lt_prog_compiler_static='-Bstatic'
14708       ;;
14709
14710     sysv4*MP*)
14711       if test -d /usr/nec ;then
14712         lt_prog_compiler_pic='-Kconform_pic'
14713         lt_prog_compiler_static='-Bstatic'
14714       fi
14715       ;;
14716
14717     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14718       lt_prog_compiler_wl='-Wl,'
14719       lt_prog_compiler_pic='-KPIC'
14720       lt_prog_compiler_static='-Bstatic'
14721       ;;
14722
14723     unicos*)
14724       lt_prog_compiler_wl='-Wl,'
14725       lt_prog_compiler_can_build_shared=no
14726       ;;
14727
14728     uts4*)
14729       lt_prog_compiler_pic='-pic'
14730       lt_prog_compiler_static='-Bstatic'
14731       ;;
14732
14733     *)
14734       lt_prog_compiler_can_build_shared=no
14735       ;;
14736     esac
14737   fi
14738
14739 case $host_os in
14740   # For platforms which do not support PIC, -DPIC is meaningless:
14741   *djgpp*)
14742     lt_prog_compiler_pic=
14743     ;;
14744   *)
14745     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14746     ;;
14747 esac
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14749 $as_echo "$lt_prog_compiler_pic" >&6; }
14750
14751
14752
14753
14754
14755
14756 #
14757 # Check to make sure the PIC flag actually works.
14758 #
14759 if test -n "$lt_prog_compiler_pic"; then
14760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14761 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14762 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14763   $as_echo_n "(cached) " >&6
14764 else
14765   lt_cv_prog_compiler_pic_works=no
14766    ac_outfile=conftest.$ac_objext
14767    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14768    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14769    # Insert the option either (1) after the last *FLAGS variable, or
14770    # (2) before a word containing "conftest.", or (3) at the end.
14771    # Note that $ac_compile itself does not contain backslashes and begins
14772    # with a dollar sign (not a hyphen), so the echo should work correctly.
14773    # The option is referenced via a variable to avoid confusing sed.
14774    lt_compile=`echo "$ac_compile" | $SED \
14775    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14776    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14777    -e 's:$: $lt_compiler_flag:'`
14778    (eval echo "\"\$as_me:14778: $lt_compile\"" >&5)
14779    (eval "$lt_compile" 2>conftest.err)
14780    ac_status=$?
14781    cat conftest.err >&5
14782    echo "$as_me:14782: \$? = $ac_status" >&5
14783    if (exit $ac_status) && test -s "$ac_outfile"; then
14784      # The compiler can only warn and ignore the option if not recognized
14785      # So say no if there are warnings other than the usual output.
14786      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14787      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14788      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14789        lt_cv_prog_compiler_pic_works=yes
14790      fi
14791    fi
14792    $RM conftest*
14793
14794 fi
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14796 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14797
14798 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14799     case $lt_prog_compiler_pic in
14800      "" | " "*) ;;
14801      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14802      esac
14803 else
14804     lt_prog_compiler_pic=
14805      lt_prog_compiler_can_build_shared=no
14806 fi
14807
14808 fi
14809
14810
14811
14812
14813
14814
14815 #
14816 # Check to make sure the static flag actually works.
14817 #
14818 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14820 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14821 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14822   $as_echo_n "(cached) " >&6
14823 else
14824   lt_cv_prog_compiler_static_works=no
14825    save_LDFLAGS="$LDFLAGS"
14826    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14827    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14828    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14829      # The linker can only warn and ignore the option if not recognized
14830      # So say no if there are warnings
14831      if test -s conftest.err; then
14832        # Append any errors to the config.log.
14833        cat conftest.err 1>&5
14834        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14835        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14836        if diff conftest.exp conftest.er2 >/dev/null; then
14837          lt_cv_prog_compiler_static_works=yes
14838        fi
14839      else
14840        lt_cv_prog_compiler_static_works=yes
14841      fi
14842    fi
14843    $RM -r conftest*
14844    LDFLAGS="$save_LDFLAGS"
14845
14846 fi
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14848 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14849
14850 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14851     :
14852 else
14853     lt_prog_compiler_static=
14854 fi
14855
14856
14857
14858
14859
14860
14861
14862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14863 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14864 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14865   $as_echo_n "(cached) " >&6
14866 else
14867   lt_cv_prog_compiler_c_o=no
14868    $RM -r conftest 2>/dev/null
14869    mkdir conftest
14870    cd conftest
14871    mkdir out
14872    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14873
14874    lt_compiler_flag="-o out/conftest2.$ac_objext"
14875    # Insert the option either (1) after the last *FLAGS variable, or
14876    # (2) before a word containing "conftest.", or (3) at the end.
14877    # Note that $ac_compile itself does not contain backslashes and begins
14878    # with a dollar sign (not a hyphen), so the echo should work correctly.
14879    lt_compile=`echo "$ac_compile" | $SED \
14880    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14881    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14882    -e 's:$: $lt_compiler_flag:'`
14883    (eval echo "\"\$as_me:14883: $lt_compile\"" >&5)
14884    (eval "$lt_compile" 2>out/conftest.err)
14885    ac_status=$?
14886    cat out/conftest.err >&5
14887    echo "$as_me:14887: \$? = $ac_status" >&5
14888    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14889    then
14890      # The compiler can only warn and ignore the option if not recognized
14891      # So say no if there are warnings
14892      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14893      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14894      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14895        lt_cv_prog_compiler_c_o=yes
14896      fi
14897    fi
14898    chmod u+w . 2>&5
14899    $RM conftest*
14900    # SGI C++ compiler will create directory out/ii_files/ for
14901    # template instantiation
14902    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14903    $RM out/* && rmdir out
14904    cd ..
14905    $RM -r conftest
14906    $RM conftest*
14907
14908 fi
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14910 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14911
14912
14913
14914
14915
14916
14917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14918 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14919 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14920   $as_echo_n "(cached) " >&6
14921 else
14922   lt_cv_prog_compiler_c_o=no
14923    $RM -r conftest 2>/dev/null
14924    mkdir conftest
14925    cd conftest
14926    mkdir out
14927    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14928
14929    lt_compiler_flag="-o out/conftest2.$ac_objext"
14930    # Insert the option either (1) after the last *FLAGS variable, or
14931    # (2) before a word containing "conftest.", or (3) at the end.
14932    # Note that $ac_compile itself does not contain backslashes and begins
14933    # with a dollar sign (not a hyphen), so the echo should work correctly.
14934    lt_compile=`echo "$ac_compile" | $SED \
14935    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14936    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14937    -e 's:$: $lt_compiler_flag:'`
14938    (eval echo "\"\$as_me:14938: $lt_compile\"" >&5)
14939    (eval "$lt_compile" 2>out/conftest.err)
14940    ac_status=$?
14941    cat out/conftest.err >&5
14942    echo "$as_me:14942: \$? = $ac_status" >&5
14943    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14944    then
14945      # The compiler can only warn and ignore the option if not recognized
14946      # So say no if there are warnings
14947      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14948      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14949      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14950        lt_cv_prog_compiler_c_o=yes
14951      fi
14952    fi
14953    chmod u+w . 2>&5
14954    $RM conftest*
14955    # SGI C++ compiler will create directory out/ii_files/ for
14956    # template instantiation
14957    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14958    $RM out/* && rmdir out
14959    cd ..
14960    $RM -r conftest
14961    $RM conftest*
14962
14963 fi
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14965 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14966
14967
14968
14969
14970 hard_links="nottested"
14971 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14972   # do not overwrite the value of need_locks provided by the user
14973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14974 $as_echo_n "checking if we can lock with hard links... " >&6; }
14975   hard_links=yes
14976   $RM conftest*
14977   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14978   touch conftest.a
14979   ln conftest.a conftest.b 2>&5 || hard_links=no
14980   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14982 $as_echo "$hard_links" >&6; }
14983   if test "$hard_links" = no; then
14984     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14985 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14986     need_locks=warn
14987   fi
14988 else
14989   need_locks=no
14990 fi
14991
14992
14993
14994
14995
14996
14997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14998 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14999
15000   runpath_var=
15001   allow_undefined_flag=
15002   always_export_symbols=no
15003   archive_cmds=
15004   archive_expsym_cmds=
15005   compiler_needs_object=no
15006   enable_shared_with_static_runtimes=no
15007   export_dynamic_flag_spec=
15008   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15009   hardcode_automatic=no
15010   hardcode_direct=no
15011   hardcode_direct_absolute=no
15012   hardcode_libdir_flag_spec=
15013   hardcode_libdir_flag_spec_ld=
15014   hardcode_libdir_separator=
15015   hardcode_minus_L=no
15016   hardcode_shlibpath_var=unsupported
15017   inherit_rpath=no
15018   link_all_deplibs=unknown
15019   module_cmds=
15020   module_expsym_cmds=
15021   old_archive_from_new_cmds=
15022   old_archive_from_expsyms_cmds=
15023   thread_safe_flag_spec=
15024   whole_archive_flag_spec=
15025   # include_expsyms should be a list of space-separated symbols to be *always*
15026   # included in the symbol list
15027   include_expsyms=
15028   # exclude_expsyms can be an extended regexp of symbols to exclude
15029   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15030   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15031   # as well as any symbol that contains `d'.
15032   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15033   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15034   # platforms (ab)use it in PIC code, but their linkers get confused if
15035   # the symbol is explicitly referenced.  Since portable code cannot
15036   # rely on this symbol name, it's probably fine to never include it in
15037   # preloaded symbol tables.
15038   # Exclude shared library initialization/finalization symbols.
15039   extract_expsyms_cmds=
15040
15041   case $host_os in
15042   cygwin* | mingw* | pw32* | cegcc*)
15043     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15044     # When not using gcc, we currently assume that we are using
15045     # Microsoft Visual C++.
15046     if test "$GCC" != yes; then
15047       with_gnu_ld=no
15048     fi
15049     ;;
15050   interix*)
15051     # we just hope/assume this is gcc and not c89 (= MSVC++)
15052     with_gnu_ld=yes
15053     ;;
15054   openbsd*)
15055     with_gnu_ld=no
15056     ;;
15057   esac
15058
15059   ld_shlibs=yes
15060   if test "$with_gnu_ld" = yes; then
15061     # If archive_cmds runs LD, not CC, wlarc should be empty
15062     wlarc='${wl}'
15063
15064     # Set some defaults for GNU ld with shared library support. These
15065     # are reset later if shared libraries are not supported. Putting them
15066     # here allows them to be overridden if necessary.
15067     runpath_var=LD_RUN_PATH
15068     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15069     export_dynamic_flag_spec='${wl}--export-dynamic'
15070     # ancient GNU ld didn't support --whole-archive et. al.
15071     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15072       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15073     else
15074       whole_archive_flag_spec=
15075     fi
15076     supports_anon_versioning=no
15077     case `$LD -v 2>&1` in
15078       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15079       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15080       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15081       *\ 2.11.*) ;; # other 2.11 versions
15082       *) supports_anon_versioning=yes ;;
15083     esac
15084
15085     # See if GNU ld supports shared libraries.
15086     case $host_os in
15087     aix[3-9]*)
15088       # On AIX/PPC, the GNU linker is very broken
15089       if test "$host_cpu" != ia64; then
15090         ld_shlibs=no
15091         cat <<_LT_EOF 1>&2
15092
15093 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15094 *** to be unable to reliably create shared libraries on AIX.
15095 *** Therefore, libtool is disabling shared libraries support.  If you
15096 *** really care for shared libraries, you may want to modify your PATH
15097 *** so that a non-GNU linker is found, and then restart.
15098
15099 _LT_EOF
15100       fi
15101       ;;
15102
15103     amigaos*)
15104       case $host_cpu in
15105       powerpc)
15106             # see comment about AmigaOS4 .so support
15107             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15108             archive_expsym_cmds=''
15109         ;;
15110       m68k)
15111             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)'
15112             hardcode_libdir_flag_spec='-L$libdir'
15113             hardcode_minus_L=yes
15114         ;;
15115       esac
15116       ;;
15117
15118     beos*)
15119       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15120         allow_undefined_flag=unsupported
15121         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15122         # support --undefined.  This deserves some investigation.  FIXME
15123         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15124       else
15125         ld_shlibs=no
15126       fi
15127       ;;
15128
15129     cygwin* | mingw* | pw32* | cegcc*)
15130       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15131       # as there is no search path for DLLs.
15132       hardcode_libdir_flag_spec='-L$libdir'
15133       allow_undefined_flag=unsupported
15134       always_export_symbols=no
15135       enable_shared_with_static_runtimes=yes
15136       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15137
15138       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15139         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15140         # If the export-symbols file already is a .def file (1st line
15141         # is EXPORTS), use it as is; otherwise, prepend...
15142         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15143           cp $export_symbols $output_objdir/$soname.def;
15144         else
15145           echo EXPORTS > $output_objdir/$soname.def;
15146           cat $export_symbols >> $output_objdir/$soname.def;
15147         fi~
15148         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15149       else
15150         ld_shlibs=no
15151       fi
15152       ;;
15153
15154     interix[3-9]*)
15155       hardcode_direct=no
15156       hardcode_shlibpath_var=no
15157       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15158       export_dynamic_flag_spec='${wl}-E'
15159       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15160       # Instead, shared libraries are loaded at an image base (0x10000000 by
15161       # default) and relocated if they conflict, which is a slow very memory
15162       # consuming and fragmenting process.  To avoid this, we pick a random,
15163       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15164       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15165       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15166       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'
15167       ;;
15168
15169     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15170       tmp_diet=no
15171       if test "$host_os" = linux-dietlibc; then
15172         case $cc_basename in
15173           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15174         esac
15175       fi
15176       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15177          && test "$tmp_diet" = no
15178       then
15179         tmp_addflag=
15180         tmp_sharedflag='-shared'
15181         case $cc_basename,$host_cpu in
15182         pgcc*)                          # Portland Group C compiler
15183           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'
15184           tmp_addflag=' $pic_flag'
15185           ;;
15186         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15187           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'
15188           tmp_addflag=' $pic_flag -Mnomain' ;;
15189         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15190           tmp_addflag=' -i_dynamic' ;;
15191         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15192           tmp_addflag=' -i_dynamic -nofor_main' ;;
15193         ifc* | ifort*)                  # Intel Fortran compiler
15194           tmp_addflag=' -nofor_main' ;;
15195         lf95*)                          # Lahey Fortran 8.1
15196           whole_archive_flag_spec=
15197           tmp_sharedflag='--shared' ;;
15198         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
15199           tmp_sharedflag='-qmkshrobj'
15200           tmp_addflag= ;;
15201         esac
15202         case `$CC -V 2>&1 | sed 5q` in
15203         *Sun\ C*)                       # Sun C 5.9
15204           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'
15205           compiler_needs_object=yes
15206           tmp_sharedflag='-G' ;;
15207         *Sun\ F*)                       # Sun Fortran 8.3
15208           tmp_sharedflag='-G' ;;
15209         esac
15210         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15211
15212         if test "x$supports_anon_versioning" = xyes; then
15213           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15214             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15215             echo "local: *; };" >> $output_objdir/$libname.ver~
15216             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15217         fi
15218
15219         case $cc_basename in
15220         xlf*)
15221           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15222           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15223           hardcode_libdir_flag_spec=
15224           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15225           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15226           if test "x$supports_anon_versioning" = xyes; then
15227             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15228               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15229               echo "local: *; };" >> $output_objdir/$libname.ver~
15230               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15231           fi
15232           ;;
15233         esac
15234       else
15235         ld_shlibs=no
15236       fi
15237       ;;
15238
15239     netbsd*)
15240       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15241         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15242         wlarc=
15243       else
15244         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15245         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15246       fi
15247       ;;
15248
15249     solaris*)
15250       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15251         ld_shlibs=no
15252         cat <<_LT_EOF 1>&2
15253
15254 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15255 *** create shared libraries on Solaris systems.  Therefore, libtool
15256 *** is disabling shared libraries support.  We urge you to upgrade GNU
15257 *** binutils to release 2.9.1 or newer.  Another option is to modify
15258 *** your PATH or compiler configuration so that the native linker is
15259 *** used, and then restart.
15260
15261 _LT_EOF
15262       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15263         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15264         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15265       else
15266         ld_shlibs=no
15267       fi
15268       ;;
15269
15270     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15271       case `$LD -v 2>&1` in
15272         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15273         ld_shlibs=no
15274         cat <<_LT_EOF 1>&2
15275
15276 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15277 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15278 *** is disabling shared libraries support.  We urge you to upgrade GNU
15279 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15280 *** your PATH or compiler configuration so that the native linker is
15281 *** used, and then restart.
15282
15283 _LT_EOF
15284         ;;
15285         *)
15286           # For security reasons, it is highly recommended that you always
15287           # use absolute paths for naming shared libraries, and exclude the
15288           # DT_RUNPATH tag from executables and libraries.  But doing so
15289           # requires that you compile everything twice, which is a pain.
15290           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15291             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15292             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15293             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15294           else
15295             ld_shlibs=no
15296           fi
15297         ;;
15298       esac
15299       ;;
15300
15301     sunos4*)
15302       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15303       wlarc=
15304       hardcode_direct=yes
15305       hardcode_shlibpath_var=no
15306       ;;
15307
15308     *)
15309       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15310         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15311         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15312       else
15313         ld_shlibs=no
15314       fi
15315       ;;
15316     esac
15317
15318     if test "$ld_shlibs" = no; then
15319       runpath_var=
15320       hardcode_libdir_flag_spec=
15321       export_dynamic_flag_spec=
15322       whole_archive_flag_spec=
15323     fi
15324   else
15325     # PORTME fill in a description of your system's linker (not GNU ld)
15326     case $host_os in
15327     aix3*)
15328       allow_undefined_flag=unsupported
15329       always_export_symbols=yes
15330       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'
15331       # Note: this linker hardcodes the directories in LIBPATH if there
15332       # are no directories specified by -L.
15333       hardcode_minus_L=yes
15334       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15335         # Neither direct hardcoding nor static linking is supported with a
15336         # broken collect2.
15337         hardcode_direct=unsupported
15338       fi
15339       ;;
15340
15341     aix[4-9]*)
15342       if test "$host_cpu" = ia64; then
15343         # On IA64, the linker does run time linking by default, so we don't
15344         # have to do anything special.
15345         aix_use_runtimelinking=no
15346         exp_sym_flag='-Bexport'
15347         no_entry_flag=""
15348       else
15349         # If we're using GNU nm, then we don't want the "-C" option.
15350         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15351         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15352           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'
15353         else
15354           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'
15355         fi
15356         aix_use_runtimelinking=no
15357
15358         # Test if we are trying to use run time linking or normal
15359         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15360         # need to do runtime linking.
15361         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15362           for ld_flag in $LDFLAGS; do
15363           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15364             aix_use_runtimelinking=yes
15365             break
15366           fi
15367           done
15368           ;;
15369         esac
15370
15371         exp_sym_flag='-bexport'
15372         no_entry_flag='-bnoentry'
15373       fi
15374
15375       # When large executables or shared objects are built, AIX ld can
15376       # have problems creating the table of contents.  If linking a library
15377       # or program results in "error TOC overflow" add -mminimal-toc to
15378       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15379       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15380
15381       archive_cmds=''
15382       hardcode_direct=yes
15383       hardcode_direct_absolute=yes
15384       hardcode_libdir_separator=':'
15385       link_all_deplibs=yes
15386       file_list_spec='${wl}-f,'
15387
15388       if test "$GCC" = yes; then
15389         case $host_os in aix4.[012]|aix4.[012].*)
15390         # We only want to do this on AIX 4.2 and lower, the check
15391         # below for broken collect2 doesn't work under 4.3+
15392           collect2name=`${CC} -print-prog-name=collect2`
15393           if test -f "$collect2name" &&
15394            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15395           then
15396           # We have reworked collect2
15397           :
15398           else
15399           # We have old collect2
15400           hardcode_direct=unsupported
15401           # It fails to find uninstalled libraries when the uninstalled
15402           # path is not listed in the libpath.  Setting hardcode_minus_L
15403           # to unsupported forces relinking
15404           hardcode_minus_L=yes
15405           hardcode_libdir_flag_spec='-L$libdir'
15406           hardcode_libdir_separator=
15407           fi
15408           ;;
15409         esac
15410         shared_flag='-shared'
15411         if test "$aix_use_runtimelinking" = yes; then
15412           shared_flag="$shared_flag "'${wl}-G'
15413         fi
15414       else
15415         # not using gcc
15416         if test "$host_cpu" = ia64; then
15417         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15418         # chokes on -Wl,-G. The following line is correct:
15419           shared_flag='-G'
15420         else
15421           if test "$aix_use_runtimelinking" = yes; then
15422             shared_flag='${wl}-G'
15423           else
15424             shared_flag='${wl}-bM:SRE'
15425           fi
15426         fi
15427       fi
15428
15429       export_dynamic_flag_spec='${wl}-bexpall'
15430       # It seems that -bexpall does not export symbols beginning with
15431       # underscore (_), so it is better to generate a list of symbols to export.
15432       always_export_symbols=yes
15433       if test "$aix_use_runtimelinking" = yes; then
15434         # Warning - without using the other runtime loading flags (-brtl),
15435         # -berok will link without error, but may produce a broken library.
15436         allow_undefined_flag='-berok'
15437         # Determine the default libpath from the value encoded in an
15438         # empty executable.
15439         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15440 /* end confdefs.h.  */
15441
15442 int
15443 main ()
15444 {
15445
15446   ;
15447   return 0;
15448 }
15449 _ACEOF
15450 if ac_fn_c_try_link "$LINENO"; then :
15451
15452 lt_aix_libpath_sed='
15453     /Import File Strings/,/^$/ {
15454         /^0/ {
15455             s/^0  *\(.*\)$/\1/
15456             p
15457         }
15458     }'
15459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15460 # Check for a 64-bit object if we didn't find anything.
15461 if test -z "$aix_libpath"; then
15462   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15463 fi
15464 fi
15465 rm -f core conftest.err conftest.$ac_objext \
15466     conftest$ac_exeext conftest.$ac_ext
15467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15468
15469         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15470         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"
15471       else
15472         if test "$host_cpu" = ia64; then
15473           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15474           allow_undefined_flag="-z nodefs"
15475           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"
15476         else
15477          # Determine the default libpath from the value encoded in an
15478          # empty executable.
15479          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15480 /* end confdefs.h.  */
15481
15482 int
15483 main ()
15484 {
15485
15486   ;
15487   return 0;
15488 }
15489 _ACEOF
15490 if ac_fn_c_try_link "$LINENO"; then :
15491
15492 lt_aix_libpath_sed='
15493     /Import File Strings/,/^$/ {
15494         /^0/ {
15495             s/^0  *\(.*\)$/\1/
15496             p
15497         }
15498     }'
15499 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15500 # Check for a 64-bit object if we didn't find anything.
15501 if test -z "$aix_libpath"; then
15502   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15503 fi
15504 fi
15505 rm -f core conftest.err conftest.$ac_objext \
15506     conftest$ac_exeext conftest.$ac_ext
15507 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15508
15509          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15510           # Warning - without using the other run time loading flags,
15511           # -berok will link without error, but may produce a broken library.
15512           no_undefined_flag=' ${wl}-bernotok'
15513           allow_undefined_flag=' ${wl}-berok'
15514           # Exported symbols can be pulled into shared objects from archives
15515           whole_archive_flag_spec='$convenience'
15516           archive_cmds_need_lc=yes
15517           # This is similar to how AIX traditionally builds its shared libraries.
15518           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'
15519         fi
15520       fi
15521       ;;
15522
15523     amigaos*)
15524       case $host_cpu in
15525       powerpc)
15526             # see comment about AmigaOS4 .so support
15527             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15528             archive_expsym_cmds=''
15529         ;;
15530       m68k)
15531             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)'
15532             hardcode_libdir_flag_spec='-L$libdir'
15533             hardcode_minus_L=yes
15534         ;;
15535       esac
15536       ;;
15537
15538     bsdi[45]*)
15539       export_dynamic_flag_spec=-rdynamic
15540       ;;
15541
15542     cygwin* | mingw* | pw32* | cegcc*)
15543       # When not using gcc, we currently assume that we are using
15544       # Microsoft Visual C++.
15545       # hardcode_libdir_flag_spec is actually meaningless, as there is
15546       # no search path for DLLs.
15547       hardcode_libdir_flag_spec=' '
15548       allow_undefined_flag=unsupported
15549       # Tell ltmain to make .lib files, not .a files.
15550       libext=lib
15551       # Tell ltmain to make .dll files, not .so files.
15552       shrext_cmds=".dll"
15553       # FIXME: Setting linknames here is a bad hack.
15554       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
15555       # The linker will automatically build a .lib file if we build a DLL.
15556       old_archive_from_new_cmds='true'
15557       # FIXME: Should let the user specify the lib program.
15558       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15559       fix_srcfile_path='`cygpath -w "$srcfile"`'
15560       enable_shared_with_static_runtimes=yes
15561       ;;
15562
15563     darwin* | rhapsody*)
15564
15565
15566   archive_cmds_need_lc=no
15567   hardcode_direct=no
15568   hardcode_automatic=yes
15569   hardcode_shlibpath_var=unsupported
15570   whole_archive_flag_spec=''
15571   link_all_deplibs=yes
15572   allow_undefined_flag="$_lt_dar_allow_undefined"
15573   case $cc_basename in
15574      ifort*) _lt_dar_can_shared=yes ;;
15575      *) _lt_dar_can_shared=$GCC ;;
15576   esac
15577   if test "$_lt_dar_can_shared" = "yes"; then
15578     output_verbose_link_cmd=echo
15579     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15580     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15581     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}"
15582     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}"
15583
15584   else
15585   ld_shlibs=no
15586   fi
15587
15588       ;;
15589
15590     dgux*)
15591       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15592       hardcode_libdir_flag_spec='-L$libdir'
15593       hardcode_shlibpath_var=no
15594       ;;
15595
15596     freebsd1*)
15597       ld_shlibs=no
15598       ;;
15599
15600     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15601     # support.  Future versions do this automatically, but an explicit c++rt0.o
15602     # does not break anything, and helps significantly (at the cost of a little
15603     # extra space).
15604     freebsd2.2*)
15605       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15606       hardcode_libdir_flag_spec='-R$libdir'
15607       hardcode_direct=yes
15608       hardcode_shlibpath_var=no
15609       ;;
15610
15611     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15612     freebsd2*)
15613       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15614       hardcode_direct=yes
15615       hardcode_minus_L=yes
15616       hardcode_shlibpath_var=no
15617       ;;
15618
15619     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15620     freebsd* | dragonfly*)
15621       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15622       hardcode_libdir_flag_spec='-R$libdir'
15623       hardcode_direct=yes
15624       hardcode_shlibpath_var=no
15625       ;;
15626
15627     hpux9*)
15628       if test "$GCC" = yes; then
15629         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'
15630       else
15631         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'
15632       fi
15633       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15634       hardcode_libdir_separator=:
15635       hardcode_direct=yes
15636
15637       # hardcode_minus_L: Not really in the search PATH,
15638       # but as the default location of the library.
15639       hardcode_minus_L=yes
15640       export_dynamic_flag_spec='${wl}-E'
15641       ;;
15642
15643     hpux10*)
15644       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15645         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15646       else
15647         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15648       fi
15649       if test "$with_gnu_ld" = no; then
15650         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15651         hardcode_libdir_flag_spec_ld='+b $libdir'
15652         hardcode_libdir_separator=:
15653         hardcode_direct=yes
15654         hardcode_direct_absolute=yes
15655         export_dynamic_flag_spec='${wl}-E'
15656         # hardcode_minus_L: Not really in the search PATH,
15657         # but as the default location of the library.
15658         hardcode_minus_L=yes
15659       fi
15660       ;;
15661
15662     hpux11*)
15663       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15664         case $host_cpu in
15665         hppa*64*)
15666           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15667           ;;
15668         ia64*)
15669           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15670           ;;
15671         *)
15672           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15673           ;;
15674         esac
15675       else
15676         case $host_cpu in
15677         hppa*64*)
15678           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15679           ;;
15680         ia64*)
15681           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15682           ;;
15683         *)
15684           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15685           ;;
15686         esac
15687       fi
15688       if test "$with_gnu_ld" = no; then
15689         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15690         hardcode_libdir_separator=:
15691
15692         case $host_cpu in
15693         hppa*64*|ia64*)
15694           hardcode_direct=no
15695           hardcode_shlibpath_var=no
15696           ;;
15697         *)
15698           hardcode_direct=yes
15699           hardcode_direct_absolute=yes
15700           export_dynamic_flag_spec='${wl}-E'
15701
15702           # hardcode_minus_L: Not really in the search PATH,
15703           # but as the default location of the library.
15704           hardcode_minus_L=yes
15705           ;;
15706         esac
15707       fi
15708       ;;
15709
15710     irix5* | irix6* | nonstopux*)
15711       if test "$GCC" = yes; then
15712         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'
15713         # Try to use the -exported_symbol ld option, if it does not
15714         # work, assume that -exports_file does not work either and
15715         # implicitly export all symbols.
15716         save_LDFLAGS="$LDFLAGS"
15717         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15718         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15719 /* end confdefs.h.  */
15720 int foo(void) {}
15721 _ACEOF
15722 if ac_fn_c_try_link "$LINENO"; then :
15723   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'
15724
15725 fi
15726 rm -f core conftest.err conftest.$ac_objext \
15727     conftest$ac_exeext conftest.$ac_ext
15728         LDFLAGS="$save_LDFLAGS"
15729       else
15730         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'
15731         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'
15732       fi
15733       archive_cmds_need_lc='no'
15734       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15735       hardcode_libdir_separator=:
15736       inherit_rpath=yes
15737       link_all_deplibs=yes
15738       ;;
15739
15740     netbsd*)
15741       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15742         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15743       else
15744         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15745       fi
15746       hardcode_libdir_flag_spec='-R$libdir'
15747       hardcode_direct=yes
15748       hardcode_shlibpath_var=no
15749       ;;
15750
15751     newsos6)
15752       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15753       hardcode_direct=yes
15754       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15755       hardcode_libdir_separator=:
15756       hardcode_shlibpath_var=no
15757       ;;
15758
15759     *nto* | *qnx*)
15760       ;;
15761
15762     openbsd*)
15763       if test -f /usr/libexec/ld.so; then
15764         hardcode_direct=yes
15765         hardcode_shlibpath_var=no
15766         hardcode_direct_absolute=yes
15767         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15768           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15769           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15770           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15771           export_dynamic_flag_spec='${wl}-E'
15772         else
15773           case $host_os in
15774            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15775              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15776              hardcode_libdir_flag_spec='-R$libdir'
15777              ;;
15778            *)
15779              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15780              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15781              ;;
15782           esac
15783         fi
15784       else
15785         ld_shlibs=no
15786       fi
15787       ;;
15788
15789     os2*)
15790       hardcode_libdir_flag_spec='-L$libdir'
15791       hardcode_minus_L=yes
15792       allow_undefined_flag=unsupported
15793       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'
15794       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15795       ;;
15796
15797     osf3*)
15798       if test "$GCC" = yes; then
15799         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15800         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'
15801       else
15802         allow_undefined_flag=' -expect_unresolved \*'
15803         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'
15804       fi
15805       archive_cmds_need_lc='no'
15806       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15807       hardcode_libdir_separator=:
15808       ;;
15809
15810     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15811       if test "$GCC" = yes; then
15812         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15813         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'
15814         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15815       else
15816         allow_undefined_flag=' -expect_unresolved \*'
15817         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'
15818         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~
15819         $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'
15820
15821         # Both c and cxx compiler support -rpath directly
15822         hardcode_libdir_flag_spec='-rpath $libdir'
15823       fi
15824       archive_cmds_need_lc='no'
15825       hardcode_libdir_separator=:
15826       ;;
15827
15828     solaris*)
15829       no_undefined_flag=' -z defs'
15830       if test "$GCC" = yes; then
15831         wlarc='${wl}'
15832         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15833         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15834           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15835       else
15836         case `$CC -V 2>&1` in
15837         *"Compilers 5.0"*)
15838           wlarc=''
15839           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15840           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15841           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15842           ;;
15843         *)
15844           wlarc='${wl}'
15845           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15846           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15847           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15848           ;;
15849         esac
15850       fi
15851       hardcode_libdir_flag_spec='-R$libdir'
15852       hardcode_shlibpath_var=no
15853       case $host_os in
15854       solaris2.[0-5] | solaris2.[0-5].*) ;;
15855       *)
15856         # The compiler driver will combine and reorder linker options,
15857         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15858         # but is careful enough not to reorder.
15859         # Supported since Solaris 2.6 (maybe 2.5.1?)
15860         if test "$GCC" = yes; then
15861           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15862         else
15863           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15864         fi
15865         ;;
15866       esac
15867       link_all_deplibs=yes
15868       ;;
15869
15870     sunos4*)
15871       if test "x$host_vendor" = xsequent; then
15872         # Use $CC to link under sequent, because it throws in some extra .o
15873         # files that make .init and .fini sections work.
15874         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15875       else
15876         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15877       fi
15878       hardcode_libdir_flag_spec='-L$libdir'
15879       hardcode_direct=yes
15880       hardcode_minus_L=yes
15881       hardcode_shlibpath_var=no
15882       ;;
15883
15884     sysv4)
15885       case $host_vendor in
15886         sni)
15887           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15888           hardcode_direct=yes # is this really true???
15889         ;;
15890         siemens)
15891           ## LD is ld it makes a PLAMLIB
15892           ## CC just makes a GrossModule.
15893           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15894           reload_cmds='$CC -r -o $output$reload_objs'
15895           hardcode_direct=no
15896         ;;
15897         motorola)
15898           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15899           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15900         ;;
15901       esac
15902       runpath_var='LD_RUN_PATH'
15903       hardcode_shlibpath_var=no
15904       ;;
15905
15906     sysv4.3*)
15907       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15908       hardcode_shlibpath_var=no
15909       export_dynamic_flag_spec='-Bexport'
15910       ;;
15911
15912     sysv4*MP*)
15913       if test -d /usr/nec; then
15914         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15915         hardcode_shlibpath_var=no
15916         runpath_var=LD_RUN_PATH
15917         hardcode_runpath_var=yes
15918         ld_shlibs=yes
15919       fi
15920       ;;
15921
15922     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15923       no_undefined_flag='${wl}-z,text'
15924       archive_cmds_need_lc=no
15925       hardcode_shlibpath_var=no
15926       runpath_var='LD_RUN_PATH'
15927
15928       if test "$GCC" = yes; then
15929         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15930         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15931       else
15932         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15933         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15934       fi
15935       ;;
15936
15937     sysv5* | sco3.2v5* | sco5v6*)
15938       # Note: We can NOT use -z defs as we might desire, because we do not
15939       # link with -lc, and that would cause any symbols used from libc to
15940       # always be unresolved, which means just about no library would
15941       # ever link correctly.  If we're not using GNU ld we use -z text
15942       # though, which does catch some bad symbols but isn't as heavy-handed
15943       # as -z defs.
15944       no_undefined_flag='${wl}-z,text'
15945       allow_undefined_flag='${wl}-z,nodefs'
15946       archive_cmds_need_lc=no
15947       hardcode_shlibpath_var=no
15948       hardcode_libdir_flag_spec='${wl}-R,$libdir'
15949       hardcode_libdir_separator=':'
15950       link_all_deplibs=yes
15951       export_dynamic_flag_spec='${wl}-Bexport'
15952       runpath_var='LD_RUN_PATH'
15953
15954       if test "$GCC" = yes; then
15955         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15956         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15957       else
15958         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15959         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15960       fi
15961       ;;
15962
15963     uts4*)
15964       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15965       hardcode_libdir_flag_spec='-L$libdir'
15966       hardcode_shlibpath_var=no
15967       ;;
15968
15969     *)
15970       ld_shlibs=no
15971       ;;
15972     esac
15973
15974     if test x$host_vendor = xsni; then
15975       case $host in
15976       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15977         export_dynamic_flag_spec='${wl}-Blargedynsym'
15978         ;;
15979       esac
15980     fi
15981   fi
15982
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15984 $as_echo "$ld_shlibs" >&6; }
15985 test "$ld_shlibs" = no && can_build_shared=no
15986
15987 with_gnu_ld=$with_gnu_ld
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003 #
16004 # Do we need to explicitly link libc?
16005 #
16006 case "x$archive_cmds_need_lc" in
16007 x|xyes)
16008   # Assume -lc should be added
16009   archive_cmds_need_lc=yes
16010
16011   if test "$enable_shared" = yes && test "$GCC" = yes; then
16012     case $archive_cmds in
16013     *'~'*)
16014       # FIXME: we may have to deal with multi-command sequences.
16015       ;;
16016     '$CC '*)
16017       # Test whether the compiler implicitly links with -lc since on some
16018       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16019       # to ld, don't add -lc before -lgcc.
16020       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16021 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16022 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16023   $as_echo_n "(cached) " >&6
16024 else
16025   $RM conftest*
16026         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16027
16028         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16029   (eval $ac_compile) 2>&5
16030   ac_status=$?
16031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16032   test $ac_status = 0; } 2>conftest.err; then
16033           soname=conftest
16034           lib=conftest
16035           libobjs=conftest.$ac_objext
16036           deplibs=
16037           wl=$lt_prog_compiler_wl
16038           pic_flag=$lt_prog_compiler_pic
16039           compiler_flags=-v
16040           linker_flags=-v
16041           verstring=
16042           output_objdir=.
16043           libname=conftest
16044           lt_save_allow_undefined_flag=$allow_undefined_flag
16045           allow_undefined_flag=
16046           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16047   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16048   ac_status=$?
16049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16050   test $ac_status = 0; }
16051           then
16052             lt_cv_archive_cmds_need_lc=no
16053           else
16054             lt_cv_archive_cmds_need_lc=yes
16055           fi
16056           allow_undefined_flag=$lt_save_allow_undefined_flag
16057         else
16058           cat conftest.err 1>&5
16059         fi
16060         $RM conftest*
16061
16062 fi
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16064 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16065       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16066       ;;
16067     esac
16068   fi
16069   ;;
16070 esac
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16229 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16230
16231 if test "$GCC" = yes; then
16232   case $host_os in
16233     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16234     *) lt_awk_arg="/^libraries:/" ;;
16235   esac
16236   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16237   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
16238     # if the path contains ";" then we assume it to be the separator
16239     # otherwise default to the standard path separator (i.e. ":") - it is
16240     # assumed that no part of a normal pathname contains ";" but that should
16241     # okay in the real world where ";" in dirpaths is itself problematic.
16242     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
16243   else
16244     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16245   fi
16246   # Ok, now we have the path, separated by spaces, we can step through it
16247   # and add multilib dir if necessary.
16248   lt_tmp_lt_search_path_spec=
16249   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16250   for lt_sys_path in $lt_search_path_spec; do
16251     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16252       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16253     else
16254       test -d "$lt_sys_path" && \
16255         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16256     fi
16257   done
16258   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
16259 BEGIN {RS=" "; FS="/|\n";} {
16260   lt_foo="";
16261   lt_count=0;
16262   for (lt_i = NF; lt_i > 0; lt_i--) {
16263     if ($lt_i != "" && $lt_i != ".") {
16264       if ($lt_i == "..") {
16265         lt_count++;
16266       } else {
16267         if (lt_count == 0) {
16268           lt_foo="/" $lt_i lt_foo;
16269         } else {
16270           lt_count--;
16271         }
16272       }
16273     }
16274   }
16275   if (lt_foo != "") { lt_freq[lt_foo]++; }
16276   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16277 }'`
16278   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
16279 else
16280   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16281 fi
16282 library_names_spec=
16283 libname_spec='lib$name'
16284 soname_spec=
16285 shrext_cmds=".so"
16286 postinstall_cmds=
16287 postuninstall_cmds=
16288 finish_cmds=
16289 finish_eval=
16290 shlibpath_var=
16291 shlibpath_overrides_runpath=unknown
16292 version_type=none
16293 dynamic_linker="$host_os ld.so"
16294 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16295 need_lib_prefix=unknown
16296 hardcode_into_libs=no
16297
16298 # when you set need_version to no, make sure it does not cause -set_version
16299 # flags to be left without arguments
16300 need_version=unknown
16301
16302 case $host_os in
16303 aix3*)
16304   version_type=linux
16305   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16306   shlibpath_var=LIBPATH
16307
16308   # AIX 3 has no versioning support, so we append a major version to the name.
16309   soname_spec='${libname}${release}${shared_ext}$major'
16310   ;;
16311
16312 aix[4-9]*)
16313   version_type=linux
16314   need_lib_prefix=no
16315   need_version=no
16316   hardcode_into_libs=yes
16317   if test "$host_cpu" = ia64; then
16318     # AIX 5 supports IA64
16319     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16320     shlibpath_var=LD_LIBRARY_PATH
16321   else
16322     # With GCC up to 2.95.x, collect2 would create an import file
16323     # for dependence libraries.  The import file would start with
16324     # the line `#! .'.  This would cause the generated library to
16325     # depend on `.', always an invalid library.  This was fixed in
16326     # development snapshots of GCC prior to 3.0.
16327     case $host_os in
16328       aix4 | aix4.[01] | aix4.[01].*)
16329       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16330            echo ' yes '
16331            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16332         :
16333       else
16334         can_build_shared=no
16335       fi
16336       ;;
16337     esac
16338     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16339     # soname into executable. Probably we can add versioning support to
16340     # collect2, so additional links can be useful in future.
16341     if test "$aix_use_runtimelinking" = yes; then
16342       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16343       # instead of lib<name>.a to let people know that these are not
16344       # typical AIX shared libraries.
16345       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16346     else
16347       # We preserve .a as extension for shared libraries through AIX4.2
16348       # and later when we are not doing run time linking.
16349       library_names_spec='${libname}${release}.a $libname.a'
16350       soname_spec='${libname}${release}${shared_ext}$major'
16351     fi
16352     shlibpath_var=LIBPATH
16353   fi
16354   ;;
16355
16356 amigaos*)
16357   case $host_cpu in
16358   powerpc)
16359     # Since July 2007 AmigaOS4 officially supports .so libraries.
16360     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16361     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16362     ;;
16363   m68k)
16364     library_names_spec='$libname.ixlibrary $libname.a'
16365     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16366     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'
16367     ;;
16368   esac
16369   ;;
16370
16371 beos*)
16372   library_names_spec='${libname}${shared_ext}'
16373   dynamic_linker="$host_os ld.so"
16374   shlibpath_var=LIBRARY_PATH
16375   ;;
16376
16377 bsdi[45]*)
16378   version_type=linux
16379   need_version=no
16380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16381   soname_spec='${libname}${release}${shared_ext}$major'
16382   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16383   shlibpath_var=LD_LIBRARY_PATH
16384   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16385   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16386   # the default ld.so.conf also contains /usr/contrib/lib and
16387   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16388   # libtool to hard-code these into programs
16389   ;;
16390
16391 cygwin* | mingw* | pw32* | cegcc*)
16392   version_type=windows
16393   shrext_cmds=".dll"
16394   need_version=no
16395   need_lib_prefix=no
16396
16397   case $GCC,$host_os in
16398   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16399     library_names_spec='$libname.dll.a'
16400     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16401     postinstall_cmds='base_file=`basename \${file}`~
16402       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16403       dldir=$destdir/`dirname \$dlpath`~
16404       test -d \$dldir || mkdir -p \$dldir~
16405       $install_prog $dir/$dlname \$dldir/$dlname~
16406       chmod a+x \$dldir/$dlname~
16407       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16408         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16409       fi'
16410     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16411       dlpath=$dir/\$dldll~
16412        $RM \$dlpath'
16413     shlibpath_overrides_runpath=yes
16414
16415     case $host_os in
16416     cygwin*)
16417       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16418       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16419       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16420       ;;
16421     mingw* | cegcc*)
16422       # MinGW DLLs use traditional 'lib' prefix
16423       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16424       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16425       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16426         # It is most probably a Windows format PATH printed by
16427         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16428         # path with ; separators, and with drive letters. We can handle the
16429         # drive letters (cygwin fileutils understands them), so leave them,
16430         # especially as we might pass files found there to a mingw objdump,
16431         # which wouldn't understand a cygwinified path. Ahh.
16432         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16433       else
16434         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16435       fi
16436       ;;
16437     pw32*)
16438       # pw32 DLLs use 'pw' prefix rather than 'lib'
16439       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16440       ;;
16441     esac
16442     ;;
16443
16444   *)
16445     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16446     ;;
16447   esac
16448   dynamic_linker='Win32 ld.exe'
16449   # FIXME: first we should search . and the directory the executable is in
16450   shlibpath_var=PATH
16451   ;;
16452
16453 darwin* | rhapsody*)
16454   dynamic_linker="$host_os dyld"
16455   version_type=darwin
16456   need_lib_prefix=no
16457   need_version=no
16458   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16459   soname_spec='${libname}${release}${major}$shared_ext'
16460   shlibpath_overrides_runpath=yes
16461   shlibpath_var=DYLD_LIBRARY_PATH
16462   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16463
16464   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16465   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16466   ;;
16467
16468 dgux*)
16469   version_type=linux
16470   need_lib_prefix=no
16471   need_version=no
16472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16473   soname_spec='${libname}${release}${shared_ext}$major'
16474   shlibpath_var=LD_LIBRARY_PATH
16475   ;;
16476
16477 freebsd1*)
16478   dynamic_linker=no
16479   ;;
16480
16481 freebsd* | dragonfly*)
16482   # DragonFly does not have aout.  When/if they implement a new
16483   # versioning mechanism, adjust this.
16484   if test -x /usr/bin/objformat; then
16485     objformat=`/usr/bin/objformat`
16486   else
16487     case $host_os in
16488     freebsd[123]*) objformat=aout ;;
16489     *) objformat=elf ;;
16490     esac
16491   fi
16492   version_type=freebsd-$objformat
16493   case $version_type in
16494     freebsd-elf*)
16495       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16496       need_version=no
16497       need_lib_prefix=no
16498       ;;
16499     freebsd-*)
16500       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16501       need_version=yes
16502       ;;
16503   esac
16504   shlibpath_var=LD_LIBRARY_PATH
16505   case $host_os in
16506   freebsd2*)
16507     shlibpath_overrides_runpath=yes
16508     ;;
16509   freebsd3.[01]* | freebsdelf3.[01]*)
16510     shlibpath_overrides_runpath=yes
16511     hardcode_into_libs=yes
16512     ;;
16513   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16514   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16515     shlibpath_overrides_runpath=no
16516     hardcode_into_libs=yes
16517     ;;
16518   *) # from 4.6 on, and DragonFly
16519     shlibpath_overrides_runpath=yes
16520     hardcode_into_libs=yes
16521     ;;
16522   esac
16523   ;;
16524
16525 gnu*)
16526   version_type=linux
16527   need_lib_prefix=no
16528   need_version=no
16529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16530   soname_spec='${libname}${release}${shared_ext}$major'
16531   shlibpath_var=LD_LIBRARY_PATH
16532   hardcode_into_libs=yes
16533   ;;
16534
16535 hpux9* | hpux10* | hpux11*)
16536   # Give a soname corresponding to the major version so that dld.sl refuses to
16537   # link against other versions.
16538   version_type=sunos
16539   need_lib_prefix=no
16540   need_version=no
16541   case $host_cpu in
16542   ia64*)
16543     shrext_cmds='.so'
16544     hardcode_into_libs=yes
16545     dynamic_linker="$host_os dld.so"
16546     shlibpath_var=LD_LIBRARY_PATH
16547     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16548     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16549     soname_spec='${libname}${release}${shared_ext}$major'
16550     if test "X$HPUX_IA64_MODE" = X32; then
16551       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16552     else
16553       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16554     fi
16555     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16556     ;;
16557   hppa*64*)
16558     shrext_cmds='.sl'
16559     hardcode_into_libs=yes
16560     dynamic_linker="$host_os dld.sl"
16561     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16562     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16563     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16564     soname_spec='${libname}${release}${shared_ext}$major'
16565     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16566     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16567     ;;
16568   *)
16569     shrext_cmds='.sl'
16570     dynamic_linker="$host_os dld.sl"
16571     shlibpath_var=SHLIB_PATH
16572     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16574     soname_spec='${libname}${release}${shared_ext}$major'
16575     ;;
16576   esac
16577   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16578   postinstall_cmds='chmod 555 $lib'
16579   ;;
16580
16581 interix[3-9]*)
16582   version_type=linux
16583   need_lib_prefix=no
16584   need_version=no
16585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16586   soname_spec='${libname}${release}${shared_ext}$major'
16587   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16588   shlibpath_var=LD_LIBRARY_PATH
16589   shlibpath_overrides_runpath=no
16590   hardcode_into_libs=yes
16591   ;;
16592
16593 irix5* | irix6* | nonstopux*)
16594   case $host_os in
16595     nonstopux*) version_type=nonstopux ;;
16596     *)
16597         if test "$lt_cv_prog_gnu_ld" = yes; then
16598                 version_type=linux
16599         else
16600                 version_type=irix
16601         fi ;;
16602   esac
16603   need_lib_prefix=no
16604   need_version=no
16605   soname_spec='${libname}${release}${shared_ext}$major'
16606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16607   case $host_os in
16608   irix5* | nonstopux*)
16609     libsuff= shlibsuff=
16610     ;;
16611   *)
16612     case $LD in # libtool.m4 will add one of these switches to LD
16613     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16614       libsuff= shlibsuff= libmagic=32-bit;;
16615     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16616       libsuff=32 shlibsuff=N32 libmagic=N32;;
16617     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16618       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16619     *) libsuff= shlibsuff= libmagic=never-match;;
16620     esac
16621     ;;
16622   esac
16623   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16624   shlibpath_overrides_runpath=no
16625   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16626   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16627   hardcode_into_libs=yes
16628   ;;
16629
16630 # No shared lib support for Linux oldld, aout, or coff.
16631 linux*oldld* | linux*aout* | linux*coff*)
16632   dynamic_linker=no
16633   ;;
16634
16635 # This must be Linux ELF.
16636 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16637   version_type=linux
16638   need_lib_prefix=no
16639   need_version=no
16640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16641   soname_spec='${libname}${release}${shared_ext}$major'
16642   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16643   shlibpath_var=LD_LIBRARY_PATH
16644   shlibpath_overrides_runpath=no
16645
16646   # Some binutils ld are patched to set DT_RUNPATH
16647   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16648   $as_echo_n "(cached) " >&6
16649 else
16650   lt_cv_shlibpath_overrides_runpath=no
16651     save_LDFLAGS=$LDFLAGS
16652     save_libdir=$libdir
16653     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16654          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16655     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656 /* end confdefs.h.  */
16657
16658 int
16659 main ()
16660 {
16661
16662   ;
16663   return 0;
16664 }
16665 _ACEOF
16666 if ac_fn_c_try_link "$LINENO"; then :
16667   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16668   lt_cv_shlibpath_overrides_runpath=yes
16669 fi
16670 fi
16671 rm -f core conftest.err conftest.$ac_objext \
16672     conftest$ac_exeext conftest.$ac_ext
16673     LDFLAGS=$save_LDFLAGS
16674     libdir=$save_libdir
16675
16676 fi
16677
16678   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16679
16680   # This implies no fast_install, which is unacceptable.
16681   # Some rework will be needed to allow for fast_install
16682   # before this can be enabled.
16683   hardcode_into_libs=yes
16684
16685   # Append ld.so.conf contents to the search path
16686   if test -f /etc/ld.so.conf; then
16687     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' ' '`
16688     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16689   fi
16690
16691   # We used to test for /lib/ld.so.1 and disable shared libraries on
16692   # powerpc, because MkLinux only supported shared libraries with the
16693   # GNU dynamic linker.  Since this was broken with cross compilers,
16694   # most powerpc-linux boxes support dynamic linking these days and
16695   # people can always --disable-shared, the test was removed, and we
16696   # assume the GNU/Linux dynamic linker is in use.
16697   dynamic_linker='GNU/Linux ld.so'
16698   ;;
16699
16700 netbsd*)
16701   version_type=sunos
16702   need_lib_prefix=no
16703   need_version=no
16704   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16705     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16706     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16707     dynamic_linker='NetBSD (a.out) ld.so'
16708   else
16709     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16710     soname_spec='${libname}${release}${shared_ext}$major'
16711     dynamic_linker='NetBSD ld.elf_so'
16712   fi
16713   shlibpath_var=LD_LIBRARY_PATH
16714   shlibpath_overrides_runpath=yes
16715   hardcode_into_libs=yes
16716   ;;
16717
16718 newsos6)
16719   version_type=linux
16720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16721   shlibpath_var=LD_LIBRARY_PATH
16722   shlibpath_overrides_runpath=yes
16723   ;;
16724
16725 *nto* | *qnx*)
16726   version_type=qnx
16727   need_lib_prefix=no
16728   need_version=no
16729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16730   soname_spec='${libname}${release}${shared_ext}$major'
16731   shlibpath_var=LD_LIBRARY_PATH
16732   shlibpath_overrides_runpath=no
16733   hardcode_into_libs=yes
16734   dynamic_linker='ldqnx.so'
16735   ;;
16736
16737 openbsd*)
16738   version_type=sunos
16739   sys_lib_dlsearch_path_spec="/usr/lib"
16740   need_lib_prefix=no
16741   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16742   case $host_os in
16743     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16744     *)                          need_version=no  ;;
16745   esac
16746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16747   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16748   shlibpath_var=LD_LIBRARY_PATH
16749   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16750     case $host_os in
16751       openbsd2.[89] | openbsd2.[89].*)
16752         shlibpath_overrides_runpath=no
16753         ;;
16754       *)
16755         shlibpath_overrides_runpath=yes
16756         ;;
16757       esac
16758   else
16759     shlibpath_overrides_runpath=yes
16760   fi
16761   ;;
16762
16763 os2*)
16764   libname_spec='$name'
16765   shrext_cmds=".dll"
16766   need_lib_prefix=no
16767   library_names_spec='$libname${shared_ext} $libname.a'
16768   dynamic_linker='OS/2 ld.exe'
16769   shlibpath_var=LIBPATH
16770   ;;
16771
16772 osf3* | osf4* | osf5*)
16773   version_type=osf
16774   need_lib_prefix=no
16775   need_version=no
16776   soname_spec='${libname}${release}${shared_ext}$major'
16777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16778   shlibpath_var=LD_LIBRARY_PATH
16779   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16780   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16781   ;;
16782
16783 rdos*)
16784   dynamic_linker=no
16785   ;;
16786
16787 solaris*)
16788   version_type=linux
16789   need_lib_prefix=no
16790   need_version=no
16791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16792   soname_spec='${libname}${release}${shared_ext}$major'
16793   shlibpath_var=LD_LIBRARY_PATH
16794   shlibpath_overrides_runpath=yes
16795   hardcode_into_libs=yes
16796   # ldd complains unless libraries are executable
16797   postinstall_cmds='chmod +x $lib'
16798   ;;
16799
16800 sunos4*)
16801   version_type=sunos
16802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16803   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16804   shlibpath_var=LD_LIBRARY_PATH
16805   shlibpath_overrides_runpath=yes
16806   if test "$with_gnu_ld" = yes; then
16807     need_lib_prefix=no
16808   fi
16809   need_version=yes
16810   ;;
16811
16812 sysv4 | sysv4.3*)
16813   version_type=linux
16814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16815   soname_spec='${libname}${release}${shared_ext}$major'
16816   shlibpath_var=LD_LIBRARY_PATH
16817   case $host_vendor in
16818     sni)
16819       shlibpath_overrides_runpath=no
16820       need_lib_prefix=no
16821       runpath_var=LD_RUN_PATH
16822       ;;
16823     siemens)
16824       need_lib_prefix=no
16825       ;;
16826     motorola)
16827       need_lib_prefix=no
16828       need_version=no
16829       shlibpath_overrides_runpath=no
16830       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16831       ;;
16832   esac
16833   ;;
16834
16835 sysv4*MP*)
16836   if test -d /usr/nec ;then
16837     version_type=linux
16838     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16839     soname_spec='$libname${shared_ext}.$major'
16840     shlibpath_var=LD_LIBRARY_PATH
16841   fi
16842   ;;
16843
16844 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16845   version_type=freebsd-elf
16846   need_lib_prefix=no
16847   need_version=no
16848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16849   soname_spec='${libname}${release}${shared_ext}$major'
16850   shlibpath_var=LD_LIBRARY_PATH
16851   shlibpath_overrides_runpath=yes
16852   hardcode_into_libs=yes
16853   if test "$with_gnu_ld" = yes; then
16854     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16855   else
16856     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16857     case $host_os in
16858       sco3.2v5*)
16859         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16860         ;;
16861     esac
16862   fi
16863   sys_lib_dlsearch_path_spec='/usr/lib'
16864   ;;
16865
16866 tpf*)
16867   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16868   version_type=linux
16869   need_lib_prefix=no
16870   need_version=no
16871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16872   shlibpath_var=LD_LIBRARY_PATH
16873   shlibpath_overrides_runpath=no
16874   hardcode_into_libs=yes
16875   ;;
16876
16877 uts4*)
16878   version_type=linux
16879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16880   soname_spec='${libname}${release}${shared_ext}$major'
16881   shlibpath_var=LD_LIBRARY_PATH
16882   ;;
16883
16884 *)
16885   dynamic_linker=no
16886   ;;
16887 esac
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16889 $as_echo "$dynamic_linker" >&6; }
16890 test "$dynamic_linker" = no && can_build_shared=no
16891
16892 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16893 if test "$GCC" = yes; then
16894   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16895 fi
16896
16897 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16898   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16899 fi
16900 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16901   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16902 fi
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16991 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16992 hardcode_action=
16993 if test -n "$hardcode_libdir_flag_spec" ||
16994    test -n "$runpath_var" ||
16995    test "X$hardcode_automatic" = "Xyes" ; then
16996
16997   # We can hardcode non-existent directories.
16998   if test "$hardcode_direct" != no &&
16999      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17000      # have to relink, otherwise we might link with an installed library
17001      # when we should be linking with a yet-to-be-installed one
17002      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17003      test "$hardcode_minus_L" != no; then
17004     # Linking always hardcodes the temporary library directory.
17005     hardcode_action=relink
17006   else
17007     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17008     hardcode_action=immediate
17009   fi
17010 else
17011   # We cannot hardcode anything, or else we can only hardcode existing
17012   # directories.
17013   hardcode_action=unsupported
17014 fi
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17016 $as_echo "$hardcode_action" >&6; }
17017
17018 if test "$hardcode_action" = relink ||
17019    test "$inherit_rpath" = yes; then
17020   # Fast installation is not supported
17021   enable_fast_install=no
17022 elif test "$shlibpath_overrides_runpath" = yes ||
17023      test "$enable_shared" = no; then
17024   # Fast installation is not necessary
17025   enable_fast_install=needless
17026 fi
17027
17028
17029
17030
17031
17032
17033   if test "x$enable_dlopen" != xyes; then
17034   enable_dlopen=unknown
17035   enable_dlopen_self=unknown
17036   enable_dlopen_self_static=unknown
17037 else
17038   lt_cv_dlopen=no
17039   lt_cv_dlopen_libs=
17040
17041   case $host_os in
17042   beos*)
17043     lt_cv_dlopen="load_add_on"
17044     lt_cv_dlopen_libs=
17045     lt_cv_dlopen_self=yes
17046     ;;
17047
17048   mingw* | pw32* | cegcc*)
17049     lt_cv_dlopen="LoadLibrary"
17050     lt_cv_dlopen_libs=
17051     ;;
17052
17053   cygwin*)
17054     lt_cv_dlopen="dlopen"
17055     lt_cv_dlopen_libs=
17056     ;;
17057
17058   darwin*)
17059   # if libdl is installed we need to link against it
17060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17061 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17062 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17063   $as_echo_n "(cached) " >&6
17064 else
17065   ac_check_lib_save_LIBS=$LIBS
17066 LIBS="-ldl  $LIBS"
17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17068 /* end confdefs.h.  */
17069
17070 /* Override any GCC internal prototype to avoid an error.
17071    Use char because int might match the return type of a GCC
17072    builtin and then its argument prototype would still apply.  */
17073 #ifdef __cplusplus
17074 extern "C"
17075 #endif
17076 char dlopen ();
17077 int
17078 main ()
17079 {
17080 return dlopen ();
17081   ;
17082   return 0;
17083 }
17084 _ACEOF
17085 if ac_fn_c_try_link "$LINENO"; then :
17086   ac_cv_lib_dl_dlopen=yes
17087 else
17088   ac_cv_lib_dl_dlopen=no
17089 fi
17090 rm -f core conftest.err conftest.$ac_objext \
17091     conftest$ac_exeext conftest.$ac_ext
17092 LIBS=$ac_check_lib_save_LIBS
17093 fi
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17095 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17096 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17097   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17098 else
17099
17100     lt_cv_dlopen="dyld"
17101     lt_cv_dlopen_libs=
17102     lt_cv_dlopen_self=yes
17103
17104 fi
17105
17106     ;;
17107
17108   *)
17109     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17110 if test "x$ac_cv_func_shl_load" = x""yes; then :
17111   lt_cv_dlopen="shl_load"
17112 else
17113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17114 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17115 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17116   $as_echo_n "(cached) " >&6
17117 else
17118   ac_check_lib_save_LIBS=$LIBS
17119 LIBS="-ldld  $LIBS"
17120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17121 /* end confdefs.h.  */
17122
17123 /* Override any GCC internal prototype to avoid an error.
17124    Use char because int might match the return type of a GCC
17125    builtin and then its argument prototype would still apply.  */
17126 #ifdef __cplusplus
17127 extern "C"
17128 #endif
17129 char shl_load ();
17130 int
17131 main ()
17132 {
17133 return shl_load ();
17134   ;
17135   return 0;
17136 }
17137 _ACEOF
17138 if ac_fn_c_try_link "$LINENO"; then :
17139   ac_cv_lib_dld_shl_load=yes
17140 else
17141   ac_cv_lib_dld_shl_load=no
17142 fi
17143 rm -f core conftest.err conftest.$ac_objext \
17144     conftest$ac_exeext conftest.$ac_ext
17145 LIBS=$ac_check_lib_save_LIBS
17146 fi
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17148 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17149 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17150   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17151 else
17152   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17153 if test "x$ac_cv_func_dlopen" = x""yes; then :
17154   lt_cv_dlopen="dlopen"
17155 else
17156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17157 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17158 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17159   $as_echo_n "(cached) " >&6
17160 else
17161   ac_check_lib_save_LIBS=$LIBS
17162 LIBS="-ldl  $LIBS"
17163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164 /* end confdefs.h.  */
17165
17166 /* Override any GCC internal prototype to avoid an error.
17167    Use char because int might match the return type of a GCC
17168    builtin and then its argument prototype would still apply.  */
17169 #ifdef __cplusplus
17170 extern "C"
17171 #endif
17172 char dlopen ();
17173 int
17174 main ()
17175 {
17176 return dlopen ();
17177   ;
17178   return 0;
17179 }
17180 _ACEOF
17181 if ac_fn_c_try_link "$LINENO"; then :
17182   ac_cv_lib_dl_dlopen=yes
17183 else
17184   ac_cv_lib_dl_dlopen=no
17185 fi
17186 rm -f core conftest.err conftest.$ac_objext \
17187     conftest$ac_exeext conftest.$ac_ext
17188 LIBS=$ac_check_lib_save_LIBS
17189 fi
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17191 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17192 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17193   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17194 else
17195   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17196 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17197 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17198   $as_echo_n "(cached) " >&6
17199 else
17200   ac_check_lib_save_LIBS=$LIBS
17201 LIBS="-lsvld  $LIBS"
17202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17203 /* end confdefs.h.  */
17204
17205 /* Override any GCC internal prototype to avoid an error.
17206    Use char because int might match the return type of a GCC
17207    builtin and then its argument prototype would still apply.  */
17208 #ifdef __cplusplus
17209 extern "C"
17210 #endif
17211 char dlopen ();
17212 int
17213 main ()
17214 {
17215 return dlopen ();
17216   ;
17217   return 0;
17218 }
17219 _ACEOF
17220 if ac_fn_c_try_link "$LINENO"; then :
17221   ac_cv_lib_svld_dlopen=yes
17222 else
17223   ac_cv_lib_svld_dlopen=no
17224 fi
17225 rm -f core conftest.err conftest.$ac_objext \
17226     conftest$ac_exeext conftest.$ac_ext
17227 LIBS=$ac_check_lib_save_LIBS
17228 fi
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17230 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17231 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17232   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17233 else
17234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17235 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17236 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17237   $as_echo_n "(cached) " >&6
17238 else
17239   ac_check_lib_save_LIBS=$LIBS
17240 LIBS="-ldld  $LIBS"
17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h.  */
17243
17244 /* Override any GCC internal prototype to avoid an error.
17245    Use char because int might match the return type of a GCC
17246    builtin and then its argument prototype would still apply.  */
17247 #ifdef __cplusplus
17248 extern "C"
17249 #endif
17250 char dld_link ();
17251 int
17252 main ()
17253 {
17254 return dld_link ();
17255   ;
17256   return 0;
17257 }
17258 _ACEOF
17259 if ac_fn_c_try_link "$LINENO"; then :
17260   ac_cv_lib_dld_dld_link=yes
17261 else
17262   ac_cv_lib_dld_dld_link=no
17263 fi
17264 rm -f core conftest.err conftest.$ac_objext \
17265     conftest$ac_exeext conftest.$ac_ext
17266 LIBS=$ac_check_lib_save_LIBS
17267 fi
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17269 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17270 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17271   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17272 fi
17273
17274
17275 fi
17276
17277
17278 fi
17279
17280
17281 fi
17282
17283
17284 fi
17285
17286
17287 fi
17288
17289     ;;
17290   esac
17291
17292   if test "x$lt_cv_dlopen" != xno; then
17293     enable_dlopen=yes
17294   else
17295     enable_dlopen=no
17296   fi
17297
17298   case $lt_cv_dlopen in
17299   dlopen)
17300     save_CPPFLAGS="$CPPFLAGS"
17301     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17302
17303     save_LDFLAGS="$LDFLAGS"
17304     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17305
17306     save_LIBS="$LIBS"
17307     LIBS="$lt_cv_dlopen_libs $LIBS"
17308
17309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17310 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17311 if test "${lt_cv_dlopen_self+set}" = set; then :
17312   $as_echo_n "(cached) " >&6
17313 else
17314           if test "$cross_compiling" = yes; then :
17315   lt_cv_dlopen_self=cross
17316 else
17317   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17318   lt_status=$lt_dlunknown
17319   cat > conftest.$ac_ext <<_LT_EOF
17320 #line 17320 "configure"
17321 #include "confdefs.h"
17322
17323 #if HAVE_DLFCN_H
17324 #include <dlfcn.h>
17325 #endif
17326
17327 #include <stdio.h>
17328
17329 #ifdef RTLD_GLOBAL
17330 #  define LT_DLGLOBAL           RTLD_GLOBAL
17331 #else
17332 #  ifdef DL_GLOBAL
17333 #    define LT_DLGLOBAL         DL_GLOBAL
17334 #  else
17335 #    define LT_DLGLOBAL         0
17336 #  endif
17337 #endif
17338
17339 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17340    find out it does not work in some platform. */
17341 #ifndef LT_DLLAZY_OR_NOW
17342 #  ifdef RTLD_LAZY
17343 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17344 #  else
17345 #    ifdef DL_LAZY
17346 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17347 #    else
17348 #      ifdef RTLD_NOW
17349 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17350 #      else
17351 #        ifdef DL_NOW
17352 #          define LT_DLLAZY_OR_NOW      DL_NOW
17353 #        else
17354 #          define LT_DLLAZY_OR_NOW      0
17355 #        endif
17356 #      endif
17357 #    endif
17358 #  endif
17359 #endif
17360
17361 void fnord() { int i=42;}
17362 int main ()
17363 {
17364   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17365   int status = $lt_dlunknown;
17366
17367   if (self)
17368     {
17369       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17370       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17371       /* dlclose (self); */
17372     }
17373   else
17374     puts (dlerror ());
17375
17376   return status;
17377 }
17378 _LT_EOF
17379   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17380   (eval $ac_link) 2>&5
17381   ac_status=$?
17382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17383   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17384     (./conftest; exit; ) >&5 2>/dev/null
17385     lt_status=$?
17386     case x$lt_status in
17387       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17388       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17389       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17390     esac
17391   else :
17392     # compilation failed
17393     lt_cv_dlopen_self=no
17394   fi
17395 fi
17396 rm -fr conftest*
17397
17398
17399 fi
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17401 $as_echo "$lt_cv_dlopen_self" >&6; }
17402
17403     if test "x$lt_cv_dlopen_self" = xyes; then
17404       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17405       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17406 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17407 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17408   $as_echo_n "(cached) " >&6
17409 else
17410           if test "$cross_compiling" = yes; then :
17411   lt_cv_dlopen_self_static=cross
17412 else
17413   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17414   lt_status=$lt_dlunknown
17415   cat > conftest.$ac_ext <<_LT_EOF
17416 #line 17416 "configure"
17417 #include "confdefs.h"
17418
17419 #if HAVE_DLFCN_H
17420 #include <dlfcn.h>
17421 #endif
17422
17423 #include <stdio.h>
17424
17425 #ifdef RTLD_GLOBAL
17426 #  define LT_DLGLOBAL           RTLD_GLOBAL
17427 #else
17428 #  ifdef DL_GLOBAL
17429 #    define LT_DLGLOBAL         DL_GLOBAL
17430 #  else
17431 #    define LT_DLGLOBAL         0
17432 #  endif
17433 #endif
17434
17435 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17436    find out it does not work in some platform. */
17437 #ifndef LT_DLLAZY_OR_NOW
17438 #  ifdef RTLD_LAZY
17439 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17440 #  else
17441 #    ifdef DL_LAZY
17442 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17443 #    else
17444 #      ifdef RTLD_NOW
17445 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17446 #      else
17447 #        ifdef DL_NOW
17448 #          define LT_DLLAZY_OR_NOW      DL_NOW
17449 #        else
17450 #          define LT_DLLAZY_OR_NOW      0
17451 #        endif
17452 #      endif
17453 #    endif
17454 #  endif
17455 #endif
17456
17457 void fnord() { int i=42;}
17458 int main ()
17459 {
17460   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17461   int status = $lt_dlunknown;
17462
17463   if (self)
17464     {
17465       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17466       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17467       /* dlclose (self); */
17468     }
17469   else
17470     puts (dlerror ());
17471
17472   return status;
17473 }
17474 _LT_EOF
17475   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17476   (eval $ac_link) 2>&5
17477   ac_status=$?
17478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17479   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17480     (./conftest; exit; ) >&5 2>/dev/null
17481     lt_status=$?
17482     case x$lt_status in
17483       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17484       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17485       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17486     esac
17487   else :
17488     # compilation failed
17489     lt_cv_dlopen_self_static=no
17490   fi
17491 fi
17492 rm -fr conftest*
17493
17494
17495 fi
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17497 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17498     fi
17499
17500     CPPFLAGS="$save_CPPFLAGS"
17501     LDFLAGS="$save_LDFLAGS"
17502     LIBS="$save_LIBS"
17503     ;;
17504   esac
17505
17506   case $lt_cv_dlopen_self in
17507   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17508   *) enable_dlopen_self=unknown ;;
17509   esac
17510
17511   case $lt_cv_dlopen_self_static in
17512   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17513   *) enable_dlopen_self_static=unknown ;;
17514   esac
17515 fi
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533 striplib=
17534 old_striplib=
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17536 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17537 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17538   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17539   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17541 $as_echo "yes" >&6; }
17542 else
17543 # FIXME - insert some real tests, host_os isn't really good enough
17544   case $host_os in
17545   darwin*)
17546     if test -n "$STRIP" ; then
17547       striplib="$STRIP -x"
17548       old_striplib="$STRIP -S"
17549       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17550 $as_echo "yes" >&6; }
17551     else
17552       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17553 $as_echo "no" >&6; }
17554     fi
17555     ;;
17556   *)
17557     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17558 $as_echo "no" >&6; }
17559     ;;
17560   esac
17561 fi
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574   # Report which library types will actually be built
17575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17576 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17578 $as_echo "$can_build_shared" >&6; }
17579
17580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17581 $as_echo_n "checking whether to build shared libraries... " >&6; }
17582   test "$can_build_shared" = "no" && enable_shared=no
17583
17584   # On AIX, shared libraries and static libraries use the same namespace, and
17585   # are all built from PIC.
17586   case $host_os in
17587   aix3*)
17588     test "$enable_shared" = yes && enable_static=no
17589     if test -n "$RANLIB"; then
17590       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17591       postinstall_cmds='$RANLIB $lib'
17592     fi
17593     ;;
17594
17595   aix[4-9]*)
17596     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17597       test "$enable_shared" = yes && enable_static=no
17598     fi
17599     ;;
17600   esac
17601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17602 $as_echo "$enable_shared" >&6; }
17603
17604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17605 $as_echo_n "checking whether to build static libraries... " >&6; }
17606   # Make sure either enable_shared or enable_static is yes.
17607   test "$enable_shared" = yes || enable_static=yes
17608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17609 $as_echo "$enable_static" >&6; }
17610
17611
17612
17613
17614 fi
17615 ac_ext=c
17616 ac_cpp='$CPP $CPPFLAGS'
17617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17620
17621 CC="$lt_save_CC"
17622
17623
17624 ac_ext=cpp
17625 ac_cpp='$CXXCPP $CPPFLAGS'
17626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17629
17630 archive_cmds_need_lc_CXX=no
17631 allow_undefined_flag_CXX=
17632 always_export_symbols_CXX=no
17633 archive_expsym_cmds_CXX=
17634 compiler_needs_object_CXX=no
17635 export_dynamic_flag_spec_CXX=
17636 hardcode_direct_CXX=no
17637 hardcode_direct_absolute_CXX=no
17638 hardcode_libdir_flag_spec_CXX=
17639 hardcode_libdir_flag_spec_ld_CXX=
17640 hardcode_libdir_separator_CXX=
17641 hardcode_minus_L_CXX=no
17642 hardcode_shlibpath_var_CXX=unsupported
17643 hardcode_automatic_CXX=no
17644 inherit_rpath_CXX=no
17645 module_cmds_CXX=
17646 module_expsym_cmds_CXX=
17647 link_all_deplibs_CXX=unknown
17648 old_archive_cmds_CXX=$old_archive_cmds
17649 no_undefined_flag_CXX=
17650 whole_archive_flag_spec_CXX=
17651 enable_shared_with_static_runtimes_CXX=no
17652
17653 # Source file extension for C++ test sources.
17654 ac_ext=cpp
17655
17656 # Object file extension for compiled C++ test sources.
17657 objext=o
17658 objext_CXX=$objext
17659
17660 # No sense in running all these tests if we already determined that
17661 # the CXX compiler isn't working.  Some variables (like enable_shared)
17662 # are currently assumed to apply to all compilers on this platform,
17663 # and will be corrupted by setting them based on a non-working compiler.
17664 if test "$_lt_caught_CXX_error" != yes; then
17665   # Code to be used in simple compile tests
17666   lt_simple_compile_test_code="int some_variable = 0;"
17667
17668   # Code to be used in simple link tests
17669   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17670
17671   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17672
17673
17674
17675
17676
17677
17678 # If no C compiler was specified, use CC.
17679 LTCC=${LTCC-"$CC"}
17680
17681 # If no C compiler flags were specified, use CFLAGS.
17682 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17683
17684 # Allow CC to be a program name with arguments.
17685 compiler=$CC
17686
17687
17688   # save warnings/boilerplate of simple test code
17689   ac_outfile=conftest.$ac_objext
17690 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17691 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17692 _lt_compiler_boilerplate=`cat conftest.err`
17693 $RM conftest*
17694
17695   ac_outfile=conftest.$ac_objext
17696 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17697 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17698 _lt_linker_boilerplate=`cat conftest.err`
17699 $RM -r conftest*
17700
17701
17702   # Allow CC to be a program name with arguments.
17703   lt_save_CC=$CC
17704   lt_save_LD=$LD
17705   lt_save_GCC=$GCC
17706   GCC=$GXX
17707   lt_save_with_gnu_ld=$with_gnu_ld
17708   lt_save_path_LD=$lt_cv_path_LD
17709   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17710     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17711   else
17712     $as_unset lt_cv_prog_gnu_ld
17713   fi
17714   if test -n "${lt_cv_path_LDCXX+set}"; then
17715     lt_cv_path_LD=$lt_cv_path_LDCXX
17716   else
17717     $as_unset lt_cv_path_LD
17718   fi
17719   test -z "${LDCXX+set}" || LD=$LDCXX
17720   CC=${CXX-"c++"}
17721   compiler=$CC
17722   compiler_CXX=$CC
17723   for cc_temp in $compiler""; do
17724   case $cc_temp in
17725     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17726     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17727     \-*) ;;
17728     *) break;;
17729   esac
17730 done
17731 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17732
17733
17734   if test -n "$compiler"; then
17735     # We don't want -fno-exception when compiling C++ code, so set the
17736     # no_builtin_flag separately
17737     if test "$GXX" = yes; then
17738       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17739     else
17740       lt_prog_compiler_no_builtin_flag_CXX=
17741     fi
17742
17743     if test "$GXX" = yes; then
17744       # Set up default GNU C++ configuration
17745
17746
17747
17748 # Check whether --with-gnu-ld was given.
17749 if test "${with_gnu_ld+set}" = set; then :
17750   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17751 else
17752   with_gnu_ld=no
17753 fi
17754
17755 ac_prog=ld
17756 if test "$GCC" = yes; then
17757   # Check if gcc -print-prog-name=ld gives a path.
17758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17759 $as_echo_n "checking for ld used by $CC... " >&6; }
17760   case $host in
17761   *-*-mingw*)
17762     # gcc leaves a trailing carriage return which upsets mingw
17763     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17764   *)
17765     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17766   esac
17767   case $ac_prog in
17768     # Accept absolute paths.
17769     [\\/]* | ?:[\\/]*)
17770       re_direlt='/[^/][^/]*/\.\./'
17771       # Canonicalize the pathname of ld
17772       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17773       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17774         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17775       done
17776       test -z "$LD" && LD="$ac_prog"
17777       ;;
17778   "")
17779     # If it fails, then pretend we aren't using GCC.
17780     ac_prog=ld
17781     ;;
17782   *)
17783     # If it is relative, then search for the first ld in PATH.
17784     with_gnu_ld=unknown
17785     ;;
17786   esac
17787 elif test "$with_gnu_ld" = yes; then
17788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17789 $as_echo_n "checking for GNU ld... " >&6; }
17790 else
17791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17792 $as_echo_n "checking for non-GNU ld... " >&6; }
17793 fi
17794 if test "${lt_cv_path_LD+set}" = set; then :
17795   $as_echo_n "(cached) " >&6
17796 else
17797   if test -z "$LD"; then
17798   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17799   for ac_dir in $PATH; do
17800     IFS="$lt_save_ifs"
17801     test -z "$ac_dir" && ac_dir=.
17802     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17803       lt_cv_path_LD="$ac_dir/$ac_prog"
17804       # Check to see if the program is GNU ld.  I'd rather use --version,
17805       # but apparently some variants of GNU ld only accept -v.
17806       # Break only if it was the GNU/non-GNU ld that we prefer.
17807       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17808       *GNU* | *'with BFD'*)
17809         test "$with_gnu_ld" != no && break
17810         ;;
17811       *)
17812         test "$with_gnu_ld" != yes && break
17813         ;;
17814       esac
17815     fi
17816   done
17817   IFS="$lt_save_ifs"
17818 else
17819   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17820 fi
17821 fi
17822
17823 LD="$lt_cv_path_LD"
17824 if test -n "$LD"; then
17825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17826 $as_echo "$LD" >&6; }
17827 else
17828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17829 $as_echo "no" >&6; }
17830 fi
17831 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17833 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17834 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17835   $as_echo_n "(cached) " >&6
17836 else
17837   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17838 case `$LD -v 2>&1 </dev/null` in
17839 *GNU* | *'with BFD'*)
17840   lt_cv_prog_gnu_ld=yes
17841   ;;
17842 *)
17843   lt_cv_prog_gnu_ld=no
17844   ;;
17845 esac
17846 fi
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17848 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17849 with_gnu_ld=$lt_cv_prog_gnu_ld
17850
17851
17852
17853
17854
17855
17856
17857       # Check if GNU C++ uses GNU ld as the underlying linker, since the
17858       # archiving commands below assume that GNU ld is being used.
17859       if test "$with_gnu_ld" = yes; then
17860         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17861         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'
17862
17863         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17864         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17865
17866         # If archive_cmds runs LD, not CC, wlarc should be empty
17867         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17868         #     investigate it a little bit more. (MM)
17869         wlarc='${wl}'
17870
17871         # ancient GNU ld didn't support --whole-archive et. al.
17872         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17873           $GREP 'no-whole-archive' > /dev/null; then
17874           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17875         else
17876           whole_archive_flag_spec_CXX=
17877         fi
17878       else
17879         with_gnu_ld=no
17880         wlarc=
17881
17882         # A generic and very simple default shared library creation
17883         # command for GNU C++ for the case where it uses the native
17884         # linker, instead of GNU ld.  If possible, this setting should
17885         # overridden to take advantage of the native linker features on
17886         # the platform it is being used on.
17887         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17888       fi
17889
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       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
17894
17895     else
17896       GXX=no
17897       with_gnu_ld=no
17898       wlarc=
17899     fi
17900
17901     # PORTME: fill in a description of your system's C++ link characteristics
17902     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17903 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17904     ld_shlibs_CXX=yes
17905     case $host_os in
17906       aix3*)
17907         # FIXME: insert proper C++ library support
17908         ld_shlibs_CXX=no
17909         ;;
17910       aix[4-9]*)
17911         if test "$host_cpu" = ia64; then
17912           # On IA64, the linker does run time linking by default, so we don't
17913           # have to do anything special.
17914           aix_use_runtimelinking=no
17915           exp_sym_flag='-Bexport'
17916           no_entry_flag=""
17917         else
17918           aix_use_runtimelinking=no
17919
17920           # Test if we are trying to use run time linking or normal
17921           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17922           # need to do runtime linking.
17923           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17924             for ld_flag in $LDFLAGS; do
17925               case $ld_flag in
17926               *-brtl*)
17927                 aix_use_runtimelinking=yes
17928                 break
17929                 ;;
17930               esac
17931             done
17932             ;;
17933           esac
17934
17935           exp_sym_flag='-bexport'
17936           no_entry_flag='-bnoentry'
17937         fi
17938
17939         # When large executables or shared objects are built, AIX ld can
17940         # have problems creating the table of contents.  If linking a library
17941         # or program results in "error TOC overflow" add -mminimal-toc to
17942         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17943         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17944
17945         archive_cmds_CXX=''
17946         hardcode_direct_CXX=yes
17947         hardcode_direct_absolute_CXX=yes
17948         hardcode_libdir_separator_CXX=':'
17949         link_all_deplibs_CXX=yes
17950         file_list_spec_CXX='${wl}-f,'
17951
17952         if test "$GXX" = yes; then
17953           case $host_os in aix4.[012]|aix4.[012].*)
17954           # We only want to do this on AIX 4.2 and lower, the check
17955           # below for broken collect2 doesn't work under 4.3+
17956           collect2name=`${CC} -print-prog-name=collect2`
17957           if test -f "$collect2name" &&
17958              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17959           then
17960             # We have reworked collect2
17961             :
17962           else
17963             # We have old collect2
17964             hardcode_direct_CXX=unsupported
17965             # It fails to find uninstalled libraries when the uninstalled
17966             # path is not listed in the libpath.  Setting hardcode_minus_L
17967             # to unsupported forces relinking
17968             hardcode_minus_L_CXX=yes
17969             hardcode_libdir_flag_spec_CXX='-L$libdir'
17970             hardcode_libdir_separator_CXX=
17971           fi
17972           esac
17973           shared_flag='-shared'
17974           if test "$aix_use_runtimelinking" = yes; then
17975             shared_flag="$shared_flag "'${wl}-G'
17976           fi
17977         else
17978           # not using gcc
17979           if test "$host_cpu" = ia64; then
17980           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17981           # chokes on -Wl,-G. The following line is correct:
17982           shared_flag='-G'
17983           else
17984             if test "$aix_use_runtimelinking" = yes; then
17985               shared_flag='${wl}-G'
17986             else
17987               shared_flag='${wl}-bM:SRE'
17988             fi
17989           fi
17990         fi
17991
17992         export_dynamic_flag_spec_CXX='${wl}-bexpall'
17993         # It seems that -bexpall does not export symbols beginning with
17994         # underscore (_), so it is better to generate a list of symbols to
17995         # export.
17996         always_export_symbols_CXX=yes
17997         if test "$aix_use_runtimelinking" = yes; then
17998           # Warning - without using the other runtime loading flags (-brtl),
17999           # -berok will link without error, but may produce a broken library.
18000           allow_undefined_flag_CXX='-berok'
18001           # Determine the default libpath from the value encoded in an empty
18002           # executable.
18003           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18004 /* end confdefs.h.  */
18005
18006 int
18007 main ()
18008 {
18009
18010   ;
18011   return 0;
18012 }
18013 _ACEOF
18014 if ac_fn_cxx_try_link "$LINENO"; then :
18015
18016 lt_aix_libpath_sed='
18017     /Import File Strings/,/^$/ {
18018         /^0/ {
18019             s/^0  *\(.*\)$/\1/
18020             p
18021         }
18022     }'
18023 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18024 # Check for a 64-bit object if we didn't find anything.
18025 if test -z "$aix_libpath"; then
18026   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18027 fi
18028 fi
18029 rm -f core conftest.err conftest.$ac_objext \
18030     conftest$ac_exeext conftest.$ac_ext
18031 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18032
18033           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18034
18035           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"
18036         else
18037           if test "$host_cpu" = ia64; then
18038             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18039             allow_undefined_flag_CXX="-z nodefs"
18040             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"
18041           else
18042             # Determine the default libpath from the value encoded in an
18043             # empty executable.
18044             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18045 /* end confdefs.h.  */
18046
18047 int
18048 main ()
18049 {
18050
18051   ;
18052   return 0;
18053 }
18054 _ACEOF
18055 if ac_fn_cxx_try_link "$LINENO"; then :
18056
18057 lt_aix_libpath_sed='
18058     /Import File Strings/,/^$/ {
18059         /^0/ {
18060             s/^0  *\(.*\)$/\1/
18061             p
18062         }
18063     }'
18064 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18065 # Check for a 64-bit object if we didn't find anything.
18066 if test -z "$aix_libpath"; then
18067   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18068 fi
18069 fi
18070 rm -f core conftest.err conftest.$ac_objext \
18071     conftest$ac_exeext conftest.$ac_ext
18072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18073
18074             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18075             # Warning - without using the other run time loading flags,
18076             # -berok will link without error, but may produce a broken library.
18077             no_undefined_flag_CXX=' ${wl}-bernotok'
18078             allow_undefined_flag_CXX=' ${wl}-berok'
18079             # Exported symbols can be pulled into shared objects from archives
18080             whole_archive_flag_spec_CXX='$convenience'
18081             archive_cmds_need_lc_CXX=yes
18082             # This is similar to how AIX traditionally builds its shared
18083             # libraries.
18084             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'
18085           fi
18086         fi
18087         ;;
18088
18089       beos*)
18090         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18091           allow_undefined_flag_CXX=unsupported
18092           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18093           # support --undefined.  This deserves some investigation.  FIXME
18094           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18095         else
18096           ld_shlibs_CXX=no
18097         fi
18098         ;;
18099
18100       chorus*)
18101         case $cc_basename in
18102           *)
18103           # FIXME: insert proper C++ library support
18104           ld_shlibs_CXX=no
18105           ;;
18106         esac
18107         ;;
18108
18109       cygwin* | mingw* | pw32* | cegcc*)
18110         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18111         # as there is no search path for DLLs.
18112         hardcode_libdir_flag_spec_CXX='-L$libdir'
18113         allow_undefined_flag_CXX=unsupported
18114         always_export_symbols_CXX=no
18115         enable_shared_with_static_runtimes_CXX=yes
18116
18117         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18118           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'
18119           # If the export-symbols file already is a .def file (1st line
18120           # is EXPORTS), use it as is; otherwise, prepend...
18121           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18122             cp $export_symbols $output_objdir/$soname.def;
18123           else
18124             echo EXPORTS > $output_objdir/$soname.def;
18125             cat $export_symbols >> $output_objdir/$soname.def;
18126           fi~
18127           $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'
18128         else
18129           ld_shlibs_CXX=no
18130         fi
18131         ;;
18132       darwin* | rhapsody*)
18133
18134
18135   archive_cmds_need_lc_CXX=no
18136   hardcode_direct_CXX=no
18137   hardcode_automatic_CXX=yes
18138   hardcode_shlibpath_var_CXX=unsupported
18139   whole_archive_flag_spec_CXX=''
18140   link_all_deplibs_CXX=yes
18141   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18142   case $cc_basename in
18143      ifort*) _lt_dar_can_shared=yes ;;
18144      *) _lt_dar_can_shared=$GCC ;;
18145   esac
18146   if test "$_lt_dar_can_shared" = "yes"; then
18147     output_verbose_link_cmd=echo
18148     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}"
18149     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18150     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}"
18151     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}"
18152        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18153       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}"
18154       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}"
18155     fi
18156
18157   else
18158   ld_shlibs_CXX=no
18159   fi
18160
18161         ;;
18162
18163       dgux*)
18164         case $cc_basename in
18165           ec++*)
18166             # FIXME: insert proper C++ library support
18167             ld_shlibs_CXX=no
18168             ;;
18169           ghcx*)
18170             # Green Hills C++ Compiler
18171             # FIXME: insert proper C++ library support
18172             ld_shlibs_CXX=no
18173             ;;
18174           *)
18175             # FIXME: insert proper C++ library support
18176             ld_shlibs_CXX=no
18177             ;;
18178         esac
18179         ;;
18180
18181       freebsd[12]*)
18182         # C++ shared libraries reported to be fairly broken before
18183         # switch to ELF
18184         ld_shlibs_CXX=no
18185         ;;
18186
18187       freebsd-elf*)
18188         archive_cmds_need_lc_CXX=no
18189         ;;
18190
18191       freebsd* | dragonfly*)
18192         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18193         # conventions
18194         ld_shlibs_CXX=yes
18195         ;;
18196
18197       gnu*)
18198         ;;
18199
18200       hpux9*)
18201         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18202         hardcode_libdir_separator_CXX=:
18203         export_dynamic_flag_spec_CXX='${wl}-E'
18204         hardcode_direct_CXX=yes
18205         hardcode_minus_L_CXX=yes # Not in the search PATH,
18206                                              # but as the default
18207                                              # location of the library.
18208
18209         case $cc_basename in
18210           CC*)
18211             # FIXME: insert proper C++ library support
18212             ld_shlibs_CXX=no
18213             ;;
18214           aCC*)
18215             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'
18216             # Commands to make compiler produce verbose output that lists
18217             # what "hidden" libraries, object files and flags are used when
18218             # linking a shared library.
18219             #
18220             # There doesn't appear to be a way to prevent this compiler from
18221             # explicitly linking system object files so we need to strip them
18222             # from the output so that they don't get included in the library
18223             # dependencies.
18224             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'
18225             ;;
18226           *)
18227             if test "$GXX" = yes; then
18228               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'
18229             else
18230               # FIXME: insert proper C++ library support
18231               ld_shlibs_CXX=no
18232             fi
18233             ;;
18234         esac
18235         ;;
18236
18237       hpux10*|hpux11*)
18238         if test $with_gnu_ld = no; then
18239           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18240           hardcode_libdir_separator_CXX=:
18241
18242           case $host_cpu in
18243             hppa*64*|ia64*)
18244               ;;
18245             *)
18246               export_dynamic_flag_spec_CXX='${wl}-E'
18247               ;;
18248           esac
18249         fi
18250         case $host_cpu in
18251           hppa*64*|ia64*)
18252             hardcode_direct_CXX=no
18253             hardcode_shlibpath_var_CXX=no
18254             ;;
18255           *)
18256             hardcode_direct_CXX=yes
18257             hardcode_direct_absolute_CXX=yes
18258             hardcode_minus_L_CXX=yes # Not in the search PATH,
18259                                                  # but as the default
18260                                                  # location of the library.
18261             ;;
18262         esac
18263
18264         case $cc_basename in
18265           CC*)
18266             # FIXME: insert proper C++ library support
18267             ld_shlibs_CXX=no
18268             ;;
18269           aCC*)
18270             case $host_cpu in
18271               hppa*64*)
18272                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18273                 ;;
18274               ia64*)
18275                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18276                 ;;
18277               *)
18278                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18279                 ;;
18280             esac
18281             # Commands to make compiler produce verbose output that lists
18282             # what "hidden" libraries, object files and flags are used when
18283             # linking a shared library.
18284             #
18285             # There doesn't appear to be a way to prevent this compiler from
18286             # explicitly linking system object files so we need to strip them
18287             # from the output so that they don't get included in the library
18288             # dependencies.
18289             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'
18290             ;;
18291           *)
18292             if test "$GXX" = yes; then
18293               if test $with_gnu_ld = no; then
18294                 case $host_cpu in
18295                   hppa*64*)
18296                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18297                     ;;
18298                   ia64*)
18299                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18300                     ;;
18301                   *)
18302                     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'
18303                     ;;
18304                 esac
18305               fi
18306             else
18307               # FIXME: insert proper C++ library support
18308               ld_shlibs_CXX=no
18309             fi
18310             ;;
18311         esac
18312         ;;
18313
18314       interix[3-9]*)
18315         hardcode_direct_CXX=no
18316         hardcode_shlibpath_var_CXX=no
18317         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18318         export_dynamic_flag_spec_CXX='${wl}-E'
18319         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18320         # Instead, shared libraries are loaded at an image base (0x10000000 by
18321         # default) and relocated if they conflict, which is a slow very memory
18322         # consuming and fragmenting process.  To avoid this, we pick a random,
18323         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18324         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18325         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'
18326         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'
18327         ;;
18328       irix5* | irix6*)
18329         case $cc_basename in
18330           CC*)
18331             # SGI C++
18332             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'
18333
18334             # Archives containing C++ object files must be created using
18335             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18336             # necessary to make sure instantiated templates are included
18337             # in the archive.
18338             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18339             ;;
18340           *)
18341             if test "$GXX" = yes; then
18342               if test "$with_gnu_ld" = no; then
18343                 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'
18344               else
18345                 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'
18346               fi
18347             fi
18348             link_all_deplibs_CXX=yes
18349             ;;
18350         esac
18351         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18352         hardcode_libdir_separator_CXX=:
18353         inherit_rpath_CXX=yes
18354         ;;
18355
18356       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18357         case $cc_basename in
18358           KCC*)
18359             # Kuck and Associates, Inc. (KAI) C++ Compiler
18360
18361             # KCC will only create a shared library if the output file
18362             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18363             # to its proper name (with version) after linking.
18364             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'
18365             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'
18366             # Commands to make compiler produce verbose output that lists
18367             # what "hidden" libraries, object files and flags are used when
18368             # linking a shared library.
18369             #
18370             # There doesn't appear to be a way to prevent this compiler from
18371             # explicitly linking system object files so we need to strip them
18372             # from the output so that they don't get included in the library
18373             # dependencies.
18374             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'
18375
18376             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18377             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18378
18379             # Archives containing C++ object files must be created using
18380             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18381             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18382             ;;
18383           icpc* | ecpc* )
18384             # Intel C++
18385             with_gnu_ld=yes
18386             # version 8.0 and above of icpc choke on multiply defined symbols
18387             # if we add $predep_objects and $postdep_objects, however 7.1 and
18388             # earlier do not add the objects themselves.
18389             case `$CC -V 2>&1` in
18390               *"Version 7."*)
18391                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18392                 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'
18393                 ;;
18394               *)  # Version 8.0 or newer
18395                 tmp_idyn=
18396                 case $host_cpu in
18397                   ia64*) tmp_idyn=' -i_dynamic';;
18398                 esac
18399                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18400                 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'
18401                 ;;
18402             esac
18403             archive_cmds_need_lc_CXX=no
18404             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18405             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18406             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18407             ;;
18408           pgCC* | pgcpp*)
18409             # Portland Group C++ compiler
18410             case `$CC -V` in
18411             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
18412               prelink_cmds_CXX='tpldir=Template.dir~
18413                 rm -rf $tpldir~
18414                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18415                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18416               old_archive_cmds_CXX='tpldir=Template.dir~
18417                 rm -rf $tpldir~
18418                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18419                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18420                 $RANLIB $oldlib'
18421               archive_cmds_CXX='tpldir=Template.dir~
18422                 rm -rf $tpldir~
18423                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18424                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18425               archive_expsym_cmds_CXX='tpldir=Template.dir~
18426                 rm -rf $tpldir~
18427                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18428                 $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'
18429               ;;
18430             *) # Version 6 will use weak symbols
18431               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18432               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'
18433               ;;
18434             esac
18435
18436             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18437             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18438             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'
18439             ;;
18440           cxx*)
18441             # Compaq C++
18442             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18443             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'
18444
18445             runpath_var=LD_RUN_PATH
18446             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18447             hardcode_libdir_separator_CXX=:
18448
18449             # Commands to make compiler produce verbose output that lists
18450             # what "hidden" libraries, object files and flags are used when
18451             # linking a shared library.
18452             #
18453             # There doesn't appear to be a way to prevent this compiler from
18454             # explicitly linking system object files so we need to strip them
18455             # from the output so that they don't get included in the library
18456             # dependencies.
18457             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'
18458             ;;
18459           xl*)
18460             # IBM XL 8.0 on PPC, with GNU ld
18461             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18462             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18463             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18464             if test "x$supports_anon_versioning" = xyes; then
18465               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18466                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18467                 echo "local: *; };" >> $output_objdir/$libname.ver~
18468                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18469             fi
18470             ;;
18471           *)
18472             case `$CC -V 2>&1 | sed 5q` in
18473             *Sun\ C*)
18474               # Sun C++ 5.9
18475               no_undefined_flag_CXX=' -zdefs'
18476               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18477               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'
18478               hardcode_libdir_flag_spec_CXX='-R$libdir'
18479               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'
18480               compiler_needs_object_CXX=yes
18481
18482               # Not sure whether something based on
18483               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18484               # would be better.
18485               output_verbose_link_cmd='echo'
18486
18487               # Archives containing C++ object files must be created using
18488               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18489               # necessary to make sure instantiated templates are included
18490               # in the archive.
18491               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18492               ;;
18493             esac
18494             ;;
18495         esac
18496         ;;
18497
18498       lynxos*)
18499         # FIXME: insert proper C++ library support
18500         ld_shlibs_CXX=no
18501         ;;
18502
18503       m88k*)
18504         # FIXME: insert proper C++ library support
18505         ld_shlibs_CXX=no
18506         ;;
18507
18508       mvs*)
18509         case $cc_basename in
18510           cxx*)
18511             # FIXME: insert proper C++ library support
18512             ld_shlibs_CXX=no
18513             ;;
18514           *)
18515             # FIXME: insert proper C++ library support
18516             ld_shlibs_CXX=no
18517             ;;
18518         esac
18519         ;;
18520
18521       netbsd*)
18522         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18523           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18524           wlarc=
18525           hardcode_libdir_flag_spec_CXX='-R$libdir'
18526           hardcode_direct_CXX=yes
18527           hardcode_shlibpath_var_CXX=no
18528         fi
18529         # Workaround some broken pre-1.5 toolchains
18530         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18531         ;;
18532
18533       *nto* | *qnx*)
18534         ld_shlibs_CXX=yes
18535         ;;
18536
18537       openbsd2*)
18538         # C++ shared libraries are fairly broken
18539         ld_shlibs_CXX=no
18540         ;;
18541
18542       openbsd*)
18543         if test -f /usr/libexec/ld.so; then
18544           hardcode_direct_CXX=yes
18545           hardcode_shlibpath_var_CXX=no
18546           hardcode_direct_absolute_CXX=yes
18547           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18548           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18549           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18550             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18551             export_dynamic_flag_spec_CXX='${wl}-E'
18552             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18553           fi
18554           output_verbose_link_cmd=echo
18555         else
18556           ld_shlibs_CXX=no
18557         fi
18558         ;;
18559
18560       osf3* | osf4* | osf5*)
18561         case $cc_basename in
18562           KCC*)
18563             # Kuck and Associates, Inc. (KAI) C++ Compiler
18564
18565             # KCC will only create a shared library if the output file
18566             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18567             # to its proper name (with version) after linking.
18568             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'
18569
18570             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18571             hardcode_libdir_separator_CXX=:
18572
18573             # Archives containing C++ object files must be created using
18574             # the KAI C++ compiler.
18575             case $host in
18576               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18577               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18578             esac
18579             ;;
18580           RCC*)
18581             # Rational C++ 2.4.1
18582             # FIXME: insert proper C++ library support
18583             ld_shlibs_CXX=no
18584             ;;
18585           cxx*)
18586             case $host in
18587               osf3*)
18588                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18589                 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'
18590                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18591                 ;;
18592               *)
18593                 allow_undefined_flag_CXX=' -expect_unresolved \*'
18594                 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'
18595                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18596                   echo "-hidden">> $lib.exp~
18597                   $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~
18598                   $RM $lib.exp'
18599                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18600                 ;;
18601             esac
18602
18603             hardcode_libdir_separator_CXX=:
18604
18605             # Commands to make compiler produce verbose output that lists
18606             # what "hidden" libraries, object files and flags are used when
18607             # linking a shared library.
18608             #
18609             # There doesn't appear to be a way to prevent this compiler from
18610             # explicitly linking system object files so we need to strip them
18611             # from the output so that they don't get included in the library
18612             # dependencies.
18613             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'
18614             ;;
18615           *)
18616             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18617               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18618               case $host in
18619                 osf3*)
18620                   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'
18621                   ;;
18622                 *)
18623                   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'
18624                   ;;
18625               esac
18626
18627               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18628               hardcode_libdir_separator_CXX=:
18629
18630               # Commands to make compiler produce verbose output that lists
18631               # what "hidden" libraries, object files and flags are used when
18632               # linking a shared library.
18633               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18634
18635             else
18636               # FIXME: insert proper C++ library support
18637               ld_shlibs_CXX=no
18638             fi
18639             ;;
18640         esac
18641         ;;
18642
18643       psos*)
18644         # FIXME: insert proper C++ library support
18645         ld_shlibs_CXX=no
18646         ;;
18647
18648       sunos4*)
18649         case $cc_basename in
18650           CC*)
18651             # Sun C++ 4.x
18652             # FIXME: insert proper C++ library support
18653             ld_shlibs_CXX=no
18654             ;;
18655           lcc*)
18656             # Lucid
18657             # FIXME: insert proper C++ library support
18658             ld_shlibs_CXX=no
18659             ;;
18660           *)
18661             # FIXME: insert proper C++ library support
18662             ld_shlibs_CXX=no
18663             ;;
18664         esac
18665         ;;
18666
18667       solaris*)
18668         case $cc_basename in
18669           CC*)
18670             # Sun C++ 4.2, 5.x and Centerline C++
18671             archive_cmds_need_lc_CXX=yes
18672             no_undefined_flag_CXX=' -zdefs'
18673             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18674             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18675               $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'
18676
18677             hardcode_libdir_flag_spec_CXX='-R$libdir'
18678             hardcode_shlibpath_var_CXX=no
18679             case $host_os in
18680               solaris2.[0-5] | solaris2.[0-5].*) ;;
18681               *)
18682                 # The compiler driver will combine and reorder linker options,
18683                 # but understands `-z linker_flag'.
18684                 # Supported since Solaris 2.6 (maybe 2.5.1?)
18685                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18686                 ;;
18687             esac
18688             link_all_deplibs_CXX=yes
18689
18690             output_verbose_link_cmd='echo'
18691
18692             # Archives containing C++ object files must be created using
18693             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18694             # necessary to make sure instantiated templates are included
18695             # in the archive.
18696             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18697             ;;
18698           gcx*)
18699             # Green Hills C++ Compiler
18700             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18701
18702             # The C++ compiler must be used to create the archive.
18703             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18704             ;;
18705           *)
18706             # GNU C++ compiler with Solaris linker
18707             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18708               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18709               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18710                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18711                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18712                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18713
18714                 # Commands to make compiler produce verbose output that lists
18715                 # what "hidden" libraries, object files and flags are used when
18716                 # linking a shared library.
18717                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18718               else
18719                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18720                 # platform.
18721                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18722                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18723                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18724
18725                 # Commands to make compiler produce verbose output that lists
18726                 # what "hidden" libraries, object files and flags are used when
18727                 # linking a shared library.
18728                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18729               fi
18730
18731               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18732               case $host_os in
18733                 solaris2.[0-5] | solaris2.[0-5].*) ;;
18734                 *)
18735                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18736                   ;;
18737               esac
18738             fi
18739             ;;
18740         esac
18741         ;;
18742
18743     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18744       no_undefined_flag_CXX='${wl}-z,text'
18745       archive_cmds_need_lc_CXX=no
18746       hardcode_shlibpath_var_CXX=no
18747       runpath_var='LD_RUN_PATH'
18748
18749       case $cc_basename in
18750         CC*)
18751           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18752           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18753           ;;
18754         *)
18755           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18756           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18757           ;;
18758       esac
18759       ;;
18760
18761       sysv5* | sco3.2v5* | sco5v6*)
18762         # Note: We can NOT use -z defs as we might desire, because we do not
18763         # link with -lc, and that would cause any symbols used from libc to
18764         # always be unresolved, which means just about no library would
18765         # ever link correctly.  If we're not using GNU ld we use -z text
18766         # though, which does catch some bad symbols but isn't as heavy-handed
18767         # as -z defs.
18768         no_undefined_flag_CXX='${wl}-z,text'
18769         allow_undefined_flag_CXX='${wl}-z,nodefs'
18770         archive_cmds_need_lc_CXX=no
18771         hardcode_shlibpath_var_CXX=no
18772         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18773         hardcode_libdir_separator_CXX=':'
18774         link_all_deplibs_CXX=yes
18775         export_dynamic_flag_spec_CXX='${wl}-Bexport'
18776         runpath_var='LD_RUN_PATH'
18777
18778         case $cc_basename in
18779           CC*)
18780             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18781             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18782             ;;
18783           *)
18784             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18785             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18786             ;;
18787         esac
18788       ;;
18789
18790       tandem*)
18791         case $cc_basename in
18792           NCC*)
18793             # NonStop-UX NCC 3.20
18794             # FIXME: insert proper C++ library support
18795             ld_shlibs_CXX=no
18796             ;;
18797           *)
18798             # FIXME: insert proper C++ library support
18799             ld_shlibs_CXX=no
18800             ;;
18801         esac
18802         ;;
18803
18804       vxworks*)
18805         # FIXME: insert proper C++ library support
18806         ld_shlibs_CXX=no
18807         ;;
18808
18809       *)
18810         # FIXME: insert proper C++ library support
18811         ld_shlibs_CXX=no
18812         ;;
18813     esac
18814
18815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18816 $as_echo "$ld_shlibs_CXX" >&6; }
18817     test "$ld_shlibs_CXX" = no && can_build_shared=no
18818
18819     GCC_CXX="$GXX"
18820     LD_CXX="$LD"
18821
18822     ## CAVEAT EMPTOR:
18823     ## There is no encapsulation within the following macros, do not change
18824     ## the running order or otherwise move them around unless you know exactly
18825     ## what you are doing...
18826     # Dependencies to place before and after the object being linked:
18827 predep_objects_CXX=
18828 postdep_objects_CXX=
18829 predeps_CXX=
18830 postdeps_CXX=
18831 compiler_lib_search_path_CXX=
18832
18833 cat > conftest.$ac_ext <<_LT_EOF
18834 class Foo
18835 {
18836 public:
18837   Foo (void) { a = 0; }
18838 private:
18839   int a;
18840 };
18841 _LT_EOF
18842
18843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18844   (eval $ac_compile) 2>&5
18845   ac_status=$?
18846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18847   test $ac_status = 0; }; then
18848   # Parse the compiler output and extract the necessary
18849   # objects, libraries and library flags.
18850
18851   # Sentinel used to keep track of whether or not we are before
18852   # the conftest object file.
18853   pre_test_object_deps_done=no
18854
18855   for p in `eval "$output_verbose_link_cmd"`; do
18856     case $p in
18857
18858     -L* | -R* | -l*)
18859        # Some compilers place space between "-{L,R}" and the path.
18860        # Remove the space.
18861        if test $p = "-L" ||
18862           test $p = "-R"; then
18863          prev=$p
18864          continue
18865        else
18866          prev=
18867        fi
18868
18869        if test "$pre_test_object_deps_done" = no; then
18870          case $p in
18871          -L* | -R*)
18872            # Internal compiler library paths should come after those
18873            # provided the user.  The postdeps already come after the
18874            # user supplied libs so there is no need to process them.
18875            if test -z "$compiler_lib_search_path_CXX"; then
18876              compiler_lib_search_path_CXX="${prev}${p}"
18877            else
18878              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18879            fi
18880            ;;
18881          # The "-l" case would never come before the object being
18882          # linked, so don't bother handling this case.
18883          esac
18884        else
18885          if test -z "$postdeps_CXX"; then
18886            postdeps_CXX="${prev}${p}"
18887          else
18888            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18889          fi
18890        fi
18891        ;;
18892
18893     *.$objext)
18894        # This assumes that the test object file only shows up
18895        # once in the compiler output.
18896        if test "$p" = "conftest.$objext"; then
18897          pre_test_object_deps_done=yes
18898          continue
18899        fi
18900
18901        if test "$pre_test_object_deps_done" = no; then
18902          if test -z "$predep_objects_CXX"; then
18903            predep_objects_CXX="$p"
18904          else
18905            predep_objects_CXX="$predep_objects_CXX $p"
18906          fi
18907        else
18908          if test -z "$postdep_objects_CXX"; then
18909            postdep_objects_CXX="$p"
18910          else
18911            postdep_objects_CXX="$postdep_objects_CXX $p"
18912          fi
18913        fi
18914        ;;
18915
18916     *) ;; # Ignore the rest.
18917
18918     esac
18919   done
18920
18921   # Clean up.
18922   rm -f a.out a.exe
18923 else
18924   echo "libtool.m4: error: problem compiling CXX test program"
18925 fi
18926
18927 $RM -f confest.$objext
18928
18929 # PORTME: override above test on systems where it is broken
18930 case $host_os in
18931 interix[3-9]*)
18932   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18933   # hack all around it, let's just trust "g++" to DTRT.
18934   predep_objects_CXX=
18935   postdep_objects_CXX=
18936   postdeps_CXX=
18937   ;;
18938
18939 linux*)
18940   case `$CC -V 2>&1 | sed 5q` in
18941   *Sun\ C*)
18942     # Sun C++ 5.9
18943
18944     # The more standards-conforming stlport4 library is
18945     # incompatible with the Cstd library. Avoid specifying
18946     # it if it's in CXXFLAGS. Ignore libCrun as
18947     # -library=stlport4 depends on it.
18948     case " $CXX $CXXFLAGS " in
18949     *" -library=stlport4 "*)
18950       solaris_use_stlport4=yes
18951       ;;
18952     esac
18953
18954     if test "$solaris_use_stlport4" != yes; then
18955       postdeps_CXX='-library=Cstd -library=Crun'
18956     fi
18957     ;;
18958   esac
18959   ;;
18960
18961 solaris*)
18962   case $cc_basename in
18963   CC*)
18964     # The more standards-conforming stlport4 library is
18965     # incompatible with the Cstd library. Avoid specifying
18966     # it if it's in CXXFLAGS. Ignore libCrun as
18967     # -library=stlport4 depends on it.
18968     case " $CXX $CXXFLAGS " in
18969     *" -library=stlport4 "*)
18970       solaris_use_stlport4=yes
18971       ;;
18972     esac
18973
18974     # Adding this requires a known-good setup of shared libraries for
18975     # Sun compiler versions before 5.6, else PIC objects from an old
18976     # archive will be linked into the output, leading to subtle bugs.
18977     if test "$solaris_use_stlport4" != yes; then
18978       postdeps_CXX='-library=Cstd -library=Crun'
18979     fi
18980     ;;
18981   esac
18982   ;;
18983 esac
18984
18985
18986 case " $postdeps_CXX " in
18987 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18988 esac
18989  compiler_lib_search_dirs_CXX=
18990 if test -n "${compiler_lib_search_path_CXX}"; then
18991  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18992 fi
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024     lt_prog_compiler_wl_CXX=
19025 lt_prog_compiler_pic_CXX=
19026 lt_prog_compiler_static_CXX=
19027
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19029 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19030
19031   # C++ specific cases for pic, static, wl, etc.
19032   if test "$GXX" = yes; then
19033     lt_prog_compiler_wl_CXX='-Wl,'
19034     lt_prog_compiler_static_CXX='-static'
19035
19036     case $host_os in
19037     aix*)
19038       # All AIX code is PIC.
19039       if test "$host_cpu" = ia64; then
19040         # AIX 5 now supports IA64 processor
19041         lt_prog_compiler_static_CXX='-Bstatic'
19042       fi
19043       ;;
19044
19045     amigaos*)
19046       case $host_cpu in
19047       powerpc)
19048             # see comment about AmigaOS4 .so support
19049             lt_prog_compiler_pic_CXX='-fPIC'
19050         ;;
19051       m68k)
19052             # FIXME: we need at least 68020 code to build shared libraries, but
19053             # adding the `-m68020' flag to GCC prevents building anything better,
19054             # like `-m68040'.
19055             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19056         ;;
19057       esac
19058       ;;
19059
19060     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19061       # PIC is the default for these OSes.
19062       ;;
19063     mingw* | cygwin* | os2* | pw32* | cegcc*)
19064       # This hack is so that the source file can tell whether it is being
19065       # built for inclusion in a dll (and should export symbols for example).
19066       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19067       # (--disable-auto-import) libraries
19068       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19069       ;;
19070     darwin* | rhapsody*)
19071       # PIC is the default on this platform
19072       # Common symbols not allowed in MH_DYLIB files
19073       lt_prog_compiler_pic_CXX='-fno-common'
19074       ;;
19075     *djgpp*)
19076       # DJGPP does not support shared libraries at all
19077       lt_prog_compiler_pic_CXX=
19078       ;;
19079     interix[3-9]*)
19080       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19081       # Instead, we relocate shared libraries at runtime.
19082       ;;
19083     sysv4*MP*)
19084       if test -d /usr/nec; then
19085         lt_prog_compiler_pic_CXX=-Kconform_pic
19086       fi
19087       ;;
19088     hpux*)
19089       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19090       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19091       # sets the default TLS model and affects inlining.
19092       case $host_cpu in
19093       hppa*64*)
19094         ;;
19095       *)
19096         lt_prog_compiler_pic_CXX='-fPIC'
19097         ;;
19098       esac
19099       ;;
19100     *qnx* | *nto*)
19101       # QNX uses GNU C++, but need to define -shared option too, otherwise
19102       # it will coredump.
19103       lt_prog_compiler_pic_CXX='-fPIC -shared'
19104       ;;
19105     *)
19106       lt_prog_compiler_pic_CXX='-fPIC'
19107       ;;
19108     esac
19109   else
19110     case $host_os in
19111       aix[4-9]*)
19112         # All AIX code is PIC.
19113         if test "$host_cpu" = ia64; then
19114           # AIX 5 now supports IA64 processor
19115           lt_prog_compiler_static_CXX='-Bstatic'
19116         else
19117           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19118         fi
19119         ;;
19120       chorus*)
19121         case $cc_basename in
19122         cxch68*)
19123           # Green Hills C++ Compiler
19124           # _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"
19125           ;;
19126         esac
19127         ;;
19128       dgux*)
19129         case $cc_basename in
19130           ec++*)
19131             lt_prog_compiler_pic_CXX='-KPIC'
19132             ;;
19133           ghcx*)
19134             # Green Hills C++ Compiler
19135             lt_prog_compiler_pic_CXX='-pic'
19136             ;;
19137           *)
19138             ;;
19139         esac
19140         ;;
19141       freebsd* | dragonfly*)
19142         # FreeBSD uses GNU C++
19143         ;;
19144       hpux9* | hpux10* | hpux11*)
19145         case $cc_basename in
19146           CC*)
19147             lt_prog_compiler_wl_CXX='-Wl,'
19148             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19149             if test "$host_cpu" != ia64; then
19150               lt_prog_compiler_pic_CXX='+Z'
19151             fi
19152             ;;
19153           aCC*)
19154             lt_prog_compiler_wl_CXX='-Wl,'
19155             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19156             case $host_cpu in
19157             hppa*64*|ia64*)
19158               # +Z the default
19159               ;;
19160             *)
19161               lt_prog_compiler_pic_CXX='+Z'
19162               ;;
19163             esac
19164             ;;
19165           *)
19166             ;;
19167         esac
19168         ;;
19169       interix*)
19170         # This is c89, which is MS Visual C++ (no shared libs)
19171         # Anyone wants to do a port?
19172         ;;
19173       irix5* | irix6* | nonstopux*)
19174         case $cc_basename in
19175           CC*)
19176             lt_prog_compiler_wl_CXX='-Wl,'
19177             lt_prog_compiler_static_CXX='-non_shared'
19178             # CC pic flag -KPIC is the default.
19179             ;;
19180           *)
19181             ;;
19182         esac
19183         ;;
19184       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19185         case $cc_basename in
19186           KCC*)
19187             # KAI C++ Compiler
19188             lt_prog_compiler_wl_CXX='--backend -Wl,'
19189             lt_prog_compiler_pic_CXX='-fPIC'
19190             ;;
19191           ecpc* )
19192             # old Intel C++ for x86_64 which still supported -KPIC.
19193             lt_prog_compiler_wl_CXX='-Wl,'
19194             lt_prog_compiler_pic_CXX='-KPIC'
19195             lt_prog_compiler_static_CXX='-static'
19196             ;;
19197           icpc* )
19198             # Intel C++, used to be incompatible with GCC.
19199             # ICC 10 doesn't accept -KPIC any more.
19200             lt_prog_compiler_wl_CXX='-Wl,'
19201             lt_prog_compiler_pic_CXX='-fPIC'
19202             lt_prog_compiler_static_CXX='-static'
19203             ;;
19204           pgCC* | pgcpp*)
19205             # Portland Group C++ compiler
19206             lt_prog_compiler_wl_CXX='-Wl,'
19207             lt_prog_compiler_pic_CXX='-fpic'
19208             lt_prog_compiler_static_CXX='-Bstatic'
19209             ;;
19210           cxx*)
19211             # Compaq C++
19212             # Make sure the PIC flag is empty.  It appears that all Alpha
19213             # Linux and Compaq Tru64 Unix objects are PIC.
19214             lt_prog_compiler_pic_CXX=
19215             lt_prog_compiler_static_CXX='-non_shared'
19216             ;;
19217           xlc* | xlC*)
19218             # IBM XL 8.0 on PPC
19219             lt_prog_compiler_wl_CXX='-Wl,'
19220             lt_prog_compiler_pic_CXX='-qpic'
19221             lt_prog_compiler_static_CXX='-qstaticlink'
19222             ;;
19223           *)
19224             case `$CC -V 2>&1 | sed 5q` in
19225             *Sun\ C*)
19226               # Sun C++ 5.9
19227               lt_prog_compiler_pic_CXX='-KPIC'
19228               lt_prog_compiler_static_CXX='-Bstatic'
19229               lt_prog_compiler_wl_CXX='-Qoption ld '
19230               ;;
19231             esac
19232             ;;
19233         esac
19234         ;;
19235       lynxos*)
19236         ;;
19237       m88k*)
19238         ;;
19239       mvs*)
19240         case $cc_basename in
19241           cxx*)
19242             lt_prog_compiler_pic_CXX='-W c,exportall'
19243             ;;
19244           *)
19245             ;;
19246         esac
19247         ;;
19248       netbsd*)
19249         ;;
19250       *qnx* | *nto*)
19251         # QNX uses GNU C++, but need to define -shared option too, otherwise
19252         # it will coredump.
19253         lt_prog_compiler_pic_CXX='-fPIC -shared'
19254         ;;
19255       osf3* | osf4* | osf5*)
19256         case $cc_basename in
19257           KCC*)
19258             lt_prog_compiler_wl_CXX='--backend -Wl,'
19259             ;;
19260           RCC*)
19261             # Rational C++ 2.4.1
19262             lt_prog_compiler_pic_CXX='-pic'
19263             ;;
19264           cxx*)
19265             # Digital/Compaq C++
19266             lt_prog_compiler_wl_CXX='-Wl,'
19267             # Make sure the PIC flag is empty.  It appears that all Alpha
19268             # Linux and Compaq Tru64 Unix objects are PIC.
19269             lt_prog_compiler_pic_CXX=
19270             lt_prog_compiler_static_CXX='-non_shared'
19271             ;;
19272           *)
19273             ;;
19274         esac
19275         ;;
19276       psos*)
19277         ;;
19278       solaris*)
19279         case $cc_basename in
19280           CC*)
19281             # Sun C++ 4.2, 5.x and Centerline C++
19282             lt_prog_compiler_pic_CXX='-KPIC'
19283             lt_prog_compiler_static_CXX='-Bstatic'
19284             lt_prog_compiler_wl_CXX='-Qoption ld '
19285             ;;
19286           gcx*)
19287             # Green Hills C++ Compiler
19288             lt_prog_compiler_pic_CXX='-PIC'
19289             ;;
19290           *)
19291             ;;
19292         esac
19293         ;;
19294       sunos4*)
19295         case $cc_basename in
19296           CC*)
19297             # Sun C++ 4.x
19298             lt_prog_compiler_pic_CXX='-pic'
19299             lt_prog_compiler_static_CXX='-Bstatic'
19300             ;;
19301           lcc*)
19302             # Lucid
19303             lt_prog_compiler_pic_CXX='-pic'
19304             ;;
19305           *)
19306             ;;
19307         esac
19308         ;;
19309       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19310         case $cc_basename in
19311           CC*)
19312             lt_prog_compiler_wl_CXX='-Wl,'
19313             lt_prog_compiler_pic_CXX='-KPIC'
19314             lt_prog_compiler_static_CXX='-Bstatic'
19315             ;;
19316         esac
19317         ;;
19318       tandem*)
19319         case $cc_basename in
19320           NCC*)
19321             # NonStop-UX NCC 3.20
19322             lt_prog_compiler_pic_CXX='-KPIC'
19323             ;;
19324           *)
19325             ;;
19326         esac
19327         ;;
19328       vxworks*)
19329         ;;
19330       *)
19331         lt_prog_compiler_can_build_shared_CXX=no
19332         ;;
19333     esac
19334   fi
19335
19336 case $host_os in
19337   # For platforms which do not support PIC, -DPIC is meaningless:
19338   *djgpp*)
19339     lt_prog_compiler_pic_CXX=
19340     ;;
19341   *)
19342     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19343     ;;
19344 esac
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19346 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19347
19348
19349
19350 #
19351 # Check to make sure the PIC flag actually works.
19352 #
19353 if test -n "$lt_prog_compiler_pic_CXX"; then
19354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19355 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19356 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19357   $as_echo_n "(cached) " >&6
19358 else
19359   lt_cv_prog_compiler_pic_works_CXX=no
19360    ac_outfile=conftest.$ac_objext
19361    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19362    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19363    # Insert the option either (1) after the last *FLAGS variable, or
19364    # (2) before a word containing "conftest.", or (3) at the end.
19365    # Note that $ac_compile itself does not contain backslashes and begins
19366    # with a dollar sign (not a hyphen), so the echo should work correctly.
19367    # The option is referenced via a variable to avoid confusing sed.
19368    lt_compile=`echo "$ac_compile" | $SED \
19369    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19370    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19371    -e 's:$: $lt_compiler_flag:'`
19372    (eval echo "\"\$as_me:19372: $lt_compile\"" >&5)
19373    (eval "$lt_compile" 2>conftest.err)
19374    ac_status=$?
19375    cat conftest.err >&5
19376    echo "$as_me:19376: \$? = $ac_status" >&5
19377    if (exit $ac_status) && test -s "$ac_outfile"; then
19378      # The compiler can only warn and ignore the option if not recognized
19379      # So say no if there are warnings other than the usual output.
19380      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19381      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19382      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19383        lt_cv_prog_compiler_pic_works_CXX=yes
19384      fi
19385    fi
19386    $RM conftest*
19387
19388 fi
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19390 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19391
19392 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19393     case $lt_prog_compiler_pic_CXX in
19394      "" | " "*) ;;
19395      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19396      esac
19397 else
19398     lt_prog_compiler_pic_CXX=
19399      lt_prog_compiler_can_build_shared_CXX=no
19400 fi
19401
19402 fi
19403
19404
19405
19406 #
19407 # Check to make sure the static flag actually works.
19408 #
19409 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19411 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19412 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19413   $as_echo_n "(cached) " >&6
19414 else
19415   lt_cv_prog_compiler_static_works_CXX=no
19416    save_LDFLAGS="$LDFLAGS"
19417    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19418    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19419    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19420      # The linker can only warn and ignore the option if not recognized
19421      # So say no if there are warnings
19422      if test -s conftest.err; then
19423        # Append any errors to the config.log.
19424        cat conftest.err 1>&5
19425        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19426        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19427        if diff conftest.exp conftest.er2 >/dev/null; then
19428          lt_cv_prog_compiler_static_works_CXX=yes
19429        fi
19430      else
19431        lt_cv_prog_compiler_static_works_CXX=yes
19432      fi
19433    fi
19434    $RM -r conftest*
19435    LDFLAGS="$save_LDFLAGS"
19436
19437 fi
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19439 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19440
19441 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19442     :
19443 else
19444     lt_prog_compiler_static_CXX=
19445 fi
19446
19447
19448
19449
19450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19451 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19452 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19453   $as_echo_n "(cached) " >&6
19454 else
19455   lt_cv_prog_compiler_c_o_CXX=no
19456    $RM -r conftest 2>/dev/null
19457    mkdir conftest
19458    cd conftest
19459    mkdir out
19460    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19461
19462    lt_compiler_flag="-o out/conftest2.$ac_objext"
19463    # Insert the option either (1) after the last *FLAGS variable, or
19464    # (2) before a word containing "conftest.", or (3) at the end.
19465    # Note that $ac_compile itself does not contain backslashes and begins
19466    # with a dollar sign (not a hyphen), so the echo should work correctly.
19467    lt_compile=`echo "$ac_compile" | $SED \
19468    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19469    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19470    -e 's:$: $lt_compiler_flag:'`
19471    (eval echo "\"\$as_me:19471: $lt_compile\"" >&5)
19472    (eval "$lt_compile" 2>out/conftest.err)
19473    ac_status=$?
19474    cat out/conftest.err >&5
19475    echo "$as_me:19475: \$? = $ac_status" >&5
19476    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19477    then
19478      # The compiler can only warn and ignore the option if not recognized
19479      # So say no if there are warnings
19480      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19481      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19482      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19483        lt_cv_prog_compiler_c_o_CXX=yes
19484      fi
19485    fi
19486    chmod u+w . 2>&5
19487    $RM conftest*
19488    # SGI C++ compiler will create directory out/ii_files/ for
19489    # template instantiation
19490    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19491    $RM out/* && rmdir out
19492    cd ..
19493    $RM -r conftest
19494    $RM conftest*
19495
19496 fi
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19498 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19499
19500
19501
19502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19503 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19504 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19505   $as_echo_n "(cached) " >&6
19506 else
19507   lt_cv_prog_compiler_c_o_CXX=no
19508    $RM -r conftest 2>/dev/null
19509    mkdir conftest
19510    cd conftest
19511    mkdir out
19512    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19513
19514    lt_compiler_flag="-o out/conftest2.$ac_objext"
19515    # Insert the option either (1) after the last *FLAGS variable, or
19516    # (2) before a word containing "conftest.", or (3) at the end.
19517    # Note that $ac_compile itself does not contain backslashes and begins
19518    # with a dollar sign (not a hyphen), so the echo should work correctly.
19519    lt_compile=`echo "$ac_compile" | $SED \
19520    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19521    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19522    -e 's:$: $lt_compiler_flag:'`
19523    (eval echo "\"\$as_me:19523: $lt_compile\"" >&5)
19524    (eval "$lt_compile" 2>out/conftest.err)
19525    ac_status=$?
19526    cat out/conftest.err >&5
19527    echo "$as_me:19527: \$? = $ac_status" >&5
19528    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19529    then
19530      # The compiler can only warn and ignore the option if not recognized
19531      # So say no if there are warnings
19532      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19533      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19534      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19535        lt_cv_prog_compiler_c_o_CXX=yes
19536      fi
19537    fi
19538    chmod u+w . 2>&5
19539    $RM conftest*
19540    # SGI C++ compiler will create directory out/ii_files/ for
19541    # template instantiation
19542    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19543    $RM out/* && rmdir out
19544    cd ..
19545    $RM -r conftest
19546    $RM conftest*
19547
19548 fi
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19550 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19551
19552
19553
19554
19555 hard_links="nottested"
19556 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19557   # do not overwrite the value of need_locks provided by the user
19558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19559 $as_echo_n "checking if we can lock with hard links... " >&6; }
19560   hard_links=yes
19561   $RM conftest*
19562   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19563   touch conftest.a
19564   ln conftest.a conftest.b 2>&5 || hard_links=no
19565   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19567 $as_echo "$hard_links" >&6; }
19568   if test "$hard_links" = no; then
19569     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19570 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19571     need_locks=warn
19572   fi
19573 else
19574   need_locks=no
19575 fi
19576
19577
19578
19579     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19580 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19581
19582   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19583   case $host_os in
19584   aix[4-9]*)
19585     # If we're using GNU nm, then we don't want the "-C" option.
19586     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19587     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19588       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'
19589     else
19590       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'
19591     fi
19592     ;;
19593   pw32*)
19594     export_symbols_cmds_CXX="$ltdll_cmds"
19595   ;;
19596   cygwin* | mingw* | cegcc*)
19597     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'
19598   ;;
19599   *)
19600     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19601   ;;
19602   esac
19603   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19604
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19606 $as_echo "$ld_shlibs_CXX" >&6; }
19607 test "$ld_shlibs_CXX" = no && can_build_shared=no
19608
19609 with_gnu_ld_CXX=$with_gnu_ld
19610
19611
19612
19613
19614
19615
19616 #
19617 # Do we need to explicitly link libc?
19618 #
19619 case "x$archive_cmds_need_lc_CXX" in
19620 x|xyes)
19621   # Assume -lc should be added
19622   archive_cmds_need_lc_CXX=yes
19623
19624   if test "$enable_shared" = yes && test "$GCC" = yes; then
19625     case $archive_cmds_CXX in
19626     *'~'*)
19627       # FIXME: we may have to deal with multi-command sequences.
19628       ;;
19629     '$CC '*)
19630       # Test whether the compiler implicitly links with -lc since on some
19631       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19632       # to ld, don't add -lc before -lgcc.
19633       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19634 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19635 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19636   $as_echo_n "(cached) " >&6
19637 else
19638   $RM conftest*
19639         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19640
19641         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19642   (eval $ac_compile) 2>&5
19643   ac_status=$?
19644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19645   test $ac_status = 0; } 2>conftest.err; then
19646           soname=conftest
19647           lib=conftest
19648           libobjs=conftest.$ac_objext
19649           deplibs=
19650           wl=$lt_prog_compiler_wl_CXX
19651           pic_flag=$lt_prog_compiler_pic_CXX
19652           compiler_flags=-v
19653           linker_flags=-v
19654           verstring=
19655           output_objdir=.
19656           libname=conftest
19657           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19658           allow_undefined_flag_CXX=
19659           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19660   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19661   ac_status=$?
19662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19663   test $ac_status = 0; }
19664           then
19665             lt_cv_archive_cmds_need_lc_CXX=no
19666           else
19667             lt_cv_archive_cmds_need_lc_CXX=yes
19668           fi
19669           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19670         else
19671           cat conftest.err 1>&5
19672         fi
19673         $RM conftest*
19674
19675 fi
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19677 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19678       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19679       ;;
19680     esac
19681   fi
19682   ;;
19683 esac
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19749 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19750
19751 library_names_spec=
19752 libname_spec='lib$name'
19753 soname_spec=
19754 shrext_cmds=".so"
19755 postinstall_cmds=
19756 postuninstall_cmds=
19757 finish_cmds=
19758 finish_eval=
19759 shlibpath_var=
19760 shlibpath_overrides_runpath=unknown
19761 version_type=none
19762 dynamic_linker="$host_os ld.so"
19763 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19764 need_lib_prefix=unknown
19765 hardcode_into_libs=no
19766
19767 # when you set need_version to no, make sure it does not cause -set_version
19768 # flags to be left without arguments
19769 need_version=unknown
19770
19771 case $host_os in
19772 aix3*)
19773   version_type=linux
19774   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19775   shlibpath_var=LIBPATH
19776
19777   # AIX 3 has no versioning support, so we append a major version to the name.
19778   soname_spec='${libname}${release}${shared_ext}$major'
19779   ;;
19780
19781 aix[4-9]*)
19782   version_type=linux
19783   need_lib_prefix=no
19784   need_version=no
19785   hardcode_into_libs=yes
19786   if test "$host_cpu" = ia64; then
19787     # AIX 5 supports IA64
19788     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19789     shlibpath_var=LD_LIBRARY_PATH
19790   else
19791     # With GCC up to 2.95.x, collect2 would create an import file
19792     # for dependence libraries.  The import file would start with
19793     # the line `#! .'.  This would cause the generated library to
19794     # depend on `.', always an invalid library.  This was fixed in
19795     # development snapshots of GCC prior to 3.0.
19796     case $host_os in
19797       aix4 | aix4.[01] | aix4.[01].*)
19798       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19799            echo ' yes '
19800            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19801         :
19802       else
19803         can_build_shared=no
19804       fi
19805       ;;
19806     esac
19807     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19808     # soname into executable. Probably we can add versioning support to
19809     # collect2, so additional links can be useful in future.
19810     if test "$aix_use_runtimelinking" = yes; then
19811       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19812       # instead of lib<name>.a to let people know that these are not
19813       # typical AIX shared libraries.
19814       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19815     else
19816       # We preserve .a as extension for shared libraries through AIX4.2
19817       # and later when we are not doing run time linking.
19818       library_names_spec='${libname}${release}.a $libname.a'
19819       soname_spec='${libname}${release}${shared_ext}$major'
19820     fi
19821     shlibpath_var=LIBPATH
19822   fi
19823   ;;
19824
19825 amigaos*)
19826   case $host_cpu in
19827   powerpc)
19828     # Since July 2007 AmigaOS4 officially supports .so libraries.
19829     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19830     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19831     ;;
19832   m68k)
19833     library_names_spec='$libname.ixlibrary $libname.a'
19834     # Create ${libname}_ixlibrary.a entries in /sys/libs.
19835     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'
19836     ;;
19837   esac
19838   ;;
19839
19840 beos*)
19841   library_names_spec='${libname}${shared_ext}'
19842   dynamic_linker="$host_os ld.so"
19843   shlibpath_var=LIBRARY_PATH
19844   ;;
19845
19846 bsdi[45]*)
19847   version_type=linux
19848   need_version=no
19849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19850   soname_spec='${libname}${release}${shared_ext}$major'
19851   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19852   shlibpath_var=LD_LIBRARY_PATH
19853   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19854   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19855   # the default ld.so.conf also contains /usr/contrib/lib and
19856   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19857   # libtool to hard-code these into programs
19858   ;;
19859
19860 cygwin* | mingw* | pw32* | cegcc*)
19861   version_type=windows
19862   shrext_cmds=".dll"
19863   need_version=no
19864   need_lib_prefix=no
19865
19866   case $GCC,$host_os in
19867   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19868     library_names_spec='$libname.dll.a'
19869     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19870     postinstall_cmds='base_file=`basename \${file}`~
19871       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19872       dldir=$destdir/`dirname \$dlpath`~
19873       test -d \$dldir || mkdir -p \$dldir~
19874       $install_prog $dir/$dlname \$dldir/$dlname~
19875       chmod a+x \$dldir/$dlname~
19876       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19877         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19878       fi'
19879     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19880       dlpath=$dir/\$dldll~
19881        $RM \$dlpath'
19882     shlibpath_overrides_runpath=yes
19883
19884     case $host_os in
19885     cygwin*)
19886       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19887       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19888       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19889       ;;
19890     mingw* | cegcc*)
19891       # MinGW DLLs use traditional 'lib' prefix
19892       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19893       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19894       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19895         # It is most probably a Windows format PATH printed by
19896         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19897         # path with ; separators, and with drive letters. We can handle the
19898         # drive letters (cygwin fileutils understands them), so leave them,
19899         # especially as we might pass files found there to a mingw objdump,
19900         # which wouldn't understand a cygwinified path. Ahh.
19901         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19902       else
19903         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19904       fi
19905       ;;
19906     pw32*)
19907       # pw32 DLLs use 'pw' prefix rather than 'lib'
19908       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19909       ;;
19910     esac
19911     ;;
19912
19913   *)
19914     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19915     ;;
19916   esac
19917   dynamic_linker='Win32 ld.exe'
19918   # FIXME: first we should search . and the directory the executable is in
19919   shlibpath_var=PATH
19920   ;;
19921
19922 darwin* | rhapsody*)
19923   dynamic_linker="$host_os dyld"
19924   version_type=darwin
19925   need_lib_prefix=no
19926   need_version=no
19927   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19928   soname_spec='${libname}${release}${major}$shared_ext'
19929   shlibpath_overrides_runpath=yes
19930   shlibpath_var=DYLD_LIBRARY_PATH
19931   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19932
19933   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19934   ;;
19935
19936 dgux*)
19937   version_type=linux
19938   need_lib_prefix=no
19939   need_version=no
19940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19941   soname_spec='${libname}${release}${shared_ext}$major'
19942   shlibpath_var=LD_LIBRARY_PATH
19943   ;;
19944
19945 freebsd1*)
19946   dynamic_linker=no
19947   ;;
19948
19949 freebsd* | dragonfly*)
19950   # DragonFly does not have aout.  When/if they implement a new
19951   # versioning mechanism, adjust this.
19952   if test -x /usr/bin/objformat; then
19953     objformat=`/usr/bin/objformat`
19954   else
19955     case $host_os in
19956     freebsd[123]*) objformat=aout ;;
19957     *) objformat=elf ;;
19958     esac
19959   fi
19960   version_type=freebsd-$objformat
19961   case $version_type in
19962     freebsd-elf*)
19963       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19964       need_version=no
19965       need_lib_prefix=no
19966       ;;
19967     freebsd-*)
19968       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19969       need_version=yes
19970       ;;
19971   esac
19972   shlibpath_var=LD_LIBRARY_PATH
19973   case $host_os in
19974   freebsd2*)
19975     shlibpath_overrides_runpath=yes
19976     ;;
19977   freebsd3.[01]* | freebsdelf3.[01]*)
19978     shlibpath_overrides_runpath=yes
19979     hardcode_into_libs=yes
19980     ;;
19981   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19982   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19983     shlibpath_overrides_runpath=no
19984     hardcode_into_libs=yes
19985     ;;
19986   *) # from 4.6 on, and DragonFly
19987     shlibpath_overrides_runpath=yes
19988     hardcode_into_libs=yes
19989     ;;
19990   esac
19991   ;;
19992
19993 gnu*)
19994   version_type=linux
19995   need_lib_prefix=no
19996   need_version=no
19997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19998   soname_spec='${libname}${release}${shared_ext}$major'
19999   shlibpath_var=LD_LIBRARY_PATH
20000   hardcode_into_libs=yes
20001   ;;
20002
20003 hpux9* | hpux10* | hpux11*)
20004   # Give a soname corresponding to the major version so that dld.sl refuses to
20005   # link against other versions.
20006   version_type=sunos
20007   need_lib_prefix=no
20008   need_version=no
20009   case $host_cpu in
20010   ia64*)
20011     shrext_cmds='.so'
20012     hardcode_into_libs=yes
20013     dynamic_linker="$host_os dld.so"
20014     shlibpath_var=LD_LIBRARY_PATH
20015     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20016     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20017     soname_spec='${libname}${release}${shared_ext}$major'
20018     if test "X$HPUX_IA64_MODE" = X32; then
20019       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20020     else
20021       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20022     fi
20023     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20024     ;;
20025   hppa*64*)
20026     shrext_cmds='.sl'
20027     hardcode_into_libs=yes
20028     dynamic_linker="$host_os dld.sl"
20029     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20030     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20032     soname_spec='${libname}${release}${shared_ext}$major'
20033     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20034     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20035     ;;
20036   *)
20037     shrext_cmds='.sl'
20038     dynamic_linker="$host_os dld.sl"
20039     shlibpath_var=SHLIB_PATH
20040     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20041     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20042     soname_spec='${libname}${release}${shared_ext}$major'
20043     ;;
20044   esac
20045   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20046   postinstall_cmds='chmod 555 $lib'
20047   ;;
20048
20049 interix[3-9]*)
20050   version_type=linux
20051   need_lib_prefix=no
20052   need_version=no
20053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20054   soname_spec='${libname}${release}${shared_ext}$major'
20055   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20056   shlibpath_var=LD_LIBRARY_PATH
20057   shlibpath_overrides_runpath=no
20058   hardcode_into_libs=yes
20059   ;;
20060
20061 irix5* | irix6* | nonstopux*)
20062   case $host_os in
20063     nonstopux*) version_type=nonstopux ;;
20064     *)
20065         if test "$lt_cv_prog_gnu_ld" = yes; then
20066                 version_type=linux
20067         else
20068                 version_type=irix
20069         fi ;;
20070   esac
20071   need_lib_prefix=no
20072   need_version=no
20073   soname_spec='${libname}${release}${shared_ext}$major'
20074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20075   case $host_os in
20076   irix5* | nonstopux*)
20077     libsuff= shlibsuff=
20078     ;;
20079   *)
20080     case $LD in # libtool.m4 will add one of these switches to LD
20081     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20082       libsuff= shlibsuff= libmagic=32-bit;;
20083     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20084       libsuff=32 shlibsuff=N32 libmagic=N32;;
20085     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20086       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20087     *) libsuff= shlibsuff= libmagic=never-match;;
20088     esac
20089     ;;
20090   esac
20091   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20092   shlibpath_overrides_runpath=no
20093   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20094   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20095   hardcode_into_libs=yes
20096   ;;
20097
20098 # No shared lib support for Linux oldld, aout, or coff.
20099 linux*oldld* | linux*aout* | linux*coff*)
20100   dynamic_linker=no
20101   ;;
20102
20103 # This must be Linux ELF.
20104 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20105   version_type=linux
20106   need_lib_prefix=no
20107   need_version=no
20108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20109   soname_spec='${libname}${release}${shared_ext}$major'
20110   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20111   shlibpath_var=LD_LIBRARY_PATH
20112   shlibpath_overrides_runpath=no
20113
20114   # Some binutils ld are patched to set DT_RUNPATH
20115   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20116   $as_echo_n "(cached) " >&6
20117 else
20118   lt_cv_shlibpath_overrides_runpath=no
20119     save_LDFLAGS=$LDFLAGS
20120     save_libdir=$libdir
20121     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20122          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20123     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20124 /* end confdefs.h.  */
20125
20126 int
20127 main ()
20128 {
20129
20130   ;
20131   return 0;
20132 }
20133 _ACEOF
20134 if ac_fn_cxx_try_link "$LINENO"; then :
20135   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20136   lt_cv_shlibpath_overrides_runpath=yes
20137 fi
20138 fi
20139 rm -f core conftest.err conftest.$ac_objext \
20140     conftest$ac_exeext conftest.$ac_ext
20141     LDFLAGS=$save_LDFLAGS
20142     libdir=$save_libdir
20143
20144 fi
20145
20146   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20147
20148   # This implies no fast_install, which is unacceptable.
20149   # Some rework will be needed to allow for fast_install
20150   # before this can be enabled.
20151   hardcode_into_libs=yes
20152
20153   # Append ld.so.conf contents to the search path
20154   if test -f /etc/ld.so.conf; then
20155     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' ' '`
20156     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20157   fi
20158
20159   # We used to test for /lib/ld.so.1 and disable shared libraries on
20160   # powerpc, because MkLinux only supported shared libraries with the
20161   # GNU dynamic linker.  Since this was broken with cross compilers,
20162   # most powerpc-linux boxes support dynamic linking these days and
20163   # people can always --disable-shared, the test was removed, and we
20164   # assume the GNU/Linux dynamic linker is in use.
20165   dynamic_linker='GNU/Linux ld.so'
20166   ;;
20167
20168 netbsd*)
20169   version_type=sunos
20170   need_lib_prefix=no
20171   need_version=no
20172   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20173     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20174     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20175     dynamic_linker='NetBSD (a.out) ld.so'
20176   else
20177     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20178     soname_spec='${libname}${release}${shared_ext}$major'
20179     dynamic_linker='NetBSD ld.elf_so'
20180   fi
20181   shlibpath_var=LD_LIBRARY_PATH
20182   shlibpath_overrides_runpath=yes
20183   hardcode_into_libs=yes
20184   ;;
20185
20186 newsos6)
20187   version_type=linux
20188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20189   shlibpath_var=LD_LIBRARY_PATH
20190   shlibpath_overrides_runpath=yes
20191   ;;
20192
20193 *nto* | *qnx*)
20194   version_type=qnx
20195   need_lib_prefix=no
20196   need_version=no
20197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20198   soname_spec='${libname}${release}${shared_ext}$major'
20199   shlibpath_var=LD_LIBRARY_PATH
20200   shlibpath_overrides_runpath=no
20201   hardcode_into_libs=yes
20202   dynamic_linker='ldqnx.so'
20203   ;;
20204
20205 openbsd*)
20206   version_type=sunos
20207   sys_lib_dlsearch_path_spec="/usr/lib"
20208   need_lib_prefix=no
20209   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20210   case $host_os in
20211     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20212     *)                          need_version=no  ;;
20213   esac
20214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20215   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20216   shlibpath_var=LD_LIBRARY_PATH
20217   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20218     case $host_os in
20219       openbsd2.[89] | openbsd2.[89].*)
20220         shlibpath_overrides_runpath=no
20221         ;;
20222       *)
20223         shlibpath_overrides_runpath=yes
20224         ;;
20225       esac
20226   else
20227     shlibpath_overrides_runpath=yes
20228   fi
20229   ;;
20230
20231 os2*)
20232   libname_spec='$name'
20233   shrext_cmds=".dll"
20234   need_lib_prefix=no
20235   library_names_spec='$libname${shared_ext} $libname.a'
20236   dynamic_linker='OS/2 ld.exe'
20237   shlibpath_var=LIBPATH
20238   ;;
20239
20240 osf3* | osf4* | osf5*)
20241   version_type=osf
20242   need_lib_prefix=no
20243   need_version=no
20244   soname_spec='${libname}${release}${shared_ext}$major'
20245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20246   shlibpath_var=LD_LIBRARY_PATH
20247   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20248   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20249   ;;
20250
20251 rdos*)
20252   dynamic_linker=no
20253   ;;
20254
20255 solaris*)
20256   version_type=linux
20257   need_lib_prefix=no
20258   need_version=no
20259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20260   soname_spec='${libname}${release}${shared_ext}$major'
20261   shlibpath_var=LD_LIBRARY_PATH
20262   shlibpath_overrides_runpath=yes
20263   hardcode_into_libs=yes
20264   # ldd complains unless libraries are executable
20265   postinstall_cmds='chmod +x $lib'
20266   ;;
20267
20268 sunos4*)
20269   version_type=sunos
20270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20271   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20272   shlibpath_var=LD_LIBRARY_PATH
20273   shlibpath_overrides_runpath=yes
20274   if test "$with_gnu_ld" = yes; then
20275     need_lib_prefix=no
20276   fi
20277   need_version=yes
20278   ;;
20279
20280 sysv4 | sysv4.3*)
20281   version_type=linux
20282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20283   soname_spec='${libname}${release}${shared_ext}$major'
20284   shlibpath_var=LD_LIBRARY_PATH
20285   case $host_vendor in
20286     sni)
20287       shlibpath_overrides_runpath=no
20288       need_lib_prefix=no
20289       runpath_var=LD_RUN_PATH
20290       ;;
20291     siemens)
20292       need_lib_prefix=no
20293       ;;
20294     motorola)
20295       need_lib_prefix=no
20296       need_version=no
20297       shlibpath_overrides_runpath=no
20298       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20299       ;;
20300   esac
20301   ;;
20302
20303 sysv4*MP*)
20304   if test -d /usr/nec ;then
20305     version_type=linux
20306     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20307     soname_spec='$libname${shared_ext}.$major'
20308     shlibpath_var=LD_LIBRARY_PATH
20309   fi
20310   ;;
20311
20312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20313   version_type=freebsd-elf
20314   need_lib_prefix=no
20315   need_version=no
20316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20317   soname_spec='${libname}${release}${shared_ext}$major'
20318   shlibpath_var=LD_LIBRARY_PATH
20319   shlibpath_overrides_runpath=yes
20320   hardcode_into_libs=yes
20321   if test "$with_gnu_ld" = yes; then
20322     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20323   else
20324     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20325     case $host_os in
20326       sco3.2v5*)
20327         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20328         ;;
20329     esac
20330   fi
20331   sys_lib_dlsearch_path_spec='/usr/lib'
20332   ;;
20333
20334 tpf*)
20335   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20336   version_type=linux
20337   need_lib_prefix=no
20338   need_version=no
20339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20340   shlibpath_var=LD_LIBRARY_PATH
20341   shlibpath_overrides_runpath=no
20342   hardcode_into_libs=yes
20343   ;;
20344
20345 uts4*)
20346   version_type=linux
20347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20348   soname_spec='${libname}${release}${shared_ext}$major'
20349   shlibpath_var=LD_LIBRARY_PATH
20350   ;;
20351
20352 *)
20353   dynamic_linker=no
20354   ;;
20355 esac
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20357 $as_echo "$dynamic_linker" >&6; }
20358 test "$dynamic_linker" = no && can_build_shared=no
20359
20360 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20361 if test "$GCC" = yes; then
20362   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20363 fi
20364
20365 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20366   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20367 fi
20368 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20369   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20370 fi
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20408 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20409 hardcode_action_CXX=
20410 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20411    test -n "$runpath_var_CXX" ||
20412    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20413
20414   # We can hardcode non-existent directories.
20415   if test "$hardcode_direct_CXX" != no &&
20416      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20417      # have to relink, otherwise we might link with an installed library
20418      # when we should be linking with a yet-to-be-installed one
20419      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20420      test "$hardcode_minus_L_CXX" != no; then
20421     # Linking always hardcodes the temporary library directory.
20422     hardcode_action_CXX=relink
20423   else
20424     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20425     hardcode_action_CXX=immediate
20426   fi
20427 else
20428   # We cannot hardcode anything, or else we can only hardcode existing
20429   # directories.
20430   hardcode_action_CXX=unsupported
20431 fi
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20433 $as_echo "$hardcode_action_CXX" >&6; }
20434
20435 if test "$hardcode_action_CXX" = relink ||
20436    test "$inherit_rpath_CXX" = yes; then
20437   # Fast installation is not supported
20438   enable_fast_install=no
20439 elif test "$shlibpath_overrides_runpath" = yes ||
20440      test "$enable_shared" = no; then
20441   # Fast installation is not necessary
20442   enable_fast_install=needless
20443 fi
20444
20445
20446
20447
20448
20449
20450
20451   fi # test -n "$compiler"
20452
20453   CC=$lt_save_CC
20454   LDCXX=$LD
20455   LD=$lt_save_LD
20456   GCC=$lt_save_GCC
20457   with_gnu_ld=$lt_save_with_gnu_ld
20458   lt_cv_path_LDCXX=$lt_cv_path_LD
20459   lt_cv_path_LD=$lt_save_path_LD
20460   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20461   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20462 fi # test "$_lt_caught_CXX_error" != yes
20463
20464 ac_ext=c
20465 ac_cpp='$CPP $CPPFLAGS'
20466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485 # Only expand once:
20486
20487
20488
20489
20490
20491 # Identify the assembler which will work hand-in-glove with the newly
20492 # built GCC, so that we can examine its features.  This is the assembler
20493 # which will be driven by the driver program.
20494 #
20495 # If build != host, and we aren't building gas in-tree, we identify a
20496 # build->target assembler and hope that it will have the same features
20497 # as the host->target assembler we'll be using.
20498 gcc_cv_gas_major_version=
20499 gcc_cv_gas_minor_version=
20500 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20501
20502 if test "${gcc_cv_as+set}" = set; then :
20503
20504 else
20505
20506 if test -x "$DEFAULT_ASSEMBLER"; then
20507         gcc_cv_as="$DEFAULT_ASSEMBLER"
20508 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20509      && test -f ../gas/Makefile \
20510      && test x$build = x$host; then
20511         gcc_cv_as=../gas/as-new$build_exeext
20512 elif test -x as$build_exeext; then
20513         # Build using assembler in the current directory.
20514         gcc_cv_as=./as$build_exeext
20515 elif test -x $AS_FOR_TARGET; then
20516         gcc_cv_as="$AS_FOR_TARGET"
20517 else
20518         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20519 set dummy $AS_FOR_TARGET; ac_word=$2
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20521 $as_echo_n "checking for $ac_word... " >&6; }
20522 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20523   $as_echo_n "(cached) " >&6
20524 else
20525   case $gcc_cv_as in
20526   [\\/]* | ?:[\\/]*)
20527   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20528   ;;
20529   *)
20530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20531 for as_dir in $PATH
20532 do
20533   IFS=$as_save_IFS
20534   test -z "$as_dir" && as_dir=.
20535     for ac_exec_ext in '' $ac_executable_extensions; do
20536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20537     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20539     break 2
20540   fi
20541 done
20542   done
20543 IFS=$as_save_IFS
20544
20545   ;;
20546 esac
20547 fi
20548 gcc_cv_as=$ac_cv_path_gcc_cv_as
20549 if test -n "$gcc_cv_as"; then
20550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20551 $as_echo "$gcc_cv_as" >&6; }
20552 else
20553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20554 $as_echo "no" >&6; }
20555 fi
20556
20557
20558 fi
20559 fi
20560
20561 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20562
20563 case "$ORIGINAL_AS_FOR_TARGET" in
20564   ./as | ./as$build_exeext) ;;
20565   *) ac_config_files="$ac_config_files as:exec-tool.in"
20566  ;;
20567 esac
20568
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20570 $as_echo_n "checking what assembler to use... " >&6; }
20571 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20572   # Single tree build which includes gas.  We want to prefer it
20573   # over whatever linker top-level may have detected, since
20574   # we'll use what we're building after installation anyway.
20575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20576 $as_echo "newly built gas" >&6; }
20577   in_tree_gas=yes
20578   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20579 for f in $gcc_cv_as_bfd_srcdir/configure \
20580          $gcc_cv_as_gas_srcdir/configure \
20581          $gcc_cv_as_gas_srcdir/configure.in \
20582          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20583   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20584   if test x$gcc_cv_gas_version != x; then
20585     break
20586   fi
20587 done
20588 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20589 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20590 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20591 case $gcc_cv_gas_patch_version in
20592   "") gcc_cv_gas_patch_version="0" ;;
20593 esac
20594 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20595                             + $gcc_cv_gas_minor_version \) \* 1000 \
20596                             + $gcc_cv_gas_patch_version`
20597
20598   in_tree_gas_is_elf=no
20599   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20600      || (grep 'obj_format = multi' ../gas/Makefile \
20601          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20602   then
20603     in_tree_gas_is_elf=yes
20604   fi
20605 else
20606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20607 $as_echo "$gcc_cv_as" >&6; }
20608   in_tree_gas=no
20609 fi
20610
20611 # Identify the linker which will work hand-in-glove with the newly
20612 # built GCC, so that we can examine its features.  This is the linker
20613 # which will be driven by the driver program.
20614 #
20615 # If build != host, and we aren't building gas in-tree, we identify a
20616 # build->target linker and hope that it will have the same features
20617 # as the host->target linker we'll be using.
20618 gcc_cv_gld_major_version=
20619 gcc_cv_gld_minor_version=
20620 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20621 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20622
20623 if test "${gcc_cv_ld+set}" = set; then :
20624
20625 else
20626
20627 if test -x "$DEFAULT_LINKER"; then
20628         gcc_cv_ld="$DEFAULT_LINKER"
20629 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20630      && test -f ../ld/Makefile \
20631      && test x$build = x$host; then
20632         gcc_cv_ld=../ld/ld-new$build_exeext
20633 elif test -x collect-ld$build_exeext; then
20634         # Build using linker in the current directory.
20635         gcc_cv_ld=./collect-ld$build_exeext
20636 elif test -x $LD_FOR_TARGET; then
20637         gcc_cv_ld="$LD_FOR_TARGET"
20638 else
20639         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20640 set dummy $LD_FOR_TARGET; ac_word=$2
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20642 $as_echo_n "checking for $ac_word... " >&6; }
20643 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20644   $as_echo_n "(cached) " >&6
20645 else
20646   case $gcc_cv_ld in
20647   [\\/]* | ?:[\\/]*)
20648   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20649   ;;
20650   *)
20651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20652 for as_dir in $PATH
20653 do
20654   IFS=$as_save_IFS
20655   test -z "$as_dir" && as_dir=.
20656     for ac_exec_ext in '' $ac_executable_extensions; do
20657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20658     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20660     break 2
20661   fi
20662 done
20663   done
20664 IFS=$as_save_IFS
20665
20666   ;;
20667 esac
20668 fi
20669 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20670 if test -n "$gcc_cv_ld"; then
20671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20672 $as_echo "$gcc_cv_ld" >&6; }
20673 else
20674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20675 $as_echo "no" >&6; }
20676 fi
20677
20678
20679 fi
20680 fi
20681
20682 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20683
20684 case "$ORIGINAL_LD_FOR_TARGET" in
20685   ./collect-ld | ./collect-ld$build_exeext) ;;
20686   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20687  ;;
20688 esac
20689
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20691 $as_echo_n "checking what linker to use... " >&6; }
20692 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20693         # Single tree build which includes ld.  We want to prefer it
20694         # over whatever linker top-level may have detected, since
20695         # we'll use what we're building after installation anyway.
20696         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20697 $as_echo "newly built ld" >&6; }
20698         in_tree_ld=yes
20699         in_tree_ld_is_elf=no
20700         if (grep 'EMUL = .*elf' ../ld/Makefile \
20701             || grep 'EMUL = .*linux' ../ld/Makefile \
20702             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20703           in_tree_ld_is_elf=yes
20704         fi
20705         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
20706         do
20707                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20708                 if test x$gcc_cv_gld_version != x; then
20709                         break
20710                 fi
20711         done
20712         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20713         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20714 else
20715         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20716 $as_echo "$gcc_cv_ld" >&6; }
20717         in_tree_ld=no
20718 fi
20719
20720 # Figure out what nm we will be using.
20721 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20722 if test "${gcc_cv_nm+set}" = set; then :
20723
20724 else
20725
20726 if test -f $gcc_cv_binutils_srcdir/configure.in \
20727      && test -f ../binutils/Makefile \
20728      && test x$build = x$host; then
20729         gcc_cv_nm=../binutils/nm-new$build_exeext
20730 elif test -x nm$build_exeext; then
20731         gcc_cv_nm=./nm$build_exeext
20732 elif test -x $NM_FOR_TARGET; then
20733         gcc_cv_nm="$NM_FOR_TARGET"
20734 else
20735         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20736 set dummy $NM_FOR_TARGET; ac_word=$2
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20738 $as_echo_n "checking for $ac_word... " >&6; }
20739 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20740   $as_echo_n "(cached) " >&6
20741 else
20742   case $gcc_cv_nm in
20743   [\\/]* | ?:[\\/]*)
20744   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20745   ;;
20746   *)
20747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20748 for as_dir in $PATH
20749 do
20750   IFS=$as_save_IFS
20751   test -z "$as_dir" && as_dir=.
20752     for ac_exec_ext in '' $ac_executable_extensions; do
20753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20754     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20756     break 2
20757   fi
20758 done
20759   done
20760 IFS=$as_save_IFS
20761
20762   ;;
20763 esac
20764 fi
20765 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20766 if test -n "$gcc_cv_nm"; then
20767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20768 $as_echo "$gcc_cv_nm" >&6; }
20769 else
20770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20771 $as_echo "no" >&6; }
20772 fi
20773
20774
20775 fi
20776 fi
20777
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20779 $as_echo_n "checking what nm to use... " >&6; }
20780 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20781         # Single tree build which includes binutils.
20782         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20783 $as_echo "newly built nm" >&6; }
20784         in_tree_nm=yes
20785 else
20786         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20787 $as_echo "$gcc_cv_nm" >&6; }
20788         in_tree_nm=no
20789 fi
20790
20791 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20792
20793 case "$ORIGINAL_NM_FOR_TARGET" in
20794   ./nm | ./nm$build_exeext) ;;
20795   *) ac_config_files="$ac_config_files nm:exec-tool.in"
20796  ;;
20797 esac
20798
20799
20800 # Figure out what objdump we will be using.
20801 if test "${gcc_cv_objdump+set}" = set; then :
20802
20803 else
20804
20805 if test -f $gcc_cv_binutils_srcdir/configure.in \
20806      && test -f ../binutils/Makefile \
20807      && test x$build = x$host; then
20808         # Single tree build which includes binutils.
20809         gcc_cv_objdump=../binutils/objdump$build_exeext
20810 elif test -x objdump$build_exeext; then
20811         gcc_cv_objdump=./objdump$build_exeext
20812 elif test -x $OBJDUMP_FOR_TARGET; then
20813         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20814 else
20815         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20816 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20818 $as_echo_n "checking for $ac_word... " >&6; }
20819 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20820   $as_echo_n "(cached) " >&6
20821 else
20822   case $gcc_cv_objdump in
20823   [\\/]* | ?:[\\/]*)
20824   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20825   ;;
20826   *)
20827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20828 for as_dir in $PATH
20829 do
20830   IFS=$as_save_IFS
20831   test -z "$as_dir" && as_dir=.
20832     for ac_exec_ext in '' $ac_executable_extensions; do
20833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20834     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20836     break 2
20837   fi
20838 done
20839   done
20840 IFS=$as_save_IFS
20841
20842   ;;
20843 esac
20844 fi
20845 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20846 if test -n "$gcc_cv_objdump"; then
20847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20848 $as_echo "$gcc_cv_objdump" >&6; }
20849 else
20850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20851 $as_echo "no" >&6; }
20852 fi
20853
20854
20855 fi
20856 fi
20857
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20859 $as_echo_n "checking what objdump to use... " >&6; }
20860 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20861         # Single tree build which includes binutils.
20862         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20863 $as_echo "newly built objdump" >&6; }
20864 elif test x$gcc_cv_objdump = x; then
20865         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20866 $as_echo "not found" >&6; }
20867 else
20868         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20869 $as_echo "$gcc_cv_objdump" >&6; }
20870 fi
20871
20872 # Figure out what readelf we will be using.
20873 if test "${gcc_cv_readelf+set}" = set; then :
20874
20875 else
20876
20877 if test -f $gcc_cv_binutils_srcdir/configure.in \
20878      && test -f ../binutils/Makefile \
20879      && test x$build = x$host; then
20880         # Single tree build which includes binutils.
20881         gcc_cv_readelf=../binutils/readelf$build_exeext
20882 elif test -x readelf$build_exeext; then
20883         gcc_cv_readelf=./readelf$build_exeext
20884 else
20885         # Extract the first word of "readelf", so it can be a program name with args.
20886 set dummy readelf; ac_word=$2
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20888 $as_echo_n "checking for $ac_word... " >&6; }
20889 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20890   $as_echo_n "(cached) " >&6
20891 else
20892   case $gcc_cv_readelf in
20893   [\\/]* | ?:[\\/]*)
20894   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20895   ;;
20896   *)
20897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20898 for as_dir in $PATH
20899 do
20900   IFS=$as_save_IFS
20901   test -z "$as_dir" && as_dir=.
20902     for ac_exec_ext in '' $ac_executable_extensions; do
20903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20904     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20906     break 2
20907   fi
20908 done
20909   done
20910 IFS=$as_save_IFS
20911
20912   ;;
20913 esac
20914 fi
20915 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20916 if test -n "$gcc_cv_readelf"; then
20917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20918 $as_echo "$gcc_cv_readelf" >&6; }
20919 else
20920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20921 $as_echo "no" >&6; }
20922 fi
20923
20924
20925 fi
20926 fi
20927
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20929 $as_echo_n "checking what readelf to use... " >&6; }
20930 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20931         # Single tree build which includes binutils.
20932         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20933 $as_echo "newly built readelf" >&6; }
20934 elif test x$gcc_cv_readelf = x; then
20935         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20936 $as_echo "not found" >&6; }
20937 else
20938         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20939 $as_echo "$gcc_cv_readelf" >&6; }
20940 fi
20941
20942 # Figure out what assembler alignment features are present.
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20944 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20945 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20946   $as_echo_n "(cached) " >&6
20947 else
20948   gcc_cv_as_balign_and_p2align=no
20949     if test $in_tree_gas = yes; then
20950     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20951   then gcc_cv_as_balign_and_p2align=yes
20952 fi
20953   elif test x$gcc_cv_as != x; then
20954     echo '.balign 4
20955 .p2align 2' > conftest.s
20956     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20957   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20958   (eval $ac_try) 2>&5
20959   ac_status=$?
20960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20961   test $ac_status = 0; }; }
20962     then
20963         gcc_cv_as_balign_and_p2align=yes
20964     else
20965       echo "configure: failed program was" >&5
20966       cat conftest.s >&5
20967     fi
20968     rm -f conftest.o conftest.s
20969   fi
20970 fi
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
20972 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
20973 if test $gcc_cv_as_balign_and_p2align = yes; then
20974
20975 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
20976
20977 fi
20978
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
20980 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
20981 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
20982   $as_echo_n "(cached) " >&6
20983 else
20984   gcc_cv_as_max_skip_p2align=no
20985     if test $in_tree_gas = yes; then
20986     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20987   then gcc_cv_as_max_skip_p2align=yes
20988 fi
20989   elif test x$gcc_cv_as != x; then
20990     echo '.p2align 4,,7' > conftest.s
20991     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20992   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20993   (eval $ac_try) 2>&5
20994   ac_status=$?
20995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20996   test $ac_status = 0; }; }
20997     then
20998         gcc_cv_as_max_skip_p2align=yes
20999     else
21000       echo "configure: failed program was" >&5
21001       cat conftest.s >&5
21002     fi
21003     rm -f conftest.o conftest.s
21004   fi
21005 fi
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21007 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21008 if test $gcc_cv_as_max_skip_p2align = yes; then
21009
21010 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21011
21012 fi
21013
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21015 $as_echo_n "checking assembler for .literal16... " >&6; }
21016 if test "${gcc_cv_as_literal16+set}" = set; then :
21017   $as_echo_n "(cached) " >&6
21018 else
21019   gcc_cv_as_literal16=no
21020     if test $in_tree_gas = yes; then
21021     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21022   then gcc_cv_as_literal16=yes
21023 fi
21024   elif test x$gcc_cv_as != x; then
21025     echo '.literal16' > conftest.s
21026     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21027   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21028   (eval $ac_try) 2>&5
21029   ac_status=$?
21030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21031   test $ac_status = 0; }; }
21032     then
21033         gcc_cv_as_literal16=yes
21034     else
21035       echo "configure: failed program was" >&5
21036       cat conftest.s >&5
21037     fi
21038     rm -f conftest.o conftest.s
21039   fi
21040 fi
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21042 $as_echo "$gcc_cv_as_literal16" >&6; }
21043 if test $gcc_cv_as_literal16 = yes; then
21044
21045 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21046
21047 fi
21048
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21050 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21051 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21052   $as_echo_n "(cached) " >&6
21053 else
21054   gcc_cv_as_subsection_m1=no
21055     if test $in_tree_gas = yes; then
21056     if test $in_tree_gas_is_elf = yes \
21057   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21058   then gcc_cv_as_subsection_m1=yes
21059 fi
21060   elif test x$gcc_cv_as != x; then
21061     echo 'conftest_label1: .word 0
21062 .subsection -1
21063 conftest_label2: .word 0
21064 .previous' > conftest.s
21065     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21066   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21067   (eval $ac_try) 2>&5
21068   ac_status=$?
21069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21070   test $ac_status = 0; }; }
21071     then
21072         if test x$gcc_cv_nm != x; then
21073     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21074     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21075     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21076     then :
21077     else gcc_cv_as_subsection_m1=yes
21078     fi
21079     rm -f conftest.nm1 conftest.nm2
21080   fi
21081     else
21082       echo "configure: failed program was" >&5
21083       cat conftest.s >&5
21084     fi
21085     rm -f conftest.o conftest.s
21086   fi
21087 fi
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21089 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21090 if test $gcc_cv_as_subsection_m1 = yes; then
21091
21092 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21093
21094 fi
21095
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21097 $as_echo_n "checking assembler for .weak... " >&6; }
21098 if test "${gcc_cv_as_weak+set}" = set; then :
21099   $as_echo_n "(cached) " >&6
21100 else
21101   gcc_cv_as_weak=no
21102     if test $in_tree_gas = yes; then
21103     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21104   then gcc_cv_as_weak=yes
21105 fi
21106   elif test x$gcc_cv_as != x; then
21107     echo '      .weak foobar' > conftest.s
21108     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21109   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21110   (eval $ac_try) 2>&5
21111   ac_status=$?
21112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21113   test $ac_status = 0; }; }
21114     then
21115         gcc_cv_as_weak=yes
21116     else
21117       echo "configure: failed program was" >&5
21118       cat conftest.s >&5
21119     fi
21120     rm -f conftest.o conftest.s
21121   fi
21122 fi
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21124 $as_echo "$gcc_cv_as_weak" >&6; }
21125 if test $gcc_cv_as_weak = yes; then
21126
21127 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21128
21129 fi
21130
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21132 $as_echo_n "checking assembler for .weakref... " >&6; }
21133 if test "${gcc_cv_as_weakref+set}" = set; then :
21134   $as_echo_n "(cached) " >&6
21135 else
21136   gcc_cv_as_weakref=no
21137     if test $in_tree_gas = yes; then
21138     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21139   then gcc_cv_as_weakref=yes
21140 fi
21141   elif test x$gcc_cv_as != x; then
21142     echo '      .weakref foobar, barfnot' > conftest.s
21143     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21144   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21145   (eval $ac_try) 2>&5
21146   ac_status=$?
21147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21148   test $ac_status = 0; }; }
21149     then
21150         gcc_cv_as_weakref=yes
21151     else
21152       echo "configure: failed program was" >&5
21153       cat conftest.s >&5
21154     fi
21155     rm -f conftest.o conftest.s
21156   fi
21157 fi
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21159 $as_echo "$gcc_cv_as_weakref" >&6; }
21160 if test $gcc_cv_as_weakref = yes; then
21161
21162 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21163
21164 fi
21165
21166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21167 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21168 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21169   $as_echo_n "(cached) " >&6
21170 else
21171   gcc_cv_as_nsubspa_comdat=no
21172     if test $in_tree_gas = yes; then
21173     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21174   then gcc_cv_as_nsubspa_comdat=yes
21175 fi
21176   elif test x$gcc_cv_as != x; then
21177     echo '      .SPACE $TEXT$
21178         .NSUBSPA $CODE$,COMDAT' > conftest.s
21179     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21180   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21181   (eval $ac_try) 2>&5
21182   ac_status=$?
21183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21184   test $ac_status = 0; }; }
21185     then
21186         gcc_cv_as_nsubspa_comdat=yes
21187     else
21188       echo "configure: failed program was" >&5
21189       cat conftest.s >&5
21190     fi
21191     rm -f conftest.o conftest.s
21192   fi
21193 fi
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21195 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21196 if test $gcc_cv_as_nsubspa_comdat = yes; then
21197
21198 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21199
21200 fi
21201
21202 # .hidden needs to be supported in both the assembler and the linker,
21203 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21204 # This is irritatingly difficult to feature test for; we have to check the
21205 # date string after the version number.  If we've got an in-tree
21206 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21207 # to be safe.
21208 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21210 $as_echo_n "checking assembler for .hidden... " >&6; }
21211 if test "${gcc_cv_as_hidden+set}" = set; then :
21212   $as_echo_n "(cached) " >&6
21213 else
21214   gcc_cv_as_hidden=no
21215     if test $in_tree_gas = yes; then
21216     if test $in_tree_gas_is_elf = yes \
21217   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21218   then gcc_cv_as_hidden=yes
21219 fi
21220   elif test x$gcc_cv_as != x; then
21221     echo '      .hidden foobar
21222 foobar:' > conftest.s
21223     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21224   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21225   (eval $ac_try) 2>&5
21226   ac_status=$?
21227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21228   test $ac_status = 0; }; }
21229     then
21230         gcc_cv_as_hidden=yes
21231     else
21232       echo "configure: failed program was" >&5
21233       cat conftest.s >&5
21234     fi
21235     rm -f conftest.o conftest.s
21236   fi
21237 fi
21238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21239 $as_echo "$gcc_cv_as_hidden" >&6; }
21240
21241
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21243 $as_echo_n "checking linker for .hidden support... " >&6; }
21244 if test "${gcc_cv_ld_hidden+set}" = set; then :
21245   $as_echo_n "(cached) " >&6
21246 else
21247   if test $in_tree_ld = yes ; then
21248   gcc_cv_ld_hidden=no
21249   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 \
21250      && test $in_tree_ld_is_elf = yes; then
21251      gcc_cv_ld_hidden=yes
21252   fi
21253 else
21254   gcc_cv_ld_hidden=yes
21255   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21256   if echo "$ld_ver" | grep GNU > /dev/null; then
21257     ld_vers=`echo $ld_ver | sed -n \
21258         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21259     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'`
21260     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21261     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21262     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21263     if test 0"$ld_date" -lt 20020404; then
21264       if test -n "$ld_date"; then
21265         # If there was date string, but was earlier than 2002-04-04, fail
21266         gcc_cv_ld_hidden=no
21267       elif test -z "$ld_vers"; then
21268         # If there was no date string nor ld version number, something is wrong
21269         gcc_cv_ld_hidden=no
21270       else
21271         test -z "$ld_vers_patch" && ld_vers_patch=0
21272         if test "$ld_vers_major" -lt 2; then
21273           gcc_cv_ld_hidden=no
21274         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21275           gcc_cv_ld_hidden="no"
21276         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21277           gcc_cv_ld_hidden=no
21278         fi
21279       fi
21280     fi
21281   else
21282     case "${target}" in
21283       hppa64*-*-hpux* | ia64*-*-hpux*)
21284         gcc_cv_ld_hidden=yes
21285         ;;
21286       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21287         gcc_cv_ld_hidden=yes
21288         ;;
21289       *)
21290         gcc_cv_ld_hidden=no
21291         ;;
21292     esac
21293   fi
21294 fi
21295 fi
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21297 $as_echo "$gcc_cv_ld_hidden" >&6; }
21298 libgcc_visibility=no
21299
21300
21301 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21302   libgcc_visibility=yes
21303
21304 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21305
21306 fi
21307
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21309 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21310 gcc_cv_ld_ro_rw_mix=unknown
21311 if test $in_tree_ld = yes ; then
21312   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 \
21313      && test $in_tree_ld_is_elf = yes; then
21314     gcc_cv_ld_ro_rw_mix=read-write
21315   fi
21316 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21317   echo '.section myfoosect, "a"' > conftest1.s
21318   echo '.section myfoosect, "aw"' > conftest2.s
21319   echo '.byte 1' >> conftest2.s
21320   echo '.section myfoosect, "a"' > conftest3.s
21321   echo '.byte 0' >> conftest3.s
21322   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21323      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21324      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21325      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21326         conftest2.o conftest3.o > /dev/null 2>&1; then
21327     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21328                          | sed -e '/myfoosect/!d' -e N`
21329     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21330       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21331         gcc_cv_ld_ro_rw_mix=read-only
21332       else
21333         gcc_cv_ld_ro_rw_mix=read-write
21334       fi
21335     fi
21336   fi
21337   rm -f conftest.* conftest[123].*
21338 fi
21339 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21340
21341 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21342
21343 fi
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21345 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21346
21347 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21349 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21350 if test "${gcc_cv_as_leb128+set}" = set; then :
21351   $as_echo_n "(cached) " >&6
21352 else
21353   gcc_cv_as_leb128=no
21354     if test $in_tree_gas = yes; then
21355     if test $in_tree_gas_is_elf = yes \
21356   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21357   then gcc_cv_as_leb128=yes
21358 fi
21359   elif test x$gcc_cv_as != x; then
21360     echo '      .data
21361         .uleb128 L2 - L1
21362 L1:
21363         .uleb128 1280
21364         .sleb128 -1010
21365 L2:' > conftest.s
21366     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21367   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21368   (eval $ac_try) 2>&5
21369   ac_status=$?
21370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21371   test $ac_status = 0; }; }
21372     then
21373         # GAS versions before 2.11 do not support uleb128,
21374   # despite appearing to.
21375   # ??? There exists an elf-specific test that will crash
21376   # the assembler.  Perhaps it's better to figure out whether
21377   # arbitrary sections are supported and try the test.
21378   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21379   if echo "$as_ver" | grep GNU > /dev/null; then
21380     as_vers=`echo $as_ver | sed -n \
21381         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21382     as_major=`expr "$as_vers" : '\([0-9]*\)'`
21383     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21384     if test $as_major -eq 2 && test $as_minor -lt 11
21385     then :
21386     else gcc_cv_as_leb128=yes
21387     fi
21388   fi
21389     else
21390       echo "configure: failed program was" >&5
21391       cat conftest.s >&5
21392     fi
21393     rm -f conftest.o conftest.s
21394   fi
21395 fi
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21397 $as_echo "$gcc_cv_as_leb128" >&6; }
21398 if test $gcc_cv_as_leb128 = yes; then
21399
21400 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21401
21402 fi
21403
21404 # Check if we have assembler support for unwind directives.
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21406 $as_echo_n "checking assembler for cfi directives... " >&6; }
21407 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21408   $as_echo_n "(cached) " >&6
21409 else
21410   gcc_cv_as_cfi_directive=no
21411   if test x$gcc_cv_as != x; then
21412     echo '      .text
21413         .cfi_startproc
21414         .cfi_offset 0, 0
21415         .cfi_same_value 1
21416         .cfi_def_cfa 1, 2
21417         .cfi_escape 1, 2, 3, 4, 5
21418         .cfi_endproc' > conftest.s
21419     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21420   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21421   (eval $ac_try) 2>&5
21422   ac_status=$?
21423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21424   test $ac_status = 0; }; }
21425     then
21426         case "$target" in
21427   *-*-solaris*)
21428     # If the linker used on Solaris (like Sun ld) isn't capable of merging
21429     # read-only and read-write sections, we need to make sure that the
21430     # assembler used emits read-write .eh_frame sections.
21431     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21432       if test "x$gcc_cv_objdump" != x; then
21433         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21434                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21435           gcc_cv_as_cfi_directive=no
21436         else
21437           gcc_cv_as_cfi_directive=yes
21438         fi
21439       else
21440         # no objdump, err on the side of caution
21441         gcc_cv_as_cfi_directive=no
21442       fi
21443     else
21444       gcc_cv_as_cfi_directive=yes
21445     fi
21446     ;;
21447   *-*-*)
21448     gcc_cv_as_cfi_directive=yes
21449     ;;
21450 esac
21451     else
21452       echo "configure: failed program was" >&5
21453       cat conftest.s >&5
21454     fi
21455     rm -f conftest.o conftest.s
21456   fi
21457 fi
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21459 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21460
21461 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21463 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21464 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21465   $as_echo_n "(cached) " >&6
21466 else
21467   gcc_cv_as_cfi_advance_working=no
21468   if test x$gcc_cv_as != x; then
21469     echo '      .text
21470         .cfi_startproc
21471         .cfi_adjust_cfa_offset 64
21472         .skip 512, 0
21473         .cfi_adjust_cfa_offset 128
21474         .cfi_endproc' > conftest.s
21475     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21476   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21477   (eval $ac_try) 2>&5
21478   ac_status=$?
21479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21480   test $ac_status = 0; }; }
21481     then
21482
21483 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21484     | grep 'DW_CFA_advance_loc[12]:[    ][      ]*512[  ]' >/dev/null; then
21485    gcc_cv_as_cfi_advance_working=yes
21486 fi
21487
21488     else
21489       echo "configure: failed program was" >&5
21490       cat conftest.s >&5
21491     fi
21492     rm -f conftest.o conftest.s
21493   fi
21494 fi
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21496 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21497
21498 else
21499   # no readelf, err on the side of caution
21500   gcc_cv_as_cfi_advance_working=no
21501 fi
21502
21503 cat >>confdefs.h <<_ACEOF
21504 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21505        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21506 _ACEOF
21507
21508
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21510 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21511 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21512   $as_echo_n "(cached) " >&6
21513 else
21514   gcc_cv_as_cfi_personality_directive=no
21515   if test x$gcc_cv_as != x; then
21516     echo '      .text
21517         .cfi_startproc
21518         .cfi_personality 0, symbol
21519         .cfi_endproc' > conftest.s
21520     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21521   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21522   (eval $ac_try) 2>&5
21523   ac_status=$?
21524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21525   test $ac_status = 0; }; }
21526     then
21527         gcc_cv_as_cfi_personality_directive=yes
21528     else
21529       echo "configure: failed program was" >&5
21530       cat conftest.s >&5
21531     fi
21532     rm -f conftest.o conftest.s
21533   fi
21534 fi
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21536 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21537
21538
21539 cat >>confdefs.h <<_ACEOF
21540 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21541     then echo 1; else echo 0; fi`
21542 _ACEOF
21543
21544
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21546 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21547 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21548   $as_echo_n "(cached) " >&6
21549 else
21550   gcc_cv_as_cfi_sections_directive=no
21551   if test x$gcc_cv_as != x; then
21552     echo '      .text
21553         .cfi_sections .debug_frame, .eh_frame
21554         .cfi_startproc
21555         .cfi_endproc' > conftest.s
21556     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21557   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21558   (eval $ac_try) 2>&5
21559   ac_status=$?
21560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21561   test $ac_status = 0; }; }
21562     then
21563         gcc_cv_as_cfi_sections_directive=yes
21564     else
21565       echo "configure: failed program was" >&5
21566       cat conftest.s >&5
21567     fi
21568     rm -f conftest.o conftest.s
21569   fi
21570 fi
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21572 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21573
21574
21575 cat >>confdefs.h <<_ACEOF
21576 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21577     then echo 1; else echo 0; fi`
21578 _ACEOF
21579
21580
21581 # GAS versions up to and including 2.11.0 may mis-optimize
21582 # .eh_frame data.
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21584 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21585 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21586   $as_echo_n "(cached) " >&6
21587 else
21588   gcc_cv_as_eh_frame=no
21589     if test $in_tree_gas = yes; then
21590     if test $in_tree_gas_is_elf = yes \
21591   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21592   then gcc_cv_as_eh_frame=yes
21593 fi
21594   elif test x$gcc_cv_as != x; then
21595     echo '      .text
21596 .LFB1:
21597         .4byte  0
21598 .L1:
21599         .4byte  0
21600 .LFE1:
21601         .section        .eh_frame,"aw",@progbits
21602 __FRAME_BEGIN__:
21603         .4byte  .LECIE1-.LSCIE1
21604 .LSCIE1:
21605         .4byte  0x0
21606         .byte   0x1
21607         .ascii "z\0"
21608         .byte   0x1
21609         .byte   0x78
21610         .byte   0x1a
21611         .byte   0x0
21612         .byte   0x4
21613         .4byte  1
21614         .p2align 1
21615 .LECIE1:
21616 .LSFDE1:
21617         .4byte  .LEFDE1-.LASFDE1
21618 .LASFDE1:
21619         .4byte  .LASFDE1-__FRAME_BEGIN__
21620         .4byte  .LFB1
21621         .4byte  .LFE1-.LFB1
21622         .byte   0x4
21623         .4byte  .LFE1-.LFB1
21624         .byte   0x4
21625         .4byte  .L1-.LFB1
21626 .LEFDE1:' > conftest.s
21627     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21628   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21629   (eval $ac_try) 2>&5
21630   ac_status=$?
21631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21632   test $ac_status = 0; }; }
21633     then
21634           cat > conftest.lit <<EOF
21635  0000 10000000 00000000 017a0001 781a0004  .........z..x...
21636  0010 01000000 12000000 18000000 00000000  ................
21637  0020 08000000 04080000 0044               .........D      
21638 EOF
21639 cat > conftest.big <<EOF
21640  0000 00000010 00000000 017a0001 781a0004  .........z..x...
21641  0010 00000001 00000012 00000018 00000000  ................
21642  0020 00000008 04000000 0844               .........D      
21643 EOF
21644   # If the assembler didn't choke, and we can objdump,
21645   # and we got the correct data, then succeed.
21646   # The text in the here-document typically retains its unix-style line
21647   # endings, while the output of objdump will use host line endings.
21648   # Therefore, use diff -b for the comparisons.
21649   if test x$gcc_cv_objdump != x \
21650   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21651      | tail -3 > conftest.got \
21652   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21653     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21654   then
21655     gcc_cv_as_eh_frame=yes
21656   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21657   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21658   (eval $ac_try) 2>&5
21659   ac_status=$?
21660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21661   test $ac_status = 0; }; }; then
21662     gcc_cv_as_eh_frame=buggy
21663   else
21664     # Uh oh, what do we do now?
21665     gcc_cv_as_eh_frame=no
21666   fi
21667     else
21668       echo "configure: failed program was" >&5
21669       cat conftest.s >&5
21670     fi
21671     rm -f conftest.o conftest.s
21672   fi
21673 fi
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21675 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21676
21677
21678 if test $gcc_cv_as_eh_frame = buggy; then
21679
21680 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21681
21682 fi
21683
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21685 $as_echo_n "checking assembler for section merging support... " >&6; }
21686 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21687   $as_echo_n "(cached) " >&6
21688 else
21689   gcc_cv_as_shf_merge=no
21690     if test $in_tree_gas = yes; then
21691     if test $in_tree_gas_is_elf = yes \
21692   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21693   then gcc_cv_as_shf_merge=yes
21694 fi
21695   elif test x$gcc_cv_as != x; then
21696     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21697     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21698   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21699   (eval $ac_try) 2>&5
21700   ac_status=$?
21701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21702   test $ac_status = 0; }; }
21703     then
21704         gcc_cv_as_shf_merge=yes
21705     else
21706       echo "configure: failed program was" >&5
21707       cat conftest.s >&5
21708     fi
21709     rm -f conftest.o conftest.s
21710   fi
21711 fi
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21713 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21714
21715 if test $gcc_cv_as_shf_merge = no; then
21716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21717 $as_echo_n "checking assembler for section merging support... " >&6; }
21718 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21719   $as_echo_n "(cached) " >&6
21720 else
21721   gcc_cv_as_shf_merge=no
21722     if test $in_tree_gas = yes; then
21723     if test $in_tree_gas_is_elf = yes \
21724   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21725   then gcc_cv_as_shf_merge=yes
21726 fi
21727   elif test x$gcc_cv_as != x; then
21728     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21729     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21730   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21731   (eval $ac_try) 2>&5
21732   ac_status=$?
21733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21734   test $ac_status = 0; }; }
21735     then
21736         gcc_cv_as_shf_merge=yes
21737     else
21738       echo "configure: failed program was" >&5
21739       cat conftest.s >&5
21740     fi
21741     rm -f conftest.o conftest.s
21742   fi
21743 fi
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21745 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21746
21747 fi
21748
21749 cat >>confdefs.h <<_ACEOF
21750 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21751 _ACEOF
21752
21753
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21755 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21756 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21757   $as_echo_n "(cached) " >&6
21758 else
21759   gcc_cv_as_comdat_group=no
21760     if test $in_tree_gas = yes; then
21761     if test $in_tree_gas_is_elf = yes \
21762   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21763   then gcc_cv_as_comdat_group=yes
21764 fi
21765   elif test x$gcc_cv_as != x; then
21766     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21767     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21768   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21769   (eval $ac_try) 2>&5
21770   ac_status=$?
21771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21772   test $ac_status = 0; }; }
21773     then
21774         gcc_cv_as_comdat_group=yes
21775     else
21776       echo "configure: failed program was" >&5
21777       cat conftest.s >&5
21778     fi
21779     rm -f conftest.o conftest.s
21780   fi
21781 fi
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21783 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21784
21785 if test $gcc_cv_as_comdat_group = yes; then
21786   gcc_cv_as_comdat_group_percent=no
21787 else
21788  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21789 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21790 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21791   $as_echo_n "(cached) " >&6
21792 else
21793   gcc_cv_as_comdat_group_percent=no
21794     if test $in_tree_gas = yes; then
21795     if test $in_tree_gas_is_elf = yes \
21796   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21797   then gcc_cv_as_comdat_group_percent=yes
21798 fi
21799   elif test x$gcc_cv_as != x; then
21800     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21801     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21802   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21803   (eval $ac_try) 2>&5
21804   ac_status=$?
21805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21806   test $ac_status = 0; }; }
21807     then
21808         gcc_cv_as_comdat_group_percent=yes
21809     else
21810       echo "configure: failed program was" >&5
21811       cat conftest.s >&5
21812     fi
21813     rm -f conftest.o conftest.s
21814   fi
21815 fi
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21817 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21818
21819 fi
21820 if test $in_tree_ld = yes ; then
21821   comdat_group=no
21822   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 \
21823      && test $in_tree_ld_is_elf = yes; then
21824      comdat_group=yes
21825   fi
21826 elif test x"$ld_vers" != x; then
21827   comdat_group=yes
21828   if test 0"$ld_date" -lt 20050308; then
21829     if test -n "$ld_date"; then
21830       # If there was date string, but was earlier than 2005-03-08, fail
21831       comdat_group=no
21832     elif test "$ld_vers_major" -lt 2; then
21833       comdat_group=no
21834     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21835       comdat_group=no
21836     fi
21837   fi
21838 else
21839   # assume linkers other than GNU ld don't support COMDAT group
21840   comdat_group=no
21841 fi
21842 if test $comdat_group = no; then
21843   gcc_cv_as_comdat_group=no
21844   gcc_cv_as_comdat_group_percent=no
21845 fi
21846
21847 cat >>confdefs.h <<_ACEOF
21848 #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`
21849 _ACEOF
21850
21851
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21853 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21854 if test "${gcc_cv_as_discriminator+set}" = set; then :
21855   $as_echo_n "(cached) " >&6
21856 else
21857   gcc_cv_as_discriminator=no
21858     if test $in_tree_gas = yes; then
21859     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21860   then gcc_cv_as_discriminator=yes
21861 fi
21862   elif test x$gcc_cv_as != x; then
21863     echo '      .text
21864         .file 1 "conf.c"
21865         .loc 1 1 0 discriminator 1' > conftest.s
21866     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21867   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21868   (eval $ac_try) 2>&5
21869   ac_status=$?
21870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21871   test $ac_status = 0; }; }
21872     then
21873         gcc_cv_as_discriminator=yes
21874     else
21875       echo "configure: failed program was" >&5
21876       cat conftest.s >&5
21877     fi
21878     rm -f conftest.o conftest.s
21879   fi
21880 fi
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21882 $as_echo "$gcc_cv_as_discriminator" >&6; }
21883 if test $gcc_cv_as_discriminator = yes; then
21884
21885 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21886
21887 fi
21888
21889 # Thread-local storage - the check is heavily parameterized.
21890 conftest_s=
21891 tls_first_major=
21892 tls_first_minor=
21893 tls_as_opt=
21894 case "$target" in
21895   alpha*-*-*)
21896     conftest_s='
21897         .section ".tdata","awT",@progbits
21898 foo:    .long   25
21899         .text
21900         ldq     $27,__tls_get_addr($29)         !literal!1
21901         lda     $16,foo($29)                    !tlsgd!1
21902         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
21903         ldq     $27,__tls_get_addr($29)         !literal!2
21904         lda     $16,foo($29)                    !tlsldm!2
21905         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
21906         ldq     $1,foo($29)                     !gotdtprel
21907         ldah    $2,foo($29)                     !dtprelhi
21908         lda     $3,foo($2)                      !dtprello
21909         lda     $4,foo($29)                     !dtprel
21910         ldq     $1,foo($29)                     !gottprel
21911         ldah    $2,foo($29)                     !tprelhi
21912         lda     $3,foo($2)                      !tprello
21913         lda     $4,foo($29)                     !tprel'
21914         tls_first_major=2
21915         tls_first_minor=13
21916         tls_as_opt=--fatal-warnings
21917         ;;
21918   cris-*-*|crisv32-*-*)
21919     conftest_s='
21920         .section ".tdata","awT",@progbits
21921 x:      .long   25
21922         .text
21923         move.d x:IE,$r10
21924         nop'
21925         tls_first_major=2
21926         tls_first_minor=20
21927         tls_as_opt=--fatal-warnings
21928         ;;
21929   frv*-*-*)
21930     conftest_s='
21931         .section ".tdata","awT",@progbits
21932 x:      .long   25
21933         .text
21934         call    #gettlsoff(x)'
21935         tls_first_major=2
21936         tls_first_minor=14
21937         ;;
21938   hppa*-*-linux*)
21939     conftest_s='
21940 t1:     .reg    %r20
21941 t2:     .reg    %r21
21942 gp:     .reg    %r19
21943         .section ".tdata","awT",@progbits
21944 foo:    .long   25
21945         .text
21946         .align  4
21947         addil LT%foo-$tls_gdidx$,gp
21948         ldo RT%foo-$tls_gdidx$(%r1),%arg0
21949         b __tls_get_addr
21950         nop
21951         addil LT%foo-$tls_ldidx$,gp
21952         b __tls_get_addr
21953         ldo RT%foo-$tls_ldidx$(%r1),%arg0
21954         addil LR%foo-$tls_dtpoff$,%ret0
21955         ldo RR%foo-$tls_dtpoff$(%r1),%t1
21956         mfctl %cr27,%t1
21957         addil LT%foo-$tls_ieoff$,gp
21958         ldw RT%foo-$tls_ieoff$(%r1),%t2
21959         add %t1,%t2,%t3
21960         mfctl %cr27,%t1
21961         addil LR%foo-$tls_leoff$,%t1
21962         ldo RR%foo-$tls_leoff$(%r1),%t2'
21963         tls_first_major=2
21964         tls_first_minor=15
21965         tls_as_opt=--fatal-warnings
21966         ;;
21967   arm*-*-*)
21968     conftest_s='
21969         .section ".tdata","awT",%progbits
21970 foo:    .long   25
21971         .text
21972 .word foo(gottpoff)
21973 .word foo(tpoff)
21974 .word foo(tlsgd)
21975 .word foo(tlsldm)
21976 .word foo(tlsldo)'
21977         tls_first_major=2
21978         tls_first_minor=17
21979         ;;
21980   i[34567]86-*-*)
21981     conftest_s='
21982         .section ".tdata","awT",@progbits
21983 foo:    .long   25
21984         .text
21985         movl    %gs:0, %eax
21986         leal    foo@TLSGD(,%ebx,1), %eax
21987         leal    foo@TLSLDM(%ebx), %eax
21988         leal    foo@DTPOFF(%eax), %edx
21989         movl    foo@GOTTPOFF(%ebx), %eax
21990         subl    foo@GOTTPOFF(%ebx), %eax
21991         addl    foo@GOTNTPOFF(%ebx), %eax
21992         movl    foo@INDNTPOFF, %eax
21993         movl    $foo@TPOFF, %eax
21994         subl    $foo@TPOFF, %eax
21995         leal    foo@NTPOFF(%ecx), %eax'
21996         tls_first_major=2
21997         tls_first_minor=14
21998         tls_as_opt=--fatal-warnings
21999         ;;
22000   x86_64-*-*)
22001     conftest_s='
22002         .section ".tdata","awT",@progbits
22003 foo:    .long   25
22004         .text
22005         movq    %fs:0, %rax
22006         leaq    foo@TLSGD(%rip), %rdi
22007         leaq    foo@TLSLD(%rip), %rdi
22008         leaq    foo@DTPOFF(%rax), %rdx
22009         movq    foo@GOTTPOFF(%rip), %rax
22010         movq    $foo@TPOFF, %rax'
22011         tls_first_major=2
22012         tls_first_minor=14
22013         tls_as_opt=--fatal-warnings
22014         ;;
22015   ia64-*-*)
22016     conftest_s='
22017         .section ".tdata","awT",@progbits
22018 foo:    data8   25
22019         .text
22020         addl    r16 = @ltoff(@dtpmod(foo#)), gp
22021         addl    r17 = @ltoff(@dtprel(foo#)), gp
22022         addl    r18 = @ltoff(@tprel(foo#)), gp
22023         addl    r19 = @dtprel(foo#), gp
22024         adds    r21 = @dtprel(foo#), r13
22025         movl    r23 = @dtprel(foo#)
22026         addl    r20 = @tprel(foo#), gp
22027         adds    r22 = @tprel(foo#), r13
22028         movl    r24 = @tprel(foo#)'
22029         tls_first_major=2
22030         tls_first_minor=13
22031         tls_as_opt=--fatal-warnings
22032         ;;
22033   mips*-*-*)
22034     conftest_s='
22035         .section .tdata,"awT",@progbits
22036 x:
22037         .word 2
22038         .text
22039         addiu $4, $28, %tlsgd(x)
22040         addiu $4, $28, %tlsldm(x)
22041         lui $4, %dtprel_hi(x)
22042         addiu $4, $4, %dtprel_lo(x)
22043         lw $4, %gottprel(x)($28)
22044         lui $4, %tprel_hi(x)
22045         addiu $4, $4, %tprel_lo(x)'
22046         tls_first_major=2
22047         tls_first_minor=16
22048         tls_as_opt='-32 --fatal-warnings'
22049         ;;
22050   m68k-*-*)
22051     conftest_s='
22052         .section .tdata,"awT",@progbits
22053 x:
22054         .word 2
22055         .text
22056 foo:
22057         move.l x@TLSGD(%a5),%a0
22058         move.l x@TLSLDM(%a5),%a0
22059         move.l x@TLSLDO(%a5),%a0
22060         move.l x@TLSIE(%a5),%a0
22061         move.l x@TLSLE(%a5),%a0'
22062         tls_first_major=2
22063         tls_first_minor=19
22064         tls_as_opt='--fatal-warnings'
22065         ;;
22066   powerpc-*-*)
22067     conftest_s='
22068         .section ".tdata","awT",@progbits
22069         .align 2
22070 ld0:    .space 4
22071 ld1:    .space 4
22072 x1:     .space 4
22073 x2:     .space 4
22074 x3:     .space 4
22075         .text
22076         addi 3,31,ld0@got@tlsgd
22077         bl __tls_get_addr
22078         addi 3,31,x1@got@tlsld
22079         bl __tls_get_addr
22080         addi 9,3,x1@dtprel
22081         addis 9,3,x2@dtprel@ha
22082         addi 9,9,x2@dtprel@l
22083         lwz 9,x3@got@tprel(31)
22084         add 9,9,x@tls
22085         addi 9,2,x1@tprel
22086         addis 9,2,x2@tprel@ha
22087         addi 9,9,x2@tprel@l'
22088         tls_first_major=2
22089         tls_first_minor=14
22090         tls_as_opt="-a32 --fatal-warnings"
22091         ;;
22092   powerpc64-*-*)
22093     conftest_s='
22094         .section ".tdata","awT",@progbits
22095         .align 3
22096 ld0:    .space 8
22097 ld1:    .space 8
22098 x1:     .space 8
22099 x2:     .space 8
22100 x3:     .space 8
22101         .text
22102         addi 3,2,ld0@got@tlsgd
22103         bl .__tls_get_addr
22104         nop
22105         addi 3,2,ld1@toc
22106         bl .__tls_get_addr
22107         nop
22108         addi 3,2,x1@got@tlsld
22109         bl .__tls_get_addr
22110         nop
22111         addi 9,3,x1@dtprel
22112         bl .__tls_get_addr
22113         nop
22114         addis 9,3,x2@dtprel@ha
22115         addi 9,9,x2@dtprel@l
22116         bl .__tls_get_addr
22117         nop
22118         ld 9,x3@got@dtprel(2)
22119         add 9,9,3
22120         bl .__tls_get_addr
22121         nop'
22122         tls_first_major=2
22123         tls_first_minor=14
22124         tls_as_opt="-a64 --fatal-warnings"
22125         ;;
22126   s390-*-*)
22127     conftest_s='
22128         .section ".tdata","awT",@progbits
22129 foo:    .long   25
22130         .text
22131         .long   foo@TLSGD
22132         .long   foo@TLSLDM
22133         .long   foo@DTPOFF
22134         .long   foo@NTPOFF
22135         .long   foo@GOTNTPOFF
22136         .long   foo@INDNTPOFF
22137         l       %r1,foo@GOTNTPOFF(%r12)
22138         l       %r1,0(%r1):tls_load:foo
22139         bas     %r14,0(%r1,%r13):tls_gdcall:foo
22140         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
22141         tls_first_major=2
22142         tls_first_minor=14
22143         tls_as_opt="-m31 --fatal-warnings"
22144         ;;
22145   s390x-*-*)
22146     conftest_s='
22147         .section ".tdata","awT",@progbits
22148 foo:    .long   25
22149         .text
22150         .quad   foo@TLSGD
22151         .quad   foo@TLSLDM
22152         .quad   foo@DTPOFF
22153         .quad   foo@NTPOFF
22154         .quad   foo@GOTNTPOFF
22155         lg      %r1,foo@GOTNTPOFF(%r12)
22156         larl    %r1,foo@INDNTPOFF
22157         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
22158         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22159         tls_first_major=2
22160         tls_first_minor=14
22161         tls_as_opt="-m64 -Aesame --fatal-warnings"
22162         ;;
22163   sh-*-* | sh[34]-*-*)
22164     conftest_s='
22165         .section ".tdata","awT",@progbits
22166 foo:    .long   25
22167         .text
22168         .long   foo@TLSGD
22169         .long   foo@TLSLDM
22170         .long   foo@DTPOFF
22171         .long   foo@GOTTPOFF
22172         .long   foo@TPOFF'
22173         tls_first_major=2
22174         tls_first_minor=13
22175         tls_as_opt=--fatal-warnings
22176         ;;
22177   sparc*-*-*)
22178     case "$target" in
22179       sparc*-sun-solaris2.[56789]*)
22180         # TLS was introduced in the Solaris 9 4/04 release but
22181         # we do not enable it by default on Solaris 9 either.
22182         if test "x$enable_tls" = xyes ; then
22183           on_solaris=yes
22184         else
22185           enable_tls=no;
22186         fi
22187         ;;
22188       sparc*-sun-solaris2.*)
22189         on_solaris=yes
22190         ;;
22191       *)
22192         on_solaris=no
22193         ;;
22194     esac
22195     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22196       conftest_s='
22197         .section ".tdata",#alloc,#write,#tls
22198 foo:    .long   25
22199         .text
22200         sethi   %tgd_hi22(foo), %o0
22201         add     %o0, %tgd_lo10(foo), %o1
22202         add     %l7, %o1, %o0, %tgd_add(foo)
22203         call    __tls_get_addr, %tgd_call(foo)
22204         sethi   %tldm_hi22(foo), %l1
22205         add     %l1, %tldm_lo10(foo), %l2
22206         add     %l7, %l2, %o0, %tldm_add(foo)
22207         call    __tls_get_addr, %tldm_call(foo)
22208         sethi   %tldo_hix22(foo), %l3
22209         xor     %l3, %tldo_lox10(foo), %l4
22210         add     %o0, %l4, %l5, %tldo_add(foo)
22211         sethi   %tie_hi22(foo), %o3
22212         add     %o3, %tie_lo10(foo), %o3
22213         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22214         add     %g7, %o2, %o4, %tie_add(foo)
22215         sethi   %tle_hix22(foo), %l1
22216         xor     %l1, %tle_lox10(foo), %o5
22217         ld      [%g7 + %o5], %o1'
22218         tls_first_major=0
22219         tls_first_minor=0
22220     else
22221       conftest_s='
22222         .section ".tdata","awT",@progbits
22223 foo:    .long   25
22224         .text
22225         sethi   %tgd_hi22(foo), %o0
22226         add     %o0, %tgd_lo10(foo), %o1
22227         add     %l7, %o1, %o0, %tgd_add(foo)
22228         call    __tls_get_addr, %tgd_call(foo)
22229         sethi   %tldm_hi22(foo), %l1
22230         add     %l1, %tldm_lo10(foo), %l2
22231         add     %l7, %l2, %o0, %tldm_add(foo)
22232         call    __tls_get_addr, %tldm_call(foo)
22233         sethi   %tldo_hix22(foo), %l3
22234         xor     %l3, %tldo_lox10(foo), %l4
22235         add     %o0, %l4, %l5, %tldo_add(foo)
22236         sethi   %tie_hi22(foo), %o3
22237         add     %o3, %tie_lo10(foo), %o3
22238         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22239         add     %g7, %o2, %o4, %tie_add(foo)
22240         sethi   %tle_hix22(foo), %l1
22241         xor     %l1, %tle_lox10(foo), %o5
22242         ld      [%g7 + %o5], %o1'
22243         tls_first_major=2
22244         tls_first_minor=14
22245         tls_as_opt="-32 --fatal-warnings"
22246       fi
22247         ;;
22248   xtensa*-*-*)
22249     conftest_s='
22250         .section ".tdata","awT",@progbits
22251 foo:    .long   25
22252         .text
22253         movi    a8, foo@TLSFUNC
22254         movi    a10, foo@TLSARG
22255         callx8.tls a8, foo@TLSCALL'
22256         tls_first_major=2
22257         tls_first_minor=19
22258         ;;
22259 esac
22260 set_have_as_tls=no
22261 if test "x$enable_tls" = xno ; then
22262   : # TLS explicitly disabled.
22263 elif test "x$enable_tls" = xyes ; then
22264   set_have_as_tls=yes # TLS explicitly enabled.
22265 elif test -z "$tls_first_major"; then
22266   : # If we don't have a check, assume no support.
22267 else
22268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22269 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22270 if test "${gcc_cv_as_tls+set}" = set; then :
22271   $as_echo_n "(cached) " >&6
22272 else
22273   gcc_cv_as_tls=no
22274     if test $in_tree_gas = yes; then
22275     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22276   then gcc_cv_as_tls=yes
22277 fi
22278   elif test x$gcc_cv_as != x; then
22279     echo "$conftest_s" > conftest.s
22280     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
22281   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22282   (eval $ac_try) 2>&5
22283   ac_status=$?
22284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22285   test $ac_status = 0; }; }
22286     then
22287         gcc_cv_as_tls=yes
22288     else
22289       echo "configure: failed program was" >&5
22290       cat conftest.s >&5
22291     fi
22292     rm -f conftest.o conftest.s
22293   fi
22294 fi
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22296 $as_echo "$gcc_cv_as_tls" >&6; }
22297 if test $gcc_cv_as_tls = yes; then
22298   set_have_as_tls=yes
22299 fi
22300 fi
22301 if test $set_have_as_tls = yes ; then
22302
22303 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22304
22305 fi
22306
22307 # Target-specific assembler checks.
22308
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22310 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22311 gcc_cv_ld_static_dynamic=no
22312 if test $in_tree_ld = yes ; then
22313   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
22314     gcc_cv_ld_static_dynamic=yes
22315   fi
22316 elif test x$gcc_cv_ld != x; then
22317         # Check if linker supports -Bstatic/-Bdynamic option
22318         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22319           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22320                 gcc_cv_ld_static_dynamic=yes
22321         fi
22322 fi
22323 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22324
22325 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22326
22327 fi
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22329 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22330
22331 if test x"$demangler_in_ld" = xyes; then
22332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22333 $as_echo_n "checking linker --demangle support... " >&6; }
22334   gcc_cv_ld_demangle=no
22335   if test $in_tree_ld = yes; then
22336     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 \
22337       gcc_cv_ld_demangle=yes
22338     fi
22339   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22340     # Check if the GNU linker supports --demangle option
22341     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22342       gcc_cv_ld_demangle=yes
22343     fi
22344   fi
22345   if test x"$gcc_cv_ld_demangle" = xyes; then
22346
22347 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22348
22349   fi
22350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22351 $as_echo "$gcc_cv_ld_demangle" >&6; }
22352 fi
22353
22354 case "$target" in
22355   # All TARGET_ABI_OSF targets.
22356   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22358 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22359 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22360   $as_echo_n "(cached) " >&6
22361 else
22362   gcc_cv_as_alpha_explicit_relocs=no
22363     if test $in_tree_gas = yes; then
22364     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22365   then gcc_cv_as_alpha_explicit_relocs=yes
22366 fi
22367   elif test x$gcc_cv_as != x; then
22368     echo '      .set nomacro
22369         .text
22370         extbl   $3, $2, $3      !lituse_bytoff!1
22371         ldq     $2, a($29)      !literal!1
22372         ldq     $4, b($29)      !literal!2
22373         ldq_u   $3, 0($2)       !lituse_base!1
22374         ldq     $27, f($29)     !literal!5
22375         jsr     $26, ($27), f   !lituse_jsr!5
22376         ldah    $29, 0($26)     !gpdisp!3
22377         lda     $0, c($29)      !gprel
22378         ldah    $1, d($29)      !gprelhigh
22379         lda     $1, d($1)       !gprellow
22380         lda     $29, 0($29)     !gpdisp!3' > conftest.s
22381     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22382   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22383   (eval $ac_try) 2>&5
22384   ac_status=$?
22385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22386   test $ac_status = 0; }; }
22387     then
22388         gcc_cv_as_alpha_explicit_relocs=yes
22389     else
22390       echo "configure: failed program was" >&5
22391       cat conftest.s >&5
22392     fi
22393     rm -f conftest.o conftest.s
22394   fi
22395 fi
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22397 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22398 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22399
22400 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22401
22402 fi
22403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22404 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22405 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22406   $as_echo_n "(cached) " >&6
22407 else
22408   gcc_cv_as_alpha_jsrdirect_relocs=no
22409     if test $in_tree_gas = yes; then
22410     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22411   then gcc_cv_as_alpha_jsrdirect_relocs=yes
22412 fi
22413   elif test x$gcc_cv_as != x; then
22414     echo '      .set nomacro
22415         .text
22416         ldq     $27, a($29)     !literal!1
22417         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
22418     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22419   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22420   (eval $ac_try) 2>&5
22421   ac_status=$?
22422   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22423   test $ac_status = 0; }; }
22424     then
22425         gcc_cv_as_alpha_jsrdirect_relocs=yes
22426     else
22427       echo "configure: failed program was" >&5
22428       cat conftest.s >&5
22429     fi
22430     rm -f conftest.o conftest.s
22431   fi
22432 fi
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22434 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22435 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22436
22437 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22438
22439 fi
22440     ;;
22441
22442   cris-*-*)
22443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22444 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22445 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22446   $as_echo_n "(cached) " >&6
22447 else
22448   gcc_cv_as_cris_no_mul_bug=no
22449     if test $in_tree_gas = yes; then
22450     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22451   then gcc_cv_as_cris_no_mul_bug=yes
22452 fi
22453   elif test x$gcc_cv_as != x; then
22454     echo '.text' > conftest.s
22455     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
22456   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22457   (eval $ac_try) 2>&5
22458   ac_status=$?
22459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22460   test $ac_status = 0; }; }
22461     then
22462         gcc_cv_as_cris_no_mul_bug=yes
22463     else
22464       echo "configure: failed program was" >&5
22465       cat conftest.s >&5
22466     fi
22467     rm -f conftest.o conftest.s
22468   fi
22469 fi
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22471 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22472 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22473
22474 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22475
22476 fi
22477     ;;
22478
22479   sparc*-*-*)
22480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22481 $as_echo_n "checking assembler for .register... " >&6; }
22482 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22483   $as_echo_n "(cached) " >&6
22484 else
22485   gcc_cv_as_sparc_register_op=no
22486   if test x$gcc_cv_as != x; then
22487     echo '.register %g2, #scratch' > conftest.s
22488     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22489   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22490   (eval $ac_try) 2>&5
22491   ac_status=$?
22492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22493   test $ac_status = 0; }; }
22494     then
22495         gcc_cv_as_sparc_register_op=yes
22496     else
22497       echo "configure: failed program was" >&5
22498       cat conftest.s >&5
22499     fi
22500     rm -f conftest.o conftest.s
22501   fi
22502 fi
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22504 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22505 if test $gcc_cv_as_sparc_register_op = yes; then
22506
22507 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22508
22509 fi
22510
22511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22512 $as_echo_n "checking assembler for -relax option... " >&6; }
22513 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22514   $as_echo_n "(cached) " >&6
22515 else
22516   gcc_cv_as_sparc_relax=no
22517   if test x$gcc_cv_as != x; then
22518     echo '.text' > conftest.s
22519     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22520   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22521   (eval $ac_try) 2>&5
22522   ac_status=$?
22523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22524   test $ac_status = 0; }; }
22525     then
22526         gcc_cv_as_sparc_relax=yes
22527     else
22528       echo "configure: failed program was" >&5
22529       cat conftest.s >&5
22530     fi
22531     rm -f conftest.o conftest.s
22532   fi
22533 fi
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22535 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22536 if test $gcc_cv_as_sparc_relax = yes; then
22537
22538 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22539
22540 fi
22541
22542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22543 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22544 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22545   $as_echo_n "(cached) " >&6
22546 else
22547   gcc_cv_as_sparc_ua_pcrel=no
22548   if test x$gcc_cv_as != x; then
22549     echo '.text
22550 foo:
22551         nop
22552 .data
22553 .align 4
22554 .byte 0
22555 .uaword %r_disp32(foo)' > conftest.s
22556     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22557   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22558   (eval $ac_try) 2>&5
22559   ac_status=$?
22560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22561   test $ac_status = 0; }; }
22562     then
22563         if test x$gcc_cv_ld != x \
22564        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22565          gcc_cv_as_sparc_ua_pcrel=yes
22566        fi
22567        rm -f conftest
22568     else
22569       echo "configure: failed program was" >&5
22570       cat conftest.s >&5
22571     fi
22572     rm -f conftest.o conftest.s
22573   fi
22574 fi
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22576 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22577 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22578
22579 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22580
22581
22582       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22583 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22584 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22585   $as_echo_n "(cached) " >&6
22586 else
22587   gcc_cv_as_sparc_ua_pcrel_hidden=no
22588   if test x$gcc_cv_as != x; then
22589     echo '.data
22590 .align 4
22591 .byte 0x31
22592 .uaword %r_disp32(foo)
22593 .byte 0x32, 0x33, 0x34
22594 .global foo
22595 .hidden foo
22596 foo:
22597 .skip 4' > conftest.s
22598     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22599   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22600   (eval $ac_try) 2>&5
22601   ac_status=$?
22602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22603   test $ac_status = 0; }; }
22604     then
22605         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22606          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22607          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22608             | grep ' 31000000 07323334' > /dev/null 2>&1; then
22609             if $gcc_cv_objdump -R conftest 2> /dev/null \
22610                | grep 'DISP32' > /dev/null 2>&1; then
22611                 :
22612             else
22613                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22614             fi
22615          fi
22616          rm -f conftest
22617     else
22618       echo "configure: failed program was" >&5
22619       cat conftest.s >&5
22620     fi
22621     rm -f conftest.o conftest.s
22622   fi
22623 fi
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22625 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22626 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22627
22628 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22629
22630 fi
22631
22632 fi # unaligned pcrel relocs
22633
22634     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22635 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22636 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22637   $as_echo_n "(cached) " >&6
22638 else
22639   gcc_cv_as_sparc_offsetable_lo10=no
22640   if test x$gcc_cv_as != x; then
22641     echo '.text
22642         or %g1, %lo(ab) + 12, %g1
22643         or %g1, %lo(ab + 12), %g1' > conftest.s
22644     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22645   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22646   (eval $ac_try) 2>&5
22647   ac_status=$?
22648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22649   test $ac_status = 0; }; }
22650     then
22651         if test x$gcc_cv_objdump != x \
22652        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22653           | grep ' 82106000 82106000' > /dev/null 2>&1; then
22654          gcc_cv_as_sparc_offsetable_lo10=yes
22655        fi
22656     else
22657       echo "configure: failed program was" >&5
22658       cat conftest.s >&5
22659     fi
22660     rm -f conftest.o conftest.s
22661   fi
22662 fi
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22664 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22665 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22666
22667 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22668
22669 fi
22670     ;;
22671
22672   i[34567]86-*-* | x86_64-*-*)
22673     case $target_os in
22674       cygwin* | pe | mingw32*)
22675         # Recent binutils allows the three-operand form of ".comm" on PE.  This
22676         # definition is used unconditionally to initialise the default state of
22677         # the target option variable that governs usage of the feature.
22678         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22679 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22680 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22681   $as_echo_n "(cached) " >&6
22682 else
22683   gcc_cv_as_comm_has_align=no
22684     if test $in_tree_gas = yes; then
22685     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22686   then gcc_cv_as_comm_has_align=yes
22687 fi
22688   elif test x$gcc_cv_as != x; then
22689     echo '.comm foo,1,32' > conftest.s
22690     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22691   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22692   (eval $ac_try) 2>&5
22693   ac_status=$?
22694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22695   test $ac_status = 0; }; }
22696     then
22697         gcc_cv_as_comm_has_align=yes
22698     else
22699       echo "configure: failed program was" >&5
22700       cat conftest.s >&5
22701     fi
22702     rm -f conftest.o conftest.s
22703   fi
22704 fi
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22706 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22707
22708
22709 cat >>confdefs.h <<_ACEOF
22710 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22711 _ACEOF
22712
22713         # Used for DWARF 2 in PE
22714         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22715 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22716 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22717   $as_echo_n "(cached) " >&6
22718 else
22719   gcc_cv_as_ix86_pe_secrel32=no
22720     if test $in_tree_gas = yes; then
22721     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22722   then gcc_cv_as_ix86_pe_secrel32=yes
22723 fi
22724   elif test x$gcc_cv_as != x; then
22725     echo '.text
22726 foo:    nop
22727 .data
22728         .secrel32 foo' > conftest.s
22729     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22730   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22731   (eval $ac_try) 2>&5
22732   ac_status=$?
22733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22734   test $ac_status = 0; }; }
22735     then
22736         if test x$gcc_cv_ld != x \
22737            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22738              gcc_cv_as_ix86_pe_secrel32=yes
22739            fi
22740            rm -f conftest
22741     else
22742       echo "configure: failed program was" >&5
22743       cat conftest.s >&5
22744     fi
22745     rm -f conftest.o conftest.s
22746   fi
22747 fi
22748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22749 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22750 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22751
22752 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22753
22754 fi
22755         ;;
22756     esac
22757
22758     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22759 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22760 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22761   $as_echo_n "(cached) " >&6
22762 else
22763   gcc_cv_as_ix86_filds=no
22764   if test x$gcc_cv_as != x; then
22765     echo 'filds mem; fists mem' > conftest.s
22766     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22767   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22768   (eval $ac_try) 2>&5
22769   ac_status=$?
22770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22771   test $ac_status = 0; }; }
22772     then
22773         gcc_cv_as_ix86_filds=yes
22774     else
22775       echo "configure: failed program was" >&5
22776       cat conftest.s >&5
22777     fi
22778     rm -f conftest.o conftest.s
22779   fi
22780 fi
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
22782 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
22783 if test $gcc_cv_as_ix86_filds = yes; then
22784
22785 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
22786
22787 fi
22788
22789     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
22790 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
22791 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
22792   $as_echo_n "(cached) " >&6
22793 else
22794   gcc_cv_as_ix86_fildq=no
22795   if test x$gcc_cv_as != x; then
22796     echo 'fildq mem; fistpq mem' > conftest.s
22797     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22798   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22799   (eval $ac_try) 2>&5
22800   ac_status=$?
22801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22802   test $ac_status = 0; }; }
22803     then
22804         gcc_cv_as_ix86_fildq=yes
22805     else
22806       echo "configure: failed program was" >&5
22807       cat conftest.s >&5
22808     fi
22809     rm -f conftest.o conftest.s
22810   fi
22811 fi
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
22813 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
22814 if test $gcc_cv_as_ix86_fildq = yes; then
22815
22816 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
22817
22818 fi
22819
22820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
22821 $as_echo_n "checking assembler for cmov syntax... " >&6; }
22822 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
22823   $as_echo_n "(cached) " >&6
22824 else
22825   gcc_cv_as_ix86_cmov_sun_syntax=no
22826   if test x$gcc_cv_as != x; then
22827     echo 'cmovl.l %edx, %eax' > conftest.s
22828     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22829   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22830   (eval $ac_try) 2>&5
22831   ac_status=$?
22832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22833   test $ac_status = 0; }; }
22834     then
22835         gcc_cv_as_ix86_cmov_sun_syntax=yes
22836     else
22837       echo "configure: failed program was" >&5
22838       cat conftest.s >&5
22839     fi
22840     rm -f conftest.o conftest.s
22841   fi
22842 fi
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22844 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
22845 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22846
22847 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
22848
22849 fi
22850
22851     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
22852 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
22853 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
22854   $as_echo_n "(cached) " >&6
22855 else
22856   gcc_cv_as_ix86_ffreep=no
22857   if test x$gcc_cv_as != x; then
22858     echo 'ffreep %st(1)' > conftest.s
22859     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22860   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22861   (eval $ac_try) 2>&5
22862   ac_status=$?
22863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22864   test $ac_status = 0; }; }
22865     then
22866         gcc_cv_as_ix86_ffreep=yes
22867     else
22868       echo "configure: failed program was" >&5
22869       cat conftest.s >&5
22870     fi
22871     rm -f conftest.o conftest.s
22872   fi
22873 fi
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
22875 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
22876 if test $gcc_cv_as_ix86_ffreep = yes; then
22877
22878 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
22879
22880 fi
22881
22882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
22883 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
22884 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
22885   $as_echo_n "(cached) " >&6
22886 else
22887   gcc_cv_as_ix86_sahf=no
22888   if test x$gcc_cv_as != x; then
22889     echo 'sahf' > conftest.s
22890     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22891   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22892   (eval $ac_try) 2>&5
22893   ac_status=$?
22894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22895   test $ac_status = 0; }; }
22896     then
22897         gcc_cv_as_ix86_sahf=yes
22898     else
22899       echo "configure: failed program was" >&5
22900       cat conftest.s >&5
22901     fi
22902     rm -f conftest.o conftest.s
22903   fi
22904 fi
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
22906 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
22907 if test $gcc_cv_as_ix86_sahf = yes; then
22908
22909 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
22910
22911 fi
22912
22913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
22914 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
22915 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
22916   $as_echo_n "(cached) " >&6
22917 else
22918   gcc_cv_as_ix86_diff_sect_delta=no
22919   if test x$gcc_cv_as != x; then
22920     echo '.section .rodata
22921 .L1:
22922         .long .L2-.L1
22923         .long .L3-.L1
22924         .text
22925 .L3:    nop
22926 .L2:    nop' > conftest.s
22927     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22928   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22929   (eval $ac_try) 2>&5
22930   ac_status=$?
22931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22932   test $ac_status = 0; }; }
22933     then
22934         gcc_cv_as_ix86_diff_sect_delta=yes
22935     else
22936       echo "configure: failed program was" >&5
22937       cat conftest.s >&5
22938     fi
22939     rm -f conftest.o conftest.s
22940   fi
22941 fi
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22943 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
22944 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22945
22946 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
22947
22948 fi
22949
22950     # This one is used unconditionally by i386.[ch]; it is to be defined
22951     # to 1 if the feature is present, 0 otherwise.
22952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
22953 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
22954 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
22955   $as_echo_n "(cached) " >&6
22956 else
22957   gcc_cv_as_ix86_gotoff_in_data=no
22958     if test $in_tree_gas = yes; then
22959     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22960   then gcc_cv_as_ix86_gotoff_in_data=yes
22961 fi
22962   elif test x$gcc_cv_as != x; then
22963     echo '      .text
22964 .L0:
22965         nop
22966         .data
22967         .long .L0@GOTOFF' > conftest.s
22968     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22969   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22970   (eval $ac_try) 2>&5
22971   ac_status=$?
22972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22973   test $ac_status = 0; }; }
22974     then
22975         gcc_cv_as_ix86_gotoff_in_data=yes
22976     else
22977       echo "configure: failed program was" >&5
22978       cat conftest.s >&5
22979     fi
22980     rm -f conftest.o conftest.s
22981   fi
22982 fi
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22984 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
22985
22986
22987 cat >>confdefs.h <<_ACEOF
22988 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22989 _ACEOF
22990
22991     ;;
22992
22993   ia64*-*-*)
22994     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
22995 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
22996 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
22997   $as_echo_n "(cached) " >&6
22998 else
22999   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23000     if test $in_tree_gas = yes; then
23001     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23002   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23003 fi
23004   elif test x$gcc_cv_as != x; then
23005     echo '      .text
23006         addl r15 = @ltoffx(x#), gp
23007         ;;
23008         ld8.mov r16 = [r15], x#' > conftest.s
23009     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23010   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23011   (eval $ac_try) 2>&5
23012   ac_status=$?
23013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23014   test $ac_status = 0; }; }
23015     then
23016         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23017     else
23018       echo "configure: failed program was" >&5
23019       cat conftest.s >&5
23020     fi
23021     rm -f conftest.o conftest.s
23022   fi
23023 fi
23024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23025 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23026 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23027
23028 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23029
23030 fi
23031
23032     ;;
23033
23034   powerpc*-*-*)
23035     case $target in
23036       *-*-aix*) conftest_s='    .machine "pwr5"
23037         .csect .text[PR]
23038         mfcr 3,128';;
23039       *-*-darwin*)
23040         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23041 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23042 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23043   $as_echo_n "(cached) " >&6
23044 else
23045   gcc_cv_as_machine_directive=no
23046   if test x$gcc_cv_as != x; then
23047     echo '      .machine ppc7400' > conftest.s
23048     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23049   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23050   (eval $ac_try) 2>&5
23051   ac_status=$?
23052   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23053   test $ac_status = 0; }; }
23054     then
23055         gcc_cv_as_machine_directive=yes
23056     else
23057       echo "configure: failed program was" >&5
23058       cat conftest.s >&5
23059     fi
23060     rm -f conftest.o conftest.s
23061   fi
23062 fi
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23064 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23065
23066         if test x$gcc_cv_as_machine_directive != xyes; then
23067           echo "*** This target requires an assembler supporting \".machine\"" >&2
23068           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23069           test x$build = x$target && exit 1
23070         fi
23071         conftest_s='    .text
23072         mfcr r3,128';;
23073       *) conftest_s='   .machine power4
23074         .text
23075         mfcr 3,128';;
23076     esac
23077
23078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23079 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23080 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23081   $as_echo_n "(cached) " >&6
23082 else
23083   gcc_cv_as_powerpc_mfcrf=no
23084     if test $in_tree_gas = yes; then
23085     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23086   then gcc_cv_as_powerpc_mfcrf=yes
23087 fi
23088   elif test x$gcc_cv_as != x; then
23089     echo "$conftest_s" > conftest.s
23090     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23091   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23092   (eval $ac_try) 2>&5
23093   ac_status=$?
23094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23095   test $ac_status = 0; }; }
23096     then
23097         gcc_cv_as_powerpc_mfcrf=yes
23098     else
23099       echo "configure: failed program was" >&5
23100       cat conftest.s >&5
23101     fi
23102     rm -f conftest.o conftest.s
23103   fi
23104 fi
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23106 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23107 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23108
23109 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23110
23111 fi
23112
23113     case $target in
23114       *-*-aix*) conftest_s='    .machine "pwr5"
23115         .csect .text[PR]
23116         popcntb 3,3';;
23117       *) conftest_s='   .machine power5
23118         .text
23119         popcntb 3,3';;
23120     esac
23121
23122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23123 $as_echo_n "checking assembler for popcntb support... " >&6; }
23124 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23125   $as_echo_n "(cached) " >&6
23126 else
23127   gcc_cv_as_powerpc_popcntb=no
23128     if test $in_tree_gas = yes; then
23129     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23130   then gcc_cv_as_powerpc_popcntb=yes
23131 fi
23132   elif test x$gcc_cv_as != x; then
23133     echo "$conftest_s" > conftest.s
23134     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23135   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23136   (eval $ac_try) 2>&5
23137   ac_status=$?
23138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23139   test $ac_status = 0; }; }
23140     then
23141         gcc_cv_as_powerpc_popcntb=yes
23142     else
23143       echo "configure: failed program was" >&5
23144       cat conftest.s >&5
23145     fi
23146     rm -f conftest.o conftest.s
23147   fi
23148 fi
23149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23150 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23151 if test $gcc_cv_as_powerpc_popcntb = yes; then
23152
23153 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23154
23155 fi
23156
23157     case $target in
23158       *-*-aix*) conftest_s='    .machine "pwr5x"
23159         .csect .text[PR]
23160         frin 1,1';;
23161       *) conftest_s='   .machine power5
23162         .text
23163         frin 1,1';;
23164     esac
23165
23166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23167 $as_echo_n "checking assembler for fp round support... " >&6; }
23168 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23169   $as_echo_n "(cached) " >&6
23170 else
23171   gcc_cv_as_powerpc_fprnd=no
23172     if test $in_tree_gas = yes; then
23173     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23174   then gcc_cv_as_powerpc_fprnd=yes
23175 fi
23176   elif test x$gcc_cv_as != x; then
23177     echo "$conftest_s" > conftest.s
23178     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23179   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23180   (eval $ac_try) 2>&5
23181   ac_status=$?
23182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23183   test $ac_status = 0; }; }
23184     then
23185         gcc_cv_as_powerpc_fprnd=yes
23186     else
23187       echo "configure: failed program was" >&5
23188       cat conftest.s >&5
23189     fi
23190     rm -f conftest.o conftest.s
23191   fi
23192 fi
23193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23194 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23195 if test $gcc_cv_as_powerpc_fprnd = yes; then
23196
23197 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23198
23199 fi
23200
23201     case $target in
23202       *-*-aix*) conftest_s='    .machine "pwr6"
23203         .csect .text[PR]
23204         mffgpr 1,3';;
23205       *) conftest_s='   .machine power6
23206         .text
23207         mffgpr 1,3';;
23208     esac
23209
23210     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23211 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23212 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23213   $as_echo_n "(cached) " >&6
23214 else
23215   gcc_cv_as_powerpc_mfpgpr=no
23216     if test $in_tree_gas = yes; then
23217     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23218   then gcc_cv_as_powerpc_mfpgpr=yes
23219 fi
23220   elif test x$gcc_cv_as != x; then
23221     echo "$conftest_s" > conftest.s
23222     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23223   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23224   (eval $ac_try) 2>&5
23225   ac_status=$?
23226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23227   test $ac_status = 0; }; }
23228     then
23229         gcc_cv_as_powerpc_mfpgpr=yes
23230     else
23231       echo "configure: failed program was" >&5
23232       cat conftest.s >&5
23233     fi
23234     rm -f conftest.o conftest.s
23235   fi
23236 fi
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23238 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23239 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23240
23241 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23242
23243 fi
23244
23245     case $target in
23246       *-*-aix*) conftest_s='    .csect .text[PR]
23247 LCF..0:
23248         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23249       *-*-darwin*)
23250         conftest_s='    .text
23251 LCF0:
23252         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23253       *) conftest_s='   .text
23254 .LCF0:
23255         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23256     esac
23257
23258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23259 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23260 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23261   $as_echo_n "(cached) " >&6
23262 else
23263   gcc_cv_as_powerpc_rel16=no
23264     if test $in_tree_gas = yes; then
23265     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23266   then gcc_cv_as_powerpc_rel16=yes
23267 fi
23268   elif test x$gcc_cv_as != x; then
23269     echo "$conftest_s" > conftest.s
23270     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23271   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23272   (eval $ac_try) 2>&5
23273   ac_status=$?
23274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23275   test $ac_status = 0; }; }
23276     then
23277         gcc_cv_as_powerpc_rel16=yes
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_powerpc_rel16" >&5
23286 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23287 if test $gcc_cv_as_powerpc_rel16 = yes; then
23288
23289 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23290
23291 fi
23292
23293     case $target in
23294       *-*-aix*) conftest_s='    .machine "pwr6"
23295         .csect .text[PR]
23296         cmpb 3,4,5';;
23297       *) conftest_s='   .machine power6
23298         .text
23299         cmpb 3,4,5';;
23300     esac
23301
23302     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23303 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23304 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23305   $as_echo_n "(cached) " >&6
23306 else
23307   gcc_cv_as_powerpc_cmpb=no
23308     if test $in_tree_gas = yes; then
23309     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23310   then gcc_cv_as_powerpc_cmpb=yes
23311 fi
23312   elif test x$gcc_cv_as != x; then
23313     echo "$conftest_s" > conftest.s
23314     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23315   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23316   (eval $ac_try) 2>&5
23317   ac_status=$?
23318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23319   test $ac_status = 0; }; }
23320     then
23321         gcc_cv_as_powerpc_cmpb=yes
23322     else
23323       echo "configure: failed program was" >&5
23324       cat conftest.s >&5
23325     fi
23326     rm -f conftest.o conftest.s
23327   fi
23328 fi
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23330 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23331 if test $gcc_cv_as_powerpc_cmpb = yes; then
23332
23333 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23334
23335 fi
23336
23337     case $target in
23338       *-*-aix*) conftest_s='    .machine "pwr6"
23339         .csect .text[PR]
23340         dadd 1,2,3';;
23341       *) conftest_s='   .machine power6
23342         .text
23343         dadd 1,2,3';;
23344     esac
23345
23346     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23347 $as_echo_n "checking assembler for decimal float support... " >&6; }
23348 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23349   $as_echo_n "(cached) " >&6
23350 else
23351   gcc_cv_as_powerpc_dfp=no
23352     if test $in_tree_gas = yes; then
23353     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23354   then gcc_cv_as_powerpc_dfp=yes
23355 fi
23356   elif test x$gcc_cv_as != x; then
23357     echo "$conftest_s" > conftest.s
23358     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23359   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23360   (eval $ac_try) 2>&5
23361   ac_status=$?
23362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23363   test $ac_status = 0; }; }
23364     then
23365         gcc_cv_as_powerpc_dfp=yes
23366     else
23367       echo "configure: failed program was" >&5
23368       cat conftest.s >&5
23369     fi
23370     rm -f conftest.o conftest.s
23371   fi
23372 fi
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23374 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23375 if test $gcc_cv_as_powerpc_dfp = yes; then
23376
23377 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23378
23379 fi
23380
23381     case $target in
23382       *-*-aix*) conftest_s='    .machine "pwr7"
23383         .csect .text[PR]
23384         lxvd2x 1,2,3';;
23385       *) conftest_s='   .machine power7
23386         .text
23387         lxvd2x 1,2,3';;
23388     esac
23389
23390     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23391 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23392 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23393   $as_echo_n "(cached) " >&6
23394 else
23395   gcc_cv_as_powerpc_vsx=no
23396     if test $in_tree_gas = yes; then
23397     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23398   then gcc_cv_as_powerpc_vsx=yes
23399 fi
23400   elif test x$gcc_cv_as != x; then
23401     echo "$conftest_s" > conftest.s
23402     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23403   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23404   (eval $ac_try) 2>&5
23405   ac_status=$?
23406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23407   test $ac_status = 0; }; }
23408     then
23409         gcc_cv_as_powerpc_vsx=yes
23410     else
23411       echo "configure: failed program was" >&5
23412       cat conftest.s >&5
23413     fi
23414     rm -f conftest.o conftest.s
23415   fi
23416 fi
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23418 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23419 if test $gcc_cv_as_powerpc_vsx = yes; then
23420
23421 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23422
23423 fi
23424
23425     case $target in
23426       *-*-aix*) conftest_s='    .machine "pwr7"
23427         .csect .text[PR]
23428         popcntd 3,3';;
23429       *) conftest_s='   .machine power7
23430         .text
23431         popcntd 3,3';;
23432     esac
23433
23434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23435 $as_echo_n "checking assembler for popcntd support... " >&6; }
23436 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23437   $as_echo_n "(cached) " >&6
23438 else
23439   gcc_cv_as_powerpc_popcntd=no
23440     if test $in_tree_gas = yes; then
23441     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23442   then gcc_cv_as_powerpc_popcntd=yes
23443 fi
23444   elif test x$gcc_cv_as != x; then
23445     echo "$conftest_s" > conftest.s
23446     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23447   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23448   (eval $ac_try) 2>&5
23449   ac_status=$?
23450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23451   test $ac_status = 0; }; }
23452     then
23453         gcc_cv_as_powerpc_popcntd=yes
23454     else
23455       echo "configure: failed program was" >&5
23456       cat conftest.s >&5
23457     fi
23458     rm -f conftest.o conftest.s
23459   fi
23460 fi
23461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23462 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23463 if test $gcc_cv_as_powerpc_popcntd = yes; then
23464
23465 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23466
23467 fi
23468
23469     case $target in
23470       *-*-aix*) conftest_s='    .csect .text[PR]
23471         lwsync';;
23472       *) conftest_s='   .text
23473         lwsync';;
23474     esac
23475
23476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23477 $as_echo_n "checking assembler for lwsync support... " >&6; }
23478 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23479   $as_echo_n "(cached) " >&6
23480 else
23481   gcc_cv_as_powerpc_lwsync=no
23482     if test $in_tree_gas = yes; then
23483     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23484   then gcc_cv_as_powerpc_lwsync=yes
23485 fi
23486   elif test x$gcc_cv_as != x; then
23487     echo "$conftest_s" > conftest.s
23488     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23489   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23490   (eval $ac_try) 2>&5
23491   ac_status=$?
23492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23493   test $ac_status = 0; }; }
23494     then
23495         gcc_cv_as_powerpc_lwsync=yes
23496     else
23497       echo "configure: failed program was" >&5
23498       cat conftest.s >&5
23499     fi
23500     rm -f conftest.o conftest.s
23501   fi
23502 fi
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23504 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23505 if test $gcc_cv_as_powerpc_lwsync = yes; then
23506
23507 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23508
23509 fi
23510
23511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23512 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23513 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23514   $as_echo_n "(cached) " >&6
23515 else
23516   gcc_cv_as_powerpc_gnu_attribute=no
23517     if test $in_tree_gas = yes; then
23518     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23519   then gcc_cv_as_powerpc_gnu_attribute=yes
23520 fi
23521   elif test x$gcc_cv_as != x; then
23522     echo '.gnu_attribute 4,1' > conftest.s
23523     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23524   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23525   (eval $ac_try) 2>&5
23526   ac_status=$?
23527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23528   test $ac_status = 0; }; }
23529     then
23530         gcc_cv_as_powerpc_gnu_attribute=yes
23531     else
23532       echo "configure: failed program was" >&5
23533       cat conftest.s >&5
23534     fi
23535     rm -f conftest.o conftest.s
23536   fi
23537 fi
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23539 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23540 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23541
23542 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23543
23544 fi
23545
23546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23547 $as_echo_n "checking assembler for tls marker support... " >&6; }
23548 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23549   $as_echo_n "(cached) " >&6
23550 else
23551   gcc_cv_as_powerpc_tls_markers=no
23552     if test $in_tree_gas = yes; then
23553     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23554   then gcc_cv_as_powerpc_tls_markers=yes
23555 fi
23556   elif test x$gcc_cv_as != x; then
23557     echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23558     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23559   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23560   (eval $ac_try) 2>&5
23561   ac_status=$?
23562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23563   test $ac_status = 0; }; }
23564     then
23565         gcc_cv_as_powerpc_tls_markers=yes
23566     else
23567       echo "configure: failed program was" >&5
23568       cat conftest.s >&5
23569     fi
23570     rm -f conftest.o conftest.s
23571   fi
23572 fi
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23574 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23575 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23576
23577 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23578
23579 fi
23580     ;;
23581
23582   mips*-*-*)
23583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23584 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23585 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23586   $as_echo_n "(cached) " >&6
23587 else
23588   gcc_cv_as_mips_explicit_relocs=no
23589     if test $in_tree_gas = yes; then
23590     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23591   then gcc_cv_as_mips_explicit_relocs=yes
23592 fi
23593   elif test x$gcc_cv_as != x; then
23594     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
23595     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23596   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23597   (eval $ac_try) 2>&5
23598   ac_status=$?
23599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23600   test $ac_status = 0; }; }
23601     then
23602         gcc_cv_as_mips_explicit_relocs=yes
23603     else
23604       echo "configure: failed program was" >&5
23605       cat conftest.s >&5
23606     fi
23607     rm -f conftest.o conftest.s
23608   fi
23609 fi
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23611 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23612 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23613   if test x$target_cpu_default = x
23614        then target_cpu_default=MASK_EXPLICIT_RELOCS
23615        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23616        fi
23617 fi
23618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23619 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23620 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23621   $as_echo_n "(cached) " >&6
23622 else
23623   gcc_cv_as_mips_no_shared=no
23624     if test $in_tree_gas = yes; then
23625     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23626   then gcc_cv_as_mips_no_shared=yes
23627 fi
23628   elif test x$gcc_cv_as != x; then
23629     echo 'nop' > conftest.s
23630     if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23631   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23632   (eval $ac_try) 2>&5
23633   ac_status=$?
23634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23635   test $ac_status = 0; }; }
23636     then
23637         gcc_cv_as_mips_no_shared=yes
23638     else
23639       echo "configure: failed program was" >&5
23640       cat conftest.s >&5
23641     fi
23642     rm -f conftest.o conftest.s
23643   fi
23644 fi
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23646 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
23647 if test $gcc_cv_as_mips_no_shared = yes; then
23648
23649 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
23650
23651 fi
23652
23653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23654 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23655 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
23656   $as_echo_n "(cached) " >&6
23657 else
23658   gcc_cv_as_mips_gnu_attribute=no
23659     if test $in_tree_gas = yes; then
23660     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23661   then gcc_cv_as_mips_gnu_attribute=yes
23662 fi
23663   elif test x$gcc_cv_as != x; then
23664     echo '.gnu_attribute 4,1' > conftest.s
23665     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23666   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23667   (eval $ac_try) 2>&5
23668   ac_status=$?
23669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23670   test $ac_status = 0; }; }
23671     then
23672         gcc_cv_as_mips_gnu_attribute=yes
23673     else
23674       echo "configure: failed program was" >&5
23675       cat conftest.s >&5
23676     fi
23677     rm -f conftest.o conftest.s
23678   fi
23679 fi
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
23681 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
23682 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23683
23684 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23685
23686 fi
23687
23688     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
23689 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
23690 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
23691   $as_echo_n "(cached) " >&6
23692 else
23693   gcc_cv_as_mips_dtprelword=no
23694     if test $in_tree_gas = yes; then
23695     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23696   then gcc_cv_as_mips_dtprelword=yes
23697 fi
23698   elif test x$gcc_cv_as != x; then
23699     echo '.section .tdata,"awT",@progbits
23700 x:
23701         .word 2
23702         .text
23703         .dtprelword x+0x8000' > conftest.s
23704     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23705   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23706   (eval $ac_try) 2>&5
23707   ac_status=$?
23708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23709   test $ac_status = 0; }; }
23710     then
23711         gcc_cv_as_mips_dtprelword=yes
23712     else
23713       echo "configure: failed program was" >&5
23714       cat conftest.s >&5
23715     fi
23716     rm -f conftest.o conftest.s
23717   fi
23718 fi
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
23720 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
23721 if test $gcc_cv_as_mips_dtprelword = yes; then
23722
23723 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
23724
23725 fi
23726
23727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
23728 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
23729     gcc_cv_as_ld_jalr_reloc=no
23730     if test $gcc_cv_as_mips_explicit_relocs = yes; then
23731       if test $in_tree_ld = yes ; then
23732         if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \
23733            && test $in_tree_ld_is_elf = yes; then
23734           gcc_cv_as_ld_jalr_reloc=yes
23735         fi
23736       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
23737         echo '  .ent x' > conftest.s
23738         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
23739         echo '  ld $25,%call16(y)($28)' >> conftest.s
23740         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
23741         echo '1:        jalr $25' >> conftest.s
23742         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
23743         echo '1:        jalr $25' >> conftest.s
23744         echo '  .end x' >> conftest.s
23745         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
23746            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
23747           if $gcc_cv_objdump -d conftest.so | grep -q jalr \
23748              && $gcc_cv_objdump -d conftest.so | grep -q "bal.*<x>"; then
23749             gcc_cv_as_ld_jalr_reloc=yes
23750           fi
23751         fi
23752         rm -f conftest.*
23753       fi
23754     fi
23755     if test $gcc_cv_as_ld_jalr_reloc = yes; then
23756       if test x$target_cpu_default = x; then
23757         target_cpu_default=MASK_RELAX_PIC_CALLS
23758       else
23759         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
23760       fi
23761     fi
23762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
23763 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
23764
23765     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
23766 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
23767 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
23768   $as_echo_n "(cached) " >&6
23769 else
23770   gcc_cv_ld_mips_personality_relaxation=no
23771        if test $in_tree_ld = yes ; then
23772          if test "$gcc_cv_gld_major_version" -eq 2 \
23773                  -a "$gcc_cv_gld_minor_version" -ge 21 \
23774                  -o "$gcc_cv_gld_major_version" -gt 2; then
23775            gcc_cv_ld_mips_personality_relaxation=yes
23776          fi
23777        elif test x$gcc_cv_as != x \
23778                  -a x$gcc_cv_ld != x \
23779                  -a x$gcc_cv_readelf != x ; then
23780          cat > conftest.s <<EOF
23781         .cfi_startproc
23782         .cfi_personality 0x80,indirect_ptr
23783         .ent test
23784 test:
23785         nop
23786         .end test
23787         .cfi_endproc
23788
23789         .section .data,"aw",@progbits
23790 indirect_ptr:
23791         .dc.a personality
23792 EOF
23793          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
23794             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
23795            if $gcc_cv_readelf -d conftest 2>&1 \
23796               | grep TEXTREL > /dev/null 2>&1; then
23797              :
23798            elif $gcc_cv_readelf --relocs conftest 2>&1 \
23799                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
23800              :
23801            else
23802              gcc_cv_ld_mips_personality_relaxation=yes
23803            fi
23804          fi
23805        fi
23806        rm -f conftest.s conftest.o conftest
23807 fi
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
23809 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
23810     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
23811
23812 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
23813
23814     fi
23815     ;;
23816 esac
23817
23818 # Mips and HP-UX need the GNU assembler.
23819 # Linux on IA64 might be able to use the Intel assembler.
23820
23821 case "$target" in
23822   mips*-*-* | *-*-hpux* )
23823     if test x$gas_flag = xyes \
23824        || test x"$host" != x"$build" \
23825        || test ! -x "$gcc_cv_as" \
23826        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
23827       :
23828     else
23829       echo "*** This configuration requires the GNU assembler" >&2
23830       exit 1
23831     fi
23832     ;;
23833 esac
23834
23835 # ??? Not all targets support dwarf2 debug_line, even within a version
23836 # of gas.  Moreover, we need to emit a valid instruction to trigger any
23837 # info to the output file.  So, as supported targets are added to gas 2.11,
23838 # add some instruction here to (also) show we expect this might work.
23839 # ??? Once 2.11 is released, probably need to add first known working
23840 # version to the per-target configury.
23841 case "$target" in
23842   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
23843   | x86_64*-*-* | hppa*-*-* | arm*-*-* \
23844   | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
23845   | spu-*-* | fido*-*-* | m32c-*-*)
23846     insn="nop"
23847     ;;
23848   ia64*-*-* | s390*-*-*)
23849     insn="nop 0"
23850     ;;
23851   mmix-*-*)
23852     insn="swym 0"
23853     ;;
23854 esac
23855 if test x"$insn" != x; then
23856  conftest_s="\
23857         .file 1 \"conftest.s\"
23858         .loc 1 3 0
23859         $insn"
23860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
23861 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
23862 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
23863   $as_echo_n "(cached) " >&6
23864 else
23865   gcc_cv_as_dwarf2_debug_line=no
23866     if test $in_tree_gas = yes; then
23867     if test $in_tree_gas_is_elf = yes \
23868   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23869   then gcc_cv_as_dwarf2_debug_line=yes
23870 fi
23871   elif test x$gcc_cv_as != x; then
23872     echo "$conftest_s" > conftest.s
23873     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23874   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23875   (eval $ac_try) 2>&5
23876   ac_status=$?
23877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23878   test $ac_status = 0; }; }
23879     then
23880         if test x$gcc_cv_objdump != x \
23881    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
23882       | grep debug_line > /dev/null 2>&1; then
23883      gcc_cv_as_dwarf2_debug_line=yes
23884    fi
23885     else
23886       echo "configure: failed program was" >&5
23887       cat conftest.s >&5
23888     fi
23889     rm -f conftest.o conftest.s
23890   fi
23891 fi
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
23893 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
23894
23895
23896 # The .debug_line file table must be in the exact order that
23897 # we specified the files, since these indices are also used
23898 # by DW_AT_decl_file.  Approximate this test by testing if
23899 # the assembler bitches if the same index is assigned twice.
23900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
23901 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
23902 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
23903   $as_echo_n "(cached) " >&6
23904 else
23905   gcc_cv_as_dwarf2_file_buggy=no
23906   if test x$gcc_cv_as != x; then
23907     echo '      .file 1 "foo.s"
23908         .file 1 "bar.s"' > conftest.s
23909     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
23910   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23911   (eval $ac_try) 2>&5
23912   ac_status=$?
23913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23914   test $ac_status = 0; }; }
23915     then
23916         gcc_cv_as_dwarf2_file_buggy=yes
23917     else
23918       echo "configure: failed program was" >&5
23919       cat conftest.s >&5
23920     fi
23921     rm -f conftest.o conftest.s
23922   fi
23923 fi
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
23925 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
23926
23927
23928  if test $gcc_cv_as_dwarf2_debug_line = yes \
23929  && test $gcc_cv_as_dwarf2_file_buggy = no; then
23930
23931 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
23932
23933  fi
23934
23935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
23936 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
23937 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
23938   $as_echo_n "(cached) " >&6
23939 else
23940   gcc_cv_as_gdwarf2_flag=no
23941     if test $in_tree_gas = yes; then
23942     if test $in_tree_gas_is_elf = yes \
23943   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23944   then gcc_cv_as_gdwarf2_flag=yes
23945 fi
23946   elif test x$gcc_cv_as != x; then
23947     echo "$insn" > conftest.s
23948     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
23949   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23950   (eval $ac_try) 2>&5
23951   ac_status=$?
23952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23953   test $ac_status = 0; }; }
23954     then
23955         gcc_cv_as_gdwarf2_flag=yes
23956     else
23957       echo "configure: failed program was" >&5
23958       cat conftest.s >&5
23959     fi
23960     rm -f conftest.o conftest.s
23961   fi
23962 fi
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
23964 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
23965 if test $gcc_cv_as_gdwarf2_flag = yes; then
23966
23967 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
23968
23969 fi
23970
23971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
23972 $as_echo_n "checking assembler for --gstabs option... " >&6; }
23973 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
23974   $as_echo_n "(cached) " >&6
23975 else
23976   gcc_cv_as_gstabs_flag=no
23977     if test $in_tree_gas = yes; then
23978     if test $in_tree_gas_is_elf = yes \
23979   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23980   then gcc_cv_as_gstabs_flag=yes
23981 fi
23982   elif test x$gcc_cv_as != x; then
23983     echo "$insn" > conftest.s
23984     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
23985   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23986   (eval $ac_try) 2>&5
23987   ac_status=$?
23988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23989   test $ac_status = 0; }; }
23990     then
23991         # The native Solaris 9/Intel assembler doesn't understand --gstabs
23992    # and warns about it, but still exits successfully.  So check for
23993    # this.
23994    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
23995   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23996   (eval $ac_try) 2>&5
23997   ac_status=$?
23998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23999   test $ac_status = 0; }; }
24000    then :
24001    else gcc_cv_as_gstabs_flag=yes
24002    fi
24003     else
24004       echo "configure: failed program was" >&5
24005       cat conftest.s >&5
24006     fi
24007     rm -f conftest.o conftest.s
24008   fi
24009 fi
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24011 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24012 if test $gcc_cv_as_gstabs_flag = yes; then
24013
24014 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24015
24016 fi
24017
24018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24019 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24020 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24021   $as_echo_n "(cached) " >&6
24022 else
24023   gcc_cv_as_debug_prefix_map_flag=no
24024     if test $in_tree_gas = yes; then
24025     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24026   then gcc_cv_as_debug_prefix_map_flag=yes
24027 fi
24028   elif test x$gcc_cv_as != x; then
24029     echo "$insn" > conftest.s
24030     if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24031   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24032   (eval $ac_try) 2>&5
24033   ac_status=$?
24034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24035   test $ac_status = 0; }; }
24036     then
24037         gcc_cv_as_debug_prefix_map_flag=yes
24038     else
24039       echo "configure: failed program was" >&5
24040       cat conftest.s >&5
24041     fi
24042     rm -f conftest.o conftest.s
24043   fi
24044 fi
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24046 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24047 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24048
24049 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24050
24051 fi
24052 fi
24053
24054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24055 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24056 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24057   $as_echo_n "(cached) " >&6
24058 else
24059   gcc_cv_as_lcomm_with_alignment=no
24060   if test x$gcc_cv_as != x; then
24061     echo '.lcomm bar,4,16' > conftest.s
24062     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
24063   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24064   (eval $ac_try) 2>&5
24065   ac_status=$?
24066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24067   test $ac_status = 0; }; }
24068     then
24069         gcc_cv_as_lcomm_with_alignment=yes
24070     else
24071       echo "configure: failed program was" >&5
24072       cat conftest.s >&5
24073     fi
24074     rm -f conftest.o conftest.s
24075   fi
24076 fi
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24078 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24079 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24080
24081 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24082
24083 fi
24084
24085 # Check whether --enable-gnu-unique-object was given.
24086 if test "${enable_gnu_unique_object+set}" = set; then :
24087   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24088     yes | no) ;;
24089     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24090 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24091   esac
24092 else
24093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24094 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24095 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24096   $as_echo_n "(cached) " >&6
24097 else
24098   gcc_cv_as_gnu_unique_object=no
24099     if test $in_tree_gas = yes; then
24100     if test $in_tree_gas_is_elf = yes \
24101   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24102   then gcc_cv_as_gnu_unique_object=yes
24103 fi
24104   elif test x$gcc_cv_as != x; then
24105     echo '.type foo, @gnu_unique_object' > conftest.s
24106     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
24107   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24108   (eval $ac_try) 2>&5
24109   ac_status=$?
24110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24111   test $ac_status = 0; }; }
24112     then
24113         gcc_cv_as_gnu_unique_object=yes
24114     else
24115       echo "configure: failed program was" >&5
24116       cat conftest.s >&5
24117     fi
24118     rm -f conftest.o conftest.s
24119   fi
24120 fi
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24122 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24123 if test $gcc_cv_as_gnu_unique_object = yes; then
24124   # Also check for ld.so support, i.e. glibc 2.11 or higher.
24125    if test x$host = x$build -a x$host = x$target &&
24126        glibcver=`ldd --version 2>/dev/null`; then
24127       glibcmajor=`expr "$glibcver" : "ldd (GNU libc) \([0-9]*\)"`
24128       glibcminor=`expr "$glibcver" : "ldd (GNU libc) [0-9]*\.\([0-9]*\)"`
24129       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24130       if test "$glibcnum" -ge 2011 ; then
24131         enable_gnu_unique_object=yes
24132       fi
24133     fi
24134 fi
24135 fi
24136
24137 if test x$enable_gnu_unique_object = xyes; then
24138
24139 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24140
24141 fi
24142
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24144 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24145 if test "${gcc_cv_as_line_zero+set}" = set; then :
24146   $as_echo_n "(cached) " >&6
24147 else
24148   gcc_cv_as_line_zero=no
24149   if test $in_tree_gas = yes; then
24150     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24151   then gcc_cv_as_line_zero=yes
24152 fi
24153   elif test "x$gcc_cv_as" != x; then
24154     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24155     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24156   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24157   (eval $ac_try) 2>&5
24158   ac_status=$?
24159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24160   test $ac_status = 0; }; } &&
24161        test "x`cat conftest.out`" = x
24162     then
24163       gcc_cv_as_line_zero=yes
24164     else
24165       echo "configure: failed program was" >&5
24166       cat conftest.s >&5
24167       echo "configure: error output was" >&5
24168       cat conftest.out >&5
24169     fi
24170     rm -f conftest.o conftest.s conftest.out
24171   fi
24172 fi
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24174 $as_echo "$gcc_cv_as_line_zero" >&6; }
24175 if test "x$gcc_cv_as_line_zero" = xyes; then
24176
24177 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24178
24179 fi
24180
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24182 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24183 gcc_cv_ld_eh_frame_hdr=no
24184 if test $in_tree_ld = yes ; then
24185   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 \
24186      && test $in_tree_ld_is_elf = yes; then
24187     gcc_cv_ld_eh_frame_hdr=yes
24188   fi
24189 elif test x$gcc_cv_ld != x; then
24190         # Check if linker supports --eh-frame-hdr option
24191         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24192                 gcc_cv_ld_eh_frame_hdr=yes
24193         fi
24194 fi
24195
24196 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24197
24198 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24199
24200 fi
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24202 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24203
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24205 $as_echo_n "checking linker position independent executable support... " >&6; }
24206 gcc_cv_ld_pie=no
24207 if test $in_tree_ld = yes ; then
24208   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 \
24209      && test $in_tree_ld_is_elf = yes; then
24210     gcc_cv_ld_pie=yes
24211   fi
24212 elif test x$gcc_cv_ld != x; then
24213         # Check if linker supports -pie option
24214         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24215                 gcc_cv_ld_pie=yes
24216         fi
24217 fi
24218 if test x"$gcc_cv_ld_pie" = xyes; then
24219
24220 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24221
24222 fi
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24224 $as_echo "$gcc_cv_ld_pie" >&6; }
24225
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24227 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24228 gcc_cv_ld_eh_gc_sections=no
24229 if test $in_tree_ld = yes ; then
24230   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 \
24231      && test $in_tree_ld_is_elf = yes; then
24232     gcc_cv_ld_eh_gc_sections=yes
24233   fi
24234 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24235   cat > conftest.s <<EOF
24236         .section        .text
24237 .globl _start
24238         .type _start, @function
24239 _start:
24240         .long foo
24241         .size _start, .-_start
24242         .section        .text.foo,"ax",@progbits
24243         .type foo, @function
24244 foo:
24245         .long 0
24246         .size foo, .-foo
24247         .section        .gcc_except_table.foo,"a",@progbits
24248 .L0:
24249         .long 0
24250         .section        .eh_frame,"a",@progbits
24251         .long .L0
24252 EOF
24253   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24254     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24255          | grep "gc-sections option ignored" > /dev/null; then
24256       gcc_cv_ld_eh_gc_sections=no
24257     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24258       gcc_cv_ld_eh_gc_sections=yes
24259       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24260       if test x$gcc_cv_as_comdat_group != xyes; then
24261         gcc_cv_ld_eh_gc_sections=no
24262         cat > conftest.s <<EOF
24263         .section        .text
24264 .globl _start
24265         .type _start, @function
24266 _start:
24267         .long foo
24268         .size _start, .-_start
24269         .section        .gnu.linkonce.t.foo,"ax",@progbits
24270         .type foo, @function
24271 foo:
24272         .long 0
24273         .size foo, .-foo
24274         .section        .gcc_except_table.foo,"a",@progbits
24275 .L0:
24276         .long 0
24277         .section        .eh_frame,"a",@progbits
24278         .long .L0
24279 EOF
24280         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24281           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24282                | grep "gc-sections option ignored" > /dev/null; then
24283             gcc_cv_ld_eh_gc_sections=no
24284           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24285             gcc_cv_ld_eh_gc_sections=yes
24286           fi
24287         fi
24288       fi
24289     fi
24290   fi
24291   rm -f conftest.s conftest.o conftest
24292 fi
24293 case "$target" in
24294   hppa*-*-linux*)
24295     # ??? This apparently exposes a binutils bug with PC-relative relocations.
24296     gcc_cv_ld_eh_gc_sections=no
24297     ;;
24298 esac
24299 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24300
24301 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24302
24303 fi
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24305 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24306
24307 # --------
24308 # UNSORTED
24309 # --------
24310
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24312 $as_echo_n "checking linker --as-needed support... " >&6; }
24313 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24314   $as_echo_n "(cached) " >&6
24315 else
24316   gcc_cv_ld_as_needed=no
24317 if test $in_tree_ld = yes ; then
24318   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 \
24319      && test $in_tree_ld_is_elf = yes; then
24320     gcc_cv_ld_as_needed=yes
24321   fi
24322 elif test x$gcc_cv_ld != x; then
24323         # Check if linker supports --as-needed and --no-as-needed options
24324         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24325                 gcc_cv_ld_as_needed=yes
24326         fi
24327 fi
24328
24329 fi
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24331 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24332 if test x"$gcc_cv_ld_as_needed" = xyes; then
24333
24334 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24335
24336 fi
24337
24338 case "$target:$tm_file" in
24339   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24340     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24341 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24342 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24343   $as_echo_n "(cached) " >&6
24344 else
24345   gcc_cv_ld_no_dot_syms=no
24346     if test $in_tree_ld = yes ; then
24347       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
24348         gcc_cv_ld_no_dot_syms=yes
24349       fi
24350     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24351       cat > conftest1.s <<EOF
24352         .text
24353         bl .foo
24354 EOF
24355       cat > conftest2.s <<EOF
24356         .section ".opd","aw"
24357         .align 3
24358         .globl foo
24359         .type foo,@function
24360 foo:
24361         .quad .LEfoo,.TOC.@tocbase,0
24362         .text
24363 .LEfoo:
24364         blr
24365         .size foo,.-.LEfoo
24366 EOF
24367       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24368          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24369          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24370         gcc_cv_ld_no_dot_syms=yes
24371       fi
24372       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24373     fi
24374
24375 fi
24376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24377 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24378     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24379
24380 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24381
24382     fi
24383     ;;
24384 esac
24385
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24387 $as_echo_n "checking linker --build-id support... " >&6; }
24388 if test "${gcc_cv_ld_buildid+set}" = set; then :
24389   $as_echo_n "(cached) " >&6
24390 else
24391   gcc_cv_ld_buildid=no
24392   if test $in_tree_ld = yes ; then
24393     if test "$gcc_cv_gld_major_version" -eq 2 -a \
24394        "$gcc_cv_gld_minor_version" -ge 18 -o \
24395        "$gcc_cv_gld_major_version" -gt 2 \
24396        && test $in_tree_ld_is_elf = yes; then
24397       gcc_cv_ld_buildid=yes
24398     fi
24399   elif test x$gcc_cv_ld != x; then
24400     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
24401       gcc_cv_ld_buildid=yes
24402     fi
24403   fi
24404 fi
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24406 $as_echo "$gcc_cv_ld_buildid" >&6; }
24407 if test x"$gcc_cv_ld_buildid" = xyes; then
24408
24409 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24410
24411 fi
24412
24413 # Check whether --enable-linker-build-id was given.
24414 if test "${enable_linker_build_id+set}" = set; then :
24415   enableval=$enable_linker_build_id;
24416 else
24417   enable_linker_build_id=no
24418 fi
24419
24420
24421 if test x"$enable_linker_build_id" = xyes; then
24422   if test x"$gcc_cv_ld_buildid" = xyes; then
24423
24424 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24425
24426   else
24427     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24428 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24429   fi
24430 fi
24431
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24433 $as_echo_n "checking linker --sysroot support... " >&6; }
24434 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24435   $as_echo_n "(cached) " >&6
24436 else
24437   gcc_cv_ld_sysroot=no
24438   if test $in_tree_ld = yes ; then
24439       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
24440         gcc_cv_ld_sysroot=yes
24441       fi
24442   elif test x$gcc_cv_ld != x; then
24443     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24444       gcc_cv_ld_sysroot=yes
24445     fi
24446   fi
24447 fi
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24449 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24450 if test x"$gcc_cv_ld_sysroot" = xyes; then
24451
24452 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24453
24454 fi
24455
24456 if test x$with_sysroot = x && test x$host = x$target \
24457    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24458    && test "$prefix" != "NONE"; then
24459
24460 cat >>confdefs.h <<_ACEOF
24461 #define PREFIX_INCLUDE_DIR "$prefix/include"
24462 _ACEOF
24463
24464 fi
24465
24466 # Test for stack protector support in target C library.
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
24468 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
24469 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
24470   $as_echo_n "(cached) " >&6
24471 else
24472   gcc_cv_libc_provides_ssp=no
24473     case "$target" in
24474        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24475       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24476         if test "x$with_sysroot" = x; then
24477           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24478         elif test "x$with_build_sysroot" != "x"; then
24479           glibc_header_dir="${with_build_sysroot}/usr/include"
24480         elif test "x$with_sysroot" = xyes; then
24481           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24482         else
24483           glibc_header_dir="${with_sysroot}/usr/include"
24484         fi
24485       else
24486         glibc_header_dir=/usr/include
24487       fi
24488       # glibc 2.4 and later provides __stack_chk_fail and
24489       # either __stack_chk_guard, or TLS access to stack guard canary.
24490       if test -f $glibc_header_dir/features.h \
24491          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
24492             $glibc_header_dir/features.h > /dev/null; then
24493         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
24494            $glibc_header_dir/features.h > /dev/null; then
24495           gcc_cv_libc_provides_ssp=yes
24496         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
24497              $glibc_header_dir/features.h > /dev/null \
24498              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
24499              $glibc_header_dir/features.h > /dev/null; then
24500           gcc_cv_libc_provides_ssp=yes
24501         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
24502              $glibc_header_dir/features.h > /dev/null && \
24503              test -f $glibc_header_dir/bits/uClibc_config.h && \
24504              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
24505              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
24506           gcc_cv_libc_provides_ssp=yes
24507         fi
24508       fi
24509         ;;
24510        *-*-gnu*)
24511          # Avoid complicated tests (see
24512          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24513          # simply assert that glibc does provide this, which is true for all
24514          # realistically usable GNU/Hurd configurations.
24515          gcc_cv_libc_provides_ssp=yes;;
24516        *-*-darwin* | *-*-freebsd*)
24517          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
24518 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
24519   gcc_cv_libc_provides_ssp=yes
24520 else
24521   echo "no __stack_chk_fail on this target"
24522 fi
24523
24524         ;;
24525   *) gcc_cv_libc_provides_ssp=no ;;
24526     esac
24527 fi
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
24529 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
24530
24531 if test x$gcc_cv_libc_provides_ssp = xyes; then
24532
24533 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
24534
24535 fi
24536
24537 # Check if TFmode long double should be used by default or not.
24538 # Some glibc targets used DFmode long double, but with glibc 2.4
24539 # and later they can use TFmode.
24540 case "$target" in
24541   powerpc*-*-linux* | \
24542   powerpc*-*-gnu* | \
24543   sparc*-*-linux* | \
24544   s390*-*-linux* | \
24545   alpha*-*-linux*)
24546
24547 # Check whether --with-long-double-128 was given.
24548 if test "${with_long_double_128+set}" = set; then :
24549   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
24550 else
24551   gcc_cv_target_ldbl128=no
24552       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24553         if test "x$with_sysroot" = x; then
24554           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24555         elif test "x$with_build_sysroot" != "x"; then
24556           glibc_header_dir="${with_build_sysroot}/usr/include"
24557         elif test "x$with_sysroot" = xyes; then
24558           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24559         else
24560           glibc_header_dir="${with_sysroot}/usr/include"
24561         fi
24562       else
24563         glibc_header_dir=/usr/include
24564       fi
24565       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24566         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
24567       && gcc_cv_target_ldbl128=yes
24568
24569 fi
24570
24571     ;;
24572 esac
24573 if test x$gcc_cv_target_ldbl128 = xyes; then
24574
24575 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
24576
24577 fi
24578
24579 # Find out what GC implementation we want, or may, use.
24580
24581 # Check whether --with-gc was given.
24582 if test "${with_gc+set}" = set; then :
24583   withval=$with_gc; case "$withval" in
24584   page)
24585     GGC=ggc-$withval
24586     ;;
24587   zone)
24588     GGC=ggc-$withval
24589
24590 $as_echo "#define GGC_ZONE 1" >>confdefs.h
24591
24592     ;;
24593   *)
24594     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
24595     ;;
24596 esac
24597 else
24598   GGC=ggc-page
24599 fi
24600
24601
24602 echo "Using $GGC for garbage collection."
24603
24604 # Libraries to use on the host.  This will normally be set by the top
24605 # level Makefile.  Here we simply capture the value for our Makefile.
24606 if test -z "${HOST_LIBS+set}"; then
24607   HOST_LIBS=
24608 fi
24609
24610
24611 # Use the system's zlib library.
24612 zlibdir=-L../zlib
24613 zlibinc="-I\$(srcdir)/../zlib"
24614
24615 # Check whether --with-system-zlib was given.
24616 if test "${with_system_zlib+set}" = set; then :
24617   withval=$with_system_zlib; zlibdir=
24618 zlibinc=
24619
24620 fi
24621
24622
24623
24624
24625
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24627 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24628     # Check whether --enable-maintainer-mode was given.
24629 if test "${enable_maintainer_mode+set}" = set; then :
24630   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
24631 else
24632   maintainer_mode=no
24633 fi
24634
24635
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24637 $as_echo "$maintainer_mode" >&6; }
24638
24639 if test "$maintainer_mode" = "yes"; then
24640   MAINT=''
24641 else
24642   MAINT='#'
24643 fi
24644
24645 # --------------
24646 # Language hooks
24647 # --------------
24648
24649 # Make empty files to contain the specs and options for each language.
24650 # Then add #include lines to for a compiler that has specs and/or options.
24651
24652 subdirs=
24653 lang_opt_files=
24654 lang_specs_files=
24655 lang_tree_files=
24656 # These (without "all_") are set in each config-lang.in.
24657 # `language' must be a single word so is spelled singularly.
24658 all_languages=
24659 all_compilers=
24660 all_outputs='Makefile gccbug'
24661 # List of language makefile fragments.
24662 all_lang_makefrags=
24663 # List of language subdirectory makefiles.  Deprecated.
24664 all_lang_makefiles=
24665 # Additional files for gengtype
24666 all_gtfiles="$target_gtfiles"
24667
24668 # These are the languages that are set in --enable-languages,
24669 # and are available in the GCC tree.
24670 all_selected_languages=
24671
24672 # Add the language fragments.
24673 # Languages are added via two mechanisms.  Some information must be
24674 # recorded in makefile variables, these are defined in config-lang.in.
24675 # We accumulate them and plug them into the main Makefile.
24676 # The other mechanism is a set of hooks for each of the main targets
24677 # like `clean', `install', etc.
24678
24679 language_hooks="Make-hooks"
24680
24681 for lang in ${srcdir}/*/config-lang.in
24682 do
24683         test "$lang" = "${srcdir}/*/config-lang.in" && continue
24684
24685         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
24686         if test "x$lang_alias" = x
24687         then
24688               echo "$lang doesn't set \$language." 1>&2
24689               exit 1
24690         fi
24691         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24692         subdirs="$subdirs $subdir"
24693
24694         # $gcc_subdir is where the gcc integration files are to be found
24695         # for a language, both for internal compiler purposes (compiler
24696         # sources implementing front-end to GCC tree converters), and for
24697         # build infrastructure purposes (Make-lang.in, etc.)
24698         #
24699         # This will be <subdir> (relative to $srcdir) if a line like
24700         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24701         # is found in <langdir>/config-lang.in, and will remain <langdir>
24702         # otherwise.
24703         #
24704         # Except for the language alias (fetched above), the regular
24705         # "config-lang.in" contents are always retrieved from $gcc_subdir,
24706         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24707         # only this and the language alias.
24708
24709         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
24710         if [ "$gcc_subdir" = "" ]; then
24711            gcc_subdir="$subdir"
24712         fi
24713
24714         case ",$enable_languages," in
24715         *,$lang_alias,*)
24716             all_selected_languages="$all_selected_languages $lang_alias"
24717             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24718                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24719             fi
24720             ;;
24721         esac
24722
24723         language=
24724         boot_language=
24725         compilers=
24726         outputs=
24727         gtfiles=
24728         subdir_requires=
24729         . ${srcdir}/$gcc_subdir/config-lang.in
24730         if test "x$language" = x
24731         then
24732                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24733                 exit 1
24734         fi
24735
24736         ok=:
24737         case ",$enable_languages," in
24738                 *,$lang_alias,*) ;;
24739                 *)
24740                         for i in $subdir_requires; do
24741                                 test -f "${srcdir}/$i/config-lang.in" && continue
24742                                 ok=false
24743                                 break
24744                         done
24745                 ;;
24746         esac
24747         $ok || continue
24748
24749         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24750         if test -f $srcdir/$gcc_subdir/lang.opt; then
24751             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24752         fi
24753         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
24754             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24755         fi
24756         if test -f ${srcdir}/$gcc_subdir/Makefile.in
24757                 then all_lang_makefiles="$gcc_subdir/Makefile"
24758         fi
24759         all_languages="$all_languages $language"
24760         all_compilers="$all_compilers $compilers"
24761         all_outputs="$all_outputs $outputs"
24762         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
24763 done
24764
24765 # Pick up gtfiles for c
24766 gtfiles=
24767 . ${srcdir}/c-config-lang.in
24768 all_gtfiles="$all_gtfiles [c] $gtfiles"
24769
24770 check_languages=
24771 for language in $all_selected_languages
24772 do
24773         check_languages="$check_languages check-$language"
24774 done
24775
24776 # We link each language in with a set of hooks, reached indirectly via
24777 # lang.${target}.  Only do so for selected languages.
24778
24779 rm -f Make-hooks
24780 touch Make-hooks
24781 target_list="all.cross start.encap rest.encap tags \
24782         install-common install-man install-info install-pdf dvi pdf \
24783         html uninstall info man srcextra srcman srcinfo \
24784         mostlyclean clean distclean maintainer-clean install-plugin"
24785
24786 for t in $target_list
24787 do
24788         x=
24789         for lang in $all_selected_languages
24790         do
24791                 x="$x $lang.$t"
24792         done
24793         echo "lang.$t: $x" >> Make-hooks
24794 done
24795
24796 # --------
24797 # UNSORTED
24798 # --------
24799
24800 # Create .gdbinit.
24801
24802 echo "dir ." > .gdbinit
24803 echo "dir ${srcdir}" >> .gdbinit
24804 if test x$gdb_needs_out_file_path = xyes
24805 then
24806         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24807 fi
24808 if test "x$subdirs" != x; then
24809         for s in $subdirs
24810         do
24811                 echo "dir ${srcdir}/$s" >> .gdbinit
24812         done
24813 fi
24814 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24815
24816 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24817
24818
24819
24820 # Find a directory in which to install a shared libgcc.
24821
24822 # Check whether --enable-version-specific-runtime-libs was given.
24823 if test "${enable_version_specific_runtime_libs+set}" = set; then :
24824   enableval=$enable_version_specific_runtime_libs;
24825 fi
24826
24827
24828
24829 # Check whether --with-slibdir was given.
24830 if test "${with_slibdir+set}" = set; then :
24831   withval=$with_slibdir; slibdir="$with_slibdir"
24832 else
24833   if test "${enable_version_specific_runtime_libs+set}" = set; then
24834   slibdir='$(libsubdir)'
24835 elif test "$host" != "$target"; then
24836   slibdir='$(build_tooldir)/lib'
24837 else
24838   slibdir='$(libdir)'
24839 fi
24840 fi
24841
24842
24843
24844 # Substitute configuration variables
24845
24846
24847
24848
24849
24850
24851
24852
24853
24854
24855
24856
24857
24858
24859
24860
24861
24862
24863
24864
24865
24866
24867
24868
24869
24870
24871
24872
24873
24874
24875
24876
24877
24878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896
24897
24898
24899
24900
24901
24902
24903
24904
24905
24906 # Echo link setup.
24907 if test x${build} = x${host} ; then
24908   if test x${host} = x${target} ; then
24909     echo "Links are now set up to build a native compiler for ${target}." 1>&2
24910   else
24911     echo "Links are now set up to build a cross-compiler" 1>&2
24912     echo " from ${host} to ${target}." 1>&2
24913   fi
24914 else
24915   if test x${host} = x${target} ; then
24916     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
24917     echo " for ${target}." 1>&2
24918   else
24919     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
24920     echo " from ${host} to ${target}." 1>&2
24921   fi
24922 fi
24923
24924
24925
24926
24927 case "${GMPLIBS}" in
24928   *-lmpc*)
24929 $as_echo "#define HAVE_mpc 1" >>confdefs.h
24930  ;;
24931 esac
24932
24933
24934
24935
24936
24937
24938 if test "x${CLOOGLIBS}" != "x" ; then
24939
24940 $as_echo "#define HAVE_cloog 1" >>confdefs.h
24941
24942 fi
24943
24944 # Check for plugin support
24945 # Check whether --enable-plugin was given.
24946 if test "${enable_plugin+set}" = set; then :
24947   enableval=$enable_plugin; enable_plugin=$enableval
24948 else
24949   enable_plugin=yes; default_plugin=yes
24950 fi
24951
24952
24953 pluginlibs=
24954 if test x"$enable_plugin" = x"yes"; then
24955   # Check that the host supports -rdynamic and -ldl
24956   have_rdynamic=no
24957   have_dl=no
24958   saved_LDFLAGS="$LDFLAGS"
24959   saved_LIBS="$LIBS"
24960   LIBS=
24961
24962   # Check -rdynamic
24963   LDFLAGS="$LDFLAGS -rdynamic"
24964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
24965 $as_echo_n "checking for -rdynamic... " >&6; }
24966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24967 /* end confdefs.h.  */
24968
24969 int
24970 main ()
24971 {
24972 return 0;
24973   ;
24974   return 0;
24975 }
24976 _ACEOF
24977 if ac_fn_c_try_link "$LINENO"; then :
24978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24979 $as_echo "yes" >&6; }; have_rdynamic=yes
24980 else
24981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24982 $as_echo "no" >&6; }
24983 fi
24984 rm -f core conftest.err conftest.$ac_objext \
24985     conftest$ac_exeext conftest.$ac_ext
24986   if test x"$have_rdynamic" = x"yes" ; then
24987     pluginlibs="-rdynamic"
24988   fi
24989
24990   # Check -ldl
24991   LIBS="$LIBS -ldl"
24992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldl" >&5
24993 $as_echo_n "checking for -ldl... " >&6; }
24994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24995 /* end confdefs.h.  */
24996 #include <dlfcn.h>
24997 int
24998 main ()
24999 {
25000 volatile int f = 0; if (f) dlopen ("dummy", 0);
25001   ;
25002   return 0;
25003 }
25004 _ACEOF
25005 if ac_fn_c_try_link "$LINENO"; then :
25006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25007 $as_echo "yes" >&6; }; have_dl=yes
25008 else
25009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25010 $as_echo "no" >&6; }
25011 fi
25012 rm -f core conftest.err conftest.$ac_objext \
25013     conftest$ac_exeext conftest.$ac_ext
25014   if test x"$have_dl" = x"yes"; then
25015     pluginlibs="$pluginlibs -ldl"
25016   fi
25017
25018   # Check that we can build shared objects with -fPIC -shared
25019   LDFLAGS="$LDFLAGS -fPIC -shared"
25020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25021 $as_echo_n "checking for -fPIC -shared... " >&6; }
25022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25023 /* end confdefs.h.  */
25024 extern int X;
25025 int
25026 main ()
25027 {
25028 return X == 0;
25029   ;
25030   return 0;
25031 }
25032 _ACEOF
25033 if ac_fn_c_try_link "$LINENO"; then :
25034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25035 $as_echo "yes" >&6; }; have_pic_shared=yes
25036 else
25037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25038 $as_echo "no" >&6; }; have_pic_shared=no
25039 fi
25040 rm -f core conftest.err conftest.$ac_objext \
25041     conftest$ac_exeext conftest.$ac_ext
25042   if test x"$have_pic_shared" != x"yes"; then
25043     pluginlibs=
25044     enable_plugin=no
25045   fi
25046
25047   # If plugin support had been requested but not available, fail.
25048   if test x"$enable_plugin" = x"no" ; then
25049     if test x"$default_plugin" != x"yes"; then
25050       as_fn_error "
25051 Building GCC with plugin support requires a host that supports
25052 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25053     fi
25054   fi
25055
25056   LDFLAGS="$saved_LDFLAGS"
25057   LIBS="$saved_LIBS"
25058 fi
25059
25060
25061
25062 if test x"$enable_plugin" = x"yes"; then
25063
25064 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25065
25066 fi
25067
25068 # Configure the subdirectories
25069 # AC_CONFIG_SUBDIRS($subdirs)
25070
25071 # Create the Makefile
25072 # and configure language subdirectories
25073 ac_config_files="$ac_config_files $all_outputs"
25074
25075
25076 ac_config_commands="$ac_config_commands default"
25077
25078 cat >confcache <<\_ACEOF
25079 # This file is a shell script that caches the results of configure
25080 # tests run on this system so they can be shared between configure
25081 # scripts and configure runs, see configure's option --config-cache.
25082 # It is not useful on other systems.  If it contains results you don't
25083 # want to keep, you may remove or edit it.
25084 #
25085 # config.status only pays attention to the cache file if you give it
25086 # the --recheck option to rerun configure.
25087 #
25088 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25089 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25090 # following values.
25091
25092 _ACEOF
25093
25094 # The following way of writing the cache mishandles newlines in values,
25095 # but we know of no workaround that is simple, portable, and efficient.
25096 # So, we kill variables containing newlines.
25097 # Ultrix sh set writes to stderr and can't be redirected directly,
25098 # and sets the high bit in the cache file unless we assign to the vars.
25099 (
25100   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25101     eval ac_val=\$$ac_var
25102     case $ac_val in #(
25103     *${as_nl}*)
25104       case $ac_var in #(
25105       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25106 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25107       esac
25108       case $ac_var in #(
25109       _ | IFS | as_nl) ;; #(
25110       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25111       *) { eval $ac_var=; unset $ac_var;} ;;
25112       esac ;;
25113     esac
25114   done
25115
25116   (set) 2>&1 |
25117     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25118     *${as_nl}ac_space=\ *)
25119       # `set' does not quote correctly, so add quotes: double-quote
25120       # substitution turns \\\\ into \\, and sed turns \\ into \.
25121       sed -n \
25122         "s/'/'\\\\''/g;
25123           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25124       ;; #(
25125     *)
25126       # `set' quotes correctly as required by POSIX, so do not add quotes.
25127       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25128       ;;
25129     esac |
25130     sort
25131 ) |
25132   sed '
25133      /^ac_cv_env_/b end
25134      t clear
25135      :clear
25136      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25137      t end
25138      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25139      :end' >>confcache
25140 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25141   if test -w "$cache_file"; then
25142     test "x$cache_file" != "x/dev/null" &&
25143       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25144 $as_echo "$as_me: updating cache $cache_file" >&6;}
25145     cat confcache >$cache_file
25146   else
25147     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25148 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25149   fi
25150 fi
25151 rm -f confcache
25152
25153 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25154 # Let make expand exec_prefix.
25155 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25156
25157 DEFS=-DHAVE_CONFIG_H
25158
25159 ac_libobjs=
25160 ac_ltlibobjs=
25161 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25162   # 1. Remove the extension, and $U if already installed.
25163   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25164   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25165   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25166   #    will be set to the directory where LIBOBJS objects are built.
25167   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25168   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25169 done
25170 LIBOBJS=$ac_libobjs
25171
25172 LTLIBOBJS=$ac_ltlibobjs
25173
25174
25175
25176
25177 : ${CONFIG_STATUS=./config.status}
25178 ac_write_fail=0
25179 ac_clean_files_save=$ac_clean_files
25180 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25182 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25183 as_write_fail=0
25184 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25185 #! $SHELL
25186 # Generated by $as_me.
25187 # Run this file to recreate the current configuration.
25188 # Compiler output produced by configure, useful for debugging
25189 # configure, is in config.log if it exists.
25190
25191 debug=false
25192 ac_cs_recheck=false
25193 ac_cs_silent=false
25194
25195 SHELL=\${CONFIG_SHELL-$SHELL}
25196 export SHELL
25197 _ASEOF
25198 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25199 ## -------------------- ##
25200 ## M4sh Initialization. ##
25201 ## -------------------- ##
25202
25203 # Be more Bourne compatible
25204 DUALCASE=1; export DUALCASE # for MKS sh
25205 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25206   emulate sh
25207   NULLCMD=:
25208   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25209   # is contrary to our usage.  Disable this feature.
25210   alias -g '${1+"$@"}'='"$@"'
25211   setopt NO_GLOB_SUBST
25212 else
25213   case `(set -o) 2>/dev/null` in #(
25214   *posix*) :
25215     set -o posix ;; #(
25216   *) :
25217      ;;
25218 esac
25219 fi
25220
25221
25222 as_nl='
25223 '
25224 export as_nl
25225 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25226 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25227 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25228 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25229 # Prefer a ksh shell builtin over an external printf program on Solaris,
25230 # but without wasting forks for bash or zsh.
25231 if test -z "$BASH_VERSION$ZSH_VERSION" \
25232     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25233   as_echo='print -r --'
25234   as_echo_n='print -rn --'
25235 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25236   as_echo='printf %s\n'
25237   as_echo_n='printf %s'
25238 else
25239   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25240     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25241     as_echo_n='/usr/ucb/echo -n'
25242   else
25243     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25244     as_echo_n_body='eval
25245       arg=$1;
25246       case $arg in #(
25247       *"$as_nl"*)
25248         expr "X$arg" : "X\\(.*\\)$as_nl";
25249         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25250       esac;
25251       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25252     '
25253     export as_echo_n_body
25254     as_echo_n='sh -c $as_echo_n_body as_echo'
25255   fi
25256   export as_echo_body
25257   as_echo='sh -c $as_echo_body as_echo'
25258 fi
25259
25260 # The user is always right.
25261 if test "${PATH_SEPARATOR+set}" != set; then
25262   PATH_SEPARATOR=:
25263   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25264     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25265       PATH_SEPARATOR=';'
25266   }
25267 fi
25268
25269
25270 # IFS
25271 # We need space, tab and new line, in precisely that order.  Quoting is
25272 # there to prevent editors from complaining about space-tab.
25273 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25274 # splitting by setting IFS to empty value.)
25275 IFS=" ""        $as_nl"
25276
25277 # Find who we are.  Look in the path if we contain no directory separator.
25278 case $0 in #((
25279   *[\\/]* ) as_myself=$0 ;;
25280   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25281 for as_dir in $PATH
25282 do
25283   IFS=$as_save_IFS
25284   test -z "$as_dir" && as_dir=.
25285     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25286   done
25287 IFS=$as_save_IFS
25288
25289      ;;
25290 esac
25291 # We did not find ourselves, most probably we were run as `sh COMMAND'
25292 # in which case we are not to be found in the path.
25293 if test "x$as_myself" = x; then
25294   as_myself=$0
25295 fi
25296 if test ! -f "$as_myself"; then
25297   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25298   exit 1
25299 fi
25300
25301 # Unset variables that we do not need and which cause bugs (e.g. in
25302 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25303 # suppresses any "Segmentation fault" message there.  '((' could
25304 # trigger a bug in pdksh 5.2.14.
25305 for as_var in BASH_ENV ENV MAIL MAILPATH
25306 do eval test x\${$as_var+set} = xset \
25307   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25308 done
25309 PS1='$ '
25310 PS2='> '
25311 PS4='+ '
25312
25313 # NLS nuisances.
25314 LC_ALL=C
25315 export LC_ALL
25316 LANGUAGE=C
25317 export LANGUAGE
25318
25319 # CDPATH.
25320 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25321
25322
25323 # as_fn_error ERROR [LINENO LOG_FD]
25324 # ---------------------------------
25325 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25326 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25327 # script with status $?, using 1 if that was 0.
25328 as_fn_error ()
25329 {
25330   as_status=$?; test $as_status -eq 0 && as_status=1
25331   if test "$3"; then
25332     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25333     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25334   fi
25335   $as_echo "$as_me: error: $1" >&2
25336   as_fn_exit $as_status
25337 } # as_fn_error
25338
25339
25340 # as_fn_set_status STATUS
25341 # -----------------------
25342 # Set $? to STATUS, without forking.
25343 as_fn_set_status ()
25344 {
25345   return $1
25346 } # as_fn_set_status
25347
25348 # as_fn_exit STATUS
25349 # -----------------
25350 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25351 as_fn_exit ()
25352 {
25353   set +e
25354   as_fn_set_status $1
25355   exit $1
25356 } # as_fn_exit
25357
25358 # as_fn_unset VAR
25359 # ---------------
25360 # Portably unset VAR.
25361 as_fn_unset ()
25362 {
25363   { eval $1=; unset $1;}
25364 }
25365 as_unset=as_fn_unset
25366 # as_fn_append VAR VALUE
25367 # ----------------------
25368 # Append the text in VALUE to the end of the definition contained in VAR. Take
25369 # advantage of any shell optimizations that allow amortized linear growth over
25370 # repeated appends, instead of the typical quadratic growth present in naive
25371 # implementations.
25372 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25373   eval 'as_fn_append ()
25374   {
25375     eval $1+=\$2
25376   }'
25377 else
25378   as_fn_append ()
25379   {
25380     eval $1=\$$1\$2
25381   }
25382 fi # as_fn_append
25383
25384 # as_fn_arith ARG...
25385 # ------------------
25386 # Perform arithmetic evaluation on the ARGs, and store the result in the
25387 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25388 # must be portable across $(()) and expr.
25389 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25390   eval 'as_fn_arith ()
25391   {
25392     as_val=$(( $* ))
25393   }'
25394 else
25395   as_fn_arith ()
25396   {
25397     as_val=`expr "$@" || test $? -eq 1`
25398   }
25399 fi # as_fn_arith
25400
25401
25402 if expr a : '\(a\)' >/dev/null 2>&1 &&
25403    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25404   as_expr=expr
25405 else
25406   as_expr=false
25407 fi
25408
25409 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25410   as_basename=basename
25411 else
25412   as_basename=false
25413 fi
25414
25415 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25416   as_dirname=dirname
25417 else
25418   as_dirname=false
25419 fi
25420
25421 as_me=`$as_basename -- "$0" ||
25422 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25423          X"$0" : 'X\(//\)$' \| \
25424          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25425 $as_echo X/"$0" |
25426     sed '/^.*\/\([^/][^/]*\)\/*$/{
25427             s//\1/
25428             q
25429           }
25430           /^X\/\(\/\/\)$/{
25431             s//\1/
25432             q
25433           }
25434           /^X\/\(\/\).*/{
25435             s//\1/
25436             q
25437           }
25438           s/.*/./; q'`
25439
25440 # Avoid depending upon Character Ranges.
25441 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25442 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25443 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25444 as_cr_digits='0123456789'
25445 as_cr_alnum=$as_cr_Letters$as_cr_digits
25446
25447 ECHO_C= ECHO_N= ECHO_T=
25448 case `echo -n x` in #(((((
25449 -n*)
25450   case `echo 'xy\c'` in
25451   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25452   xy)  ECHO_C='\c';;
25453   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25454        ECHO_T=' ';;
25455   esac;;
25456 *)
25457   ECHO_N='-n';;
25458 esac
25459
25460 rm -f conf$$ conf$$.exe conf$$.file
25461 if test -d conf$$.dir; then
25462   rm -f conf$$.dir/conf$$.file
25463 else
25464   rm -f conf$$.dir
25465   mkdir conf$$.dir 2>/dev/null
25466 fi
25467 if (echo >conf$$.file) 2>/dev/null; then
25468   if ln -s conf$$.file conf$$ 2>/dev/null; then
25469     as_ln_s='ln -s'
25470     # ... but there are two gotchas:
25471     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25472     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25473     # In both cases, we have to default to `cp -p'.
25474     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25475       as_ln_s='cp -p'
25476   elif ln conf$$.file conf$$ 2>/dev/null; then
25477     as_ln_s=ln
25478   else
25479     as_ln_s='cp -p'
25480   fi
25481 else
25482   as_ln_s='cp -p'
25483 fi
25484 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25485 rmdir conf$$.dir 2>/dev/null
25486
25487
25488 # as_fn_mkdir_p
25489 # -------------
25490 # Create "$as_dir" as a directory, including parents if necessary.
25491 as_fn_mkdir_p ()
25492 {
25493
25494   case $as_dir in #(
25495   -*) as_dir=./$as_dir;;
25496   esac
25497   test -d "$as_dir" || eval $as_mkdir_p || {
25498     as_dirs=
25499     while :; do
25500       case $as_dir in #(
25501       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25502       *) as_qdir=$as_dir;;
25503       esac
25504       as_dirs="'$as_qdir' $as_dirs"
25505       as_dir=`$as_dirname -- "$as_dir" ||
25506 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25507          X"$as_dir" : 'X\(//\)[^/]' \| \
25508          X"$as_dir" : 'X\(//\)$' \| \
25509          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25510 $as_echo X"$as_dir" |
25511     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25512             s//\1/
25513             q
25514           }
25515           /^X\(\/\/\)[^/].*/{
25516             s//\1/
25517             q
25518           }
25519           /^X\(\/\/\)$/{
25520             s//\1/
25521             q
25522           }
25523           /^X\(\/\).*/{
25524             s//\1/
25525             q
25526           }
25527           s/.*/./; q'`
25528       test -d "$as_dir" && break
25529     done
25530     test -z "$as_dirs" || eval "mkdir $as_dirs"
25531   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25532
25533
25534 } # as_fn_mkdir_p
25535 if mkdir -p . 2>/dev/null; then
25536   as_mkdir_p='mkdir -p "$as_dir"'
25537 else
25538   test -d ./-p && rmdir ./-p
25539   as_mkdir_p=false
25540 fi
25541
25542 if test -x / >/dev/null 2>&1; then
25543   as_test_x='test -x'
25544 else
25545   if ls -dL / >/dev/null 2>&1; then
25546     as_ls_L_option=L
25547   else
25548     as_ls_L_option=
25549   fi
25550   as_test_x='
25551     eval sh -c '\''
25552       if test -d "$1"; then
25553         test -d "$1/.";
25554       else
25555         case $1 in #(
25556         -*)set "./$1";;
25557         esac;
25558         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25559         ???[sx]*):;;*)false;;esac;fi
25560     '\'' sh
25561   '
25562 fi
25563 as_executable_p=$as_test_x
25564
25565 # Sed expression to map a string onto a valid CPP name.
25566 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25567
25568 # Sed expression to map a string onto a valid variable name.
25569 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25570
25571
25572 exec 6>&1
25573 ## ----------------------------------- ##
25574 ## Main body of $CONFIG_STATUS script. ##
25575 ## ----------------------------------- ##
25576 _ASEOF
25577 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25578
25579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25580 # Save the log message, to keep $0 and so on meaningful, and to
25581 # report actual input values of CONFIG_FILES etc. instead of their
25582 # values after options handling.
25583 ac_log="
25584 This file was extended by $as_me, which was
25585 generated by GNU Autoconf 2.64.  Invocation command line was
25586
25587   CONFIG_FILES    = $CONFIG_FILES
25588   CONFIG_HEADERS  = $CONFIG_HEADERS
25589   CONFIG_LINKS    = $CONFIG_LINKS
25590   CONFIG_COMMANDS = $CONFIG_COMMANDS
25591   $ $0 $@
25592
25593 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25594 "
25595
25596 _ACEOF
25597
25598 case $ac_config_files in *"
25599 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25600 esac
25601
25602 case $ac_config_headers in *"
25603 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25604 esac
25605
25606
25607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25608 # Files that config.status was made for.
25609 config_files="$ac_config_files"
25610 config_headers="$ac_config_headers"
25611 config_commands="$ac_config_commands"
25612
25613 _ACEOF
25614
25615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25616 ac_cs_usage="\
25617 \`$as_me' instantiates files and other configuration actions
25618 from templates according to the current configuration.  Unless the files
25619 and actions are specified as TAGs, all are instantiated by default.
25620
25621 Usage: $0 [OPTION]... [TAG]...
25622
25623   -h, --help       print this help, then exit
25624   -V, --version    print version number and configuration settings, then exit
25625   -q, --quiet, --silent
25626                    do not print progress messages
25627   -d, --debug      don't remove temporary files
25628       --recheck    update $as_me by reconfiguring in the same conditions
25629       --file=FILE[:TEMPLATE]
25630                    instantiate the configuration file FILE
25631       --header=FILE[:TEMPLATE]
25632                    instantiate the configuration header FILE
25633
25634 Configuration files:
25635 $config_files
25636
25637 Configuration headers:
25638 $config_headers
25639
25640 Configuration commands:
25641 $config_commands
25642
25643 Report bugs to the package provider."
25644
25645 _ACEOF
25646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25647 ac_cs_version="\\
25648 config.status
25649 configured by $0, generated by GNU Autoconf 2.64,
25650   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25651
25652 Copyright (C) 2009 Free Software Foundation, Inc.
25653 This config.status script is free software; the Free Software Foundation
25654 gives unlimited permission to copy, distribute and modify it."
25655
25656 ac_pwd='$ac_pwd'
25657 srcdir='$srcdir'
25658 AWK='$AWK'
25659 test -n "\$AWK" || AWK=awk
25660 _ACEOF
25661
25662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25663 # The default lists apply if the user does not specify any file.
25664 ac_need_defaults=:
25665 while test $# != 0
25666 do
25667   case $1 in
25668   --*=*)
25669     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25670     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25671     ac_shift=:
25672     ;;
25673   *)
25674     ac_option=$1
25675     ac_optarg=$2
25676     ac_shift=shift
25677     ;;
25678   esac
25679
25680   case $ac_option in
25681   # Handling of the options.
25682   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25683     ac_cs_recheck=: ;;
25684   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25685     $as_echo "$ac_cs_version"; exit ;;
25686   --debug | --debu | --deb | --de | --d | -d )
25687     debug=: ;;
25688   --file | --fil | --fi | --f )
25689     $ac_shift
25690     case $ac_optarg in
25691     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25692     esac
25693     as_fn_append CONFIG_FILES " '$ac_optarg'"
25694     ac_need_defaults=false;;
25695   --header | --heade | --head | --hea )
25696     $ac_shift
25697     case $ac_optarg in
25698     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25699     esac
25700     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25701     ac_need_defaults=false;;
25702   --he | --h)
25703     # Conflict between --help and --header
25704     as_fn_error "ambiguous option: \`$1'
25705 Try \`$0 --help' for more information.";;
25706   --help | --hel | -h )
25707     $as_echo "$ac_cs_usage"; exit ;;
25708   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25709   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25710     ac_cs_silent=: ;;
25711
25712   # This is an error.
25713   -*) as_fn_error "unrecognized option: \`$1'
25714 Try \`$0 --help' for more information." ;;
25715
25716   *) as_fn_append ac_config_targets " $1"
25717      ac_need_defaults=false ;;
25718
25719   esac
25720   shift
25721 done
25722
25723 ac_configure_extra_args=
25724
25725 if $ac_cs_silent; then
25726   exec 6>/dev/null
25727   ac_configure_extra_args="$ac_configure_extra_args --silent"
25728 fi
25729
25730 _ACEOF
25731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25732 if \$ac_cs_recheck; then
25733   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25734   shift
25735   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25736   CONFIG_SHELL='$SHELL'
25737   export CONFIG_SHELL
25738   exec "\$@"
25739 fi
25740
25741 _ACEOF
25742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25743 exec 5>>config.log
25744 {
25745   echo
25746   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25747 ## Running $as_me. ##
25748 _ASBOX
25749   $as_echo "$ac_log"
25750 } >&5
25751
25752 _ACEOF
25753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25754 #
25755 # INIT-COMMANDS
25756 #
25757 subdirs='$subdirs'
25758
25759 _ACEOF
25760
25761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25762
25763 # Handling of arguments.
25764 for ac_config_target in $ac_config_targets
25765 do
25766   case $ac_config_target in
25767     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
25768     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
25769     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25770     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
25771     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
25772     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25773
25774   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25775   esac
25776 done
25777
25778
25779 # If the user did not use the arguments to specify the items to instantiate,
25780 # then the envvar interface is used.  Set only those that are not.
25781 # We use the long form for the default assignment because of an extremely
25782 # bizarre bug on SunOS 4.1.3.
25783 if $ac_need_defaults; then
25784   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25785   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25786   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25787 fi
25788
25789 # Have a temporary directory for convenience.  Make it in the build tree
25790 # simply because there is no reason against having it here, and in addition,
25791 # creating and moving files from /tmp can sometimes cause problems.
25792 # Hook for its removal unless debugging.
25793 # Note that there is a small window in which the directory will not be cleaned:
25794 # after its creation but before its name has been assigned to `$tmp'.
25795 $debug ||
25796 {
25797   tmp=
25798   trap 'exit_status=$?
25799   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25800 ' 0
25801   trap 'as_fn_exit 1' 1 2 13 15
25802 }
25803 # Create a (secure) tmp directory for tmp files.
25804
25805 {
25806   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25807   test -n "$tmp" && test -d "$tmp"
25808 }  ||
25809 {
25810   tmp=./conf$$-$RANDOM
25811   (umask 077 && mkdir "$tmp")
25812 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25813
25814 # Set up the scripts for CONFIG_FILES section.
25815 # No need to generate them if there are no CONFIG_FILES.
25816 # This happens for instance with `./config.status config.h'.
25817 if test -n "$CONFIG_FILES"; then
25818
25819 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25820   ac_cs_awk_getline=:
25821   ac_cs_awk_pipe_init=
25822   ac_cs_awk_read_file='
25823       while ((getline aline < (F[key])) > 0)
25824         print(aline)
25825       close(F[key])'
25826   ac_cs_awk_pipe_fini=
25827 else
25828   ac_cs_awk_getline=false
25829   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25830   ac_cs_awk_read_file='
25831       print "|#_!!_#|"
25832       print "cat " F[key] " &&"
25833       '$ac_cs_awk_pipe_init
25834   # The final `:' finishes the AND list.
25835   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25836 fi
25837 ac_cr=`echo X | tr X '\015'`
25838 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25839 # But we know of no other shell where ac_cr would be empty at this
25840 # point, so we can use a bashism as a fallback.
25841 if test "x$ac_cr" = x; then
25842   eval ac_cr=\$\'\\r\'
25843 fi
25844 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25845 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25846   ac_cs_awk_cr='\r'
25847 else
25848   ac_cs_awk_cr=$ac_cr
25849 fi
25850
25851 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25852 _ACEOF
25853
25854 # Create commands to substitute file output variables.
25855 {
25856   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25857   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25858   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25859   echo "_ACAWK" &&
25860   echo "_ACEOF"
25861 } >conf$$files.sh &&
25862 . ./conf$$files.sh ||
25863   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25864 rm -f conf$$files.sh
25865
25866 {
25867   echo "cat >conf$$subs.awk <<_ACEOF" &&
25868   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25869   echo "_ACEOF"
25870 } >conf$$subs.sh ||
25871   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25872 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25873 ac_delim='%!_!# '
25874 for ac_last_try in false false false false false :; do
25875   . ./conf$$subs.sh ||
25876     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25877
25878   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25879   if test $ac_delim_n = $ac_delim_num; then
25880     break
25881   elif $ac_last_try; then
25882     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25883   else
25884     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25885   fi
25886 done
25887 rm -f conf$$subs.sh
25888
25889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25890 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25891 _ACEOF
25892 sed -n '
25893 h
25894 s/^/S["/; s/!.*/"]=/
25895 p
25896 g
25897 s/^[^!]*!//
25898 :repl
25899 t repl
25900 s/'"$ac_delim"'$//
25901 t delim
25902 :nl
25903 h
25904 s/\(.\{148\}\).*/\1/
25905 t more1
25906 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25907 p
25908 n
25909 b repl
25910 :more1
25911 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25912 p
25913 g
25914 s/.\{148\}//
25915 t nl
25916 :delim
25917 h
25918 s/\(.\{148\}\).*/\1/
25919 t more2
25920 s/["\\]/\\&/g; s/^/"/; s/$/"/
25921 p
25922 b
25923 :more2
25924 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25925 p
25926 g
25927 s/.\{148\}//
25928 t delim
25929 ' <conf$$subs.awk | sed '
25930 /^[^""]/{
25931   N
25932   s/\n//
25933 }
25934 ' >>$CONFIG_STATUS || ac_write_fail=1
25935 rm -f conf$$subs.awk
25936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25937 _ACAWK
25938 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25939   for (key in S) S_is_set[key] = 1
25940   FS = "\a"
25941   \$ac_cs_awk_pipe_init
25942 }
25943 {
25944   line = $ 0
25945   nfields = split(line, field, "@")
25946   substed = 0
25947   len = length(field[1])
25948   for (i = 2; i < nfields; i++) {
25949     key = field[i]
25950     keylen = length(key)
25951     if (S_is_set[key]) {
25952       value = S[key]
25953       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25954       len += length(value) + length(field[++i])
25955       substed = 1
25956     } else
25957       len += 1 + keylen
25958   }
25959   if (nfields == 3 && !substed) {
25960     key = field[2]
25961     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
25962       \$ac_cs_awk_read_file
25963       next
25964     }
25965   }
25966   print line
25967 }
25968 \$ac_cs_awk_pipe_fini
25969 _ACAWK
25970 _ACEOF
25971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25972 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25973   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25974 else
25975   cat
25976 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25977   || as_fn_error "could not setup config files machinery" "$LINENO" 5
25978 _ACEOF
25979
25980 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25981 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25982 # trailing colons and then remove the whole line if VPATH becomes empty
25983 # (actually we leave an empty line to preserve line numbers).
25984 if test "x$srcdir" = x.; then
25985   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25986 s/:*\$(srcdir):*/:/
25987 s/:*\${srcdir}:*/:/
25988 s/:*@srcdir@:*/:/
25989 s/^\([^=]*=[     ]*\):*/\1/
25990 s/:*$//
25991 s/^[^=]*=[       ]*$//
25992 }'
25993 fi
25994
25995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25996 fi # test -n "$CONFIG_FILES"
25997
25998 # Set up the scripts for CONFIG_HEADERS section.
25999 # No need to generate them if there are no CONFIG_HEADERS.
26000 # This happens for instance with `./config.status Makefile'.
26001 if test -n "$CONFIG_HEADERS"; then
26002 cat >"$tmp/defines.awk" <<\_ACAWK ||
26003 BEGIN {
26004 _ACEOF
26005
26006 # Transform confdefs.h into an awk script `defines.awk', embedded as
26007 # here-document in config.status, that substitutes the proper values into
26008 # config.h.in to produce config.h.
26009
26010 # Create a delimiter string that does not exist in confdefs.h, to ease
26011 # handling of long lines.
26012 ac_delim='%!_!# '
26013 for ac_last_try in false false :; do
26014   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26015   if test -z "$ac_t"; then
26016     break
26017   elif $ac_last_try; then
26018     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26019   else
26020     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26021   fi
26022 done
26023
26024 # For the awk script, D is an array of macro values keyed by name,
26025 # likewise P contains macro parameters if any.  Preserve backslash
26026 # newline sequences.
26027
26028 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26029 sed -n '
26030 s/.\{148\}/&'"$ac_delim"'/g
26031 t rset
26032 :rset
26033 s/^[     ]*#[    ]*define[       ][      ]*/ /
26034 t def
26035 d
26036 :def
26037 s/\\$//
26038 t bsnl
26039 s/["\\]/\\&/g
26040 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26041 D["\1"]=" \3"/p
26042 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26043 d
26044 :bsnl
26045 s/["\\]/\\&/g
26046 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26047 D["\1"]=" \3\\\\\\n"\\/p
26048 t cont
26049 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26050 t cont
26051 d
26052 :cont
26053 n
26054 s/.\{148\}/&'"$ac_delim"'/g
26055 t clear
26056 :clear
26057 s/\\$//
26058 t bsnlc
26059 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26060 d
26061 :bsnlc
26062 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26063 b cont
26064 ' <confdefs.h | sed '
26065 s/'"$ac_delim"'/"\\\
26066 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26067
26068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26069   for (key in D) D_is_set[key] = 1
26070   FS = "\a"
26071 }
26072 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26073   line = \$ 0
26074   split(line, arg, " ")
26075   if (arg[1] == "#") {
26076     defundef = arg[2]
26077     mac1 = arg[3]
26078   } else {
26079     defundef = substr(arg[1], 2)
26080     mac1 = arg[2]
26081   }
26082   split(mac1, mac2, "(") #)
26083   macro = mac2[1]
26084   prefix = substr(line, 1, index(line, defundef) - 1)
26085   if (D_is_set[macro]) {
26086     # Preserve the white space surrounding the "#".
26087     print prefix "define", macro P[macro] D[macro]
26088     next
26089   } else {
26090     # Replace #undef with comments.  This is necessary, for example,
26091     # in the case of _POSIX_SOURCE, which is predefined and required
26092     # on some systems where configure will not decide to define it.
26093     if (defundef == "undef") {
26094       print "/*", prefix defundef, macro, "*/"
26095       next
26096     }
26097   }
26098 }
26099 { print }
26100 _ACAWK
26101 _ACEOF
26102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26103   as_fn_error "could not setup config headers machinery" "$LINENO" 5
26104 fi # test -n "$CONFIG_HEADERS"
26105
26106
26107 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26108 shift
26109 for ac_tag
26110 do
26111   case $ac_tag in
26112   :[FHLC]) ac_mode=$ac_tag; continue;;
26113   esac
26114   case $ac_mode$ac_tag in
26115   :[FHL]*:*);;
26116   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26117   :[FH]-) ac_tag=-:-;;
26118   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26119   esac
26120   ac_save_IFS=$IFS
26121   IFS=:
26122   set x $ac_tag
26123   IFS=$ac_save_IFS
26124   shift
26125   ac_file=$1
26126   shift
26127
26128   case $ac_mode in
26129   :L) ac_source=$1;;
26130   :[FH])
26131     ac_file_inputs=
26132     for ac_f
26133     do
26134       case $ac_f in
26135       -) ac_f="$tmp/stdin";;
26136       *) # Look for the file first in the build tree, then in the source tree
26137          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26138          # because $ac_f cannot contain `:'.
26139          test -f "$ac_f" ||
26140            case $ac_f in
26141            [\\/$]*) false;;
26142            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26143            esac ||
26144            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26145       esac
26146       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26147       as_fn_append ac_file_inputs " '$ac_f'"
26148     done
26149
26150     # Let's still pretend it is `configure' which instantiates (i.e., don't
26151     # use $as_me), people would be surprised to read:
26152     #    /* config.h.  Generated by config.status.  */
26153     configure_input='Generated from '`
26154           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26155         `' by configure.'
26156     if test x"$ac_file" != x-; then
26157       configure_input="$ac_file.  $configure_input"
26158       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26159 $as_echo "$as_me: creating $ac_file" >&6;}
26160     fi
26161     # Neutralize special characters interpreted by sed in replacement strings.
26162     case $configure_input in #(
26163     *\&* | *\|* | *\\* )
26164        ac_sed_conf_input=`$as_echo "$configure_input" |
26165        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26166     *) ac_sed_conf_input=$configure_input;;
26167     esac
26168
26169     case $ac_tag in
26170     *:-:* | *:-) cat >"$tmp/stdin" \
26171       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26172     esac
26173     ;;
26174   esac
26175
26176   ac_dir=`$as_dirname -- "$ac_file" ||
26177 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26178          X"$ac_file" : 'X\(//\)[^/]' \| \
26179          X"$ac_file" : 'X\(//\)$' \| \
26180          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26181 $as_echo X"$ac_file" |
26182     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26183             s//\1/
26184             q
26185           }
26186           /^X\(\/\/\)[^/].*/{
26187             s//\1/
26188             q
26189           }
26190           /^X\(\/\/\)$/{
26191             s//\1/
26192             q
26193           }
26194           /^X\(\/\).*/{
26195             s//\1/
26196             q
26197           }
26198           s/.*/./; q'`
26199   as_dir="$ac_dir"; as_fn_mkdir_p
26200   ac_builddir=.
26201
26202 case "$ac_dir" in
26203 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26204 *)
26205   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26206   # A ".." for each directory in $ac_dir_suffix.
26207   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26208   case $ac_top_builddir_sub in
26209   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26210   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26211   esac ;;
26212 esac
26213 ac_abs_top_builddir=$ac_pwd
26214 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26215 # for backward compatibility:
26216 ac_top_builddir=$ac_top_build_prefix
26217
26218 case $srcdir in
26219   .)  # We are building in place.
26220     ac_srcdir=.
26221     ac_top_srcdir=$ac_top_builddir_sub
26222     ac_abs_top_srcdir=$ac_pwd ;;
26223   [\\/]* | ?:[\\/]* )  # Absolute name.
26224     ac_srcdir=$srcdir$ac_dir_suffix;
26225     ac_top_srcdir=$srcdir
26226     ac_abs_top_srcdir=$srcdir ;;
26227   *) # Relative name.
26228     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26229     ac_top_srcdir=$ac_top_build_prefix$srcdir
26230     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26231 esac
26232 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26233
26234
26235   case $ac_mode in
26236   :F)
26237   #
26238   # CONFIG_FILE
26239   #
26240
26241 _ACEOF
26242
26243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26244 # If the template does not know about datarootdir, expand it.
26245 # FIXME: This hack should be removed a few years after 2.60.
26246 ac_datarootdir_hack=; ac_datarootdir_seen=
26247 ac_sed_dataroot='
26248 /datarootdir/ {
26249   p
26250   q
26251 }
26252 /@datadir@/p
26253 /@docdir@/p
26254 /@infodir@/p
26255 /@localedir@/p
26256 /@mandir@/p'
26257 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26258 *datarootdir*) ac_datarootdir_seen=yes;;
26259 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26260   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26261 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26262 _ACEOF
26263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26264   ac_datarootdir_hack='
26265   s&@datadir@&$datadir&g
26266   s&@docdir@&$docdir&g
26267   s&@infodir@&$infodir&g
26268   s&@localedir@&$localedir&g
26269   s&@mandir@&$mandir&g
26270   s&\\\${datarootdir}&$datarootdir&g' ;;
26271 esac
26272 _ACEOF
26273
26274 # Neutralize VPATH when `$srcdir' = `.'.
26275 # Shell code in configure.ac might set extrasub.
26276 # FIXME: do we really want to maintain this feature?
26277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26278 ac_sed_extra="$ac_vpsub
26279 $extrasub
26280 _ACEOF
26281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26282 :t
26283 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26284 s|@configure_input@|$ac_sed_conf_input|;t t
26285 s&@top_builddir@&$ac_top_builddir_sub&;t t
26286 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26287 s&@srcdir@&$ac_srcdir&;t t
26288 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26289 s&@top_srcdir@&$ac_top_srcdir&;t t
26290 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26291 s&@builddir@&$ac_builddir&;t t
26292 s&@abs_builddir@&$ac_abs_builddir&;t t
26293 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26294 $ac_datarootdir_hack
26295 "
26296 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26297 if $ac_cs_awk_getline; then
26298   $AWK -f "$tmp/subs.awk"
26299 else
26300   $AWK -f "$tmp/subs.awk" | $SHELL
26301 fi >$tmp/out \
26302   || as_fn_error "could not create $ac_file" "$LINENO" 5
26303
26304 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26305   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26306   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26307   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26308 which seems to be undefined.  Please make sure it is defined." >&5
26309 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26310 which seems to be undefined.  Please make sure it is defined." >&2;}
26311
26312   rm -f "$tmp/stdin"
26313   case $ac_file in
26314   -) cat "$tmp/out" && rm -f "$tmp/out";;
26315   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26316   esac \
26317   || as_fn_error "could not create $ac_file" "$LINENO" 5
26318  ;;
26319   :H)
26320   #
26321   # CONFIG_HEADER
26322   #
26323   if test x"$ac_file" != x-; then
26324     {
26325       $as_echo "/* $configure_input  */" \
26326       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26327     } >"$tmp/config.h" \
26328       || as_fn_error "could not create $ac_file" "$LINENO" 5
26329     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26330       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26331 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26332     else
26333       rm -f "$ac_file"
26334       mv "$tmp/config.h" "$ac_file" \
26335         || as_fn_error "could not create $ac_file" "$LINENO" 5
26336     fi
26337   else
26338     $as_echo "/* $configure_input  */" \
26339       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26340       || as_fn_error "could not create -" "$LINENO" 5
26341   fi
26342  ;;
26343
26344   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26345 $as_echo "$as_me: executing $ac_file commands" >&6;}
26346  ;;
26347   esac
26348
26349
26350   case $ac_file$ac_mode in
26351     "as":F) chmod +x as ;;
26352     "collect-ld":F) chmod +x collect-ld ;;
26353     "nm":F) chmod +x nm ;;
26354     "default":C)
26355 case ${CONFIG_HEADERS} in
26356   *auto-host.h:config.in*)
26357   echo > cstamp-h ;;
26358 esac
26359 # Make sure all the subdirs exist.
26360 for d in $subdirs doc build
26361 do
26362     test -d $d || mkdir $d
26363 done
26364  ;;
26365
26366   esac
26367 done # for ac_tag
26368
26369
26370 as_fn_exit 0
26371 _ACEOF
26372 ac_clean_files=$ac_clean_files_save
26373
26374 test $ac_write_fail = 0 ||
26375   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26376
26377
26378 # configure is writing to config.log, and then calls config.status.
26379 # config.status does its own redirection, appending to config.log.
26380 # Unfortunately, on DOS this fails, as config.log is still kept open
26381 # by configure, so config.status won't be able to write to it; its
26382 # output is simply discarded.  So we exec the FD to /dev/null,
26383 # effectively closing config.log, so it can be properly (re)opened and
26384 # appended to by config.status.  When coming back to configure, we
26385 # need to make the FD available again.
26386 if test "$no_create" != yes; then
26387   ac_cs_success=:
26388   ac_config_status_args=
26389   test "$silent" = yes &&
26390     ac_config_status_args="$ac_config_status_args --quiet"
26391   exec 5>/dev/null
26392   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26393   exec 5>>config.log
26394   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26395   # would make configure fail if this is the last instruction.
26396   $ac_cs_success || as_fn_exit $?
26397 fi
26398 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26399   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26400 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26401 fi
26402