OSDN Git Service

Regenerate tree using Autoconf 2.64 and Automake 1.11.
[pf3gnuchains/gcc-fork.git] / boehm-gc / 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="gcj_mlc.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='am__EXEEXT_FALSE
741 am__EXEEXT_TRUE
742 LTLIBOBJS
743 LIBOBJS
744 toolexeclibdir
745 toolexecdir
746 MY_CFLAGS
747 addtests
748 addlibs
749 addincludes
750 addobjs
751 AM_CPPFLAGS
752 CPLUSPLUS_FALSE
753 CPLUSPLUS_TRUE
754 target_all
755 EXTRA_TEST_LIBS
756 extra_ldflags_libgc
757 POWERPC_DARWIN_FALSE
758 POWERPC_DARWIN_TRUE
759 THREADLIBS
760 CXXCPP
761 CPP
762 OTOOL64
763 OTOOL
764 LIPO
765 NMEDIT
766 DSYMUTIL
767 lt_ECHO
768 OBJDUMP
769 LN_S
770 NM
771 ac_ct_DUMPBIN
772 DUMPBIN
773 LD
774 FGREP
775 EGREP
776 GREP
777 SED
778 LIBTOOL
779 GC_CFLAGS
780 MAINT
781 MAINTAINER_MODE_FALSE
782 MAINTAINER_MODE_TRUE
783 RANLIB
784 AR
785 AS
786 CCASFLAGS
787 CCAS
788 am__fastdepCXX_FALSE
789 am__fastdepCXX_TRUE
790 CXXDEPMODE
791 ac_ct_CXX
792 CXXFLAGS
793 CXX
794 am__fastdepCC_FALSE
795 am__fastdepCC_TRUE
796 CCDEPMODE
797 AMDEPBACKSLASH
798 AMDEP_FALSE
799 AMDEP_TRUE
800 am__quote
801 am__include
802 DEPDIR
803 OBJEXT
804 EXEEXT
805 ac_ct_CC
806 CPPFLAGS
807 LDFLAGS
808 CFLAGS
809 CC
810 am__untar
811 am__tar
812 AMTAR
813 am__leading_dot
814 SET_MAKE
815 AWK
816 mkdir_p
817 MKDIR_P
818 INSTALL_STRIP_PROGRAM
819 STRIP
820 install_sh
821 MAKEINFO
822 AUTOHEADER
823 AUTOMAKE
824 AUTOCONF
825 ACLOCAL
826 VERSION
827 PACKAGE
828 CYGPATH_W
829 am__isrc
830 INSTALL_DATA
831 INSTALL_SCRIPT
832 INSTALL_PROGRAM
833 mkinstalldirs
834 target_noncanonical
835 target_os
836 target_vendor
837 target_cpu
838 target
839 host_os
840 host_vendor
841 host_cpu
842 host
843 build_os
844 build_vendor
845 build_cpu
846 build
847 multi_basedir
848 target_alias
849 host_alias
850 build_alias
851 LIBS
852 ECHO_T
853 ECHO_N
854 ECHO_C
855 DEFS
856 mandir
857 localedir
858 libdir
859 psdir
860 pdfdir
861 dvidir
862 htmldir
863 infodir
864 docdir
865 oldincludedir
866 includedir
867 localstatedir
868 sharedstatedir
869 sysconfdir
870 datadir
871 datarootdir
872 libexecdir
873 sbindir
874 bindir
875 program_transform_name
876 prefix
877 exec_prefix
878 PACKAGE_URL
879 PACKAGE_BUGREPORT
880 PACKAGE_STRING
881 PACKAGE_VERSION
882 PACKAGE_TARNAME
883 PACKAGE_NAME
884 PATH_SEPARATOR
885 SHELL'
886 ac_subst_files=''
887 ac_user_opts='
888 enable_option_checking
889 enable_multilib
890 enable_dependency_tracking
891 enable_maintainer_mode
892 enable_shared
893 enable_static
894 with_pic
895 enable_fast_install
896 with_gnu_ld
897 enable_libtool_lock
898 with_target_subdir
899 with_cross_host
900 enable_parallel_mark
901 with_ecos
902 enable_gc_debug
903 '
904       ac_precious_vars='build_alias
905 host_alias
906 target_alias
907 CPP
908 CPPFLAGS
909 CXX
910 CXXFLAGS
911 LDFLAGS
912 LIBS
913 CCC
914 CXXCPP'
915
916
917 # Initialize some variables set by options.
918 ac_init_help=
919 ac_init_version=false
920 ac_unrecognized_opts=
921 ac_unrecognized_sep=
922 # The variables have the same names as the options, with
923 # dashes changed to underlines.
924 cache_file=/dev/null
925 exec_prefix=NONE
926 no_create=
927 no_recursion=
928 prefix=NONE
929 program_prefix=NONE
930 program_suffix=NONE
931 program_transform_name=s,x,x,
932 silent=
933 site=
934 srcdir=
935 verbose=
936 x_includes=NONE
937 x_libraries=NONE
938
939 # Installation directory options.
940 # These are left unexpanded so users can "make install exec_prefix=/foo"
941 # and all the variables that are supposed to be based on exec_prefix
942 # by default will actually change.
943 # Use braces instead of parens because sh, perl, etc. also accept them.
944 # (The list follows the same order as the GNU Coding Standards.)
945 bindir='${exec_prefix}/bin'
946 sbindir='${exec_prefix}/sbin'
947 libexecdir='${exec_prefix}/libexec'
948 datarootdir='${prefix}/share'
949 datadir='${datarootdir}'
950 sysconfdir='${prefix}/etc'
951 sharedstatedir='${prefix}/com'
952 localstatedir='${prefix}/var'
953 includedir='${prefix}/include'
954 oldincludedir='/usr/include'
955 docdir='${datarootdir}/doc/${PACKAGE}'
956 infodir='${datarootdir}/info'
957 htmldir='${docdir}'
958 dvidir='${docdir}'
959 pdfdir='${docdir}'
960 psdir='${docdir}'
961 libdir='${exec_prefix}/lib'
962 localedir='${datarootdir}/locale'
963 mandir='${datarootdir}/man'
964
965 ac_prev=
966 ac_dashdash=
967 for ac_option
968 do
969   # If the previous option needs an argument, assign it.
970   if test -n "$ac_prev"; then
971     eval $ac_prev=\$ac_option
972     ac_prev=
973     continue
974   fi
975
976   case $ac_option in
977   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978   *)    ac_optarg=yes ;;
979   esac
980
981   # Accept the important Cygnus configure options, so we can diagnose typos.
982
983   case $ac_dashdash$ac_option in
984   --)
985     ac_dashdash=yes ;;
986
987   -bindir | --bindir | --bindi | --bind | --bin | --bi)
988     ac_prev=bindir ;;
989   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
990     bindir=$ac_optarg ;;
991
992   -build | --build | --buil | --bui | --bu)
993     ac_prev=build_alias ;;
994   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
995     build_alias=$ac_optarg ;;
996
997   -cache-file | --cache-file | --cache-fil | --cache-fi \
998   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
999     ac_prev=cache_file ;;
1000   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1001   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1002     cache_file=$ac_optarg ;;
1003
1004   --config-cache | -C)
1005     cache_file=config.cache ;;
1006
1007   -datadir | --datadir | --datadi | --datad)
1008     ac_prev=datadir ;;
1009   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1010     datadir=$ac_optarg ;;
1011
1012   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1013   | --dataroo | --dataro | --datar)
1014     ac_prev=datarootdir ;;
1015   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1016   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1017     datarootdir=$ac_optarg ;;
1018
1019   -disable-* | --disable-*)
1020     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1021     # Reject names that are not valid shell variable names.
1022     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023       as_fn_error "invalid feature name: $ac_useropt"
1024     ac_useropt_orig=$ac_useropt
1025     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026     case $ac_user_opts in
1027       *"
1028 "enable_$ac_useropt"
1029 "*) ;;
1030       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031          ac_unrecognized_sep=', ';;
1032     esac
1033     eval enable_$ac_useropt=no ;;
1034
1035   -docdir | --docdir | --docdi | --doc | --do)
1036     ac_prev=docdir ;;
1037   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038     docdir=$ac_optarg ;;
1039
1040   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041     ac_prev=dvidir ;;
1042   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043     dvidir=$ac_optarg ;;
1044
1045   -enable-* | --enable-*)
1046     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047     # Reject names that are not valid shell variable names.
1048     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049       as_fn_error "invalid feature name: $ac_useropt"
1050     ac_useropt_orig=$ac_useropt
1051     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052     case $ac_user_opts in
1053       *"
1054 "enable_$ac_useropt"
1055 "*) ;;
1056       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1057          ac_unrecognized_sep=', ';;
1058     esac
1059     eval enable_$ac_useropt=\$ac_optarg ;;
1060
1061   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063   | --exec | --exe | --ex)
1064     ac_prev=exec_prefix ;;
1065   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067   | --exec=* | --exe=* | --ex=*)
1068     exec_prefix=$ac_optarg ;;
1069
1070   -gas | --gas | --ga | --g)
1071     # Obsolete; use --with-gas.
1072     with_gas=yes ;;
1073
1074   -help | --help | --hel | --he | -h)
1075     ac_init_help=long ;;
1076   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077     ac_init_help=recursive ;;
1078   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079     ac_init_help=short ;;
1080
1081   -host | --host | --hos | --ho)
1082     ac_prev=host_alias ;;
1083   -host=* | --host=* | --hos=* | --ho=*)
1084     host_alias=$ac_optarg ;;
1085
1086   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087     ac_prev=htmldir ;;
1088   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089   | --ht=*)
1090     htmldir=$ac_optarg ;;
1091
1092   -includedir | --includedir | --includedi | --included | --include \
1093   | --includ | --inclu | --incl | --inc)
1094     ac_prev=includedir ;;
1095   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096   | --includ=* | --inclu=* | --incl=* | --inc=*)
1097     includedir=$ac_optarg ;;
1098
1099   -infodir | --infodir | --infodi | --infod | --info | --inf)
1100     ac_prev=infodir ;;
1101   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102     infodir=$ac_optarg ;;
1103
1104   -libdir | --libdir | --libdi | --libd)
1105     ac_prev=libdir ;;
1106   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107     libdir=$ac_optarg ;;
1108
1109   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110   | --libexe | --libex | --libe)
1111     ac_prev=libexecdir ;;
1112   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113   | --libexe=* | --libex=* | --libe=*)
1114     libexecdir=$ac_optarg ;;
1115
1116   -localedir | --localedir | --localedi | --localed | --locale)
1117     ac_prev=localedir ;;
1118   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119     localedir=$ac_optarg ;;
1120
1121   -localstatedir | --localstatedir | --localstatedi | --localstated \
1122   | --localstate | --localstat | --localsta | --localst | --locals)
1123     ac_prev=localstatedir ;;
1124   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126     localstatedir=$ac_optarg ;;
1127
1128   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129     ac_prev=mandir ;;
1130   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131     mandir=$ac_optarg ;;
1132
1133   -nfp | --nfp | --nf)
1134     # Obsolete; use --without-fp.
1135     with_fp=no ;;
1136
1137   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138   | --no-cr | --no-c | -n)
1139     no_create=yes ;;
1140
1141   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143     no_recursion=yes ;;
1144
1145   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147   | --oldin | --oldi | --old | --ol | --o)
1148     ac_prev=oldincludedir ;;
1149   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152     oldincludedir=$ac_optarg ;;
1153
1154   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155     ac_prev=prefix ;;
1156   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157     prefix=$ac_optarg ;;
1158
1159   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160   | --program-pre | --program-pr | --program-p)
1161     ac_prev=program_prefix ;;
1162   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164     program_prefix=$ac_optarg ;;
1165
1166   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167   | --program-suf | --program-su | --program-s)
1168     ac_prev=program_suffix ;;
1169   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171     program_suffix=$ac_optarg ;;
1172
1173   -program-transform-name | --program-transform-name \
1174   | --program-transform-nam | --program-transform-na \
1175   | --program-transform-n | --program-transform- \
1176   | --program-transform | --program-transfor \
1177   | --program-transfo | --program-transf \
1178   | --program-trans | --program-tran \
1179   | --progr-tra | --program-tr | --program-t)
1180     ac_prev=program_transform_name ;;
1181   -program-transform-name=* | --program-transform-name=* \
1182   | --program-transform-nam=* | --program-transform-na=* \
1183   | --program-transform-n=* | --program-transform-=* \
1184   | --program-transform=* | --program-transfor=* \
1185   | --program-transfo=* | --program-transf=* \
1186   | --program-trans=* | --program-tran=* \
1187   | --progr-tra=* | --program-tr=* | --program-t=*)
1188     program_transform_name=$ac_optarg ;;
1189
1190   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191     ac_prev=pdfdir ;;
1192   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193     pdfdir=$ac_optarg ;;
1194
1195   -psdir | --psdir | --psdi | --psd | --ps)
1196     ac_prev=psdir ;;
1197   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198     psdir=$ac_optarg ;;
1199
1200   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201   | -silent | --silent | --silen | --sile | --sil)
1202     silent=yes ;;
1203
1204   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205     ac_prev=sbindir ;;
1206   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207   | --sbi=* | --sb=*)
1208     sbindir=$ac_optarg ;;
1209
1210   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212   | --sharedst | --shareds | --shared | --share | --shar \
1213   | --sha | --sh)
1214     ac_prev=sharedstatedir ;;
1215   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218   | --sha=* | --sh=*)
1219     sharedstatedir=$ac_optarg ;;
1220
1221   -site | --site | --sit)
1222     ac_prev=site ;;
1223   -site=* | --site=* | --sit=*)
1224     site=$ac_optarg ;;
1225
1226   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227     ac_prev=srcdir ;;
1228   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229     srcdir=$ac_optarg ;;
1230
1231   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232   | --syscon | --sysco | --sysc | --sys | --sy)
1233     ac_prev=sysconfdir ;;
1234   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236     sysconfdir=$ac_optarg ;;
1237
1238   -target | --target | --targe | --targ | --tar | --ta | --t)
1239     ac_prev=target_alias ;;
1240   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241     target_alias=$ac_optarg ;;
1242
1243   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244     verbose=yes ;;
1245
1246   -version | --version | --versio | --versi | --vers | -V)
1247     ac_init_version=: ;;
1248
1249   -with-* | --with-*)
1250     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251     # Reject names that are not valid shell variable names.
1252     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253       as_fn_error "invalid package name: $ac_useropt"
1254     ac_useropt_orig=$ac_useropt
1255     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256     case $ac_user_opts in
1257       *"
1258 "with_$ac_useropt"
1259 "*) ;;
1260       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261          ac_unrecognized_sep=', ';;
1262     esac
1263     eval with_$ac_useropt=\$ac_optarg ;;
1264
1265   -without-* | --without-*)
1266     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1267     # Reject names that are not valid shell variable names.
1268     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269       as_fn_error "invalid package name: $ac_useropt"
1270     ac_useropt_orig=$ac_useropt
1271     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272     case $ac_user_opts in
1273       *"
1274 "with_$ac_useropt"
1275 "*) ;;
1276       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1277          ac_unrecognized_sep=', ';;
1278     esac
1279     eval with_$ac_useropt=no ;;
1280
1281   --x)
1282     # Obsolete; use --with-x.
1283     with_x=yes ;;
1284
1285   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286   | --x-incl | --x-inc | --x-in | --x-i)
1287     ac_prev=x_includes ;;
1288   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290     x_includes=$ac_optarg ;;
1291
1292   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294     ac_prev=x_libraries ;;
1295   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297     x_libraries=$ac_optarg ;;
1298
1299   -*) as_fn_error "unrecognized option: \`$ac_option'
1300 Try \`$0 --help' for more information."
1301     ;;
1302
1303   *=*)
1304     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305     # Reject names that are not valid shell variable names.
1306     case $ac_envvar in #(
1307       '' | [0-9]* | *[!_$as_cr_alnum]* )
1308       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1309     esac
1310     eval $ac_envvar=\$ac_optarg
1311     export $ac_envvar ;;
1312
1313   *)
1314     # FIXME: should be removed in autoconf 3.0.
1315     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1319     ;;
1320
1321   esac
1322 done
1323
1324 if test -n "$ac_prev"; then
1325   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1326   as_fn_error "missing argument to $ac_option"
1327 fi
1328
1329 if test -n "$ac_unrecognized_opts"; then
1330   case $enable_option_checking in
1331     no) ;;
1332     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1333     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1334   esac
1335 fi
1336
1337 # Check all directory arguments for consistency.
1338 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339                 datadir sysconfdir sharedstatedir localstatedir includedir \
1340                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341                 libdir localedir mandir
1342 do
1343   eval ac_val=\$$ac_var
1344   # Remove trailing slashes.
1345   case $ac_val in
1346     */ )
1347       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348       eval $ac_var=\$ac_val;;
1349   esac
1350   # Be sure to have absolute directory names.
1351   case $ac_val in
1352     [\\/$]* | ?:[\\/]* )  continue;;
1353     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354   esac
1355   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1356 done
1357
1358 # There might be people who depend on the old broken behavior: `$host'
1359 # used to hold the argument of --host etc.
1360 # FIXME: To remove some day.
1361 build=$build_alias
1362 host=$host_alias
1363 target=$target_alias
1364
1365 # FIXME: To remove some day.
1366 if test "x$host_alias" != x; then
1367   if test "x$build_alias" = x; then
1368     cross_compiling=maybe
1369     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1370     If a cross compiler is detected then cross compile mode will be used." >&2
1371   elif test "x$build_alias" != "x$host_alias"; then
1372     cross_compiling=yes
1373   fi
1374 fi
1375
1376 ac_tool_prefix=
1377 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378
1379 test "$silent" = yes && exec 6>/dev/null
1380
1381
1382 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di=`ls -di .` &&
1384 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385   as_fn_error "working directory cannot be determined"
1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387   as_fn_error "pwd does not report name of working directory"
1388
1389
1390 # Find the source files, if location was not specified.
1391 if test -z "$srcdir"; then
1392   ac_srcdir_defaulted=yes
1393   # Try the directory containing this script, then the parent directory.
1394   ac_confdir=`$as_dirname -- "$as_myself" ||
1395 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396          X"$as_myself" : 'X\(//\)[^/]' \| \
1397          X"$as_myself" : 'X\(//\)$' \| \
1398          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399 $as_echo X"$as_myself" |
1400     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401             s//\1/
1402             q
1403           }
1404           /^X\(\/\/\)[^/].*/{
1405             s//\1/
1406             q
1407           }
1408           /^X\(\/\/\)$/{
1409             s//\1/
1410             q
1411           }
1412           /^X\(\/\).*/{
1413             s//\1/
1414             q
1415           }
1416           s/.*/./; q'`
1417   srcdir=$ac_confdir
1418   if test ! -r "$srcdir/$ac_unique_file"; then
1419     srcdir=..
1420   fi
1421 else
1422   ac_srcdir_defaulted=no
1423 fi
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1426   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1427 fi
1428 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429 ac_abs_confdir=`(
1430         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1431         pwd)`
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1434   srcdir=.
1435 fi
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1439 case $srcdir in
1440 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 esac
1442 for ac_var in $ac_precious_vars; do
1443   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444   eval ac_env_${ac_var}_value=\$${ac_var}
1445   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447 done
1448
1449 #
1450 # Report the --help message.
1451 #
1452 if test "$ac_init_help" = "long"; then
1453   # Omit some internal or obsolete options to make the list less imposing.
1454   # This message is too long to be a string in the A/UX 3.1 sh.
1455   cat <<_ACEOF
1456 \`configure' configures this package to adapt to many kinds of systems.
1457
1458 Usage: $0 [OPTION]... [VAR=VALUE]...
1459
1460 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461 VAR=VALUE.  See below for descriptions of some of the useful variables.
1462
1463 Defaults for the options are specified in brackets.
1464
1465 Configuration:
1466   -h, --help              display this help and exit
1467       --help=short        display options specific to this package
1468       --help=recursive    display the short help of all the included packages
1469   -V, --version           display version information and exit
1470   -q, --quiet, --silent   do not print \`checking...' messages
1471       --cache-file=FILE   cache test results in FILE [disabled]
1472   -C, --config-cache      alias for \`--cache-file=config.cache'
1473   -n, --no-create         do not create output files
1474       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1475
1476 Installation directories:
1477   --prefix=PREFIX         install architecture-independent files in PREFIX
1478                           [$ac_default_prefix]
1479   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1480                           [PREFIX]
1481
1482 By default, \`make install' will install all the files in
1483 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1484 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485 for instance \`--prefix=\$HOME'.
1486
1487 For better control, use the options below.
1488
1489 Fine tuning of the installation directories:
1490   --bindir=DIR            user executables [EPREFIX/bin]
1491   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1492   --libexecdir=DIR        program executables [EPREFIX/libexec]
1493   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1494   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1495   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1496   --libdir=DIR            object code libraries [EPREFIX/lib]
1497   --includedir=DIR        C header files [PREFIX/include]
1498   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1499   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1500   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1501   --infodir=DIR           info documentation [DATAROOTDIR/info]
1502   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1503   --mandir=DIR            man documentation [DATAROOTDIR/man]
1504   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1505   --htmldir=DIR           html documentation [DOCDIR]
1506   --dvidir=DIR            dvi documentation [DOCDIR]
1507   --pdfdir=DIR            pdf documentation [DOCDIR]
1508   --psdir=DIR             ps documentation [DOCDIR]
1509 _ACEOF
1510
1511   cat <<\_ACEOF
1512
1513 Program names:
1514   --program-prefix=PREFIX            prepend PREFIX to installed program names
1515   --program-suffix=SUFFIX            append SUFFIX to installed program names
1516   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1517
1518 System types:
1519   --build=BUILD     configure for building on BUILD [guessed]
1520   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1521   --target=TARGET   configure for building compilers for TARGET [HOST]
1522 _ACEOF
1523 fi
1524
1525 if test -n "$ac_init_help"; then
1526
1527   cat <<\_ACEOF
1528
1529 Optional Features:
1530   --disable-option-checking  ignore unrecognized --enable/--with options
1531   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1532   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1533   --enable-multilib       build many library versions (default)
1534   --disable-dependency-tracking  speeds up one-time build
1535   --enable-dependency-tracking   do not reject slow dependency extractors
1536   --enable-maintainer-mode  enable make rules and dependencies not useful
1537                           (and sometimes confusing) to the casual installer
1538   --enable-shared[=PKGS]  build shared libraries [default=yes]
1539   --enable-static[=PKGS]  build static libraries [default=yes]
1540   --enable-fast-install[=PKGS]
1541                           optimize for fast installation [default=yes]
1542   --disable-libtool-lock  avoid locking (might break parallel builds)
1543   --enable-parallel-mark        parallelize marking and free list construction
1544   --enable-gc-debug     include full support for pointer backtracing etc.
1545
1546 Optional Packages:
1547   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1548   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1549   --with-pic              try to use only PIC/non-PIC objects [default=use
1550                           both]
1551   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1552   --with-target-subdir=SUBDIR
1553                           configuring with a cross compiler
1554   --with-cross-host=HOST  configuring with a cross compiler
1555   --with-ecos             enable runtime eCos target support
1556
1557 Some influential environment variables:
1558   CC          C compiler command
1559   CFLAGS      C compiler flags
1560   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1561               nonstandard directory <lib dir>
1562   LIBS        libraries to pass to the linker, e.g. -l<library>
1563   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1564               you have headers in a nonstandard directory <include dir>
1565   CXX         C++ compiler command
1566   CXXFLAGS    C++ compiler flags
1567   CPP         C preprocessor
1568   CXXCPP      C++ preprocessor
1569
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1572
1573 Report bugs to the package provider.
1574 _ACEOF
1575 ac_status=$?
1576 fi
1577
1578 if test "$ac_init_help" = "recursive"; then
1579   # If there are subdirs, report their specific --help.
1580   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581     test -d "$ac_dir" ||
1582       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583       continue
1584     ac_builddir=.
1585
1586 case "$ac_dir" in
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *)
1589   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590   # A ".." for each directory in $ac_dir_suffix.
1591   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592   case $ac_top_builddir_sub in
1593   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595   esac ;;
1596 esac
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1601
1602 case $srcdir in
1603   .)  # We are building in place.
1604     ac_srcdir=.
1605     ac_top_srcdir=$ac_top_builddir_sub
1606     ac_abs_top_srcdir=$ac_pwd ;;
1607   [\\/]* | ?:[\\/]* )  # Absolute name.
1608     ac_srcdir=$srcdir$ac_dir_suffix;
1609     ac_top_srcdir=$srcdir
1610     ac_abs_top_srcdir=$srcdir ;;
1611   *) # Relative name.
1612     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613     ac_top_srcdir=$ac_top_build_prefix$srcdir
1614     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 esac
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618     cd "$ac_dir" || { ac_status=$?; continue; }
1619     # Check for guested configure.
1620     if test -f "$ac_srcdir/configure.gnu"; then
1621       echo &&
1622       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623     elif test -f "$ac_srcdir/configure"; then
1624       echo &&
1625       $SHELL "$ac_srcdir/configure" --help=recursive
1626     else
1627       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628     fi || ac_status=$?
1629     cd "$ac_pwd" || { ac_status=$?; break; }
1630   done
1631 fi
1632
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1635   cat <<\_ACEOF
1636 configure
1637 generated by GNU Autoconf 2.64
1638
1639 Copyright (C) 2009 Free Software Foundation, Inc.
1640 This configure script is free software; the Free Software Foundation
1641 gives unlimited permission to copy, distribute and modify it.
1642 _ACEOF
1643   exit
1644 fi
1645
1646 ## ------------------------ ##
1647 ## Autoconf initialization. ##
1648 ## ------------------------ ##
1649
1650 # ac_fn_c_try_compile LINENO
1651 # --------------------------
1652 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_compile ()
1654 {
1655   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656   rm -f conftest.$ac_objext
1657   if { { ac_try="$ac_compile"
1658 case "(($ac_try" in
1659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660   *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664   (eval "$ac_compile") 2>conftest.err
1665   ac_status=$?
1666   if test -s conftest.err; then
1667     grep -v '^ *+' conftest.err >conftest.er1
1668     cat conftest.er1 >&5
1669     mv -f conftest.er1 conftest.err
1670   fi
1671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672   test $ac_status = 0; } && {
1673          test -z "$ac_c_werror_flag" ||
1674          test ! -s conftest.err
1675        } && test -s conftest.$ac_objext; then :
1676   ac_retval=0
1677 else
1678   $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681         ac_retval=1
1682 fi
1683   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684   return $ac_retval
1685
1686 } # ac_fn_c_try_compile
1687
1688 # ac_fn_cxx_try_compile LINENO
1689 # ----------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_cxx_try_compile ()
1692 {
1693   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694   rm -f conftest.$ac_objext
1695   if { { ac_try="$ac_compile"
1696 case "(($ac_try" in
1697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698   *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702   (eval "$ac_compile") 2>conftest.err
1703   ac_status=$?
1704   if test -s conftest.err; then
1705     grep -v '^ *+' conftest.err >conftest.er1
1706     cat conftest.er1 >&5
1707     mv -f conftest.er1 conftest.err
1708   fi
1709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710   test $ac_status = 0; } && {
1711          test -z "$ac_cxx_werror_flag" ||
1712          test ! -s conftest.err
1713        } && test -s conftest.$ac_objext; then :
1714   ac_retval=0
1715 else
1716   $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719         ac_retval=1
1720 fi
1721   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722   return $ac_retval
1723
1724 } # ac_fn_cxx_try_compile
1725
1726 # ac_fn_c_try_link LINENO
1727 # -----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_link ()
1730 {
1731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732   rm -f conftest.$ac_objext conftest$ac_exeext
1733   if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736   *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740   (eval "$ac_link") 2>conftest.err
1741   ac_status=$?
1742   if test -s conftest.err; then
1743     grep -v '^ *+' conftest.err >conftest.er1
1744     cat conftest.er1 >&5
1745     mv -f conftest.er1 conftest.err
1746   fi
1747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748   test $ac_status = 0; } && {
1749          test -z "$ac_c_werror_flag" ||
1750          test ! -s conftest.err
1751        } && test -s conftest$ac_exeext && {
1752          test "$cross_compiling" = yes ||
1753          $as_test_x conftest$ac_exeext
1754        }; then :
1755   ac_retval=0
1756 else
1757   $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760         ac_retval=1
1761 fi
1762   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764   # interfere with the next link command; also delete a directory that is
1765   # left behind by Apple's compiler.  We do this before executing the actions.
1766   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768   return $ac_retval
1769
1770 } # ac_fn_c_try_link
1771
1772 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1773 # -------------------------------------------------------
1774 # Tests whether HEADER exists and can be compiled using the include files in
1775 # INCLUDES, setting the cache variable VAR accordingly.
1776 ac_fn_c_check_header_compile ()
1777 {
1778   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782   $as_echo_n "(cached) " >&6
1783 else
1784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h.  */
1786 $4
1787 #include <$2>
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790   eval "$3=yes"
1791 else
1792   eval "$3=no"
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 fi
1796 eval ac_res=\$$3
1797                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800
1801 } # ac_fn_c_check_header_compile
1802
1803 # ac_fn_c_try_cpp LINENO
1804 # ----------------------
1805 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_c_try_cpp ()
1807 {
1808   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809   if { { ac_try="$ac_cpp conftest.$ac_ext"
1810 case "(($ac_try" in
1811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812   *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1817   ac_status=$?
1818   if test -s conftest.err; then
1819     grep -v '^ *+' conftest.err >conftest.er1
1820     cat conftest.er1 >&5
1821     mv -f conftest.er1 conftest.err
1822   fi
1823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824   test $ac_status = 0; } >/dev/null && {
1825          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1826          test ! -s conftest.err
1827        }; then :
1828   ac_retval=0
1829 else
1830   $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833     ac_retval=1
1834 fi
1835   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836   return $ac_retval
1837
1838 } # ac_fn_c_try_cpp
1839
1840 # ac_fn_c_try_run LINENO
1841 # ----------------------
1842 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1843 # that executables *can* be run.
1844 ac_fn_c_try_run ()
1845 {
1846   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847   if { { ac_try="$ac_link"
1848 case "(($ac_try" in
1849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850   *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854   (eval "$ac_link") 2>&5
1855   ac_status=$?
1856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1858   { { case "(($ac_try" in
1859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860   *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864   (eval "$ac_try") 2>&5
1865   ac_status=$?
1866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867   test $ac_status = 0; }; }; then :
1868   ac_retval=0
1869 else
1870   $as_echo "$as_me: program exited with status $ac_status" >&5
1871        $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874        ac_retval=$ac_status
1875 fi
1876   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878   return $ac_retval
1879
1880 } # ac_fn_c_try_run
1881
1882 # ac_fn_c_check_func LINENO FUNC VAR
1883 # ----------------------------------
1884 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1885 ac_fn_c_check_func ()
1886 {
1887   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891   $as_echo_n "(cached) " >&6
1892 else
1893   if test x$gcc_no_link = xyes; then
1894   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1895 fi
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h.  */
1898 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1899    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1900 #define $2 innocuous_$2
1901
1902 /* System header to define __stub macros and hopefully few prototypes,
1903     which can conflict with char $2 (); below.
1904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1905     <limits.h> exists even on freestanding compilers.  */
1906
1907 #ifdef __STDC__
1908 # include <limits.h>
1909 #else
1910 # include <assert.h>
1911 #endif
1912
1913 #undef $2
1914
1915 /* Override any GCC internal prototype to avoid an error.
1916    Use char because int might match the return type of a GCC
1917    builtin and then its argument prototype would still apply.  */
1918 #ifdef __cplusplus
1919 extern "C"
1920 #endif
1921 char $2 ();
1922 /* The GNU C library defines this for functions which it implements
1923     to always fail with ENOSYS.  Some functions are actually named
1924     something starting with __ and the normal name is an alias.  */
1925 #if defined __stub_$2 || defined __stub___$2
1926 choke me
1927 #endif
1928
1929 int
1930 main ()
1931 {
1932 return $2 ();
1933   ;
1934   return 0;
1935 }
1936 _ACEOF
1937 if ac_fn_c_try_link "$LINENO"; then :
1938   eval "$3=yes"
1939 else
1940   eval "$3=no"
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext \
1943     conftest$ac_exeext conftest.$ac_ext
1944 fi
1945 eval ac_res=\$$3
1946                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949
1950 } # ac_fn_c_check_func
1951
1952 # ac_fn_cxx_try_cpp LINENO
1953 # ------------------------
1954 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1955 ac_fn_cxx_try_cpp ()
1956 {
1957   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958   if { { ac_try="$ac_cpp conftest.$ac_ext"
1959 case "(($ac_try" in
1960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961   *) ac_try_echo=$ac_try;;
1962 esac
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1966   ac_status=$?
1967   if test -s conftest.err; then
1968     grep -v '^ *+' conftest.err >conftest.er1
1969     cat conftest.er1 >&5
1970     mv -f conftest.er1 conftest.err
1971   fi
1972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973   test $ac_status = 0; } >/dev/null && {
1974          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1975          test ! -s conftest.err
1976        }; then :
1977   ac_retval=0
1978 else
1979   $as_echo "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1981
1982     ac_retval=1
1983 fi
1984   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985   return $ac_retval
1986
1987 } # ac_fn_cxx_try_cpp
1988
1989 # ac_fn_cxx_try_link LINENO
1990 # -------------------------
1991 # Try to link conftest.$ac_ext, and return whether this succeeded.
1992 ac_fn_cxx_try_link ()
1993 {
1994   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995   rm -f conftest.$ac_objext conftest$ac_exeext
1996   if { { ac_try="$ac_link"
1997 case "(($ac_try" in
1998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999   *) ac_try_echo=$ac_try;;
2000 esac
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003   (eval "$ac_link") 2>conftest.err
2004   ac_status=$?
2005   if test -s conftest.err; then
2006     grep -v '^ *+' conftest.err >conftest.er1
2007     cat conftest.er1 >&5
2008     mv -f conftest.er1 conftest.err
2009   fi
2010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011   test $ac_status = 0; } && {
2012          test -z "$ac_cxx_werror_flag" ||
2013          test ! -s conftest.err
2014        } && test -s conftest$ac_exeext && {
2015          test "$cross_compiling" = yes ||
2016          $as_test_x conftest$ac_exeext
2017        }; then :
2018   ac_retval=0
2019 else
2020   $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2022
2023         ac_retval=1
2024 fi
2025   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2026   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2027   # interfere with the next link command; also delete a directory that is
2028   # left behind by Apple's compiler.  We do this before executing the actions.
2029   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031   return $ac_retval
2032
2033 } # ac_fn_cxx_try_link
2034
2035 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2036 # ----------------------------------------------------
2037 # Tries to find if the field MEMBER exists in type AGGR, after including
2038 # INCLUDES, setting cache variable VAR accordingly.
2039 ac_fn_c_check_member ()
2040 {
2041   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2043 $as_echo_n "checking for $2.$3... " >&6; }
2044 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2045   $as_echo_n "(cached) " >&6
2046 else
2047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h.  */
2049 $5
2050 int
2051 main ()
2052 {
2053 static $2 ac_aggr;
2054 if (ac_aggr.$3)
2055 return 0;
2056   ;
2057   return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061   eval "$4=yes"
2062 else
2063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h.  */
2065 $5
2066 int
2067 main ()
2068 {
2069 static $2 ac_aggr;
2070 if (sizeof ac_aggr.$3)
2071 return 0;
2072   ;
2073   return 0;
2074 }
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077   eval "$4=yes"
2078 else
2079   eval "$4=no"
2080 fi
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 fi
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 fi
2085 eval ac_res=\$$4
2086                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2088   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2089
2090 } # ac_fn_c_check_member
2091
2092 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2093 # -------------------------------------------------------
2094 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2095 # the include files in INCLUDES and setting the cache variable VAR
2096 # accordingly.
2097 ac_fn_c_check_header_mongrel ()
2098 {
2099   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102 $as_echo_n "checking for $2... " >&6; }
2103 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2104   $as_echo_n "(cached) " >&6
2105 fi
2106 eval ac_res=\$$3
2107                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109 else
2110   # Is the header compilable?
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2112 $as_echo_n "checking $2 usability... " >&6; }
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h.  */
2115 $4
2116 #include <$2>
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119   ac_header_compiler=yes
2120 else
2121   ac_header_compiler=no
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2125 $as_echo "$ac_header_compiler" >&6; }
2126
2127 # Is the header present?
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2129 $as_echo_n "checking $2 presence... " >&6; }
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h.  */
2132 #include <$2>
2133 _ACEOF
2134 if ac_fn_c_try_cpp "$LINENO"; then :
2135   ac_header_preproc=yes
2136 else
2137   ac_header_preproc=no
2138 fi
2139 rm -f conftest.err conftest.$ac_ext
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2141 $as_echo "$ac_header_preproc" >&6; }
2142
2143 # So?  What about this header?
2144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2145   yes:no: )
2146     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2147 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2148     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2149 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2150     ;;
2151   no:yes:* )
2152     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2153 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2154     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2155 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2156     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2157 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2158     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2159 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2160     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2161 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2162     ;;
2163 esac
2164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2165 $as_echo_n "checking for $2... " >&6; }
2166 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2167   $as_echo_n "(cached) " >&6
2168 else
2169   eval "$3=\$ac_header_compiler"
2170 fi
2171 eval ac_res=\$$3
2172                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173 $as_echo "$ac_res" >&6; }
2174 fi
2175   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2176
2177 } # ac_fn_c_check_header_mongrel
2178 cat >config.log <<_ACEOF
2179 This file contains any messages produced by compilers while
2180 running configure, to aid debugging if configure makes a mistake.
2181
2182 It was created by $as_me, which was
2183 generated by GNU Autoconf 2.64.  Invocation command line was
2184
2185   $ $0 $@
2186
2187 _ACEOF
2188 exec 5>>config.log
2189 {
2190 cat <<_ASUNAME
2191 ## --------- ##
2192 ## Platform. ##
2193 ## --------- ##
2194
2195 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2196 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2197 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2198 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2199 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2200
2201 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2202 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2203
2204 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2205 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2206 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2207 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2208 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2209 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2210 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2211
2212 _ASUNAME
2213
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 for as_dir in $PATH
2216 do
2217   IFS=$as_save_IFS
2218   test -z "$as_dir" && as_dir=.
2219     $as_echo "PATH: $as_dir"
2220   done
2221 IFS=$as_save_IFS
2222
2223 } >&5
2224
2225 cat >&5 <<_ACEOF
2226
2227
2228 ## ----------- ##
2229 ## Core tests. ##
2230 ## ----------- ##
2231
2232 _ACEOF
2233
2234
2235 # Keep a trace of the command line.
2236 # Strip out --no-create and --no-recursion so they do not pile up.
2237 # Strip out --silent because we don't want to record it for future runs.
2238 # Also quote any args containing shell meta-characters.
2239 # Make two passes to allow for proper duplicate-argument suppression.
2240 ac_configure_args=
2241 ac_configure_args0=
2242 ac_configure_args1=
2243 ac_must_keep_next=false
2244 for ac_pass in 1 2
2245 do
2246   for ac_arg
2247   do
2248     case $ac_arg in
2249     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2250     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2251     | -silent | --silent | --silen | --sile | --sil)
2252       continue ;;
2253     *\'*)
2254       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2255     esac
2256     case $ac_pass in
2257     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2258     2)
2259       as_fn_append ac_configure_args1 " '$ac_arg'"
2260       if test $ac_must_keep_next = true; then
2261         ac_must_keep_next=false # Got value, back to normal.
2262       else
2263         case $ac_arg in
2264           *=* | --config-cache | -C | -disable-* | --disable-* \
2265           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2266           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2267           | -with-* | --with-* | -without-* | --without-* | --x)
2268             case "$ac_configure_args0 " in
2269               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2270             esac
2271             ;;
2272           -* ) ac_must_keep_next=true ;;
2273         esac
2274       fi
2275       as_fn_append ac_configure_args " '$ac_arg'"
2276       ;;
2277     esac
2278   done
2279 done
2280 { ac_configure_args0=; unset ac_configure_args0;}
2281 { ac_configure_args1=; unset ac_configure_args1;}
2282
2283 # When interrupted or exit'd, cleanup temporary files, and complete
2284 # config.log.  We remove comments because anyway the quotes in there
2285 # would cause problems or look ugly.
2286 # WARNING: Use '\'' to represent an apostrophe within the trap.
2287 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2288 trap 'exit_status=$?
2289   # Save into config.log some information that might help in debugging.
2290   {
2291     echo
2292
2293     cat <<\_ASBOX
2294 ## ---------------- ##
2295 ## Cache variables. ##
2296 ## ---------------- ##
2297 _ASBOX
2298     echo
2299     # The following way of writing the cache mishandles newlines in values,
2300 (
2301   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2302     eval ac_val=\$$ac_var
2303     case $ac_val in #(
2304     *${as_nl}*)
2305       case $ac_var in #(
2306       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2307 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2308       esac
2309       case $ac_var in #(
2310       _ | IFS | as_nl) ;; #(
2311       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2312       *) { eval $ac_var=; unset $ac_var;} ;;
2313       esac ;;
2314     esac
2315   done
2316   (set) 2>&1 |
2317     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2318     *${as_nl}ac_space=\ *)
2319       sed -n \
2320         "s/'\''/'\''\\\\'\'''\''/g;
2321           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2322       ;; #(
2323     *)
2324       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2325       ;;
2326     esac |
2327     sort
2328 )
2329     echo
2330
2331     cat <<\_ASBOX
2332 ## ----------------- ##
2333 ## Output variables. ##
2334 ## ----------------- ##
2335 _ASBOX
2336     echo
2337     for ac_var in $ac_subst_vars
2338     do
2339       eval ac_val=\$$ac_var
2340       case $ac_val in
2341       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2342       esac
2343       $as_echo "$ac_var='\''$ac_val'\''"
2344     done | sort
2345     echo
2346
2347     if test -n "$ac_subst_files"; then
2348       cat <<\_ASBOX
2349 ## ------------------- ##
2350 ## File substitutions. ##
2351 ## ------------------- ##
2352 _ASBOX
2353       echo
2354       for ac_var in $ac_subst_files
2355       do
2356         eval ac_val=\$$ac_var
2357         case $ac_val in
2358         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2359         esac
2360         $as_echo "$ac_var='\''$ac_val'\''"
2361       done | sort
2362       echo
2363     fi
2364
2365     if test -s confdefs.h; then
2366       cat <<\_ASBOX
2367 ## ----------- ##
2368 ## confdefs.h. ##
2369 ## ----------- ##
2370 _ASBOX
2371       echo
2372       cat confdefs.h
2373       echo
2374     fi
2375     test "$ac_signal" != 0 &&
2376       $as_echo "$as_me: caught signal $ac_signal"
2377     $as_echo "$as_me: exit $exit_status"
2378   } >&5
2379   rm -f core *.core core.conftest.* &&
2380     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2381     exit $exit_status
2382 ' 0
2383 for ac_signal in 1 2 13 15; do
2384   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2385 done
2386 ac_signal=0
2387
2388 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2389 rm -f -r conftest* confdefs.h
2390
2391 $as_echo "/* confdefs.h */" > confdefs.h
2392
2393 # Predefined preprocessor variables.
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_NAME "$PACKAGE_NAME"
2397 _ACEOF
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2401 _ACEOF
2402
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2405 _ACEOF
2406
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_STRING "$PACKAGE_STRING"
2409 _ACEOF
2410
2411 cat >>confdefs.h <<_ACEOF
2412 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2413 _ACEOF
2414
2415 cat >>confdefs.h <<_ACEOF
2416 #define PACKAGE_URL "$PACKAGE_URL"
2417 _ACEOF
2418
2419
2420 # Let the site file select an alternate cache file if it wants to.
2421 # Prefer an explicitly selected file to automatically selected ones.
2422 ac_site_file1=NONE
2423 ac_site_file2=NONE
2424 if test -n "$CONFIG_SITE"; then
2425   ac_site_file1=$CONFIG_SITE
2426 elif test "x$prefix" != xNONE; then
2427   ac_site_file1=$prefix/share/config.site
2428   ac_site_file2=$prefix/etc/config.site
2429 else
2430   ac_site_file1=$ac_default_prefix/share/config.site
2431   ac_site_file2=$ac_default_prefix/etc/config.site
2432 fi
2433 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2434 do
2435   test "x$ac_site_file" = xNONE && continue
2436   if test -r "$ac_site_file"; then
2437     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2438 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2439     sed 's/^/| /' "$ac_site_file" >&5
2440     . "$ac_site_file"
2441   fi
2442 done
2443
2444 if test -r "$cache_file"; then
2445   # Some versions of bash will fail to source /dev/null (special
2446   # files actually), so we avoid doing that.
2447   if test -f "$cache_file"; then
2448     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2449 $as_echo "$as_me: loading cache $cache_file" >&6;}
2450     case $cache_file in
2451       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2452       *)                      . "./$cache_file";;
2453     esac
2454   fi
2455 else
2456   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2457 $as_echo "$as_me: creating cache $cache_file" >&6;}
2458   >$cache_file
2459 fi
2460
2461 # Check that the precious variables saved in the cache have kept the same
2462 # value.
2463 ac_cache_corrupted=false
2464 for ac_var in $ac_precious_vars; do
2465   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2466   eval ac_new_set=\$ac_env_${ac_var}_set
2467   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2468   eval ac_new_val=\$ac_env_${ac_var}_value
2469   case $ac_old_set,$ac_new_set in
2470     set,)
2471       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2472 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2473       ac_cache_corrupted=: ;;
2474     ,set)
2475       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2476 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2477       ac_cache_corrupted=: ;;
2478     ,);;
2479     *)
2480       if test "x$ac_old_val" != "x$ac_new_val"; then
2481         # differences in whitespace do not lead to failure.
2482         ac_old_val_w=`echo x $ac_old_val`
2483         ac_new_val_w=`echo x $ac_new_val`
2484         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2485           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2486 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2487           ac_cache_corrupted=:
2488         else
2489           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2490 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2491           eval $ac_var=\$ac_old_val
2492         fi
2493         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2494 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2495         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2496 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2497       fi;;
2498   esac
2499   # Pass precious variables to config.status.
2500   if test "$ac_new_set" = set; then
2501     case $ac_new_val in
2502     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2503     *) ac_arg=$ac_var=$ac_new_val ;;
2504     esac
2505     case " $ac_configure_args " in
2506       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2507       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2508     esac
2509   fi
2510 done
2511 if $ac_cache_corrupted; then
2512   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2514   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2515 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2516   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2517 fi
2518 ## -------------------- ##
2519 ## Main body of script. ##
2520 ## -------------------- ##
2521
2522 ac_ext=c
2523 ac_cpp='$CPP $CPPFLAGS'
2524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2527
2528
2529
2530
2531
2532
2533 # This works around the fact that libtool configuration may change LD
2534 # for this particular configuration, but some shells, instead of
2535 # keeping the changes in LD private, export them just because LD is
2536 # exported.
2537 ORIGINAL_LD_FOR_MULTILIBS=$LD
2538
2539 # Default to --enable-multilib
2540 # Check whether --enable-multilib was given.
2541 if test "${enable_multilib+set}" = set; then :
2542   enableval=$enable_multilib; case "$enableval" in
2543   yes) multilib=yes ;;
2544   no)  multilib=no ;;
2545   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2546  esac
2547 else
2548   multilib=yes
2549 fi
2550
2551
2552 # We may get other options which we leave undocumented:
2553 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2554 # See config-ml.in if you want the gory details.
2555
2556 if test "$srcdir" = "."; then
2557   if test "$with_target_subdir" != "."; then
2558     multi_basedir="$srcdir/$with_multisrctop../.."
2559   else
2560     multi_basedir="$srcdir/$with_multisrctop.."
2561   fi
2562 else
2563   multi_basedir="$srcdir/.."
2564 fi
2565
2566
2567 # Even if the default multilib is not a cross compilation,
2568 # it may be that some of the other multilibs are.
2569 if test $cross_compiling = no && test $multilib = yes \
2570    && test "x${with_multisubdir}" != x ; then
2571    cross_compiling=maybe
2572 fi
2573
2574 ac_config_commands="$ac_config_commands default-1"
2575
2576
2577 ac_aux_dir=
2578 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2579   for ac_t in install-sh install.sh shtool; do
2580     if test -f "$ac_dir/$ac_t"; then
2581       ac_aux_dir=$ac_dir
2582       ac_install_sh="$ac_aux_dir/$ac_t -c"
2583       break 2
2584     fi
2585   done
2586 done
2587 if test -z "$ac_aux_dir"; then
2588   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2589 fi
2590
2591 # These three variables are undocumented and unsupported,
2592 # and are intended to be withdrawn in a future Autoconf release.
2593 # They can cause serious problems if a builder's source tree is in a directory
2594 # whose full name contains unusual characters.
2595 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2596 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2597 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2598
2599
2600 # Make sure we can run config.sub.
2601 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2602   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2603
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2605 $as_echo_n "checking build system type... " >&6; }
2606 if test "${ac_cv_build+set}" = set; then :
2607   $as_echo_n "(cached) " >&6
2608 else
2609   ac_build_alias=$build_alias
2610 test "x$ac_build_alias" = x &&
2611   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2612 test "x$ac_build_alias" = x &&
2613   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2614 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2615   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2616
2617 fi
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2619 $as_echo "$ac_cv_build" >&6; }
2620 case $ac_cv_build in
2621 *-*-*) ;;
2622 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2623 esac
2624 build=$ac_cv_build
2625 ac_save_IFS=$IFS; IFS='-'
2626 set x $ac_cv_build
2627 shift
2628 build_cpu=$1
2629 build_vendor=$2
2630 shift; shift
2631 # Remember, the first character of IFS is used to create $*,
2632 # except with old shells:
2633 build_os=$*
2634 IFS=$ac_save_IFS
2635 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2636
2637
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2639 $as_echo_n "checking host system type... " >&6; }
2640 if test "${ac_cv_host+set}" = set; then :
2641   $as_echo_n "(cached) " >&6
2642 else
2643   if test "x$host_alias" = x; then
2644   ac_cv_host=$ac_cv_build
2645 else
2646   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2647     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2648 fi
2649
2650 fi
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2652 $as_echo "$ac_cv_host" >&6; }
2653 case $ac_cv_host in
2654 *-*-*) ;;
2655 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2656 esac
2657 host=$ac_cv_host
2658 ac_save_IFS=$IFS; IFS='-'
2659 set x $ac_cv_host
2660 shift
2661 host_cpu=$1
2662 host_vendor=$2
2663 shift; shift
2664 # Remember, the first character of IFS is used to create $*,
2665 # except with old shells:
2666 host_os=$*
2667 IFS=$ac_save_IFS
2668 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2669
2670
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2672 $as_echo_n "checking target system type... " >&6; }
2673 if test "${ac_cv_target+set}" = set; then :
2674   $as_echo_n "(cached) " >&6
2675 else
2676   if test "x$target_alias" = x; then
2677   ac_cv_target=$ac_cv_host
2678 else
2679   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2680     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2681 fi
2682
2683 fi
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2685 $as_echo "$ac_cv_target" >&6; }
2686 case $ac_cv_target in
2687 *-*-*) ;;
2688 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2689 esac
2690 target=$ac_cv_target
2691 ac_save_IFS=$IFS; IFS='-'
2692 set x $ac_cv_target
2693 shift
2694 target_cpu=$1
2695 target_vendor=$2
2696 shift; shift
2697 # Remember, the first character of IFS is used to create $*,
2698 # except with old shells:
2699 target_os=$*
2700 IFS=$ac_save_IFS
2701 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2702
2703
2704 # The aliases save the names the user supplied, while $host etc.
2705 # will get canonicalized.
2706 test -n "$target_alias" &&
2707   test "$program_prefix$program_suffix$program_transform_name" = \
2708     NONENONEs,x,x, &&
2709   program_prefix=${target_alias}-
2710
2711 # Get the 'noncanonical' system names.
2712  case ${build_alias} in
2713   "") build_noncanonical=${build} ;;
2714   *) build_noncanonical=${build_alias} ;;
2715 esac
2716
2717  case ${host_alias} in
2718   "") host_noncanonical=${build_noncanonical} ;;
2719   *) host_noncanonical=${host_alias} ;;
2720 esac
2721
2722  case ${target_alias} in
2723   "") target_noncanonical=${host_noncanonical} ;;
2724   *) target_noncanonical=${target_alias} ;;
2725 esac
2726
2727
2728
2729
2730 # This works around an automake problem.
2731 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
2732
2733
2734 am__api_version='1.11'
2735
2736 # Find a good install program.  We prefer a C program (faster),
2737 # so one script is as good as another.  But avoid the broken or
2738 # incompatible versions:
2739 # SysV /etc/install, /usr/sbin/install
2740 # SunOS /usr/etc/install
2741 # IRIX /sbin/install
2742 # AIX /bin/install
2743 # AmigaOS /C/install, which installs bootblocks on floppy discs
2744 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2745 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2746 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2747 # OS/2's system install, which has a completely different semantic
2748 # ./install, which can be erroneously created by make from ./install.sh.
2749 # Reject install programs that cannot install multiple files.
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2751 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2752 if test -z "$INSTALL"; then
2753 if test "${ac_cv_path_install+set}" = set; then :
2754   $as_echo_n "(cached) " >&6
2755 else
2756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759   IFS=$as_save_IFS
2760   test -z "$as_dir" && as_dir=.
2761     # Account for people who put trailing slashes in PATH elements.
2762 case $as_dir/ in #((
2763   ./ | .// | /[cC]/* | \
2764   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2765   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2766   /usr/ucb/* ) ;;
2767   *)
2768     # OSF1 and SCO ODT 3.0 have their own names for install.
2769     # Don't use installbsd from OSF since it installs stuff as root
2770     # by default.
2771     for ac_prog in ginstall scoinst install; do
2772       for ac_exec_ext in '' $ac_executable_extensions; do
2773         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2774           if test $ac_prog = install &&
2775             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2776             # AIX install.  It has an incompatible calling convention.
2777             :
2778           elif test $ac_prog = install &&
2779             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2780             # program-specific install script used by HP pwplus--don't use.
2781             :
2782           else
2783             rm -rf conftest.one conftest.two conftest.dir
2784             echo one > conftest.one
2785             echo two > conftest.two
2786             mkdir conftest.dir
2787             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2788               test -s conftest.one && test -s conftest.two &&
2789               test -s conftest.dir/conftest.one &&
2790               test -s conftest.dir/conftest.two
2791             then
2792               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2793               break 3
2794             fi
2795           fi
2796         fi
2797       done
2798     done
2799     ;;
2800 esac
2801
2802   done
2803 IFS=$as_save_IFS
2804
2805 rm -rf conftest.one conftest.two conftest.dir
2806
2807 fi
2808   if test "${ac_cv_path_install+set}" = set; then
2809     INSTALL=$ac_cv_path_install
2810   else
2811     # As a last resort, use the slow shell script.  Don't cache a
2812     # value for INSTALL within a source directory, because that will
2813     # break other packages using the cache if that directory is
2814     # removed, or if the value is a relative name.
2815     INSTALL=$ac_install_sh
2816   fi
2817 fi
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2819 $as_echo "$INSTALL" >&6; }
2820
2821 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2822 # It thinks the first close brace ends the variable substitution.
2823 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2824
2825 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2826
2827 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2828
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2830 $as_echo_n "checking whether build environment is sane... " >&6; }
2831 # Just in case
2832 sleep 1
2833 echo timestamp > conftest.file
2834 # Reject unsafe characters in $srcdir or the absolute working directory
2835 # name.  Accept space and tab only in the latter.
2836 am_lf='
2837 '
2838 case `pwd` in
2839   *[\\\"\#\$\&\'\`$am_lf]*)
2840     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2841 esac
2842 case $srcdir in
2843   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2844     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2845 esac
2846
2847 # Do `set' in a subshell so we don't clobber the current shell's
2848 # arguments.  Must try -L first in case configure is actually a
2849 # symlink; some systems play weird games with the mod time of symlinks
2850 # (eg FreeBSD returns the mod time of the symlink's containing
2851 # directory).
2852 if (
2853    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2854    if test "$*" = "X"; then
2855       # -L didn't work.
2856       set X `ls -t "$srcdir/configure" conftest.file`
2857    fi
2858    rm -f conftest.file
2859    if test "$*" != "X $srcdir/configure conftest.file" \
2860       && test "$*" != "X conftest.file $srcdir/configure"; then
2861
2862       # If neither matched, then we have a broken ls.  This can happen
2863       # if, for instance, CONFIG_SHELL is bash and it inherits a
2864       # broken ls alias from the environment.  This has actually
2865       # happened.  Such a system could not be considered "sane".
2866       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2867 alias in your environment" "$LINENO" 5
2868    fi
2869
2870    test "$2" = conftest.file
2871    )
2872 then
2873    # Ok.
2874    :
2875 else
2876    as_fn_error "newly created file is older than distributed files!
2877 Check your system clock" "$LINENO" 5
2878 fi
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2880 $as_echo "yes" >&6; }
2881 test "$program_prefix" != NONE &&
2882   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2883 # Use a double $ so make ignores it.
2884 test "$program_suffix" != NONE &&
2885   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2886 # Double any \ or $.
2887 # By default was `s,x,x', remove it if useless.
2888 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2889 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2890
2891 # expand $ac_aux_dir to an absolute path
2892 am_aux_dir=`cd $ac_aux_dir && pwd`
2893
2894 if test x"${MISSING+set}" != xset; then
2895   case $am_aux_dir in
2896   *\ * | *\     *)
2897     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2898   *)
2899     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2900   esac
2901 fi
2902 # Use eval to expand $SHELL
2903 if eval "$MISSING --run true"; then
2904   am_missing_run="$MISSING --run "
2905 else
2906   am_missing_run=
2907   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2908 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2909 fi
2910
2911 if test x"${install_sh}" != xset; then
2912   case $am_aux_dir in
2913   *\ * | *\     *)
2914     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2915   *)
2916     install_sh="\${SHELL} $am_aux_dir/install-sh"
2917   esac
2918 fi
2919
2920 # Installed binaries are usually stripped using `strip' when the user
2921 # run `make install-strip'.  However `strip' might not be the right
2922 # tool to use in cross-compilation environments, therefore Automake
2923 # will honor the `STRIP' environment variable to overrule this program.
2924 if test "$cross_compiling" != no; then
2925   if test -n "$ac_tool_prefix"; then
2926   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2927 set dummy ${ac_tool_prefix}strip; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if test "${ac_cv_prog_STRIP+set}" = set; then :
2931   $as_echo_n "(cached) " >&6
2932 else
2933   if test -n "$STRIP"; then
2934   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2935 else
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2938 do
2939   IFS=$as_save_IFS
2940   test -z "$as_dir" && as_dir=.
2941     for ac_exec_ext in '' $ac_executable_extensions; do
2942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945     break 2
2946   fi
2947 done
2948   done
2949 IFS=$as_save_IFS
2950
2951 fi
2952 fi
2953 STRIP=$ac_cv_prog_STRIP
2954 if test -n "$STRIP"; then
2955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2956 $as_echo "$STRIP" >&6; }
2957 else
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2960 fi
2961
2962
2963 fi
2964 if test -z "$ac_cv_prog_STRIP"; then
2965   ac_ct_STRIP=$STRIP
2966   # Extract the first word of "strip", so it can be a program name with args.
2967 set dummy strip; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2971   $as_echo_n "(cached) " >&6
2972 else
2973   if test -n "$ac_ct_STRIP"; then
2974   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979   IFS=$as_save_IFS
2980   test -z "$as_dir" && as_dir=.
2981     for ac_exec_ext in '' $ac_executable_extensions; do
2982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983     ac_cv_prog_ac_ct_STRIP="strip"
2984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985     break 2
2986   fi
2987 done
2988   done
2989 IFS=$as_save_IFS
2990
2991 fi
2992 fi
2993 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2994 if test -n "$ac_ct_STRIP"; then
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2996 $as_echo "$ac_ct_STRIP" >&6; }
2997 else
2998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3001
3002   if test "x$ac_ct_STRIP" = x; then
3003     STRIP=":"
3004   else
3005     case $cross_compiling:$ac_tool_warned in
3006 yes:)
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009 ac_tool_warned=yes ;;
3010 esac
3011     STRIP=$ac_ct_STRIP
3012   fi
3013 else
3014   STRIP="$ac_cv_prog_STRIP"
3015 fi
3016
3017 fi
3018 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3019
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3021 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3022 if test -z "$MKDIR_P"; then
3023   if test "${ac_cv_path_mkdir+set}" = set; then :
3024   $as_echo_n "(cached) " >&6
3025 else
3026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3028 do
3029   IFS=$as_save_IFS
3030   test -z "$as_dir" && as_dir=.
3031     for ac_prog in mkdir gmkdir; do
3032          for ac_exec_ext in '' $ac_executable_extensions; do
3033            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3034            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3035              'mkdir (GNU coreutils) '* | \
3036              'mkdir (coreutils) '* | \
3037              'mkdir (fileutils) '4.1*)
3038                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3039                break 3;;
3040            esac
3041          done
3042        done
3043   done
3044 IFS=$as_save_IFS
3045
3046 fi
3047
3048   if test "${ac_cv_path_mkdir+set}" = set; then
3049     MKDIR_P="$ac_cv_path_mkdir -p"
3050   else
3051     # As a last resort, use the slow shell script.  Don't cache a
3052     # value for MKDIR_P within a source directory, because that will
3053     # break other packages using the cache if that directory is
3054     # removed, or if the value is a relative name.
3055     test -d ./--version && rmdir ./--version
3056     MKDIR_P="$ac_install_sh -d"
3057   fi
3058 fi
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3060 $as_echo "$MKDIR_P" >&6; }
3061
3062 mkdir_p="$MKDIR_P"
3063 case $mkdir_p in
3064   [\\/$]* | ?:[\\/]*) ;;
3065   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3066 esac
3067
3068 for ac_prog in gawk mawk nawk awk
3069 do
3070   # Extract the first word of "$ac_prog", so it can be a program name with args.
3071 set dummy $ac_prog; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if test "${ac_cv_prog_AWK+set}" = set; then :
3075   $as_echo_n "(cached) " >&6
3076 else
3077   if test -n "$AWK"; then
3078   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3079 else
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3082 do
3083   IFS=$as_save_IFS
3084   test -z "$as_dir" && as_dir=.
3085     for ac_exec_ext in '' $ac_executable_extensions; do
3086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3087     ac_cv_prog_AWK="$ac_prog"
3088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089     break 2
3090   fi
3091 done
3092   done
3093 IFS=$as_save_IFS
3094
3095 fi
3096 fi
3097 AWK=$ac_cv_prog_AWK
3098 if test -n "$AWK"; then
3099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3100 $as_echo "$AWK" >&6; }
3101 else
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104 fi
3105
3106
3107   test -n "$AWK" && break
3108 done
3109
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3111 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3112 set x ${MAKE-make}
3113 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3114 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3115   $as_echo_n "(cached) " >&6
3116 else
3117   cat >conftest.make <<\_ACEOF
3118 SHELL = /bin/sh
3119 all:
3120         @echo '@@@%%%=$(MAKE)=@@@%%%'
3121 _ACEOF
3122 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3123 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3124   *@@@%%%=?*=@@@%%%*)
3125     eval ac_cv_prog_make_${ac_make}_set=yes;;
3126   *)
3127     eval ac_cv_prog_make_${ac_make}_set=no;;
3128 esac
3129 rm -f conftest.make
3130 fi
3131 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3133 $as_echo "yes" >&6; }
3134   SET_MAKE=
3135 else
3136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3138   SET_MAKE="MAKE=${MAKE-make}"
3139 fi
3140
3141 rm -rf .tst 2>/dev/null
3142 mkdir .tst 2>/dev/null
3143 if test -d .tst; then
3144   am__leading_dot=.
3145 else
3146   am__leading_dot=_
3147 fi
3148 rmdir .tst 2>/dev/null
3149
3150 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3151   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3152   # is not polluted with repeated "-I."
3153   am__isrc=' -I$(srcdir)'
3154   # test to see if srcdir already configured
3155   if test -f $srcdir/config.status; then
3156     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3157   fi
3158 fi
3159
3160 # test whether we have cygpath
3161 if test -z "$CYGPATH_W"; then
3162   if (cygpath --version) >/dev/null 2>/dev/null; then
3163     CYGPATH_W='cygpath -w'
3164   else
3165     CYGPATH_W=echo
3166   fi
3167 fi
3168
3169
3170 # Define the identity of the package.
3171  PACKAGE=gc
3172  VERSION=6.6
3173
3174
3175 # Some tools Automake needs.
3176
3177 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3178
3179
3180 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3181
3182
3183 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3184
3185
3186 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3187
3188
3189 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3190
3191 # We need awk for the "check" target.  The system "awk" is bad on
3192 # some platforms.
3193 # Always define AMTAR for backward compatibility.
3194
3195 AMTAR=${AMTAR-"${am_missing_run}tar"}
3196
3197 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3198
3199
3200
3201
3202
3203
3204 # The autoconf 2.5x version of the no-executables hack.
3205
3206
3207 # Yak.  We must force CC and CXX to /not/ be precious variables; otherwise
3208 # the wrong, non-multilib-adjusted value will be used in multilibs.
3209 # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
3210
3211
3212
3213 ac_ext=c
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218 if test -n "$ac_tool_prefix"; then
3219   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3220 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if test "${ac_cv_prog_CC+set}" = set; then :
3224   $as_echo_n "(cached) " >&6
3225 else
3226   if test -n "$CC"; then
3227   ac_cv_prog_CC="$CC" # Let the user override the test.
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3231 do
3232   IFS=$as_save_IFS
3233   test -z "$as_dir" && as_dir=.
3234     for ac_exec_ext in '' $ac_executable_extensions; do
3235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238     break 2
3239   fi
3240 done
3241   done
3242 IFS=$as_save_IFS
3243
3244 fi
3245 fi
3246 CC=$ac_cv_prog_CC
3247 if test -n "$CC"; then
3248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3249 $as_echo "$CC" >&6; }
3250 else
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 fi
3254
3255
3256 fi
3257 if test -z "$ac_cv_prog_CC"; then
3258   ac_ct_CC=$CC
3259   # Extract the first word of "gcc", so it can be a program name with args.
3260 set dummy gcc; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3264   $as_echo_n "(cached) " >&6
3265 else
3266   if test -n "$ac_ct_CC"; then
3267   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3268 else
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3271 do
3272   IFS=$as_save_IFS
3273   test -z "$as_dir" && as_dir=.
3274     for ac_exec_ext in '' $ac_executable_extensions; do
3275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3276     ac_cv_prog_ac_ct_CC="gcc"
3277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278     break 2
3279   fi
3280 done
3281   done
3282 IFS=$as_save_IFS
3283
3284 fi
3285 fi
3286 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3287 if test -n "$ac_ct_CC"; then
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3289 $as_echo "$ac_ct_CC" >&6; }
3290 else
3291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 fi
3294
3295   if test "x$ac_ct_CC" = x; then
3296     CC=""
3297   else
3298     case $cross_compiling:$ac_tool_warned in
3299 yes:)
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3302 ac_tool_warned=yes ;;
3303 esac
3304     CC=$ac_ct_CC
3305   fi
3306 else
3307   CC="$ac_cv_prog_CC"
3308 fi
3309
3310 if test -z "$CC"; then
3311           if test -n "$ac_tool_prefix"; then
3312     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3313 set dummy ${ac_tool_prefix}cc; ac_word=$2
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315 $as_echo_n "checking for $ac_word... " >&6; }
3316 if test "${ac_cv_prog_CC+set}" = set; then :
3317   $as_echo_n "(cached) " >&6
3318 else
3319   if test -n "$CC"; then
3320   ac_cv_prog_CC="$CC" # Let the user override the test.
3321 else
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3324 do
3325   IFS=$as_save_IFS
3326   test -z "$as_dir" && as_dir=.
3327     for ac_exec_ext in '' $ac_executable_extensions; do
3328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3329     ac_cv_prog_CC="${ac_tool_prefix}cc"
3330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331     break 2
3332   fi
3333 done
3334   done
3335 IFS=$as_save_IFS
3336
3337 fi
3338 fi
3339 CC=$ac_cv_prog_CC
3340 if test -n "$CC"; then
3341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3342 $as_echo "$CC" >&6; }
3343 else
3344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3346 fi
3347
3348
3349   fi
3350 fi
3351 if test -z "$CC"; then
3352   # Extract the first word of "cc", so it can be a program name with args.
3353 set dummy cc; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if test "${ac_cv_prog_CC+set}" = set; then :
3357   $as_echo_n "(cached) " >&6
3358 else
3359   if test -n "$CC"; then
3360   ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362   ac_prog_rejected=no
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366   IFS=$as_save_IFS
3367   test -z "$as_dir" && as_dir=.
3368     for ac_exec_ext in '' $ac_executable_extensions; do
3369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3371        ac_prog_rejected=yes
3372        continue
3373      fi
3374     ac_cv_prog_CC="cc"
3375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376     break 2
3377   fi
3378 done
3379   done
3380 IFS=$as_save_IFS
3381
3382 if test $ac_prog_rejected = yes; then
3383   # We found a bogon in the path, so make sure we never use it.
3384   set dummy $ac_cv_prog_CC
3385   shift
3386   if test $# != 0; then
3387     # We chose a different compiler from the bogus one.
3388     # However, it has the same basename, so the bogon will be chosen
3389     # first if we set CC to just the basename; use the full file name.
3390     shift
3391     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3392   fi
3393 fi
3394 fi
3395 fi
3396 CC=$ac_cv_prog_CC
3397 if test -n "$CC"; then
3398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3399 $as_echo "$CC" >&6; }
3400 else
3401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3403 fi
3404
3405
3406 fi
3407 if test -z "$CC"; then
3408   if test -n "$ac_tool_prefix"; then
3409   for ac_prog in cl.exe
3410   do
3411     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3412 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if test "${ac_cv_prog_CC+set}" = set; then :
3416   $as_echo_n "(cached) " >&6
3417 else
3418   if test -n "$CC"; then
3419   ac_cv_prog_CC="$CC" # Let the user override the test.
3420 else
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3423 do
3424   IFS=$as_save_IFS
3425   test -z "$as_dir" && as_dir=.
3426     for ac_exec_ext in '' $ac_executable_extensions; do
3427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3428     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430     break 2
3431   fi
3432 done
3433   done
3434 IFS=$as_save_IFS
3435
3436 fi
3437 fi
3438 CC=$ac_cv_prog_CC
3439 if test -n "$CC"; then
3440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3441 $as_echo "$CC" >&6; }
3442 else
3443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3445 fi
3446
3447
3448     test -n "$CC" && break
3449   done
3450 fi
3451 if test -z "$CC"; then
3452   ac_ct_CC=$CC
3453   for ac_prog in cl.exe
3454 do
3455   # Extract the first word of "$ac_prog", so it can be a program name with args.
3456 set dummy $ac_prog; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3460   $as_echo_n "(cached) " >&6
3461 else
3462   if test -n "$ac_ct_CC"; then
3463   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
3468   IFS=$as_save_IFS
3469   test -z "$as_dir" && as_dir=.
3470     for ac_exec_ext in '' $ac_executable_extensions; do
3471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3472     ac_cv_prog_ac_ct_CC="$ac_prog"
3473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474     break 2
3475   fi
3476 done
3477   done
3478 IFS=$as_save_IFS
3479
3480 fi
3481 fi
3482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3483 if test -n "$ac_ct_CC"; then
3484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3485 $as_echo "$ac_ct_CC" >&6; }
3486 else
3487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3489 fi
3490
3491
3492   test -n "$ac_ct_CC" && break
3493 done
3494
3495   if test "x$ac_ct_CC" = x; then
3496     CC=""
3497   else
3498     case $cross_compiling:$ac_tool_warned in
3499 yes:)
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502 ac_tool_warned=yes ;;
3503 esac
3504     CC=$ac_ct_CC
3505   fi
3506 fi
3507
3508 fi
3509
3510
3511 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513 as_fn_error "no acceptable C compiler found in \$PATH
3514 See \`config.log' for more details." "$LINENO" 5; }
3515
3516 # Provide some information about the compiler.
3517 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3518 set X $ac_compile
3519 ac_compiler=$2
3520 for ac_option in --version -v -V -qversion; do
3521   { { ac_try="$ac_compiler $ac_option >&5"
3522 case "(($ac_try" in
3523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524   *) ac_try_echo=$ac_try;;
3525 esac
3526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527 $as_echo "$ac_try_echo"; } >&5
3528   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3529   ac_status=$?
3530   if test -s conftest.err; then
3531     sed '10a\
3532 ... rest of stderr output deleted ...
3533          10q' conftest.err >conftest.er1
3534     cat conftest.er1 >&5
3535     rm -f conftest.er1 conftest.err
3536   fi
3537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538   test $ac_status = 0; }
3539 done
3540
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h.  */
3543
3544 int
3545 main ()
3546 {
3547
3548   ;
3549   return 0;
3550 }
3551 _ACEOF
3552 # FIXME: Cleanup?
3553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3554   (eval $ac_link) 2>&5
3555   ac_status=$?
3556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557   test $ac_status = 0; }; then :
3558   gcc_no_link=no
3559 else
3560   gcc_no_link=yes
3561 fi
3562 if test x$gcc_no_link = xyes; then
3563   # Setting cross_compile will disable run tests; it will
3564   # also disable AC_CHECK_FILE but that's generally
3565   # correct if we can't link.
3566   cross_compiling=yes
3567   EXEEXT=
3568 else
3569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h.  */
3571
3572 int
3573 main ()
3574 {
3575
3576   ;
3577   return 0;
3578 }
3579 _ACEOF
3580 ac_clean_files_save=$ac_clean_files
3581 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3582 # Try to create an executable without -o first, disregard a.out.
3583 # It will help us diagnose broken compilers, and finding out an intuition
3584 # of exeext.
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3586 $as_echo_n "checking for C compiler default output file name... " >&6; }
3587 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3588
3589 # The possible output files:
3590 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3591
3592 ac_rmfiles=
3593 for ac_file in $ac_files
3594 do
3595   case $ac_file in
3596     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3597     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3598   esac
3599 done
3600 rm -f $ac_rmfiles
3601
3602 if { { ac_try="$ac_link_default"
3603 case "(($ac_try" in
3604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605   *) ac_try_echo=$ac_try;;
3606 esac
3607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608 $as_echo "$ac_try_echo"; } >&5
3609   (eval "$ac_link_default") 2>&5
3610   ac_status=$?
3611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612   test $ac_status = 0; }; then :
3613   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3614 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3615 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3616 # so that the user can short-circuit this test for compilers unknown to
3617 # Autoconf.
3618 for ac_file in $ac_files ''
3619 do
3620   test -f "$ac_file" || continue
3621   case $ac_file in
3622     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3623         ;;
3624     [ab].out )
3625         # We found the default executable, but exeext='' is most
3626         # certainly right.
3627         break;;
3628     *.* )
3629         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3630         then :; else
3631            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3632         fi
3633         # We set ac_cv_exeext here because the later test for it is not
3634         # safe: cross compilers may not add the suffix if given an `-o'
3635         # argument, so we may need to know it at that point already.
3636         # Even if this section looks crufty: it has the advantage of
3637         # actually working.
3638         break;;
3639     * )
3640         break;;
3641   esac
3642 done
3643 test "$ac_cv_exeext" = no && ac_cv_exeext=
3644
3645 else
3646   ac_file=''
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3649 $as_echo "$ac_file" >&6; }
3650 if test -z "$ac_file"; then :
3651   $as_echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3653
3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 { as_fn_set_status 77
3657 as_fn_error "C compiler cannot create executables
3658 See \`config.log' for more details." "$LINENO" 5; }; }
3659 fi
3660 ac_exeext=$ac_cv_exeext
3661
3662 # Check that the compiler produces executables we can run.  If not, either
3663 # the compiler is broken, or we cross compile.
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3665 $as_echo_n "checking whether the C compiler works... " >&6; }
3666 # If not cross compiling, check that we can run a simple program.
3667 if test "$cross_compiling" != yes; then
3668   if { ac_try='./$ac_file'
3669   { { case "(($ac_try" in
3670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671   *) ac_try_echo=$ac_try;;
3672 esac
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675   (eval "$ac_try") 2>&5
3676   ac_status=$?
3677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678   test $ac_status = 0; }; }; then
3679     cross_compiling=no
3680   else
3681     if test "$cross_compiling" = maybe; then
3682         cross_compiling=yes
3683     else
3684         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error "cannot run C compiled programs.
3687 If you meant to cross compile, use \`--host'.
3688 See \`config.log' for more details." "$LINENO" 5; }
3689     fi
3690   fi
3691 fi
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3693 $as_echo "yes" >&6; }
3694
3695 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3696 ac_clean_files=$ac_clean_files_save
3697 # Check that the compiler produces executables we can run.  If not, either
3698 # the compiler is broken, or we cross compile.
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3700 $as_echo_n "checking whether we are cross compiling... " >&6; }
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3702 $as_echo "$cross_compiling" >&6; }
3703
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3705 $as_echo_n "checking for suffix of executables... " >&6; }
3706 if { { ac_try="$ac_link"
3707 case "(($ac_try" in
3708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709   *) ac_try_echo=$ac_try;;
3710 esac
3711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3712 $as_echo "$ac_try_echo"; } >&5
3713   (eval "$ac_link") 2>&5
3714   ac_status=$?
3715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716   test $ac_status = 0; }; then :
3717   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3718 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3719 # work properly (i.e., refer to `conftest.exe'), while it won't with
3720 # `rm'.
3721 for ac_file in conftest.exe conftest conftest.*; do
3722   test -f "$ac_file" || continue
3723   case $ac_file in
3724     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3725     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3726           break;;
3727     * ) break;;
3728   esac
3729 done
3730 else
3731   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3733 as_fn_error "cannot compute suffix of executables: cannot compile and link
3734 See \`config.log' for more details." "$LINENO" 5; }
3735 fi
3736 rm -f conftest$ac_cv_exeext
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3738 $as_echo "$ac_cv_exeext" >&6; }
3739
3740 rm -f conftest.$ac_ext
3741 EXEEXT=$ac_cv_exeext
3742 ac_exeext=$EXEEXT
3743 fi
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3745 $as_echo_n "checking for suffix of object files... " >&6; }
3746 if test "${ac_cv_objext+set}" = set; then :
3747   $as_echo_n "(cached) " >&6
3748 else
3749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h.  */
3751
3752 int
3753 main ()
3754 {
3755
3756   ;
3757   return 0;
3758 }
3759 _ACEOF
3760 rm -f conftest.o conftest.obj
3761 if { { ac_try="$ac_compile"
3762 case "(($ac_try" in
3763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764   *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768   (eval "$ac_compile") 2>&5
3769   ac_status=$?
3770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771   test $ac_status = 0; }; then :
3772   for ac_file in conftest.o conftest.obj conftest.*; do
3773   test -f "$ac_file" || continue;
3774   case $ac_file in
3775     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3776     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3777        break;;
3778   esac
3779 done
3780 else
3781   $as_echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3783
3784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3786 as_fn_error "cannot compute suffix of object files: cannot compile
3787 See \`config.log' for more details." "$LINENO" 5; }
3788 fi
3789 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3790 fi
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3792 $as_echo "$ac_cv_objext" >&6; }
3793 OBJEXT=$ac_cv_objext
3794 ac_objext=$OBJEXT
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3796 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3797 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3798   $as_echo_n "(cached) " >&6
3799 else
3800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h.  */
3802
3803 int
3804 main ()
3805 {
3806 #ifndef __GNUC__
3807        choke me
3808 #endif
3809
3810   ;
3811   return 0;
3812 }
3813 _ACEOF
3814 if ac_fn_c_try_compile "$LINENO"; then :
3815   ac_compiler_gnu=yes
3816 else
3817   ac_compiler_gnu=no
3818 fi
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3821
3822 fi
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3824 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3825 if test $ac_compiler_gnu = yes; then
3826   GCC=yes
3827 else
3828   GCC=
3829 fi
3830 ac_test_CFLAGS=${CFLAGS+set}
3831 ac_save_CFLAGS=$CFLAGS
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3833 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3834 if test "${ac_cv_prog_cc_g+set}" = set; then :
3835   $as_echo_n "(cached) " >&6
3836 else
3837   ac_save_c_werror_flag=$ac_c_werror_flag
3838    ac_c_werror_flag=yes
3839    ac_cv_prog_cc_g=no
3840    CFLAGS="-g"
3841    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h.  */
3843
3844 int
3845 main ()
3846 {
3847
3848   ;
3849   return 0;
3850 }
3851 _ACEOF
3852 if ac_fn_c_try_compile "$LINENO"; then :
3853   ac_cv_prog_cc_g=yes
3854 else
3855   CFLAGS=""
3856       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h.  */
3858
3859 int
3860 main ()
3861 {
3862
3863   ;
3864   return 0;
3865 }
3866 _ACEOF
3867 if ac_fn_c_try_compile "$LINENO"; then :
3868
3869 else
3870   ac_c_werror_flag=$ac_save_c_werror_flag
3871          CFLAGS="-g"
3872          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h.  */
3874
3875 int
3876 main ()
3877 {
3878
3879   ;
3880   return 0;
3881 }
3882 _ACEOF
3883 if ac_fn_c_try_compile "$LINENO"; then :
3884   ac_cv_prog_cc_g=yes
3885 fi
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887 fi
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889 fi
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891    ac_c_werror_flag=$ac_save_c_werror_flag
3892 fi
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3894 $as_echo "$ac_cv_prog_cc_g" >&6; }
3895 if test "$ac_test_CFLAGS" = set; then
3896   CFLAGS=$ac_save_CFLAGS
3897 elif test $ac_cv_prog_cc_g = yes; then
3898   if test "$GCC" = yes; then
3899     CFLAGS="-g -O2"
3900   else
3901     CFLAGS="-g"
3902   fi
3903 else
3904   if test "$GCC" = yes; then
3905     CFLAGS="-O2"
3906   else
3907     CFLAGS=
3908   fi
3909 fi
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3911 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3912 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3913   $as_echo_n "(cached) " >&6
3914 else
3915   ac_cv_prog_cc_c89=no
3916 ac_save_CC=$CC
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h.  */
3919 #include <stdarg.h>
3920 #include <stdio.h>
3921 #include <sys/types.h>
3922 #include <sys/stat.h>
3923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3924 struct buf { int x; };
3925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3926 static char *e (p, i)
3927      char **p;
3928      int i;
3929 {
3930   return p[i];
3931 }
3932 static char *f (char * (*g) (char **, int), char **p, ...)
3933 {
3934   char *s;
3935   va_list v;
3936   va_start (v,p);
3937   s = g (p, va_arg (v,int));
3938   va_end (v);
3939   return s;
3940 }
3941
3942 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3943    function prototypes and stuff, but not '\xHH' hex character constants.
3944    These don't provoke an error unfortunately, instead are silently treated
3945    as 'x'.  The following induces an error, until -std is added to get
3946    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3947    array size at least.  It's necessary to write '\x00'==0 to get something
3948    that's true only with -std.  */
3949 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3950
3951 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3952    inside strings and character constants.  */
3953 #define FOO(x) 'x'
3954 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3955
3956 int test (int i, double x);
3957 struct s1 {int (*f) (int a);};
3958 struct s2 {int (*f) (double a);};
3959 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3960 int argc;
3961 char **argv;
3962 int
3963 main ()
3964 {
3965 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3966   ;
3967   return 0;
3968 }
3969 _ACEOF
3970 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3971         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3972 do
3973   CC="$ac_save_CC $ac_arg"
3974   if ac_fn_c_try_compile "$LINENO"; then :
3975   ac_cv_prog_cc_c89=$ac_arg
3976 fi
3977 rm -f core conftest.err conftest.$ac_objext
3978   test "x$ac_cv_prog_cc_c89" != "xno" && break
3979 done
3980 rm -f conftest.$ac_ext
3981 CC=$ac_save_CC
3982
3983 fi
3984 # AC_CACHE_VAL
3985 case "x$ac_cv_prog_cc_c89" in
3986   x)
3987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3988 $as_echo "none needed" >&6; } ;;
3989   xno)
3990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3991 $as_echo "unsupported" >&6; } ;;
3992   *)
3993     CC="$CC $ac_cv_prog_cc_c89"
3994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3995 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3996 esac
3997 if test "x$ac_cv_prog_cc_c89" != xno; then :
3998
3999 fi
4000
4001 ac_ext=c
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006 DEPDIR="${am__leading_dot}deps"
4007
4008 ac_config_commands="$ac_config_commands depfiles"
4009
4010
4011 am_make=${MAKE-make}
4012 cat > confinc << 'END'
4013 am__doit:
4014         @echo this is the am__doit target
4015 .PHONY: am__doit
4016 END
4017 # If we don't find an include directive, just comment out the code.
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4019 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4020 am__include="#"
4021 am__quote=
4022 _am_result=none
4023 # First try GNU make style include.
4024 echo "include confinc" > confmf
4025 # Ignore all kinds of additional output from `make'.
4026 case `$am_make -s -f confmf 2> /dev/null` in #(
4027 *the\ am__doit\ target*)
4028   am__include=include
4029   am__quote=
4030   _am_result=GNU
4031   ;;
4032 esac
4033 # Now try BSD make style include.
4034 if test "$am__include" = "#"; then
4035    echo '.include "confinc"' > confmf
4036    case `$am_make -s -f confmf 2> /dev/null` in #(
4037    *the\ am__doit\ target*)
4038      am__include=.include
4039      am__quote="\""
4040      _am_result=BSD
4041      ;;
4042    esac
4043 fi
4044
4045
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4047 $as_echo "$_am_result" >&6; }
4048 rm -f confinc confmf
4049
4050 # Check whether --enable-dependency-tracking was given.
4051 if test "${enable_dependency_tracking+set}" = set; then :
4052   enableval=$enable_dependency_tracking;
4053 fi
4054
4055 if test "x$enable_dependency_tracking" != xno; then
4056   am_depcomp="$ac_aux_dir/depcomp"
4057   AMDEPBACKSLASH='\'
4058 fi
4059  if test "x$enable_dependency_tracking" != xno; then
4060   AMDEP_TRUE=
4061   AMDEP_FALSE='#'
4062 else
4063   AMDEP_TRUE='#'
4064   AMDEP_FALSE=
4065 fi
4066
4067
4068
4069 depcc="$CC"   am_compiler_list=
4070
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4072 $as_echo_n "checking dependency style of $depcc... " >&6; }
4073 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4074   $as_echo_n "(cached) " >&6
4075 else
4076   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4077   # We make a subdir and do the tests there.  Otherwise we can end up
4078   # making bogus files that we don't know about and never remove.  For
4079   # instance it was reported that on HP-UX the gcc test will end up
4080   # making a dummy file named `D' -- because `-MD' means `put the output
4081   # in D'.
4082   mkdir conftest.dir
4083   # Copy depcomp to subdir because otherwise we won't find it if we're
4084   # using a relative directory.
4085   cp "$am_depcomp" conftest.dir
4086   cd conftest.dir
4087   # We will build objects and dependencies in a subdirectory because
4088   # it helps to detect inapplicable dependency modes.  For instance
4089   # both Tru64's cc and ICC support -MD to output dependencies as a
4090   # side effect of compilation, but ICC will put the dependencies in
4091   # the current directory while Tru64 will put them in the object
4092   # directory.
4093   mkdir sub
4094
4095   am_cv_CC_dependencies_compiler_type=none
4096   if test "$am_compiler_list" = ""; then
4097      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4098   fi
4099   am__universal=false
4100   case " $depcc " in #(
4101      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4102      esac
4103
4104   for depmode in $am_compiler_list; do
4105     # Setup a source with many dependencies, because some compilers
4106     # like to wrap large dependency lists on column 80 (with \), and
4107     # we should not choose a depcomp mode which is confused by this.
4108     #
4109     # We need to recreate these files for each test, as the compiler may
4110     # overwrite some of them when testing with obscure command lines.
4111     # This happens at least with the AIX C compiler.
4112     : > sub/conftest.c
4113     for i in 1 2 3 4 5 6; do
4114       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4115       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4116       # Solaris 8's {/usr,}/bin/sh.
4117       touch sub/conftst$i.h
4118     done
4119     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4120
4121     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4122     # mode.  It turns out that the SunPro C++ compiler does not properly
4123     # handle `-M -o', and we need to detect this.  Also, some Intel
4124     # versions had trouble with output in subdirs
4125     am__obj=sub/conftest.${OBJEXT-o}
4126     am__minus_obj="-o $am__obj"
4127     case $depmode in
4128     gcc)
4129       # This depmode causes a compiler race in universal mode.
4130       test "$am__universal" = false || continue
4131       ;;
4132     nosideeffect)
4133       # after this tag, mechanisms are not by side-effect, so they'll
4134       # only be used when explicitly requested
4135       if test "x$enable_dependency_tracking" = xyes; then
4136         continue
4137       else
4138         break
4139       fi
4140       ;;
4141     msvisualcpp | msvcmsys)
4142       # This compiler won't grok `-c -o', but also, the minuso test has
4143       # not run yet.  These depmodes are late enough in the game, and
4144       # so weak that their functioning should not be impacted.
4145       am__obj=conftest.${OBJEXT-o}
4146       am__minus_obj=
4147       ;;
4148     none) break ;;
4149     esac
4150     if depmode=$depmode \
4151        source=sub/conftest.c object=$am__obj \
4152        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4153        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4154          >/dev/null 2>conftest.err &&
4155        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4156        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4157        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4158        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4159       # icc doesn't choke on unknown options, it will just issue warnings
4160       # or remarks (even with -Werror).  So we grep stderr for any message
4161       # that says an option was ignored or not supported.
4162       # When given -MP, icc 7.0 and 7.1 complain thusly:
4163       #   icc: Command line warning: ignoring option '-M'; no argument required
4164       # The diagnosis changed in icc 8.0:
4165       #   icc: Command line remark: option '-MP' not supported
4166       if (grep 'ignoring option' conftest.err ||
4167           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4168         am_cv_CC_dependencies_compiler_type=$depmode
4169         break
4170       fi
4171     fi
4172   done
4173
4174   cd ..
4175   rm -rf conftest.dir
4176 else
4177   am_cv_CC_dependencies_compiler_type=none
4178 fi
4179
4180 fi
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4182 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4183 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4184
4185  if
4186   test "x$enable_dependency_tracking" != xno \
4187   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4188   am__fastdepCC_TRUE=
4189   am__fastdepCC_FALSE='#'
4190 else
4191   am__fastdepCC_TRUE='#'
4192   am__fastdepCC_FALSE=
4193 fi
4194
4195
4196 ac_ext=cpp
4197 ac_cpp='$CXXCPP $CPPFLAGS'
4198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4201 if test -z "$CXX"; then
4202   if test -n "$CCC"; then
4203     CXX=$CCC
4204   else
4205     if test -n "$ac_tool_prefix"; then
4206   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4207   do
4208     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4209 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211 $as_echo_n "checking for $ac_word... " >&6; }
4212 if test "${ac_cv_prog_CXX+set}" = set; then :
4213   $as_echo_n "(cached) " >&6
4214 else
4215   if test -n "$CXX"; then
4216   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4217 else
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4220 do
4221   IFS=$as_save_IFS
4222   test -z "$as_dir" && as_dir=.
4223     for ac_exec_ext in '' $ac_executable_extensions; do
4224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4225     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227     break 2
4228   fi
4229 done
4230   done
4231 IFS=$as_save_IFS
4232
4233 fi
4234 fi
4235 CXX=$ac_cv_prog_CXX
4236 if test -n "$CXX"; then
4237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4238 $as_echo "$CXX" >&6; }
4239 else
4240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241 $as_echo "no" >&6; }
4242 fi
4243
4244
4245     test -n "$CXX" && break
4246   done
4247 fi
4248 if test -z "$CXX"; then
4249   ac_ct_CXX=$CXX
4250   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4251 do
4252   # Extract the first word of "$ac_prog", so it can be a program name with args.
4253 set dummy $ac_prog; ac_word=$2
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255 $as_echo_n "checking for $ac_word... " >&6; }
4256 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4257   $as_echo_n "(cached) " >&6
4258 else
4259   if test -n "$ac_ct_CXX"; then
4260   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4261 else
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4264 do
4265   IFS=$as_save_IFS
4266   test -z "$as_dir" && as_dir=.
4267     for ac_exec_ext in '' $ac_executable_extensions; do
4268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4269     ac_cv_prog_ac_ct_CXX="$ac_prog"
4270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271     break 2
4272   fi
4273 done
4274   done
4275 IFS=$as_save_IFS
4276
4277 fi
4278 fi
4279 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4280 if test -n "$ac_ct_CXX"; then
4281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4282 $as_echo "$ac_ct_CXX" >&6; }
4283 else
4284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 $as_echo "no" >&6; }
4286 fi
4287
4288
4289   test -n "$ac_ct_CXX" && break
4290 done
4291
4292   if test "x$ac_ct_CXX" = x; then
4293     CXX="g++"
4294   else
4295     case $cross_compiling:$ac_tool_warned in
4296 yes:)
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4299 ac_tool_warned=yes ;;
4300 esac
4301     CXX=$ac_ct_CXX
4302   fi
4303 fi
4304
4305   fi
4306 fi
4307 # Provide some information about the compiler.
4308 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4309 set X $ac_compile
4310 ac_compiler=$2
4311 for ac_option in --version -v -V -qversion; do
4312   { { ac_try="$ac_compiler $ac_option >&5"
4313 case "(($ac_try" in
4314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315   *) ac_try_echo=$ac_try;;
4316 esac
4317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318 $as_echo "$ac_try_echo"; } >&5
4319   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4320   ac_status=$?
4321   if test -s conftest.err; then
4322     sed '10a\
4323 ... rest of stderr output deleted ...
4324          10q' conftest.err >conftest.er1
4325     cat conftest.er1 >&5
4326     rm -f conftest.er1 conftest.err
4327   fi
4328   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4329   test $ac_status = 0; }
4330 done
4331
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4333 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4334 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4335   $as_echo_n "(cached) " >&6
4336 else
4337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h.  */
4339
4340 int
4341 main ()
4342 {
4343 #ifndef __GNUC__
4344        choke me
4345 #endif
4346
4347   ;
4348   return 0;
4349 }
4350 _ACEOF
4351 if ac_fn_cxx_try_compile "$LINENO"; then :
4352   ac_compiler_gnu=yes
4353 else
4354   ac_compiler_gnu=no
4355 fi
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4358
4359 fi
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4361 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4362 if test $ac_compiler_gnu = yes; then
4363   GXX=yes
4364 else
4365   GXX=
4366 fi
4367 ac_test_CXXFLAGS=${CXXFLAGS+set}
4368 ac_save_CXXFLAGS=$CXXFLAGS
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4370 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4371 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4372   $as_echo_n "(cached) " >&6
4373 else
4374   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4375    ac_cxx_werror_flag=yes
4376    ac_cv_prog_cxx_g=no
4377    CXXFLAGS="-g"
4378    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h.  */
4380
4381 int
4382 main ()
4383 {
4384
4385   ;
4386   return 0;
4387 }
4388 _ACEOF
4389 if ac_fn_cxx_try_compile "$LINENO"; then :
4390   ac_cv_prog_cxx_g=yes
4391 else
4392   CXXFLAGS=""
4393       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h.  */
4395
4396 int
4397 main ()
4398 {
4399
4400   ;
4401   return 0;
4402 }
4403 _ACEOF
4404 if ac_fn_cxx_try_compile "$LINENO"; then :
4405
4406 else
4407   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4408          CXXFLAGS="-g"
4409          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h.  */
4411
4412 int
4413 main ()
4414 {
4415
4416   ;
4417   return 0;
4418 }
4419 _ACEOF
4420 if ac_fn_cxx_try_compile "$LINENO"; then :
4421   ac_cv_prog_cxx_g=yes
4422 fi
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 fi
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4426 fi
4427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4429 fi
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4431 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4432 if test "$ac_test_CXXFLAGS" = set; then
4433   CXXFLAGS=$ac_save_CXXFLAGS
4434 elif test $ac_cv_prog_cxx_g = yes; then
4435   if test "$GXX" = yes; then
4436     CXXFLAGS="-g -O2"
4437   else
4438     CXXFLAGS="-g"
4439   fi
4440 else
4441   if test "$GXX" = yes; then
4442     CXXFLAGS="-O2"
4443   else
4444     CXXFLAGS=
4445   fi
4446 fi
4447 ac_ext=c
4448 ac_cpp='$CPP $CPPFLAGS'
4449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4452
4453 depcc="$CXX"  am_compiler_list=
4454
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4456 $as_echo_n "checking dependency style of $depcc... " >&6; }
4457 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4458   $as_echo_n "(cached) " >&6
4459 else
4460   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4461   # We make a subdir and do the tests there.  Otherwise we can end up
4462   # making bogus files that we don't know about and never remove.  For
4463   # instance it was reported that on HP-UX the gcc test will end up
4464   # making a dummy file named `D' -- because `-MD' means `put the output
4465   # in D'.
4466   mkdir conftest.dir
4467   # Copy depcomp to subdir because otherwise we won't find it if we're
4468   # using a relative directory.
4469   cp "$am_depcomp" conftest.dir
4470   cd conftest.dir
4471   # We will build objects and dependencies in a subdirectory because
4472   # it helps to detect inapplicable dependency modes.  For instance
4473   # both Tru64's cc and ICC support -MD to output dependencies as a
4474   # side effect of compilation, but ICC will put the dependencies in
4475   # the current directory while Tru64 will put them in the object
4476   # directory.
4477   mkdir sub
4478
4479   am_cv_CXX_dependencies_compiler_type=none
4480   if test "$am_compiler_list" = ""; then
4481      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4482   fi
4483   am__universal=false
4484   case " $depcc " in #(
4485      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4486      esac
4487
4488   for depmode in $am_compiler_list; do
4489     # Setup a source with many dependencies, because some compilers
4490     # like to wrap large dependency lists on column 80 (with \), and
4491     # we should not choose a depcomp mode which is confused by this.
4492     #
4493     # We need to recreate these files for each test, as the compiler may
4494     # overwrite some of them when testing with obscure command lines.
4495     # This happens at least with the AIX C compiler.
4496     : > sub/conftest.c
4497     for i in 1 2 3 4 5 6; do
4498       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4499       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4500       # Solaris 8's {/usr,}/bin/sh.
4501       touch sub/conftst$i.h
4502     done
4503     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4504
4505     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4506     # mode.  It turns out that the SunPro C++ compiler does not properly
4507     # handle `-M -o', and we need to detect this.  Also, some Intel
4508     # versions had trouble with output in subdirs
4509     am__obj=sub/conftest.${OBJEXT-o}
4510     am__minus_obj="-o $am__obj"
4511     case $depmode in
4512     gcc)
4513       # This depmode causes a compiler race in universal mode.
4514       test "$am__universal" = false || continue
4515       ;;
4516     nosideeffect)
4517       # after this tag, mechanisms are not by side-effect, so they'll
4518       # only be used when explicitly requested
4519       if test "x$enable_dependency_tracking" = xyes; then
4520         continue
4521       else
4522         break
4523       fi
4524       ;;
4525     msvisualcpp | msvcmsys)
4526       # This compiler won't grok `-c -o', but also, the minuso test has
4527       # not run yet.  These depmodes are late enough in the game, and
4528       # so weak that their functioning should not be impacted.
4529       am__obj=conftest.${OBJEXT-o}
4530       am__minus_obj=
4531       ;;
4532     none) break ;;
4533     esac
4534     if depmode=$depmode \
4535        source=sub/conftest.c object=$am__obj \
4536        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4537        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4538          >/dev/null 2>conftest.err &&
4539        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4540        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4541        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4542        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4543       # icc doesn't choke on unknown options, it will just issue warnings
4544       # or remarks (even with -Werror).  So we grep stderr for any message
4545       # that says an option was ignored or not supported.
4546       # When given -MP, icc 7.0 and 7.1 complain thusly:
4547       #   icc: Command line warning: ignoring option '-M'; no argument required
4548       # The diagnosis changed in icc 8.0:
4549       #   icc: Command line remark: option '-MP' not supported
4550       if (grep 'ignoring option' conftest.err ||
4551           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4552         am_cv_CXX_dependencies_compiler_type=$depmode
4553         break
4554       fi
4555     fi
4556   done
4557
4558   cd ..
4559   rm -rf conftest.dir
4560 else
4561   am_cv_CXX_dependencies_compiler_type=none
4562 fi
4563
4564 fi
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4566 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4567 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4568
4569  if
4570   test "x$enable_dependency_tracking" != xno \
4571   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4572   am__fastdepCXX_TRUE=
4573   am__fastdepCXX_FALSE='#'
4574 else
4575   am__fastdepCXX_TRUE='#'
4576   am__fastdepCXX_FALSE=
4577 fi
4578
4579
4580
4581
4582 if test "x$CC" != xcc; then
4583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4584 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4585 else
4586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4587 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4588 fi
4589 set dummy $CC; ac_cc=`$as_echo "$2" |
4590                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4591 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4592   $as_echo_n "(cached) " >&6
4593 else
4594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h.  */
4596
4597 int
4598 main ()
4599 {
4600
4601   ;
4602   return 0;
4603 }
4604 _ACEOF
4605 # Make sure it works both with $CC and with simple cc.
4606 # We do the test twice because some compilers refuse to overwrite an
4607 # existing .o file with -o, though they will create one.
4608 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4609 rm -f conftest2.*
4610 if { { case "(($ac_try" in
4611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612   *) ac_try_echo=$ac_try;;
4613 esac
4614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4615 $as_echo "$ac_try_echo"; } >&5
4616   (eval "$ac_try") 2>&5
4617   ac_status=$?
4618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4619   test $ac_status = 0; } &&
4620    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622   *) ac_try_echo=$ac_try;;
4623 esac
4624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625 $as_echo "$ac_try_echo"; } >&5
4626   (eval "$ac_try") 2>&5
4627   ac_status=$?
4628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629   test $ac_status = 0; };
4630 then
4631   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4632   if test "x$CC" != xcc; then
4633     # Test first that cc exists at all.
4634     if { ac_try='cc -c conftest.$ac_ext >&5'
4635   { { case "(($ac_try" in
4636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637   *) ac_try_echo=$ac_try;;
4638 esac
4639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4640 $as_echo "$ac_try_echo"; } >&5
4641   (eval "$ac_try") 2>&5
4642   ac_status=$?
4643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4644   test $ac_status = 0; }; }; then
4645       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4646       rm -f conftest2.*
4647       if { { case "(($ac_try" in
4648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649   *) ac_try_echo=$ac_try;;
4650 esac
4651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4652 $as_echo "$ac_try_echo"; } >&5
4653   (eval "$ac_try") 2>&5
4654   ac_status=$?
4655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4656   test $ac_status = 0; } &&
4657          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659   *) ac_try_echo=$ac_try;;
4660 esac
4661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4662 $as_echo "$ac_try_echo"; } >&5
4663   (eval "$ac_try") 2>&5
4664   ac_status=$?
4665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4666   test $ac_status = 0; };
4667       then
4668         # cc works too.
4669         :
4670       else
4671         # cc exists but doesn't like -o.
4672         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4673       fi
4674     fi
4675   fi
4676 else
4677   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4678 fi
4679 rm -f core conftest*
4680
4681 fi
4682 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4684 $as_echo "yes" >&6; }
4685 else
4686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 $as_echo "no" >&6; }
4688
4689 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4690
4691 fi
4692
4693 # FIXME: we rely on the cache variable name because
4694 # there is no other way.
4695 set dummy $CC
4696 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4697 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4698 if test "$am_t" != yes; then
4699    # Losing compiler, so override with the script.
4700    # FIXME: It is wrong to rewrite CC.
4701    # But if we don't then we get into trouble of one sort or another.
4702    # A longer-term fix would be to have automake use am__CC in this case,
4703    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4704    CC="$am_aux_dir/compile $CC"
4705 fi
4706
4707
4708
4709
4710
4711
4712 # Newer automakes demand CCAS and CCASFLAGS.
4713 : ${CCAS='$(CC)'}
4714 : ${CCASFLAGS='$(CFLAGS)'}
4715
4716
4717
4718 if test -n "$ac_tool_prefix"; then
4719   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4720 set dummy ${ac_tool_prefix}as; ac_word=$2
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722 $as_echo_n "checking for $ac_word... " >&6; }
4723 if test "${ac_cv_prog_AS+set}" = set; then :
4724   $as_echo_n "(cached) " >&6
4725 else
4726   if test -n "$AS"; then
4727   ac_cv_prog_AS="$AS" # Let the user override the test.
4728 else
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4731 do
4732   IFS=$as_save_IFS
4733   test -z "$as_dir" && as_dir=.
4734     for ac_exec_ext in '' $ac_executable_extensions; do
4735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736     ac_cv_prog_AS="${ac_tool_prefix}as"
4737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738     break 2
4739   fi
4740 done
4741   done
4742 IFS=$as_save_IFS
4743
4744 fi
4745 fi
4746 AS=$ac_cv_prog_AS
4747 if test -n "$AS"; then
4748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4749 $as_echo "$AS" >&6; }
4750 else
4751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 $as_echo "no" >&6; }
4753 fi
4754
4755
4756 fi
4757 if test -z "$ac_cv_prog_AS"; then
4758   ac_ct_AS=$AS
4759   # Extract the first word of "as", so it can be a program name with args.
4760 set dummy as; ac_word=$2
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762 $as_echo_n "checking for $ac_word... " >&6; }
4763 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4764   $as_echo_n "(cached) " >&6
4765 else
4766   if test -n "$ac_ct_AS"; then
4767   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4768 else
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4771 do
4772   IFS=$as_save_IFS
4773   test -z "$as_dir" && as_dir=.
4774     for ac_exec_ext in '' $ac_executable_extensions; do
4775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776     ac_cv_prog_ac_ct_AS="as"
4777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778     break 2
4779   fi
4780 done
4781   done
4782 IFS=$as_save_IFS
4783
4784 fi
4785 fi
4786 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4787 if test -n "$ac_ct_AS"; then
4788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4789 $as_echo "$ac_ct_AS" >&6; }
4790 else
4791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4793 fi
4794
4795   if test "x$ac_ct_AS" = x; then
4796     AS=""
4797   else
4798     case $cross_compiling:$ac_tool_warned in
4799 yes:)
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4802 ac_tool_warned=yes ;;
4803 esac
4804     AS=$ac_ct_AS
4805   fi
4806 else
4807   AS="$ac_cv_prog_AS"
4808 fi
4809
4810 if test -n "$ac_tool_prefix"; then
4811   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4812 set dummy ${ac_tool_prefix}ar; ac_word=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if test "${ac_cv_prog_AR+set}" = set; then :
4816   $as_echo_n "(cached) " >&6
4817 else
4818   if test -n "$AR"; then
4819   ac_cv_prog_AR="$AR" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4823 do
4824   IFS=$as_save_IFS
4825   test -z "$as_dir" && as_dir=.
4826     for ac_exec_ext in '' $ac_executable_extensions; do
4827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828     ac_cv_prog_AR="${ac_tool_prefix}ar"
4829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830     break 2
4831   fi
4832 done
4833   done
4834 IFS=$as_save_IFS
4835
4836 fi
4837 fi
4838 AR=$ac_cv_prog_AR
4839 if test -n "$AR"; then
4840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4841 $as_echo "$AR" >&6; }
4842 else
4843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4845 fi
4846
4847
4848 fi
4849 if test -z "$ac_cv_prog_AR"; then
4850   ac_ct_AR=$AR
4851   # Extract the first word of "ar", so it can be a program name with args.
4852 set dummy ar; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4856   $as_echo_n "(cached) " >&6
4857 else
4858   if test -n "$ac_ct_AR"; then
4859   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866     for ac_exec_ext in '' $ac_executable_extensions; do
4867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868     ac_cv_prog_ac_ct_AR="ar"
4869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870     break 2
4871   fi
4872 done
4873   done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4879 if test -n "$ac_ct_AR"; then
4880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4881 $as_echo "$ac_ct_AR" >&6; }
4882 else
4883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4885 fi
4886
4887   if test "x$ac_ct_AR" = x; then
4888     AR=""
4889   else
4890     case $cross_compiling:$ac_tool_warned in
4891 yes:)
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4894 ac_tool_warned=yes ;;
4895 esac
4896     AR=$ac_ct_AR
4897   fi
4898 else
4899   AR="$ac_cv_prog_AR"
4900 fi
4901
4902 if test -n "$ac_tool_prefix"; then
4903   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4904 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4908   $as_echo_n "(cached) " >&6
4909 else
4910   if test -n "$RANLIB"; then
4911   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4915 do
4916   IFS=$as_save_IFS
4917   test -z "$as_dir" && as_dir=.
4918     for ac_exec_ext in '' $ac_executable_extensions; do
4919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922     break 2
4923   fi
4924 done
4925   done
4926 IFS=$as_save_IFS
4927
4928 fi
4929 fi
4930 RANLIB=$ac_cv_prog_RANLIB
4931 if test -n "$RANLIB"; then
4932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4933 $as_echo "$RANLIB" >&6; }
4934 else
4935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4937 fi
4938
4939
4940 fi
4941 if test -z "$ac_cv_prog_RANLIB"; then
4942   ac_ct_RANLIB=$RANLIB
4943   # Extract the first word of "ranlib", so it can be a program name with args.
4944 set dummy ranlib; ac_word=$2
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 $as_echo_n "checking for $ac_word... " >&6; }
4947 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4948   $as_echo_n "(cached) " >&6
4949 else
4950   if test -n "$ac_ct_RANLIB"; then
4951   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4952 else
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4955 do
4956   IFS=$as_save_IFS
4957   test -z "$as_dir" && as_dir=.
4958     for ac_exec_ext in '' $ac_executable_extensions; do
4959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960     ac_cv_prog_ac_ct_RANLIB="ranlib"
4961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962     break 2
4963   fi
4964 done
4965   done
4966 IFS=$as_save_IFS
4967
4968 fi
4969 fi
4970 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4971 if test -n "$ac_ct_RANLIB"; then
4972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4973 $as_echo "$ac_ct_RANLIB" >&6; }
4974 else
4975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4977 fi
4978
4979   if test "x$ac_ct_RANLIB" = x; then
4980     RANLIB=":"
4981   else
4982     case $cross_compiling:$ac_tool_warned in
4983 yes:)
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4986 ac_tool_warned=yes ;;
4987 esac
4988     RANLIB=$ac_ct_RANLIB
4989   fi
4990 else
4991   RANLIB="$ac_cv_prog_RANLIB"
4992 fi
4993
4994
4995
4996
4997
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4999 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5000     # Check whether --enable-maintainer-mode was given.
5001 if test "${enable_maintainer_mode+set}" = set; then :
5002   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5003 else
5004   USE_MAINTAINER_MODE=no
5005 fi
5006
5007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5008 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5009    if test $USE_MAINTAINER_MODE = yes; then
5010   MAINTAINER_MODE_TRUE=
5011   MAINTAINER_MODE_FALSE='#'
5012 else
5013   MAINTAINER_MODE_TRUE='#'
5014   MAINTAINER_MODE_FALSE=
5015 fi
5016
5017   MAINT=$MAINTAINER_MODE_TRUE
5018
5019
5020
5021 . ${srcdir}/configure.host
5022
5023 case ${gc_basedir} in
5024 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
5025 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
5026 esac
5027
5028 gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
5029 case "${host}" in
5030   *-*-cygwin32*)
5031     gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
5032     ;;
5033 esac
5034
5035 case "${host}" in
5036   *-*-mingw*)
5037     gc_cflags="${gc_cflags} -DGC_BUILD=1"
5038     ;;
5039 esac
5040
5041
5042 GC_CFLAGS=${gc_cflags}
5043
5044
5045 case `pwd` in
5046   *\ * | *\     *)
5047     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5048 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5049 esac
5050
5051
5052
5053 macro_version='2.2.6'
5054 macro_revision='1.3012'
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068 ltmain="$ac_aux_dir/ltmain.sh"
5069
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5071 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5072 if test "${ac_cv_path_SED+set}" = set; then :
5073   $as_echo_n "(cached) " >&6
5074 else
5075             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5076      for ac_i in 1 2 3 4 5 6 7; do
5077        ac_script="$ac_script$as_nl$ac_script"
5078      done
5079      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5080      { ac_script=; unset ac_script;}
5081      if test -z "$SED"; then
5082   ac_path_SED_found=false
5083   # Loop through the user's path and test for each of PROGNAME-LIST
5084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5086 do
5087   IFS=$as_save_IFS
5088   test -z "$as_dir" && as_dir=.
5089     for ac_prog in sed gsed; do
5090     for ac_exec_ext in '' $ac_executable_extensions; do
5091       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5092       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5093 # Check for GNU ac_path_SED and select it if it is found.
5094   # Check for GNU $ac_path_SED
5095 case `"$ac_path_SED" --version 2>&1` in
5096 *GNU*)
5097   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5098 *)
5099   ac_count=0
5100   $as_echo_n 0123456789 >"conftest.in"
5101   while :
5102   do
5103     cat "conftest.in" "conftest.in" >"conftest.tmp"
5104     mv "conftest.tmp" "conftest.in"
5105     cp "conftest.in" "conftest.nl"
5106     $as_echo '' >> "conftest.nl"
5107     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5108     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5109     as_fn_arith $ac_count + 1 && ac_count=$as_val
5110     if test $ac_count -gt ${ac_path_SED_max-0}; then
5111       # Best one so far, save it but keep looking for a better one
5112       ac_cv_path_SED="$ac_path_SED"
5113       ac_path_SED_max=$ac_count
5114     fi
5115     # 10*(2^10) chars as input seems more than enough
5116     test $ac_count -gt 10 && break
5117   done
5118   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5119 esac
5120
5121       $ac_path_SED_found && break 3
5122     done
5123   done
5124   done
5125 IFS=$as_save_IFS
5126   if test -z "$ac_cv_path_SED"; then
5127     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5128   fi
5129 else
5130   ac_cv_path_SED=$SED
5131 fi
5132
5133 fi
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5135 $as_echo "$ac_cv_path_SED" >&6; }
5136  SED="$ac_cv_path_SED"
5137   rm -f conftest.sed
5138
5139 test -z "$SED" && SED=sed
5140 Xsed="$SED -e 1s/^X//"
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5153 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5154 if test "${ac_cv_path_GREP+set}" = set; then :
5155   $as_echo_n "(cached) " >&6
5156 else
5157   if test -z "$GREP"; then
5158   ac_path_GREP_found=false
5159   # Loop through the user's path and test for each of PROGNAME-LIST
5160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5162 do
5163   IFS=$as_save_IFS
5164   test -z "$as_dir" && as_dir=.
5165     for ac_prog in grep ggrep; do
5166     for ac_exec_ext in '' $ac_executable_extensions; do
5167       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5168       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5169 # Check for GNU ac_path_GREP and select it if it is found.
5170   # Check for GNU $ac_path_GREP
5171 case `"$ac_path_GREP" --version 2>&1` in
5172 *GNU*)
5173   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5174 *)
5175   ac_count=0
5176   $as_echo_n 0123456789 >"conftest.in"
5177   while :
5178   do
5179     cat "conftest.in" "conftest.in" >"conftest.tmp"
5180     mv "conftest.tmp" "conftest.in"
5181     cp "conftest.in" "conftest.nl"
5182     $as_echo 'GREP' >> "conftest.nl"
5183     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5184     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5185     as_fn_arith $ac_count + 1 && ac_count=$as_val
5186     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5187       # Best one so far, save it but keep looking for a better one
5188       ac_cv_path_GREP="$ac_path_GREP"
5189       ac_path_GREP_max=$ac_count
5190     fi
5191     # 10*(2^10) chars as input seems more than enough
5192     test $ac_count -gt 10 && break
5193   done
5194   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5195 esac
5196
5197       $ac_path_GREP_found && break 3
5198     done
5199   done
5200   done
5201 IFS=$as_save_IFS
5202   if test -z "$ac_cv_path_GREP"; then
5203     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5204   fi
5205 else
5206   ac_cv_path_GREP=$GREP
5207 fi
5208
5209 fi
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5211 $as_echo "$ac_cv_path_GREP" >&6; }
5212  GREP="$ac_cv_path_GREP"
5213
5214
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5216 $as_echo_n "checking for egrep... " >&6; }
5217 if test "${ac_cv_path_EGREP+set}" = set; then :
5218   $as_echo_n "(cached) " >&6
5219 else
5220   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5221    then ac_cv_path_EGREP="$GREP -E"
5222    else
5223      if test -z "$EGREP"; then
5224   ac_path_EGREP_found=false
5225   # Loop through the user's path and test for each of PROGNAME-LIST
5226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5228 do
5229   IFS=$as_save_IFS
5230   test -z "$as_dir" && as_dir=.
5231     for ac_prog in egrep; do
5232     for ac_exec_ext in '' $ac_executable_extensions; do
5233       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5234       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5235 # Check for GNU ac_path_EGREP and select it if it is found.
5236   # Check for GNU $ac_path_EGREP
5237 case `"$ac_path_EGREP" --version 2>&1` in
5238 *GNU*)
5239   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5240 *)
5241   ac_count=0
5242   $as_echo_n 0123456789 >"conftest.in"
5243   while :
5244   do
5245     cat "conftest.in" "conftest.in" >"conftest.tmp"
5246     mv "conftest.tmp" "conftest.in"
5247     cp "conftest.in" "conftest.nl"
5248     $as_echo 'EGREP' >> "conftest.nl"
5249     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5250     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5251     as_fn_arith $ac_count + 1 && ac_count=$as_val
5252     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5253       # Best one so far, save it but keep looking for a better one
5254       ac_cv_path_EGREP="$ac_path_EGREP"
5255       ac_path_EGREP_max=$ac_count
5256     fi
5257     # 10*(2^10) chars as input seems more than enough
5258     test $ac_count -gt 10 && break
5259   done
5260   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5261 esac
5262
5263       $ac_path_EGREP_found && break 3
5264     done
5265   done
5266   done
5267 IFS=$as_save_IFS
5268   if test -z "$ac_cv_path_EGREP"; then
5269     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5270   fi
5271 else
5272   ac_cv_path_EGREP=$EGREP
5273 fi
5274
5275    fi
5276 fi
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5278 $as_echo "$ac_cv_path_EGREP" >&6; }
5279  EGREP="$ac_cv_path_EGREP"
5280
5281
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5283 $as_echo_n "checking for fgrep... " >&6; }
5284 if test "${ac_cv_path_FGREP+set}" = set; then :
5285   $as_echo_n "(cached) " >&6
5286 else
5287   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5288    then ac_cv_path_FGREP="$GREP -F"
5289    else
5290      if test -z "$FGREP"; then
5291   ac_path_FGREP_found=false
5292   # Loop through the user's path and test for each of PROGNAME-LIST
5293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5295 do
5296   IFS=$as_save_IFS
5297   test -z "$as_dir" && as_dir=.
5298     for ac_prog in fgrep; do
5299     for ac_exec_ext in '' $ac_executable_extensions; do
5300       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5301       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5302 # Check for GNU ac_path_FGREP and select it if it is found.
5303   # Check for GNU $ac_path_FGREP
5304 case `"$ac_path_FGREP" --version 2>&1` in
5305 *GNU*)
5306   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5307 *)
5308   ac_count=0
5309   $as_echo_n 0123456789 >"conftest.in"
5310   while :
5311   do
5312     cat "conftest.in" "conftest.in" >"conftest.tmp"
5313     mv "conftest.tmp" "conftest.in"
5314     cp "conftest.in" "conftest.nl"
5315     $as_echo 'FGREP' >> "conftest.nl"
5316     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5317     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5318     as_fn_arith $ac_count + 1 && ac_count=$as_val
5319     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5320       # Best one so far, save it but keep looking for a better one
5321       ac_cv_path_FGREP="$ac_path_FGREP"
5322       ac_path_FGREP_max=$ac_count
5323     fi
5324     # 10*(2^10) chars as input seems more than enough
5325     test $ac_count -gt 10 && break
5326   done
5327   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5328 esac
5329
5330       $ac_path_FGREP_found && break 3
5331     done
5332   done
5333   done
5334 IFS=$as_save_IFS
5335   if test -z "$ac_cv_path_FGREP"; then
5336     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5337   fi
5338 else
5339   ac_cv_path_FGREP=$FGREP
5340 fi
5341
5342    fi
5343 fi
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5345 $as_echo "$ac_cv_path_FGREP" >&6; }
5346  FGREP="$ac_cv_path_FGREP"
5347
5348
5349 test -z "$GREP" && GREP=grep
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369 # Check whether --with-gnu-ld was given.
5370 if test "${with_gnu_ld+set}" = set; then :
5371   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5372 else
5373   with_gnu_ld=no
5374 fi
5375
5376 ac_prog=ld
5377 if test "$GCC" = yes; then
5378   # Check if gcc -print-prog-name=ld gives a path.
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5380 $as_echo_n "checking for ld used by $CC... " >&6; }
5381   case $host in
5382   *-*-mingw*)
5383     # gcc leaves a trailing carriage return which upsets mingw
5384     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5385   *)
5386     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5387   esac
5388   case $ac_prog in
5389     # Accept absolute paths.
5390     [\\/]* | ?:[\\/]*)
5391       re_direlt='/[^/][^/]*/\.\./'
5392       # Canonicalize the pathname of ld
5393       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5394       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5395         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5396       done
5397       test -z "$LD" && LD="$ac_prog"
5398       ;;
5399   "")
5400     # If it fails, then pretend we aren't using GCC.
5401     ac_prog=ld
5402     ;;
5403   *)
5404     # If it is relative, then search for the first ld in PATH.
5405     with_gnu_ld=unknown
5406     ;;
5407   esac
5408 elif test "$with_gnu_ld" = yes; then
5409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5410 $as_echo_n "checking for GNU ld... " >&6; }
5411 else
5412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5413 $as_echo_n "checking for non-GNU ld... " >&6; }
5414 fi
5415 if test "${lt_cv_path_LD+set}" = set; then :
5416   $as_echo_n "(cached) " >&6
5417 else
5418   if test -z "$LD"; then
5419   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5420   for ac_dir in $PATH; do
5421     IFS="$lt_save_ifs"
5422     test -z "$ac_dir" && ac_dir=.
5423     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5424       lt_cv_path_LD="$ac_dir/$ac_prog"
5425       # Check to see if the program is GNU ld.  I'd rather use --version,
5426       # but apparently some variants of GNU ld only accept -v.
5427       # Break only if it was the GNU/non-GNU ld that we prefer.
5428       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5429       *GNU* | *'with BFD'*)
5430         test "$with_gnu_ld" != no && break
5431         ;;
5432       *)
5433         test "$with_gnu_ld" != yes && break
5434         ;;
5435       esac
5436     fi
5437   done
5438   IFS="$lt_save_ifs"
5439 else
5440   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5441 fi
5442 fi
5443
5444 LD="$lt_cv_path_LD"
5445 if test -n "$LD"; then
5446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5447 $as_echo "$LD" >&6; }
5448 else
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5451 fi
5452 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5454 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5455 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5456   $as_echo_n "(cached) " >&6
5457 else
5458   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5459 case `$LD -v 2>&1 </dev/null` in
5460 *GNU* | *'with BFD'*)
5461   lt_cv_prog_gnu_ld=yes
5462   ;;
5463 *)
5464   lt_cv_prog_gnu_ld=no
5465   ;;
5466 esac
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5469 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5470 with_gnu_ld=$lt_cv_prog_gnu_ld
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5481 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5482 if test "${lt_cv_path_NM+set}" = set; then :
5483   $as_echo_n "(cached) " >&6
5484 else
5485   if test -n "$NM"; then
5486   # Let the user override the test.
5487   lt_cv_path_NM="$NM"
5488 else
5489   lt_nm_to_check="${ac_tool_prefix}nm"
5490   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5491     lt_nm_to_check="$lt_nm_to_check nm"
5492   fi
5493   for lt_tmp_nm in $lt_nm_to_check; do
5494     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5495     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5496       IFS="$lt_save_ifs"
5497       test -z "$ac_dir" && ac_dir=.
5498       tmp_nm="$ac_dir/$lt_tmp_nm"
5499       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5500         # Check to see if the nm accepts a BSD-compat flag.
5501         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5502         #   nm: unknown option "B" ignored
5503         # Tru64's nm complains that /dev/null is an invalid object file
5504         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5505         */dev/null* | *'Invalid file or object type'*)
5506           lt_cv_path_NM="$tmp_nm -B"
5507           break
5508           ;;
5509         *)
5510           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5511           */dev/null*)
5512             lt_cv_path_NM="$tmp_nm -p"
5513             break
5514             ;;
5515           *)
5516             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5517             continue # so that we can try to find one that supports BSD flags
5518             ;;
5519           esac
5520           ;;
5521         esac
5522       fi
5523     done
5524     IFS="$lt_save_ifs"
5525   done
5526   : ${lt_cv_path_NM=no}
5527 fi
5528 fi
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5530 $as_echo "$lt_cv_path_NM" >&6; }
5531 if test "$lt_cv_path_NM" != "no"; then
5532   NM="$lt_cv_path_NM"
5533 else
5534   # Didn't find any BSD compatible name lister, look for dumpbin.
5535   if test -n "$ac_tool_prefix"; then
5536   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5537   do
5538     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5539 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5543   $as_echo_n "(cached) " >&6
5544 else
5545   if test -n "$DUMPBIN"; then
5546   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5547 else
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5550 do
5551   IFS=$as_save_IFS
5552   test -z "$as_dir" && as_dir=.
5553     for ac_exec_ext in '' $ac_executable_extensions; do
5554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557     break 2
5558   fi
5559 done
5560   done
5561 IFS=$as_save_IFS
5562
5563 fi
5564 fi
5565 DUMPBIN=$ac_cv_prog_DUMPBIN
5566 if test -n "$DUMPBIN"; then
5567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5568 $as_echo "$DUMPBIN" >&6; }
5569 else
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5572 fi
5573
5574
5575     test -n "$DUMPBIN" && break
5576   done
5577 fi
5578 if test -z "$DUMPBIN"; then
5579   ac_ct_DUMPBIN=$DUMPBIN
5580   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5581 do
5582   # Extract the first word of "$ac_prog", so it can be a program name with args.
5583 set dummy $ac_prog; ac_word=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5587   $as_echo_n "(cached) " >&6
5588 else
5589   if test -n "$ac_ct_DUMPBIN"; then
5590   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5591 else
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 for as_dir in $PATH
5594 do
5595   IFS=$as_save_IFS
5596   test -z "$as_dir" && as_dir=.
5597     for ac_exec_ext in '' $ac_executable_extensions; do
5598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601     break 2
5602   fi
5603 done
5604   done
5605 IFS=$as_save_IFS
5606
5607 fi
5608 fi
5609 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5610 if test -n "$ac_ct_DUMPBIN"; then
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5612 $as_echo "$ac_ct_DUMPBIN" >&6; }
5613 else
5614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5616 fi
5617
5618
5619   test -n "$ac_ct_DUMPBIN" && break
5620 done
5621
5622   if test "x$ac_ct_DUMPBIN" = x; then
5623     DUMPBIN=":"
5624   else
5625     case $cross_compiling:$ac_tool_warned in
5626 yes:)
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5629 ac_tool_warned=yes ;;
5630 esac
5631     DUMPBIN=$ac_ct_DUMPBIN
5632   fi
5633 fi
5634
5635
5636   if test "$DUMPBIN" != ":"; then
5637     NM="$DUMPBIN"
5638   fi
5639 fi
5640 test -z "$NM" && NM=nm
5641
5642
5643
5644
5645
5646
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5648 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5649 if test "${lt_cv_nm_interface+set}" = set; then :
5650   $as_echo_n "(cached) " >&6
5651 else
5652   lt_cv_nm_interface="BSD nm"
5653   echo "int some_variable = 0;" > conftest.$ac_ext
5654   (eval echo "\"\$as_me:5654: $ac_compile\"" >&5)
5655   (eval "$ac_compile" 2>conftest.err)
5656   cat conftest.err >&5
5657   (eval echo "\"\$as_me:5657: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5658   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5659   cat conftest.err >&5
5660   (eval echo "\"\$as_me:5660: output\"" >&5)
5661   cat conftest.out >&5
5662   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5663     lt_cv_nm_interface="MS dumpbin"
5664   fi
5665   rm -f conftest*
5666 fi
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5668 $as_echo "$lt_cv_nm_interface" >&6; }
5669
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5671 $as_echo_n "checking whether ln -s works... " >&6; }
5672 LN_S=$as_ln_s
5673 if test "$LN_S" = "ln -s"; then
5674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5675 $as_echo "yes" >&6; }
5676 else
5677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5678 $as_echo "no, using $LN_S" >&6; }
5679 fi
5680
5681 # find the maximum length of command line arguments
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5683 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5684 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5685   $as_echo_n "(cached) " >&6
5686 else
5687     i=0
5688   teststring="ABCD"
5689
5690   case $build_os in
5691   msdosdjgpp*)
5692     # On DJGPP, this test can blow up pretty badly due to problems in libc
5693     # (any single argument exceeding 2000 bytes causes a buffer overrun
5694     # during glob expansion).  Even if it were fixed, the result of this
5695     # check would be larger than it should be.
5696     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5697     ;;
5698
5699   gnu*)
5700     # Under GNU Hurd, this test is not required because there is
5701     # no limit to the length of command line arguments.
5702     # Libtool will interpret -1 as no limit whatsoever
5703     lt_cv_sys_max_cmd_len=-1;
5704     ;;
5705
5706   cygwin* | mingw* | cegcc*)
5707     # On Win9x/ME, this test blows up -- it succeeds, but takes
5708     # about 5 minutes as the teststring grows exponentially.
5709     # Worse, since 9x/ME are not pre-emptively multitasking,
5710     # you end up with a "frozen" computer, even though with patience
5711     # the test eventually succeeds (with a max line length of 256k).
5712     # Instead, let's just punt: use the minimum linelength reported by
5713     # all of the supported platforms: 8192 (on NT/2K/XP).
5714     lt_cv_sys_max_cmd_len=8192;
5715     ;;
5716
5717   amigaos*)
5718     # On AmigaOS with pdksh, this test takes hours, literally.
5719     # So we just punt and use a minimum line length of 8192.
5720     lt_cv_sys_max_cmd_len=8192;
5721     ;;
5722
5723   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5724     # This has been around since 386BSD, at least.  Likely further.
5725     if test -x /sbin/sysctl; then
5726       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5727     elif test -x /usr/sbin/sysctl; then
5728       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5729     else
5730       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5731     fi
5732     # And add a safety zone
5733     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5734     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5735     ;;
5736
5737   interix*)
5738     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5739     lt_cv_sys_max_cmd_len=196608
5740     ;;
5741
5742   osf*)
5743     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5744     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5745     # nice to cause kernel panics so lets avoid the loop below.
5746     # First set a reasonable default.
5747     lt_cv_sys_max_cmd_len=16384
5748     #
5749     if test -x /sbin/sysconfig; then
5750       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5751         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5752       esac
5753     fi
5754     ;;
5755   sco3.2v5*)
5756     lt_cv_sys_max_cmd_len=102400
5757     ;;
5758   sysv5* | sco5v6* | sysv4.2uw2*)
5759     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5760     if test -n "$kargmax"; then
5761       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5762     else
5763       lt_cv_sys_max_cmd_len=32768
5764     fi
5765     ;;
5766   *)
5767     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5768     if test -n "$lt_cv_sys_max_cmd_len"; then
5769       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5770       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5771     else
5772       # Make teststring a little bigger before we do anything with it.
5773       # a 1K string should be a reasonable start.
5774       for i in 1 2 3 4 5 6 7 8 ; do
5775         teststring=$teststring$teststring
5776       done
5777       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5778       # If test is not a shell built-in, we'll probably end up computing a
5779       # maximum length that is only half of the actual maximum length, but
5780       # we can't tell.
5781       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5782                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5783               test $i != 17 # 1/2 MB should be enough
5784       do
5785         i=`expr $i + 1`
5786         teststring=$teststring$teststring
5787       done
5788       # Only check the string length outside the loop.
5789       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5790       teststring=
5791       # Add a significant safety factor because C++ compilers can tack on
5792       # massive amounts of additional arguments before passing them to the
5793       # linker.  It appears as though 1/2 is a usable value.
5794       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5795     fi
5796     ;;
5797   esac
5798
5799 fi
5800
5801 if test -n $lt_cv_sys_max_cmd_len ; then
5802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5803 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5804 else
5805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5806 $as_echo "none" >&6; }
5807 fi
5808 max_cmd_len=$lt_cv_sys_max_cmd_len
5809
5810
5811
5812
5813
5814
5815 : ${CP="cp -f"}
5816 : ${MV="mv -f"}
5817 : ${RM="rm -f"}
5818
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5820 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5821 # Try some XSI features
5822 xsi_shell=no
5823 ( _lt_dummy="a/b/c"
5824   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5825       = c,a/b,, \
5826     && eval 'test $(( 1 + 1 )) -eq 2 \
5827     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5828   && xsi_shell=yes
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5830 $as_echo "$xsi_shell" >&6; }
5831
5832
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5834 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5835 lt_shell_append=no
5836 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5837     >/dev/null 2>&1 \
5838   && lt_shell_append=yes
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5840 $as_echo "$lt_shell_append" >&6; }
5841
5842
5843 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5844   lt_unset=unset
5845 else
5846   lt_unset=false
5847 fi
5848
5849
5850
5851
5852
5853 # test EBCDIC or ASCII
5854 case `echo X|tr X '\101'` in
5855  A) # ASCII based system
5856     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5857   lt_SP2NL='tr \040 \012'
5858   lt_NL2SP='tr \015\012 \040\040'
5859   ;;
5860  *) # EBCDIC based system
5861   lt_SP2NL='tr \100 \n'
5862   lt_NL2SP='tr \r\n \100\100'
5863   ;;
5864 esac
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5875 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5876 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5877   $as_echo_n "(cached) " >&6
5878 else
5879   lt_cv_ld_reload_flag='-r'
5880 fi
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5882 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5883 reload_flag=$lt_cv_ld_reload_flag
5884 case $reload_flag in
5885 "" | " "*) ;;
5886 *) reload_flag=" $reload_flag" ;;
5887 esac
5888 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5889 case $host_os in
5890   darwin*)
5891     if test "$GCC" = yes; then
5892       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5893     else
5894       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5895     fi
5896     ;;
5897 esac
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907 if test -n "$ac_tool_prefix"; then
5908   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5909 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5913   $as_echo_n "(cached) " >&6
5914 else
5915   if test -n "$OBJDUMP"; then
5916   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5920 do
5921   IFS=$as_save_IFS
5922   test -z "$as_dir" && as_dir=.
5923     for ac_exec_ext in '' $ac_executable_extensions; do
5924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5925     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927     break 2
5928   fi
5929 done
5930   done
5931 IFS=$as_save_IFS
5932
5933 fi
5934 fi
5935 OBJDUMP=$ac_cv_prog_OBJDUMP
5936 if test -n "$OBJDUMP"; then
5937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5938 $as_echo "$OBJDUMP" >&6; }
5939 else
5940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5942 fi
5943
5944
5945 fi
5946 if test -z "$ac_cv_prog_OBJDUMP"; then
5947   ac_ct_OBJDUMP=$OBJDUMP
5948   # Extract the first word of "objdump", so it can be a program name with args.
5949 set dummy objdump; ac_word=$2
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 $as_echo_n "checking for $ac_word... " >&6; }
5952 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5953   $as_echo_n "(cached) " >&6
5954 else
5955   if test -n "$ac_ct_OBJDUMP"; then
5956   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5957 else
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5960 do
5961   IFS=$as_save_IFS
5962   test -z "$as_dir" && as_dir=.
5963     for ac_exec_ext in '' $ac_executable_extensions; do
5964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5965     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5967     break 2
5968   fi
5969 done
5970   done
5971 IFS=$as_save_IFS
5972
5973 fi
5974 fi
5975 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5976 if test -n "$ac_ct_OBJDUMP"; then
5977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5978 $as_echo "$ac_ct_OBJDUMP" >&6; }
5979 else
5980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5982 fi
5983
5984   if test "x$ac_ct_OBJDUMP" = x; then
5985     OBJDUMP="false"
5986   else
5987     case $cross_compiling:$ac_tool_warned in
5988 yes:)
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5991 ac_tool_warned=yes ;;
5992 esac
5993     OBJDUMP=$ac_ct_OBJDUMP
5994   fi
5995 else
5996   OBJDUMP="$ac_cv_prog_OBJDUMP"
5997 fi
5998
5999 test -z "$OBJDUMP" && OBJDUMP=objdump
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6010 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6011 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6012   $as_echo_n "(cached) " >&6
6013 else
6014   lt_cv_file_magic_cmd='$MAGIC_CMD'
6015 lt_cv_file_magic_test_file=
6016 lt_cv_deplibs_check_method='unknown'
6017 # Need to set the preceding variable on all platforms that support
6018 # interlibrary dependencies.
6019 # 'none' -- dependencies not supported.
6020 # `unknown' -- same as none, but documents that we really don't know.
6021 # 'pass_all' -- all dependencies passed with no checks.
6022 # 'test_compile' -- check by making test program.
6023 # 'file_magic [[regex]]' -- check by looking for files in library path
6024 # which responds to the $file_magic_cmd with a given extended regex.
6025 # If you have `file' or equivalent on your system and you're not sure
6026 # whether `pass_all' will *always* work, you probably want this one.
6027
6028 case $host_os in
6029 aix[4-9]*)
6030   lt_cv_deplibs_check_method=pass_all
6031   ;;
6032
6033 beos*)
6034   lt_cv_deplibs_check_method=pass_all
6035   ;;
6036
6037 bsdi[45]*)
6038   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6039   lt_cv_file_magic_cmd='/usr/bin/file -L'
6040   lt_cv_file_magic_test_file=/shlib/libc.so
6041   ;;
6042
6043 cygwin*)
6044   # func_win32_libid is a shell function defined in ltmain.sh
6045   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6046   lt_cv_file_magic_cmd='func_win32_libid'
6047   ;;
6048
6049 mingw* | pw32*)
6050   # Base MSYS/MinGW do not provide the 'file' command needed by
6051   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6052   # unless we find 'file', for example because we are cross-compiling.
6053   if ( file / ) >/dev/null 2>&1; then
6054     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6055     lt_cv_file_magic_cmd='func_win32_libid'
6056   else
6057     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6058     lt_cv_file_magic_cmd='$OBJDUMP -f'
6059   fi
6060   ;;
6061
6062 cegcc)
6063   # use the weaker test based on 'objdump'. See mingw*.
6064   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6065   lt_cv_file_magic_cmd='$OBJDUMP -f'
6066   ;;
6067
6068 darwin* | rhapsody*)
6069   lt_cv_deplibs_check_method=pass_all
6070   ;;
6071
6072 freebsd* | dragonfly*)
6073   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6074     case $host_cpu in
6075     i*86 )
6076       # Not sure whether the presence of OpenBSD here was a mistake.
6077       # Let's accept both of them until this is cleared up.
6078       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6079       lt_cv_file_magic_cmd=/usr/bin/file
6080       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6081       ;;
6082     esac
6083   else
6084     lt_cv_deplibs_check_method=pass_all
6085   fi
6086   ;;
6087
6088 gnu*)
6089   lt_cv_deplibs_check_method=pass_all
6090   ;;
6091
6092 hpux10.20* | hpux11*)
6093   lt_cv_file_magic_cmd=/usr/bin/file
6094   case $host_cpu in
6095   ia64*)
6096     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6097     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6098     ;;
6099   hppa*64*)
6100     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]'
6101     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6102     ;;
6103   *)
6104     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6105     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6106     ;;
6107   esac
6108   ;;
6109
6110 interix[3-9]*)
6111   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6112   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6113   ;;
6114
6115 irix5* | irix6* | nonstopux*)
6116   case $LD in
6117   *-32|*"-32 ") libmagic=32-bit;;
6118   *-n32|*"-n32 ") libmagic=N32;;
6119   *-64|*"-64 ") libmagic=64-bit;;
6120   *) libmagic=never-match;;
6121   esac
6122   lt_cv_deplibs_check_method=pass_all
6123   ;;
6124
6125 # This must be Linux ELF.
6126 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6127   lt_cv_deplibs_check_method=pass_all
6128   ;;
6129
6130 netbsd*)
6131   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6132     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6133   else
6134     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6135   fi
6136   ;;
6137
6138 newos6*)
6139   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6140   lt_cv_file_magic_cmd=/usr/bin/file
6141   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6142   ;;
6143
6144 *nto* | *qnx*)
6145   lt_cv_deplibs_check_method=pass_all
6146   ;;
6147
6148 openbsd*)
6149   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6150     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6151   else
6152     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6153   fi
6154   ;;
6155
6156 osf3* | osf4* | osf5*)
6157   lt_cv_deplibs_check_method=pass_all
6158   ;;
6159
6160 rdos*)
6161   lt_cv_deplibs_check_method=pass_all
6162   ;;
6163
6164 solaris*)
6165   lt_cv_deplibs_check_method=pass_all
6166   ;;
6167
6168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6169   lt_cv_deplibs_check_method=pass_all
6170   ;;
6171
6172 sysv4 | sysv4.3*)
6173   case $host_vendor in
6174   motorola)
6175     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]'
6176     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6177     ;;
6178   ncr)
6179     lt_cv_deplibs_check_method=pass_all
6180     ;;
6181   sequent)
6182     lt_cv_file_magic_cmd='/bin/file'
6183     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6184     ;;
6185   sni)
6186     lt_cv_file_magic_cmd='/bin/file'
6187     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6188     lt_cv_file_magic_test_file=/lib/libc.so
6189     ;;
6190   siemens)
6191     lt_cv_deplibs_check_method=pass_all
6192     ;;
6193   pc)
6194     lt_cv_deplibs_check_method=pass_all
6195     ;;
6196   esac
6197   ;;
6198
6199 tpf*)
6200   lt_cv_deplibs_check_method=pass_all
6201   ;;
6202 esac
6203
6204 fi
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6206 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6207 file_magic_cmd=$lt_cv_file_magic_cmd
6208 deplibs_check_method=$lt_cv_deplibs_check_method
6209 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222 if test -n "$ac_tool_prefix"; then
6223   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6224 set dummy ${ac_tool_prefix}ar; ac_word=$2
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if test "${ac_cv_prog_AR+set}" = set; then :
6228   $as_echo_n "(cached) " >&6
6229 else
6230   if test -n "$AR"; then
6231   ac_cv_prog_AR="$AR" # Let the user override the test.
6232 else
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH
6235 do
6236   IFS=$as_save_IFS
6237   test -z "$as_dir" && as_dir=.
6238     for ac_exec_ext in '' $ac_executable_extensions; do
6239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6240     ac_cv_prog_AR="${ac_tool_prefix}ar"
6241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242     break 2
6243   fi
6244 done
6245   done
6246 IFS=$as_save_IFS
6247
6248 fi
6249 fi
6250 AR=$ac_cv_prog_AR
6251 if test -n "$AR"; then
6252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6253 $as_echo "$AR" >&6; }
6254 else
6255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6257 fi
6258
6259
6260 fi
6261 if test -z "$ac_cv_prog_AR"; then
6262   ac_ct_AR=$AR
6263   # Extract the first word of "ar", so it can be a program name with args.
6264 set dummy ar; ac_word=$2
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6268   $as_echo_n "(cached) " >&6
6269 else
6270   if test -n "$ac_ct_AR"; then
6271   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276   IFS=$as_save_IFS
6277   test -z "$as_dir" && as_dir=.
6278     for ac_exec_ext in '' $ac_executable_extensions; do
6279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6280     ac_cv_prog_ac_ct_AR="ar"
6281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282     break 2
6283   fi
6284 done
6285   done
6286 IFS=$as_save_IFS
6287
6288 fi
6289 fi
6290 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6291 if test -n "$ac_ct_AR"; then
6292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6293 $as_echo "$ac_ct_AR" >&6; }
6294 else
6295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 $as_echo "no" >&6; }
6297 fi
6298
6299   if test "x$ac_ct_AR" = x; then
6300     AR="false"
6301   else
6302     case $cross_compiling:$ac_tool_warned in
6303 yes:)
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6306 ac_tool_warned=yes ;;
6307 esac
6308     AR=$ac_ct_AR
6309   fi
6310 else
6311   AR="$ac_cv_prog_AR"
6312 fi
6313
6314 test -z "$AR" && AR=ar
6315 test -z "$AR_FLAGS" && AR_FLAGS=cru
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327 if test -n "$ac_tool_prefix"; then
6328   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6329 set dummy ${ac_tool_prefix}strip; ac_word=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if test "${ac_cv_prog_STRIP+set}" = set; then :
6333   $as_echo_n "(cached) " >&6
6334 else
6335   if test -n "$STRIP"; then
6336   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341   IFS=$as_save_IFS
6342   test -z "$as_dir" && as_dir=.
6343     for ac_exec_ext in '' $ac_executable_extensions; do
6344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347     break 2
6348   fi
6349 done
6350   done
6351 IFS=$as_save_IFS
6352
6353 fi
6354 fi
6355 STRIP=$ac_cv_prog_STRIP
6356 if test -n "$STRIP"; then
6357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6358 $as_echo "$STRIP" >&6; }
6359 else
6360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6362 fi
6363
6364
6365 fi
6366 if test -z "$ac_cv_prog_STRIP"; then
6367   ac_ct_STRIP=$STRIP
6368   # Extract the first word of "strip", so it can be a program name with args.
6369 set dummy strip; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6373   $as_echo_n "(cached) " >&6
6374 else
6375   if test -n "$ac_ct_STRIP"; then
6376   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6380 do
6381   IFS=$as_save_IFS
6382   test -z "$as_dir" && as_dir=.
6383     for ac_exec_ext in '' $ac_executable_extensions; do
6384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6385     ac_cv_prog_ac_ct_STRIP="strip"
6386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387     break 2
6388   fi
6389 done
6390   done
6391 IFS=$as_save_IFS
6392
6393 fi
6394 fi
6395 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6396 if test -n "$ac_ct_STRIP"; then
6397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6398 $as_echo "$ac_ct_STRIP" >&6; }
6399 else
6400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6402 fi
6403
6404   if test "x$ac_ct_STRIP" = x; then
6405     STRIP=":"
6406   else
6407     case $cross_compiling:$ac_tool_warned in
6408 yes:)
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6411 ac_tool_warned=yes ;;
6412 esac
6413     STRIP=$ac_ct_STRIP
6414   fi
6415 else
6416   STRIP="$ac_cv_prog_STRIP"
6417 fi
6418
6419 test -z "$STRIP" && STRIP=:
6420
6421
6422
6423
6424
6425
6426 if test -n "$ac_tool_prefix"; then
6427   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6428 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6432   $as_echo_n "(cached) " >&6
6433 else
6434   if test -n "$RANLIB"; then
6435   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6436 else
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6439 do
6440   IFS=$as_save_IFS
6441   test -z "$as_dir" && as_dir=.
6442     for ac_exec_ext in '' $ac_executable_extensions; do
6443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6444     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446     break 2
6447   fi
6448 done
6449   done
6450 IFS=$as_save_IFS
6451
6452 fi
6453 fi
6454 RANLIB=$ac_cv_prog_RANLIB
6455 if test -n "$RANLIB"; then
6456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6457 $as_echo "$RANLIB" >&6; }
6458 else
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6461 fi
6462
6463
6464 fi
6465 if test -z "$ac_cv_prog_RANLIB"; then
6466   ac_ct_RANLIB=$RANLIB
6467   # Extract the first word of "ranlib", so it can be a program name with args.
6468 set dummy ranlib; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6472   $as_echo_n "(cached) " >&6
6473 else
6474   if test -n "$ac_ct_RANLIB"; then
6475   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6476 else
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6479 do
6480   IFS=$as_save_IFS
6481   test -z "$as_dir" && as_dir=.
6482     for ac_exec_ext in '' $ac_executable_extensions; do
6483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6484     ac_cv_prog_ac_ct_RANLIB="ranlib"
6485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486     break 2
6487   fi
6488 done
6489   done
6490 IFS=$as_save_IFS
6491
6492 fi
6493 fi
6494 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6495 if test -n "$ac_ct_RANLIB"; then
6496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6497 $as_echo "$ac_ct_RANLIB" >&6; }
6498 else
6499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6501 fi
6502
6503   if test "x$ac_ct_RANLIB" = x; then
6504     RANLIB=":"
6505   else
6506     case $cross_compiling:$ac_tool_warned in
6507 yes:)
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6510 ac_tool_warned=yes ;;
6511 esac
6512     RANLIB=$ac_ct_RANLIB
6513   fi
6514 else
6515   RANLIB="$ac_cv_prog_RANLIB"
6516 fi
6517
6518 test -z "$RANLIB" && RANLIB=:
6519
6520
6521
6522
6523
6524
6525 # Determine commands to create old-style static archives.
6526 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6527 old_postinstall_cmds='chmod 644 $oldlib'
6528 old_postuninstall_cmds=
6529
6530 if test -n "$RANLIB"; then
6531   case $host_os in
6532   openbsd*)
6533     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6534     ;;
6535   *)
6536     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6537     ;;
6538   esac
6539   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6540 fi
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575 # If no C compiler was specified, use CC.
6576 LTCC=${LTCC-"$CC"}
6577
6578 # If no C compiler flags were specified, use CFLAGS.
6579 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6580
6581 # Allow CC to be a program name with arguments.
6582 compiler=$CC
6583
6584
6585 # Check for command to grab the raw symbol name followed by C symbol from nm.
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6587 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6588 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6589   $as_echo_n "(cached) " >&6
6590 else
6591
6592 # These are sane defaults that work on at least a few old systems.
6593 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6594
6595 # Character class describing NM global symbol codes.
6596 symcode='[BCDEGRST]'
6597
6598 # Regexp to match symbols that can be accessed directly from C.
6599 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6600
6601 # Define system-specific variables.
6602 case $host_os in
6603 aix*)
6604   symcode='[BCDT]'
6605   ;;
6606 cygwin* | mingw* | pw32* | cegcc*)
6607   symcode='[ABCDGISTW]'
6608   ;;
6609 hpux*)
6610   if test "$host_cpu" = ia64; then
6611     symcode='[ABCDEGRST]'
6612   fi
6613   ;;
6614 irix* | nonstopux*)
6615   symcode='[BCDEGRST]'
6616   ;;
6617 osf*)
6618   symcode='[BCDEGQRST]'
6619   ;;
6620 solaris*)
6621   symcode='[BDRT]'
6622   ;;
6623 sco3.2v5*)
6624   symcode='[DT]'
6625   ;;
6626 sysv4.2uw2*)
6627   symcode='[DT]'
6628   ;;
6629 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6630   symcode='[ABDT]'
6631   ;;
6632 sysv4)
6633   symcode='[DFNSTU]'
6634   ;;
6635 esac
6636
6637 # If we're using GNU nm, then use its standard symbol codes.
6638 case `$NM -V 2>&1` in
6639 *GNU* | *'with BFD'*)
6640   symcode='[ABCDGIRSTW]' ;;
6641 esac
6642
6643 # Transform an extracted symbol line into a proper C declaration.
6644 # Some systems (esp. on ia64) link data and code symbols differently,
6645 # so use this general approach.
6646 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6647
6648 # Transform an extracted symbol line into symbol name and symbol address
6649 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6650 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'"
6651
6652 # Handle CRLF in mingw tool chain
6653 opt_cr=
6654 case $build_os in
6655 mingw*)
6656   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6657   ;;
6658 esac
6659
6660 # Try without a prefix underscore, then with it.
6661 for ac_symprfx in "" "_"; do
6662
6663   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6664   symxfrm="\\1 $ac_symprfx\\2 \\2"
6665
6666   # Write the raw and C identifiers.
6667   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6668     # Fake it for dumpbin and say T for any non-static function
6669     # and D for any global variable.
6670     # Also find C++ and __fastcall symbols from MSVC++,
6671     # which start with @ or ?.
6672     lt_cv_sys_global_symbol_pipe="$AWK '"\
6673 "     {last_section=section; section=\$ 3};"\
6674 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6675 "     \$ 0!~/External *\|/{next};"\
6676 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6677 "     {if(hide[section]) next};"\
6678 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6679 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6680 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6681 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6682 "     ' prfx=^$ac_symprfx"
6683   else
6684     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6685   fi
6686
6687   # Check to see that the pipe works correctly.
6688   pipe_works=no
6689
6690   rm -f conftest*
6691   cat > conftest.$ac_ext <<_LT_EOF
6692 #ifdef __cplusplus
6693 extern "C" {
6694 #endif
6695 char nm_test_var;
6696 void nm_test_func(void);
6697 void nm_test_func(void){}
6698 #ifdef __cplusplus
6699 }
6700 #endif
6701 int main(){nm_test_var='a';nm_test_func();return(0);}
6702 _LT_EOF
6703
6704   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6705   (eval $ac_compile) 2>&5
6706   ac_status=$?
6707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6708   test $ac_status = 0; }; then
6709     # Now try to grab the symbols.
6710     nlist=conftest.nm
6711     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6712   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6713   ac_status=$?
6714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6715   test $ac_status = 0; } && test -s "$nlist"; then
6716       # Try sorting and uniquifying the output.
6717       if sort "$nlist" | uniq > "$nlist"T; then
6718         mv -f "$nlist"T "$nlist"
6719       else
6720         rm -f "$nlist"T
6721       fi
6722
6723       # Make sure that we snagged all the symbols we need.
6724       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6725         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6726           cat <<_LT_EOF > conftest.$ac_ext
6727 #ifdef __cplusplus
6728 extern "C" {
6729 #endif
6730
6731 _LT_EOF
6732           # Now generate the symbol file.
6733           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6734
6735           cat <<_LT_EOF >> conftest.$ac_ext
6736
6737 /* The mapping between symbol names and symbols.  */
6738 const struct {
6739   const char *name;
6740   void       *address;
6741 }
6742 lt__PROGRAM__LTX_preloaded_symbols[] =
6743 {
6744   { "@PROGRAM@", (void *) 0 },
6745 _LT_EOF
6746           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6747           cat <<\_LT_EOF >> conftest.$ac_ext
6748   {0, (void *) 0}
6749 };
6750
6751 /* This works around a problem in FreeBSD linker */
6752 #ifdef FREEBSD_WORKAROUND
6753 static const void *lt_preloaded_setup() {
6754   return lt__PROGRAM__LTX_preloaded_symbols;
6755 }
6756 #endif
6757
6758 #ifdef __cplusplus
6759 }
6760 #endif
6761 _LT_EOF
6762           # Now try linking the two files.
6763           mv conftest.$ac_objext conftstm.$ac_objext
6764           lt_save_LIBS="$LIBS"
6765           lt_save_CFLAGS="$CFLAGS"
6766           LIBS="conftstm.$ac_objext"
6767           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6768           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6769   (eval $ac_link) 2>&5
6770   ac_status=$?
6771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6772   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6773             pipe_works=yes
6774           fi
6775           LIBS="$lt_save_LIBS"
6776           CFLAGS="$lt_save_CFLAGS"
6777         else
6778           echo "cannot find nm_test_func in $nlist" >&5
6779         fi
6780       else
6781         echo "cannot find nm_test_var in $nlist" >&5
6782       fi
6783     else
6784       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6785     fi
6786   else
6787     echo "$progname: failed program was:" >&5
6788     cat conftest.$ac_ext >&5
6789   fi
6790   rm -rf conftest* conftst*
6791
6792   # Do not use the global_symbol_pipe unless it works.
6793   if test "$pipe_works" = yes; then
6794     break
6795   else
6796     lt_cv_sys_global_symbol_pipe=
6797   fi
6798 done
6799
6800 fi
6801
6802 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6803   lt_cv_sys_global_symbol_to_cdecl=
6804 fi
6805 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6807 $as_echo "failed" >&6; }
6808 else
6809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6810 $as_echo "ok" >&6; }
6811 fi
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835 # Check whether --enable-libtool-lock was given.
6836 if test "${enable_libtool_lock+set}" = set; then :
6837   enableval=$enable_libtool_lock;
6838 fi
6839
6840 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6841
6842 # Some flags need to be propagated to the compiler or linker for good
6843 # libtool support.
6844 case $host in
6845 ia64-*-hpux*)
6846   # Find out which ABI we are using.
6847   echo 'int i;' > conftest.$ac_ext
6848   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6849   (eval $ac_compile) 2>&5
6850   ac_status=$?
6851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852   test $ac_status = 0; }; then
6853     case `/usr/bin/file conftest.$ac_objext` in
6854       *ELF-32*)
6855         HPUX_IA64_MODE="32"
6856         ;;
6857       *ELF-64*)
6858         HPUX_IA64_MODE="64"
6859         ;;
6860     esac
6861   fi
6862   rm -rf conftest*
6863   ;;
6864 *-*-irix6*)
6865   # Find out which ABI we are using.
6866   echo '#line 6866 "configure"' > conftest.$ac_ext
6867   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6868   (eval $ac_compile) 2>&5
6869   ac_status=$?
6870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6871   test $ac_status = 0; }; then
6872     if test "$lt_cv_prog_gnu_ld" = yes; then
6873       case `/usr/bin/file conftest.$ac_objext` in
6874         *32-bit*)
6875           LD="${LD-ld} -melf32bsmip"
6876           ;;
6877         *N32*)
6878           LD="${LD-ld} -melf32bmipn32"
6879           ;;
6880         *64-bit*)
6881           LD="${LD-ld} -melf64bmip"
6882         ;;
6883       esac
6884     else
6885       case `/usr/bin/file conftest.$ac_objext` in
6886         *32-bit*)
6887           LD="${LD-ld} -32"
6888           ;;
6889         *N32*)
6890           LD="${LD-ld} -n32"
6891           ;;
6892         *64-bit*)
6893           LD="${LD-ld} -64"
6894           ;;
6895       esac
6896     fi
6897   fi
6898   rm -rf conftest*
6899   ;;
6900
6901 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6902 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6903   # Find out which ABI we are using.
6904   echo 'int i;' > conftest.$ac_ext
6905   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6906   (eval $ac_compile) 2>&5
6907   ac_status=$?
6908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6909   test $ac_status = 0; }; then
6910     case `/usr/bin/file conftest.o` in
6911       *32-bit*)
6912         case $host in
6913           x86_64-*kfreebsd*-gnu)
6914             LD="${LD-ld} -m elf_i386_fbsd"
6915             ;;
6916           x86_64-*linux*)
6917             LD="${LD-ld} -m elf_i386"
6918             ;;
6919           ppc64-*linux*|powerpc64-*linux*)
6920             LD="${LD-ld} -m elf32ppclinux"
6921             ;;
6922           s390x-*linux*)
6923             LD="${LD-ld} -m elf_s390"
6924             ;;
6925           sparc64-*linux*)
6926             LD="${LD-ld} -m elf32_sparc"
6927             ;;
6928         esac
6929         ;;
6930       *64-bit*)
6931         case $host in
6932           x86_64-*kfreebsd*-gnu)
6933             LD="${LD-ld} -m elf_x86_64_fbsd"
6934             ;;
6935           x86_64-*linux*)
6936             LD="${LD-ld} -m elf_x86_64"
6937             ;;
6938           ppc*-*linux*|powerpc*-*linux*)
6939             LD="${LD-ld} -m elf64ppc"
6940             ;;
6941           s390*-*linux*|s390*-*tpf*)
6942             LD="${LD-ld} -m elf64_s390"
6943             ;;
6944           sparc*-*linux*)
6945             LD="${LD-ld} -m elf64_sparc"
6946             ;;
6947         esac
6948         ;;
6949     esac
6950   fi
6951   rm -rf conftest*
6952   ;;
6953
6954 *-*-sco3.2v5*)
6955   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6956   SAVE_CFLAGS="$CFLAGS"
6957   CFLAGS="$CFLAGS -belf"
6958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6959 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6960 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6961   $as_echo_n "(cached) " >&6
6962 else
6963   ac_ext=c
6964 ac_cpp='$CPP $CPPFLAGS'
6965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6968
6969      if test x$gcc_no_link = xyes; then
6970   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6971 fi
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h.  */
6974
6975 int
6976 main ()
6977 {
6978
6979   ;
6980   return 0;
6981 }
6982 _ACEOF
6983 if ac_fn_c_try_link "$LINENO"; then :
6984   lt_cv_cc_needs_belf=yes
6985 else
6986   lt_cv_cc_needs_belf=no
6987 fi
6988 rm -f core conftest.err conftest.$ac_objext \
6989     conftest$ac_exeext conftest.$ac_ext
6990      ac_ext=c
6991 ac_cpp='$CPP $CPPFLAGS'
6992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6995
6996 fi
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6998 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6999   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7000     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7001     CFLAGS="$SAVE_CFLAGS"
7002   fi
7003   ;;
7004 sparc*-*solaris*)
7005   # Find out which ABI we are using.
7006   echo 'int i;' > conftest.$ac_ext
7007   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7008   (eval $ac_compile) 2>&5
7009   ac_status=$?
7010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7011   test $ac_status = 0; }; then
7012     case `/usr/bin/file conftest.o` in
7013     *64-bit*)
7014       case $lt_cv_prog_gnu_ld in
7015       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7016       *)
7017         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7018           LD="${LD-ld} -64"
7019         fi
7020         ;;
7021       esac
7022       ;;
7023     esac
7024   fi
7025   rm -rf conftest*
7026   ;;
7027 esac
7028
7029 need_locks="$enable_libtool_lock"
7030
7031
7032   case $host_os in
7033     rhapsody* | darwin*)
7034     if test -n "$ac_tool_prefix"; then
7035   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7036 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 $as_echo_n "checking for $ac_word... " >&6; }
7039 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7040   $as_echo_n "(cached) " >&6
7041 else
7042   if test -n "$DSYMUTIL"; then
7043   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7044 else
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 for as_dir in $PATH
7047 do
7048   IFS=$as_save_IFS
7049   test -z "$as_dir" && as_dir=.
7050     for ac_exec_ext in '' $ac_executable_extensions; do
7051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7052     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054     break 2
7055   fi
7056 done
7057   done
7058 IFS=$as_save_IFS
7059
7060 fi
7061 fi
7062 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7063 if test -n "$DSYMUTIL"; then
7064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7065 $as_echo "$DSYMUTIL" >&6; }
7066 else
7067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 $as_echo "no" >&6; }
7069 fi
7070
7071
7072 fi
7073 if test -z "$ac_cv_prog_DSYMUTIL"; then
7074   ac_ct_DSYMUTIL=$DSYMUTIL
7075   # Extract the first word of "dsymutil", so it can be a program name with args.
7076 set dummy dsymutil; ac_word=$2
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7078 $as_echo_n "checking for $ac_word... " >&6; }
7079 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7080   $as_echo_n "(cached) " >&6
7081 else
7082   if test -n "$ac_ct_DSYMUTIL"; then
7083   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7084 else
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7087 do
7088   IFS=$as_save_IFS
7089   test -z "$as_dir" && as_dir=.
7090     for ac_exec_ext in '' $ac_executable_extensions; do
7091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7092     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7094     break 2
7095   fi
7096 done
7097   done
7098 IFS=$as_save_IFS
7099
7100 fi
7101 fi
7102 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7103 if test -n "$ac_ct_DSYMUTIL"; then
7104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7105 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7106 else
7107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7109 fi
7110
7111   if test "x$ac_ct_DSYMUTIL" = x; then
7112     DSYMUTIL=":"
7113   else
7114     case $cross_compiling:$ac_tool_warned in
7115 yes:)
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7118 ac_tool_warned=yes ;;
7119 esac
7120     DSYMUTIL=$ac_ct_DSYMUTIL
7121   fi
7122 else
7123   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7124 fi
7125
7126     if test -n "$ac_tool_prefix"; then
7127   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7128 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130 $as_echo_n "checking for $ac_word... " >&6; }
7131 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7132   $as_echo_n "(cached) " >&6
7133 else
7134   if test -n "$NMEDIT"; then
7135   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7136 else
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7139 do
7140   IFS=$as_save_IFS
7141   test -z "$as_dir" && as_dir=.
7142     for ac_exec_ext in '' $ac_executable_extensions; do
7143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7144     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146     break 2
7147   fi
7148 done
7149   done
7150 IFS=$as_save_IFS
7151
7152 fi
7153 fi
7154 NMEDIT=$ac_cv_prog_NMEDIT
7155 if test -n "$NMEDIT"; then
7156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7157 $as_echo "$NMEDIT" >&6; }
7158 else
7159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 $as_echo "no" >&6; }
7161 fi
7162
7163
7164 fi
7165 if test -z "$ac_cv_prog_NMEDIT"; then
7166   ac_ct_NMEDIT=$NMEDIT
7167   # Extract the first word of "nmedit", so it can be a program name with args.
7168 set dummy nmedit; ac_word=$2
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170 $as_echo_n "checking for $ac_word... " >&6; }
7171 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7172   $as_echo_n "(cached) " >&6
7173 else
7174   if test -n "$ac_ct_NMEDIT"; then
7175   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7176 else
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7179 do
7180   IFS=$as_save_IFS
7181   test -z "$as_dir" && as_dir=.
7182     for ac_exec_ext in '' $ac_executable_extensions; do
7183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7186     break 2
7187   fi
7188 done
7189   done
7190 IFS=$as_save_IFS
7191
7192 fi
7193 fi
7194 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7195 if test -n "$ac_ct_NMEDIT"; then
7196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7197 $as_echo "$ac_ct_NMEDIT" >&6; }
7198 else
7199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200 $as_echo "no" >&6; }
7201 fi
7202
7203   if test "x$ac_ct_NMEDIT" = x; then
7204     NMEDIT=":"
7205   else
7206     case $cross_compiling:$ac_tool_warned in
7207 yes:)
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7210 ac_tool_warned=yes ;;
7211 esac
7212     NMEDIT=$ac_ct_NMEDIT
7213   fi
7214 else
7215   NMEDIT="$ac_cv_prog_NMEDIT"
7216 fi
7217
7218     if test -n "$ac_tool_prefix"; then
7219   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7220 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if test "${ac_cv_prog_LIPO+set}" = set; then :
7224   $as_echo_n "(cached) " >&6
7225 else
7226   if test -n "$LIPO"; then
7227   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7228 else
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232   IFS=$as_save_IFS
7233   test -z "$as_dir" && as_dir=.
7234     for ac_exec_ext in '' $ac_executable_extensions; do
7235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7236     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238     break 2
7239   fi
7240 done
7241   done
7242 IFS=$as_save_IFS
7243
7244 fi
7245 fi
7246 LIPO=$ac_cv_prog_LIPO
7247 if test -n "$LIPO"; then
7248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7249 $as_echo "$LIPO" >&6; }
7250 else
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7253 fi
7254
7255
7256 fi
7257 if test -z "$ac_cv_prog_LIPO"; then
7258   ac_ct_LIPO=$LIPO
7259   # Extract the first word of "lipo", so it can be a program name with args.
7260 set dummy lipo; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7264   $as_echo_n "(cached) " >&6
7265 else
7266   if test -n "$ac_ct_LIPO"; then
7267   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272   IFS=$as_save_IFS
7273   test -z "$as_dir" && as_dir=.
7274     for ac_exec_ext in '' $ac_executable_extensions; do
7275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7276     ac_cv_prog_ac_ct_LIPO="lipo"
7277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278     break 2
7279   fi
7280 done
7281   done
7282 IFS=$as_save_IFS
7283
7284 fi
7285 fi
7286 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7287 if test -n "$ac_ct_LIPO"; then
7288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7289 $as_echo "$ac_ct_LIPO" >&6; }
7290 else
7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7293 fi
7294
7295   if test "x$ac_ct_LIPO" = x; then
7296     LIPO=":"
7297   else
7298     case $cross_compiling:$ac_tool_warned in
7299 yes:)
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7302 ac_tool_warned=yes ;;
7303 esac
7304     LIPO=$ac_ct_LIPO
7305   fi
7306 else
7307   LIPO="$ac_cv_prog_LIPO"
7308 fi
7309
7310     if test -n "$ac_tool_prefix"; then
7311   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7312 set dummy ${ac_tool_prefix}otool; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7316   $as_echo_n "(cached) " >&6
7317 else
7318   if test -n "$OTOOL"; then
7319   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7320 else
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7323 do
7324   IFS=$as_save_IFS
7325   test -z "$as_dir" && as_dir=.
7326     for ac_exec_ext in '' $ac_executable_extensions; do
7327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7328     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330     break 2
7331   fi
7332 done
7333   done
7334 IFS=$as_save_IFS
7335
7336 fi
7337 fi
7338 OTOOL=$ac_cv_prog_OTOOL
7339 if test -n "$OTOOL"; then
7340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7341 $as_echo "$OTOOL" >&6; }
7342 else
7343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7345 fi
7346
7347
7348 fi
7349 if test -z "$ac_cv_prog_OTOOL"; then
7350   ac_ct_OTOOL=$OTOOL
7351   # Extract the first word of "otool", so it can be a program name with args.
7352 set dummy otool; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7356   $as_echo_n "(cached) " >&6
7357 else
7358   if test -n "$ac_ct_OTOOL"; then
7359   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7360 else
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364   IFS=$as_save_IFS
7365   test -z "$as_dir" && as_dir=.
7366     for ac_exec_ext in '' $ac_executable_extensions; do
7367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7368     ac_cv_prog_ac_ct_OTOOL="otool"
7369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373   done
7374 IFS=$as_save_IFS
7375
7376 fi
7377 fi
7378 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7379 if test -n "$ac_ct_OTOOL"; then
7380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7381 $as_echo "$ac_ct_OTOOL" >&6; }
7382 else
7383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7385 fi
7386
7387   if test "x$ac_ct_OTOOL" = x; then
7388     OTOOL=":"
7389   else
7390     case $cross_compiling:$ac_tool_warned in
7391 yes:)
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7394 ac_tool_warned=yes ;;
7395 esac
7396     OTOOL=$ac_ct_OTOOL
7397   fi
7398 else
7399   OTOOL="$ac_cv_prog_OTOOL"
7400 fi
7401
7402     if test -n "$ac_tool_prefix"; then
7403   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7404 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406 $as_echo_n "checking for $ac_word... " >&6; }
7407 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7408   $as_echo_n "(cached) " >&6
7409 else
7410   if test -n "$OTOOL64"; then
7411   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7412 else
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7415 do
7416   IFS=$as_save_IFS
7417   test -z "$as_dir" && as_dir=.
7418     for ac_exec_ext in '' $ac_executable_extensions; do
7419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7420     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422     break 2
7423   fi
7424 done
7425   done
7426 IFS=$as_save_IFS
7427
7428 fi
7429 fi
7430 OTOOL64=$ac_cv_prog_OTOOL64
7431 if test -n "$OTOOL64"; then
7432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7433 $as_echo "$OTOOL64" >&6; }
7434 else
7435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7437 fi
7438
7439
7440 fi
7441 if test -z "$ac_cv_prog_OTOOL64"; then
7442   ac_ct_OTOOL64=$OTOOL64
7443   # Extract the first word of "otool64", so it can be a program name with args.
7444 set dummy otool64; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7448   $as_echo_n "(cached) " >&6
7449 else
7450   if test -n "$ac_ct_OTOOL64"; then
7451   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456   IFS=$as_save_IFS
7457   test -z "$as_dir" && as_dir=.
7458     for ac_exec_ext in '' $ac_executable_extensions; do
7459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7460     ac_cv_prog_ac_ct_OTOOL64="otool64"
7461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462     break 2
7463   fi
7464 done
7465   done
7466 IFS=$as_save_IFS
7467
7468 fi
7469 fi
7470 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7471 if test -n "$ac_ct_OTOOL64"; then
7472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7473 $as_echo "$ac_ct_OTOOL64" >&6; }
7474 else
7475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7477 fi
7478
7479   if test "x$ac_ct_OTOOL64" = x; then
7480     OTOOL64=":"
7481   else
7482     case $cross_compiling:$ac_tool_warned in
7483 yes:)
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7486 ac_tool_warned=yes ;;
7487 esac
7488     OTOOL64=$ac_ct_OTOOL64
7489   fi
7490 else
7491   OTOOL64="$ac_cv_prog_OTOOL64"
7492 fi
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7521 $as_echo_n "checking for -single_module linker flag... " >&6; }
7522 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7523   $as_echo_n "(cached) " >&6
7524 else
7525   lt_cv_apple_cc_single_mod=no
7526       if test -z "${LT_MULTI_MODULE}"; then
7527         # By default we will add the -single_module flag. You can override
7528         # by either setting the environment variable LT_MULTI_MODULE
7529         # non-empty at configure time, or by adding -multi_module to the
7530         # link flags.
7531         rm -rf libconftest.dylib*
7532         echo "int foo(void){return 1;}" > conftest.c
7533         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7534 -dynamiclib -Wl,-single_module conftest.c" >&5
7535         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7536           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7537         _lt_result=$?
7538         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7539           lt_cv_apple_cc_single_mod=yes
7540         else
7541           cat conftest.err >&5
7542         fi
7543         rm -rf libconftest.dylib*
7544         rm -f conftest.*
7545       fi
7546 fi
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7548 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7550 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7551 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7552   $as_echo_n "(cached) " >&6
7553 else
7554   lt_cv_ld_exported_symbols_list=no
7555       save_LDFLAGS=$LDFLAGS
7556       echo "_main" > conftest.sym
7557       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7558       if test x$gcc_no_link = xyes; then
7559   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7560 fi
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h.  */
7563
7564 int
7565 main ()
7566 {
7567
7568   ;
7569   return 0;
7570 }
7571 _ACEOF
7572 if ac_fn_c_try_link "$LINENO"; then :
7573   lt_cv_ld_exported_symbols_list=yes
7574 else
7575   lt_cv_ld_exported_symbols_list=no
7576 fi
7577 rm -f core conftest.err conftest.$ac_objext \
7578     conftest$ac_exeext conftest.$ac_ext
7579         LDFLAGS="$save_LDFLAGS"
7580
7581 fi
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7583 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7584     case $host_os in
7585     rhapsody* | darwin1.[012])
7586       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7587     darwin1.*)
7588       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7589     darwin*) # darwin 5.x on
7590       # if running on 10.5 or later, the deployment target defaults
7591       # to the OS version, if on x86, and 10.4, the deployment
7592       # target defaults to 10.4. Don't you love it?
7593       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7594         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7595           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7596         10.[012]*)
7597           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7598         10.*)
7599           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7600       esac
7601     ;;
7602   esac
7603     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7604       _lt_dar_single_mod='$single_module'
7605     fi
7606     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7607       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7608     else
7609       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7610     fi
7611     if test "$DSYMUTIL" != ":"; then
7612       _lt_dsymutil='~$DSYMUTIL $lib || :'
7613     else
7614       _lt_dsymutil=
7615     fi
7616     ;;
7617   esac
7618
7619 ac_ext=c
7620 ac_cpp='$CPP $CPPFLAGS'
7621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7625 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7626 # On Suns, sometimes $CPP names a directory.
7627 if test -n "$CPP" && test -d "$CPP"; then
7628   CPP=
7629 fi
7630 if test -z "$CPP"; then
7631   if test "${ac_cv_prog_CPP+set}" = set; then :
7632   $as_echo_n "(cached) " >&6
7633 else
7634       # Double quotes because CPP needs to be expanded
7635     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7636     do
7637       ac_preproc_ok=false
7638 for ac_c_preproc_warn_flag in '' yes
7639 do
7640   # Use a header file that comes with gcc, so configuring glibc
7641   # with a fresh cross-compiler works.
7642   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7643   # <limits.h> exists even on freestanding compilers.
7644   # On the NeXT, cc -E runs the code through the compiler's parser,
7645   # not just through cpp. "Syntax error" is here to catch this case.
7646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h.  */
7648 #ifdef __STDC__
7649 # include <limits.h>
7650 #else
7651 # include <assert.h>
7652 #endif
7653                      Syntax error
7654 _ACEOF
7655 if ac_fn_c_try_cpp "$LINENO"; then :
7656
7657 else
7658   # Broken: fails on valid input.
7659 continue
7660 fi
7661 rm -f conftest.err conftest.$ac_ext
7662
7663   # OK, works on sane cases.  Now check whether nonexistent headers
7664   # can be detected and how.
7665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h.  */
7667 #include <ac_nonexistent.h>
7668 _ACEOF
7669 if ac_fn_c_try_cpp "$LINENO"; then :
7670   # Broken: success on invalid input.
7671 continue
7672 else
7673   # Passes both tests.
7674 ac_preproc_ok=:
7675 break
7676 fi
7677 rm -f conftest.err conftest.$ac_ext
7678
7679 done
7680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7681 rm -f conftest.err conftest.$ac_ext
7682 if $ac_preproc_ok; then :
7683   break
7684 fi
7685
7686     done
7687     ac_cv_prog_CPP=$CPP
7688
7689 fi
7690   CPP=$ac_cv_prog_CPP
7691 else
7692   ac_cv_prog_CPP=$CPP
7693 fi
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7695 $as_echo "$CPP" >&6; }
7696 ac_preproc_ok=false
7697 for ac_c_preproc_warn_flag in '' yes
7698 do
7699   # Use a header file that comes with gcc, so configuring glibc
7700   # with a fresh cross-compiler works.
7701   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7702   # <limits.h> exists even on freestanding compilers.
7703   # On the NeXT, cc -E runs the code through the compiler's parser,
7704   # not just through cpp. "Syntax error" is here to catch this case.
7705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h.  */
7707 #ifdef __STDC__
7708 # include <limits.h>
7709 #else
7710 # include <assert.h>
7711 #endif
7712                      Syntax error
7713 _ACEOF
7714 if ac_fn_c_try_cpp "$LINENO"; then :
7715
7716 else
7717   # Broken: fails on valid input.
7718 continue
7719 fi
7720 rm -f conftest.err conftest.$ac_ext
7721
7722   # OK, works on sane cases.  Now check whether nonexistent headers
7723   # can be detected and how.
7724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h.  */
7726 #include <ac_nonexistent.h>
7727 _ACEOF
7728 if ac_fn_c_try_cpp "$LINENO"; then :
7729   # Broken: success on invalid input.
7730 continue
7731 else
7732   # Passes both tests.
7733 ac_preproc_ok=:
7734 break
7735 fi
7736 rm -f conftest.err conftest.$ac_ext
7737
7738 done
7739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7740 rm -f conftest.err conftest.$ac_ext
7741 if $ac_preproc_ok; then :
7742
7743 else
7744   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7746 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7747 See \`config.log' for more details." "$LINENO" 5; }
7748 fi
7749
7750 ac_ext=c
7751 ac_cpp='$CPP $CPPFLAGS'
7752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7755
7756
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7758 $as_echo_n "checking for ANSI C header files... " >&6; }
7759 if test "${ac_cv_header_stdc+set}" = set; then :
7760   $as_echo_n "(cached) " >&6
7761 else
7762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h.  */
7764 #include <stdlib.h>
7765 #include <stdarg.h>
7766 #include <string.h>
7767 #include <float.h>
7768
7769 int
7770 main ()
7771 {
7772
7773   ;
7774   return 0;
7775 }
7776 _ACEOF
7777 if ac_fn_c_try_compile "$LINENO"; then :
7778   ac_cv_header_stdc=yes
7779 else
7780   ac_cv_header_stdc=no
7781 fi
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7783
7784 if test $ac_cv_header_stdc = yes; then
7785   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h.  */
7788 #include <string.h>
7789
7790 _ACEOF
7791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7792   $EGREP "memchr" >/dev/null 2>&1; then :
7793
7794 else
7795   ac_cv_header_stdc=no
7796 fi
7797 rm -f conftest*
7798
7799 fi
7800
7801 if test $ac_cv_header_stdc = yes; then
7802   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h.  */
7805 #include <stdlib.h>
7806
7807 _ACEOF
7808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7809   $EGREP "free" >/dev/null 2>&1; then :
7810
7811 else
7812   ac_cv_header_stdc=no
7813 fi
7814 rm -f conftest*
7815
7816 fi
7817
7818 if test $ac_cv_header_stdc = yes; then
7819   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7820   if test "$cross_compiling" = yes; then :
7821   :
7822 else
7823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h.  */
7825 #include <ctype.h>
7826 #include <stdlib.h>
7827 #if ((' ' & 0x0FF) == 0x020)
7828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7830 #else
7831 # define ISLOWER(c) \
7832                    (('a' <= (c) && (c) <= 'i') \
7833                      || ('j' <= (c) && (c) <= 'r') \
7834                      || ('s' <= (c) && (c) <= 'z'))
7835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7836 #endif
7837
7838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7839 int
7840 main ()
7841 {
7842   int i;
7843   for (i = 0; i < 256; i++)
7844     if (XOR (islower (i), ISLOWER (i))
7845         || toupper (i) != TOUPPER (i))
7846       return 2;
7847   return 0;
7848 }
7849 _ACEOF
7850 if ac_fn_c_try_run "$LINENO"; then :
7851
7852 else
7853   ac_cv_header_stdc=no
7854 fi
7855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7856   conftest.$ac_objext conftest.beam conftest.$ac_ext
7857 fi
7858
7859 fi
7860 fi
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7862 $as_echo "$ac_cv_header_stdc" >&6; }
7863 if test $ac_cv_header_stdc = yes; then
7864
7865 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7866
7867 fi
7868
7869 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7870 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7871                   inttypes.h stdint.h unistd.h
7872 do :
7873   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7874 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7875 "
7876 eval as_val=\$$as_ac_Header
7877    if test "x$as_val" = x""yes; then :
7878   cat >>confdefs.h <<_ACEOF
7879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7880 _ACEOF
7881
7882 fi
7883
7884 done
7885
7886
7887 for ac_header in dlfcn.h
7888 do :
7889   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7890 "
7891 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7892   cat >>confdefs.h <<_ACEOF
7893 #define HAVE_DLFCN_H 1
7894 _ACEOF
7895
7896 fi
7897
7898 done
7899
7900
7901
7902 ac_ext=cpp
7903 ac_cpp='$CXXCPP $CPPFLAGS'
7904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7907 if test -z "$CXX"; then
7908   if test -n "$CCC"; then
7909     CXX=$CCC
7910   else
7911     if test -n "$ac_tool_prefix"; then
7912   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7913   do
7914     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if test "${ac_cv_prog_CXX+set}" = set; then :
7919   $as_echo_n "(cached) " >&6
7920 else
7921   if test -n "$CXX"; then
7922   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927   IFS=$as_save_IFS
7928   test -z "$as_dir" && as_dir=.
7929     for ac_exec_ext in '' $ac_executable_extensions; do
7930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933     break 2
7934   fi
7935 done
7936   done
7937 IFS=$as_save_IFS
7938
7939 fi
7940 fi
7941 CXX=$ac_cv_prog_CXX
7942 if test -n "$CXX"; then
7943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7944 $as_echo "$CXX" >&6; }
7945 else
7946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7948 fi
7949
7950
7951     test -n "$CXX" && break
7952   done
7953 fi
7954 if test -z "$CXX"; then
7955   ac_ct_CXX=$CXX
7956   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7957 do
7958   # Extract the first word of "$ac_prog", so it can be a program name with args.
7959 set dummy $ac_prog; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7963   $as_echo_n "(cached) " >&6
7964 else
7965   if test -n "$ac_ct_CXX"; then
7966   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7967 else
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7970 do
7971   IFS=$as_save_IFS
7972   test -z "$as_dir" && as_dir=.
7973     for ac_exec_ext in '' $ac_executable_extensions; do
7974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7975     ac_cv_prog_ac_ct_CXX="$ac_prog"
7976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977     break 2
7978   fi
7979 done
7980   done
7981 IFS=$as_save_IFS
7982
7983 fi
7984 fi
7985 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7986 if test -n "$ac_ct_CXX"; then
7987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7988 $as_echo "$ac_ct_CXX" >&6; }
7989 else
7990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7992 fi
7993
7994
7995   test -n "$ac_ct_CXX" && break
7996 done
7997
7998   if test "x$ac_ct_CXX" = x; then
7999     CXX="g++"
8000   else
8001     case $cross_compiling:$ac_tool_warned in
8002 yes:)
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8005 ac_tool_warned=yes ;;
8006 esac
8007     CXX=$ac_ct_CXX
8008   fi
8009 fi
8010
8011   fi
8012 fi
8013 # Provide some information about the compiler.
8014 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8015 set X $ac_compile
8016 ac_compiler=$2
8017 for ac_option in --version -v -V -qversion; do
8018   { { ac_try="$ac_compiler $ac_option >&5"
8019 case "(($ac_try" in
8020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021   *) ac_try_echo=$ac_try;;
8022 esac
8023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8024 $as_echo "$ac_try_echo"; } >&5
8025   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8026   ac_status=$?
8027   if test -s conftest.err; then
8028     sed '10a\
8029 ... rest of stderr output deleted ...
8030          10q' conftest.err >conftest.er1
8031     cat conftest.er1 >&5
8032     rm -f conftest.er1 conftest.err
8033   fi
8034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8035   test $ac_status = 0; }
8036 done
8037
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8039 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8040 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8041   $as_echo_n "(cached) " >&6
8042 else
8043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h.  */
8045
8046 int
8047 main ()
8048 {
8049 #ifndef __GNUC__
8050        choke me
8051 #endif
8052
8053   ;
8054   return 0;
8055 }
8056 _ACEOF
8057 if ac_fn_cxx_try_compile "$LINENO"; then :
8058   ac_compiler_gnu=yes
8059 else
8060   ac_compiler_gnu=no
8061 fi
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8064
8065 fi
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8067 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8068 if test $ac_compiler_gnu = yes; then
8069   GXX=yes
8070 else
8071   GXX=
8072 fi
8073 ac_test_CXXFLAGS=${CXXFLAGS+set}
8074 ac_save_CXXFLAGS=$CXXFLAGS
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8076 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8077 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8078   $as_echo_n "(cached) " >&6
8079 else
8080   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8081    ac_cxx_werror_flag=yes
8082    ac_cv_prog_cxx_g=no
8083    CXXFLAGS="-g"
8084    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h.  */
8086
8087 int
8088 main ()
8089 {
8090
8091   ;
8092   return 0;
8093 }
8094 _ACEOF
8095 if ac_fn_cxx_try_compile "$LINENO"; then :
8096   ac_cv_prog_cxx_g=yes
8097 else
8098   CXXFLAGS=""
8099       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h.  */
8101
8102 int
8103 main ()
8104 {
8105
8106   ;
8107   return 0;
8108 }
8109 _ACEOF
8110 if ac_fn_cxx_try_compile "$LINENO"; then :
8111
8112 else
8113   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8114          CXXFLAGS="-g"
8115          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116 /* end confdefs.h.  */
8117
8118 int
8119 main ()
8120 {
8121
8122   ;
8123   return 0;
8124 }
8125 _ACEOF
8126 if ac_fn_cxx_try_compile "$LINENO"; then :
8127   ac_cv_prog_cxx_g=yes
8128 fi
8129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 fi
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 fi
8133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8135 fi
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8137 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8138 if test "$ac_test_CXXFLAGS" = set; then
8139   CXXFLAGS=$ac_save_CXXFLAGS
8140 elif test $ac_cv_prog_cxx_g = yes; then
8141   if test "$GXX" = yes; then
8142     CXXFLAGS="-g -O2"
8143   else
8144     CXXFLAGS="-g"
8145   fi
8146 else
8147   if test "$GXX" = yes; then
8148     CXXFLAGS="-O2"
8149   else
8150     CXXFLAGS=
8151   fi
8152 fi
8153 ac_ext=c
8154 ac_cpp='$CPP $CPPFLAGS'
8155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8158
8159 depcc="$CXX"  am_compiler_list=
8160
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8162 $as_echo_n "checking dependency style of $depcc... " >&6; }
8163 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8164   $as_echo_n "(cached) " >&6
8165 else
8166   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8167   # We make a subdir and do the tests there.  Otherwise we can end up
8168   # making bogus files that we don't know about and never remove.  For
8169   # instance it was reported that on HP-UX the gcc test will end up
8170   # making a dummy file named `D' -- because `-MD' means `put the output
8171   # in D'.
8172   mkdir conftest.dir
8173   # Copy depcomp to subdir because otherwise we won't find it if we're
8174   # using a relative directory.
8175   cp "$am_depcomp" conftest.dir
8176   cd conftest.dir
8177   # We will build objects and dependencies in a subdirectory because
8178   # it helps to detect inapplicable dependency modes.  For instance
8179   # both Tru64's cc and ICC support -MD to output dependencies as a
8180   # side effect of compilation, but ICC will put the dependencies in
8181   # the current directory while Tru64 will put them in the object
8182   # directory.
8183   mkdir sub
8184
8185   am_cv_CXX_dependencies_compiler_type=none
8186   if test "$am_compiler_list" = ""; then
8187      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8188   fi
8189   am__universal=false
8190   case " $depcc " in #(
8191      *\ -arch\ *\ -arch\ *) am__universal=true ;;
8192      esac
8193
8194   for depmode in $am_compiler_list; do
8195     # Setup a source with many dependencies, because some compilers
8196     # like to wrap large dependency lists on column 80 (with \), and
8197     # we should not choose a depcomp mode which is confused by this.
8198     #
8199     # We need to recreate these files for each test, as the compiler may
8200     # overwrite some of them when testing with obscure command lines.
8201     # This happens at least with the AIX C compiler.
8202     : > sub/conftest.c
8203     for i in 1 2 3 4 5 6; do
8204       echo '#include "conftst'$i'.h"' >> sub/conftest.c
8205       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8206       # Solaris 8's {/usr,}/bin/sh.
8207       touch sub/conftst$i.h
8208     done
8209     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8210
8211     # We check with `-c' and `-o' for the sake of the "dashmstdout"
8212     # mode.  It turns out that the SunPro C++ compiler does not properly
8213     # handle `-M -o', and we need to detect this.  Also, some Intel
8214     # versions had trouble with output in subdirs
8215     am__obj=sub/conftest.${OBJEXT-o}
8216     am__minus_obj="-o $am__obj"
8217     case $depmode in
8218     gcc)
8219       # This depmode causes a compiler race in universal mode.
8220       test "$am__universal" = false || continue
8221       ;;
8222     nosideeffect)
8223       # after this tag, mechanisms are not by side-effect, so they'll
8224       # only be used when explicitly requested
8225       if test "x$enable_dependency_tracking" = xyes; then
8226         continue
8227       else
8228         break
8229       fi
8230       ;;
8231     msvisualcpp | msvcmsys)
8232       # This compiler won't grok `-c -o', but also, the minuso test has
8233       # not run yet.  These depmodes are late enough in the game, and
8234       # so weak that their functioning should not be impacted.
8235       am__obj=conftest.${OBJEXT-o}
8236       am__minus_obj=
8237       ;;
8238     none) break ;;
8239     esac
8240     if depmode=$depmode \
8241        source=sub/conftest.c object=$am__obj \
8242        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8243        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8244          >/dev/null 2>conftest.err &&
8245        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8246        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8247        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8248        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8249       # icc doesn't choke on unknown options, it will just issue warnings
8250       # or remarks (even with -Werror).  So we grep stderr for any message
8251       # that says an option was ignored or not supported.
8252       # When given -MP, icc 7.0 and 7.1 complain thusly:
8253       #   icc: Command line warning: ignoring option '-M'; no argument required
8254       # The diagnosis changed in icc 8.0:
8255       #   icc: Command line remark: option '-MP' not supported
8256       if (grep 'ignoring option' conftest.err ||
8257           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8258         am_cv_CXX_dependencies_compiler_type=$depmode
8259         break
8260       fi
8261     fi
8262   done
8263
8264   cd ..
8265   rm -rf conftest.dir
8266 else
8267   am_cv_CXX_dependencies_compiler_type=none
8268 fi
8269
8270 fi
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8272 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8273 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8274
8275  if
8276   test "x$enable_dependency_tracking" != xno \
8277   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8278   am__fastdepCXX_TRUE=
8279   am__fastdepCXX_FALSE='#'
8280 else
8281   am__fastdepCXX_TRUE='#'
8282   am__fastdepCXX_FALSE=
8283 fi
8284
8285
8286 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8287     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8288     (test "X$CXX" != "Xg++"))) ; then
8289   ac_ext=cpp
8290 ac_cpp='$CXXCPP $CPPFLAGS'
8291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8295 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8296 if test -z "$CXXCPP"; then
8297   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8298   $as_echo_n "(cached) " >&6
8299 else
8300       # Double quotes because CXXCPP needs to be expanded
8301     for CXXCPP in "$CXX -E" "/lib/cpp"
8302     do
8303       ac_preproc_ok=false
8304 for ac_cxx_preproc_warn_flag in '' yes
8305 do
8306   # Use a header file that comes with gcc, so configuring glibc
8307   # with a fresh cross-compiler works.
8308   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8309   # <limits.h> exists even on freestanding compilers.
8310   # On the NeXT, cc -E runs the code through the compiler's parser,
8311   # not just through cpp. "Syntax error" is here to catch this case.
8312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h.  */
8314 #ifdef __STDC__
8315 # include <limits.h>
8316 #else
8317 # include <assert.h>
8318 #endif
8319                      Syntax error
8320 _ACEOF
8321 if ac_fn_cxx_try_cpp "$LINENO"; then :
8322
8323 else
8324   # Broken: fails on valid input.
8325 continue
8326 fi
8327 rm -f conftest.err conftest.$ac_ext
8328
8329   # OK, works on sane cases.  Now check whether nonexistent headers
8330   # can be detected and how.
8331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8332 /* end confdefs.h.  */
8333 #include <ac_nonexistent.h>
8334 _ACEOF
8335 if ac_fn_cxx_try_cpp "$LINENO"; then :
8336   # Broken: success on invalid input.
8337 continue
8338 else
8339   # Passes both tests.
8340 ac_preproc_ok=:
8341 break
8342 fi
8343 rm -f conftest.err conftest.$ac_ext
8344
8345 done
8346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8347 rm -f conftest.err conftest.$ac_ext
8348 if $ac_preproc_ok; then :
8349   break
8350 fi
8351
8352     done
8353     ac_cv_prog_CXXCPP=$CXXCPP
8354
8355 fi
8356   CXXCPP=$ac_cv_prog_CXXCPP
8357 else
8358   ac_cv_prog_CXXCPP=$CXXCPP
8359 fi
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8361 $as_echo "$CXXCPP" >&6; }
8362 ac_preproc_ok=false
8363 for ac_cxx_preproc_warn_flag in '' yes
8364 do
8365   # Use a header file that comes with gcc, so configuring glibc
8366   # with a fresh cross-compiler works.
8367   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8368   # <limits.h> exists even on freestanding compilers.
8369   # On the NeXT, cc -E runs the code through the compiler's parser,
8370   # not just through cpp. "Syntax error" is here to catch this case.
8371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372 /* end confdefs.h.  */
8373 #ifdef __STDC__
8374 # include <limits.h>
8375 #else
8376 # include <assert.h>
8377 #endif
8378                      Syntax error
8379 _ACEOF
8380 if ac_fn_cxx_try_cpp "$LINENO"; then :
8381
8382 else
8383   # Broken: fails on valid input.
8384 continue
8385 fi
8386 rm -f conftest.err conftest.$ac_ext
8387
8388   # OK, works on sane cases.  Now check whether nonexistent headers
8389   # can be detected and how.
8390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h.  */
8392 #include <ac_nonexistent.h>
8393 _ACEOF
8394 if ac_fn_cxx_try_cpp "$LINENO"; then :
8395   # Broken: success on invalid input.
8396 continue
8397 else
8398   # Passes both tests.
8399 ac_preproc_ok=:
8400 break
8401 fi
8402 rm -f conftest.err conftest.$ac_ext
8403
8404 done
8405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8406 rm -f conftest.err conftest.$ac_ext
8407 if $ac_preproc_ok; then :
8408
8409 else
8410   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8412 _lt_caught_CXX_error=yes; }
8413 fi
8414
8415 ac_ext=c
8416 ac_cpp='$CPP $CPPFLAGS'
8417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8420
8421 else
8422   _lt_caught_CXX_error=yes
8423 fi
8424
8425
8426
8427
8428
8429 # Set options
8430
8431
8432
8433         enable_dlopen=no
8434
8435
8436   enable_win32_dll=no
8437
8438
8439             # Check whether --enable-shared was given.
8440 if test "${enable_shared+set}" = set; then :
8441   enableval=$enable_shared; p=${PACKAGE-default}
8442     case $enableval in
8443     yes) enable_shared=yes ;;
8444     no) enable_shared=no ;;
8445     *)
8446       enable_shared=no
8447       # Look at the argument we got.  We use all the common list separators.
8448       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8449       for pkg in $enableval; do
8450         IFS="$lt_save_ifs"
8451         if test "X$pkg" = "X$p"; then
8452           enable_shared=yes
8453         fi
8454       done
8455       IFS="$lt_save_ifs"
8456       ;;
8457     esac
8458 else
8459   enable_shared=yes
8460 fi
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470   # Check whether --enable-static was given.
8471 if test "${enable_static+set}" = set; then :
8472   enableval=$enable_static; p=${PACKAGE-default}
8473     case $enableval in
8474     yes) enable_static=yes ;;
8475     no) enable_static=no ;;
8476     *)
8477      enable_static=no
8478       # Look at the argument we got.  We use all the common list separators.
8479       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8480       for pkg in $enableval; do
8481         IFS="$lt_save_ifs"
8482         if test "X$pkg" = "X$p"; then
8483           enable_static=yes
8484         fi
8485       done
8486       IFS="$lt_save_ifs"
8487       ;;
8488     esac
8489 else
8490   enable_static=yes
8491 fi
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502 # Check whether --with-pic was given.
8503 if test "${with_pic+set}" = set; then :
8504   withval=$with_pic; pic_mode="$withval"
8505 else
8506   pic_mode=default
8507 fi
8508
8509
8510 test -z "$pic_mode" && pic_mode=default
8511
8512
8513
8514
8515
8516
8517
8518   # Check whether --enable-fast-install was given.
8519 if test "${enable_fast_install+set}" = set; then :
8520   enableval=$enable_fast_install; p=${PACKAGE-default}
8521     case $enableval in
8522     yes) enable_fast_install=yes ;;
8523     no) enable_fast_install=no ;;
8524     *)
8525       enable_fast_install=no
8526       # Look at the argument we got.  We use all the common list separators.
8527       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8528       for pkg in $enableval; do
8529         IFS="$lt_save_ifs"
8530         if test "X$pkg" = "X$p"; then
8531           enable_fast_install=yes
8532         fi
8533       done
8534       IFS="$lt_save_ifs"
8535       ;;
8536     esac
8537 else
8538   enable_fast_install=yes
8539 fi
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551 # This can be used to rebuild libtool when needed
8552 LIBTOOL_DEPS="$ltmain"
8553
8554 # Always use our own libtool.
8555 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581 test -z "$LN_S" && LN_S="ln -s"
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596 if test -n "${ZSH_VERSION+set}" ; then
8597    setopt NO_GLOB_SUBST
8598 fi
8599
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8601 $as_echo_n "checking for objdir... " >&6; }
8602 if test "${lt_cv_objdir+set}" = set; then :
8603   $as_echo_n "(cached) " >&6
8604 else
8605   rm -f .libs 2>/dev/null
8606 mkdir .libs 2>/dev/null
8607 if test -d .libs; then
8608   lt_cv_objdir=.libs
8609 else
8610   # MS-DOS does not allow filenames that begin with a dot.
8611   lt_cv_objdir=_libs
8612 fi
8613 rmdir .libs 2>/dev/null
8614 fi
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8616 $as_echo "$lt_cv_objdir" >&6; }
8617 objdir=$lt_cv_objdir
8618
8619
8620
8621
8622
8623 cat >>confdefs.h <<_ACEOF
8624 #define LT_OBJDIR "$lt_cv_objdir/"
8625 _ACEOF
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643 case $host_os in
8644 aix3*)
8645   # AIX sometimes has problems with the GCC collect2 program.  For some
8646   # reason, if we set the COLLECT_NAMES environment variable, the problems
8647   # vanish in a puff of smoke.
8648   if test "X${COLLECT_NAMES+set}" != Xset; then
8649     COLLECT_NAMES=
8650     export COLLECT_NAMES
8651   fi
8652   ;;
8653 esac
8654
8655 # Sed substitution that helps us do robust quoting.  It backslashifies
8656 # metacharacters that are still active within double-quoted strings.
8657 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8658
8659 # Same as above, but do not quote variable references.
8660 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8661
8662 # Sed substitution to delay expansion of an escaped shell variable in a
8663 # double_quote_subst'ed string.
8664 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8665
8666 # Sed substitution to delay expansion of an escaped single quote.
8667 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8668
8669 # Sed substitution to avoid accidental globbing in evaled expressions
8670 no_glob_subst='s/\*/\\\*/g'
8671
8672 # Global variables:
8673 ofile=libtool
8674 can_build_shared=yes
8675
8676 # All known linkers require a `.a' archive for static linking (except MSVC,
8677 # which needs '.lib').
8678 libext=a
8679
8680 with_gnu_ld="$lt_cv_prog_gnu_ld"
8681
8682 old_CC="$CC"
8683 old_CFLAGS="$CFLAGS"
8684
8685 # Set sane defaults for various variables
8686 test -z "$CC" && CC=cc
8687 test -z "$LTCC" && LTCC=$CC
8688 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8689 test -z "$LD" && LD=ld
8690 test -z "$ac_objext" && ac_objext=o
8691
8692 for cc_temp in $compiler""; do
8693   case $cc_temp in
8694     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8695     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8696     \-*) ;;
8697     *) break;;
8698   esac
8699 done
8700 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8701
8702
8703 # Only perform the check for file, if the check method requires it
8704 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8705 case $deplibs_check_method in
8706 file_magic*)
8707   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8709 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8710 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8711   $as_echo_n "(cached) " >&6
8712 else
8713   case $MAGIC_CMD in
8714 [\\/*] |  ?:[\\/]*)
8715   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8716   ;;
8717 *)
8718   lt_save_MAGIC_CMD="$MAGIC_CMD"
8719   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8720   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8721   for ac_dir in $ac_dummy; do
8722     IFS="$lt_save_ifs"
8723     test -z "$ac_dir" && ac_dir=.
8724     if test -f $ac_dir/${ac_tool_prefix}file; then
8725       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8726       if test -n "$file_magic_test_file"; then
8727         case $deplibs_check_method in
8728         "file_magic "*)
8729           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8730           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8731           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8732             $EGREP "$file_magic_regex" > /dev/null; then
8733             :
8734           else
8735             cat <<_LT_EOF 1>&2
8736
8737 *** Warning: the command libtool uses to detect shared libraries,
8738 *** $file_magic_cmd, produces output that libtool cannot recognize.
8739 *** The result is that libtool may fail to recognize shared libraries
8740 *** as such.  This will affect the creation of libtool libraries that
8741 *** depend on shared libraries, but programs linked with such libtool
8742 *** libraries will work regardless of this problem.  Nevertheless, you
8743 *** may want to report the problem to your system manager and/or to
8744 *** bug-libtool@gnu.org
8745
8746 _LT_EOF
8747           fi ;;
8748         esac
8749       fi
8750       break
8751     fi
8752   done
8753   IFS="$lt_save_ifs"
8754   MAGIC_CMD="$lt_save_MAGIC_CMD"
8755   ;;
8756 esac
8757 fi
8758
8759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8760 if test -n "$MAGIC_CMD"; then
8761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8762 $as_echo "$MAGIC_CMD" >&6; }
8763 else
8764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 $as_echo "no" >&6; }
8766 fi
8767
8768
8769
8770
8771
8772 if test -z "$lt_cv_path_MAGIC_CMD"; then
8773   if test -n "$ac_tool_prefix"; then
8774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8775 $as_echo_n "checking for file... " >&6; }
8776 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8777   $as_echo_n "(cached) " >&6
8778 else
8779   case $MAGIC_CMD in
8780 [\\/*] |  ?:[\\/]*)
8781   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8782   ;;
8783 *)
8784   lt_save_MAGIC_CMD="$MAGIC_CMD"
8785   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8786   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8787   for ac_dir in $ac_dummy; do
8788     IFS="$lt_save_ifs"
8789     test -z "$ac_dir" && ac_dir=.
8790     if test -f $ac_dir/file; then
8791       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8792       if test -n "$file_magic_test_file"; then
8793         case $deplibs_check_method in
8794         "file_magic "*)
8795           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8796           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8797           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8798             $EGREP "$file_magic_regex" > /dev/null; then
8799             :
8800           else
8801             cat <<_LT_EOF 1>&2
8802
8803 *** Warning: the command libtool uses to detect shared libraries,
8804 *** $file_magic_cmd, produces output that libtool cannot recognize.
8805 *** The result is that libtool may fail to recognize shared libraries
8806 *** as such.  This will affect the creation of libtool libraries that
8807 *** depend on shared libraries, but programs linked with such libtool
8808 *** libraries will work regardless of this problem.  Nevertheless, you
8809 *** may want to report the problem to your system manager and/or to
8810 *** bug-libtool@gnu.org
8811
8812 _LT_EOF
8813           fi ;;
8814         esac
8815       fi
8816       break
8817     fi
8818   done
8819   IFS="$lt_save_ifs"
8820   MAGIC_CMD="$lt_save_MAGIC_CMD"
8821   ;;
8822 esac
8823 fi
8824
8825 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8826 if test -n "$MAGIC_CMD"; then
8827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8828 $as_echo "$MAGIC_CMD" >&6; }
8829 else
8830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8832 fi
8833
8834
8835   else
8836     MAGIC_CMD=:
8837   fi
8838 fi
8839
8840   fi
8841   ;;
8842 esac
8843
8844 # Use C for the default configuration in the libtool script
8845
8846 lt_save_CC="$CC"
8847 ac_ext=c
8848 ac_cpp='$CPP $CPPFLAGS'
8849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8852
8853
8854 # Source file extension for C test sources.
8855 ac_ext=c
8856
8857 # Object file extension for compiled C test sources.
8858 objext=o
8859 objext=$objext
8860
8861 # Code to be used in simple compile tests
8862 lt_simple_compile_test_code="int some_variable = 0;"
8863
8864 # Code to be used in simple link tests
8865 lt_simple_link_test_code='int main(){return(0);}'
8866
8867
8868
8869
8870
8871
8872
8873 # If no C compiler was specified, use CC.
8874 LTCC=${LTCC-"$CC"}
8875
8876 # If no C compiler flags were specified, use CFLAGS.
8877 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8878
8879 # Allow CC to be a program name with arguments.
8880 compiler=$CC
8881
8882 # Save the default compiler, since it gets overwritten when the other
8883 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8884 compiler_DEFAULT=$CC
8885
8886 # save warnings/boilerplate of simple test code
8887 ac_outfile=conftest.$ac_objext
8888 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8889 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8890 _lt_compiler_boilerplate=`cat conftest.err`
8891 $RM conftest*
8892
8893 ac_outfile=conftest.$ac_objext
8894 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8895 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8896 _lt_linker_boilerplate=`cat conftest.err`
8897 $RM -r conftest*
8898
8899
8900 ## CAVEAT EMPTOR:
8901 ## There is no encapsulation within the following macros, do not change
8902 ## the running order or otherwise move them around unless you know exactly
8903 ## what you are doing...
8904 if test -n "$compiler"; then
8905
8906 lt_prog_compiler_no_builtin_flag=
8907
8908 if test "$GCC" = yes; then
8909   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8910
8911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8912 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8913 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8914   $as_echo_n "(cached) " >&6
8915 else
8916   lt_cv_prog_compiler_rtti_exceptions=no
8917    ac_outfile=conftest.$ac_objext
8918    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8919    lt_compiler_flag="-fno-rtti -fno-exceptions"
8920    # Insert the option either (1) after the last *FLAGS variable, or
8921    # (2) before a word containing "conftest.", or (3) at the end.
8922    # Note that $ac_compile itself does not contain backslashes and begins
8923    # with a dollar sign (not a hyphen), so the echo should work correctly.
8924    # The option is referenced via a variable to avoid confusing sed.
8925    lt_compile=`echo "$ac_compile" | $SED \
8926    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8927    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8928    -e 's:$: $lt_compiler_flag:'`
8929    (eval echo "\"\$as_me:8929: $lt_compile\"" >&5)
8930    (eval "$lt_compile" 2>conftest.err)
8931    ac_status=$?
8932    cat conftest.err >&5
8933    echo "$as_me:8933: \$? = $ac_status" >&5
8934    if (exit $ac_status) && test -s "$ac_outfile"; then
8935      # The compiler can only warn and ignore the option if not recognized
8936      # So say no if there are warnings other than the usual output.
8937      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8938      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8939      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8940        lt_cv_prog_compiler_rtti_exceptions=yes
8941      fi
8942    fi
8943    $RM conftest*
8944
8945 fi
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8947 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8948
8949 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8950     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8951 else
8952     :
8953 fi
8954
8955 fi
8956
8957
8958
8959
8960
8961
8962   lt_prog_compiler_wl=
8963 lt_prog_compiler_pic=
8964 lt_prog_compiler_static=
8965
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8967 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8968
8969   if test "$GCC" = yes; then
8970     lt_prog_compiler_wl='-Wl,'
8971     lt_prog_compiler_static='-static'
8972
8973     case $host_os in
8974       aix*)
8975       # All AIX code is PIC.
8976       if test "$host_cpu" = ia64; then
8977         # AIX 5 now supports IA64 processor
8978         lt_prog_compiler_static='-Bstatic'
8979       fi
8980       ;;
8981
8982     amigaos*)
8983       case $host_cpu in
8984       powerpc)
8985             # see comment about AmigaOS4 .so support
8986             lt_prog_compiler_pic='-fPIC'
8987         ;;
8988       m68k)
8989             # FIXME: we need at least 68020 code to build shared libraries, but
8990             # adding the `-m68020' flag to GCC prevents building anything better,
8991             # like `-m68040'.
8992             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8993         ;;
8994       esac
8995       ;;
8996
8997     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8998       # PIC is the default for these OSes.
8999       ;;
9000
9001     mingw* | cygwin* | pw32* | os2* | cegcc*)
9002       # This hack is so that the source file can tell whether it is being
9003       # built for inclusion in a dll (and should export symbols for example).
9004       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9005       # (--disable-auto-import) libraries
9006       lt_prog_compiler_pic='-DDLL_EXPORT'
9007       ;;
9008
9009     darwin* | rhapsody*)
9010       # PIC is the default on this platform
9011       # Common symbols not allowed in MH_DYLIB files
9012       lt_prog_compiler_pic='-fno-common'
9013       ;;
9014
9015     hpux*)
9016       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9017       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9018       # sets the default TLS model and affects inlining.
9019       case $host_cpu in
9020       hppa*64*)
9021         # +Z the default
9022         ;;
9023       *)
9024         lt_prog_compiler_pic='-fPIC'
9025         ;;
9026       esac
9027       ;;
9028
9029     interix[3-9]*)
9030       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9031       # Instead, we relocate shared libraries at runtime.
9032       ;;
9033
9034     msdosdjgpp*)
9035       # Just because we use GCC doesn't mean we suddenly get shared libraries
9036       # on systems that don't support them.
9037       lt_prog_compiler_can_build_shared=no
9038       enable_shared=no
9039       ;;
9040
9041     *nto* | *qnx*)
9042       # QNX uses GNU C++, but need to define -shared option too, otherwise
9043       # it will coredump.
9044       lt_prog_compiler_pic='-fPIC -shared'
9045       ;;
9046
9047     sysv4*MP*)
9048       if test -d /usr/nec; then
9049         lt_prog_compiler_pic=-Kconform_pic
9050       fi
9051       ;;
9052
9053     *)
9054       lt_prog_compiler_pic='-fPIC'
9055       ;;
9056     esac
9057   else
9058     # PORTME Check for flag to pass linker flags through the system compiler.
9059     case $host_os in
9060     aix*)
9061       lt_prog_compiler_wl='-Wl,'
9062       if test "$host_cpu" = ia64; then
9063         # AIX 5 now supports IA64 processor
9064         lt_prog_compiler_static='-Bstatic'
9065       else
9066         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9067       fi
9068       ;;
9069
9070     mingw* | cygwin* | pw32* | os2* | cegcc*)
9071       # This hack is so that the source file can tell whether it is being
9072       # built for inclusion in a dll (and should export symbols for example).
9073       lt_prog_compiler_pic='-DDLL_EXPORT'
9074       ;;
9075
9076     hpux9* | hpux10* | hpux11*)
9077       lt_prog_compiler_wl='-Wl,'
9078       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9079       # not for PA HP-UX.
9080       case $host_cpu in
9081       hppa*64*|ia64*)
9082         # +Z the default
9083         ;;
9084       *)
9085         lt_prog_compiler_pic='+Z'
9086         ;;
9087       esac
9088       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9089       lt_prog_compiler_static='${wl}-a ${wl}archive'
9090       ;;
9091
9092     irix5* | irix6* | nonstopux*)
9093       lt_prog_compiler_wl='-Wl,'
9094       # PIC (with -KPIC) is the default.
9095       lt_prog_compiler_static='-non_shared'
9096       ;;
9097
9098     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9099       case $cc_basename in
9100       # old Intel for x86_64 which still supported -KPIC.
9101       ecc*)
9102         lt_prog_compiler_wl='-Wl,'
9103         lt_prog_compiler_pic='-KPIC'
9104         lt_prog_compiler_static='-static'
9105         ;;
9106       # icc used to be incompatible with GCC.
9107       # ICC 10 doesn't accept -KPIC any more.
9108       icc* | ifort*)
9109         lt_prog_compiler_wl='-Wl,'
9110         lt_prog_compiler_pic='-fPIC'
9111         lt_prog_compiler_static='-static'
9112         ;;
9113       # Lahey Fortran 8.1.
9114       lf95*)
9115         lt_prog_compiler_wl='-Wl,'
9116         lt_prog_compiler_pic='--shared'
9117         lt_prog_compiler_static='--static'
9118         ;;
9119       pgcc* | pgf77* | pgf90* | pgf95*)
9120         # Portland Group compilers (*not* the Pentium gcc compiler,
9121         # which looks to be a dead project)
9122         lt_prog_compiler_wl='-Wl,'
9123         lt_prog_compiler_pic='-fpic'
9124         lt_prog_compiler_static='-Bstatic'
9125         ;;
9126       ccc*)
9127         lt_prog_compiler_wl='-Wl,'
9128         # All Alpha code is PIC.
9129         lt_prog_compiler_static='-non_shared'
9130         ;;
9131       xl*)
9132         # IBM XL C 8.0/Fortran 10.1 on PPC
9133         lt_prog_compiler_wl='-Wl,'
9134         lt_prog_compiler_pic='-qpic'
9135         lt_prog_compiler_static='-qstaticlink'
9136         ;;
9137       *)
9138         case `$CC -V 2>&1 | sed 5q` in
9139         *Sun\ C*)
9140           # Sun C 5.9
9141           lt_prog_compiler_pic='-KPIC'
9142           lt_prog_compiler_static='-Bstatic'
9143           lt_prog_compiler_wl='-Wl,'
9144           ;;
9145         *Sun\ F*)
9146           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9147           lt_prog_compiler_pic='-KPIC'
9148           lt_prog_compiler_static='-Bstatic'
9149           lt_prog_compiler_wl=''
9150           ;;
9151         esac
9152         ;;
9153       esac
9154       ;;
9155
9156     newsos6)
9157       lt_prog_compiler_pic='-KPIC'
9158       lt_prog_compiler_static='-Bstatic'
9159       ;;
9160
9161     *nto* | *qnx*)
9162       # QNX uses GNU C++, but need to define -shared option too, otherwise
9163       # it will coredump.
9164       lt_prog_compiler_pic='-fPIC -shared'
9165       ;;
9166
9167     osf3* | osf4* | osf5*)
9168       lt_prog_compiler_wl='-Wl,'
9169       # All OSF/1 code is PIC.
9170       lt_prog_compiler_static='-non_shared'
9171       ;;
9172
9173     rdos*)
9174       lt_prog_compiler_static='-non_shared'
9175       ;;
9176
9177     solaris*)
9178       lt_prog_compiler_pic='-KPIC'
9179       lt_prog_compiler_static='-Bstatic'
9180       case $cc_basename in
9181       f77* | f90* | f95*)
9182         lt_prog_compiler_wl='-Qoption ld ';;
9183       *)
9184         lt_prog_compiler_wl='-Wl,';;
9185       esac
9186       ;;
9187
9188     sunos4*)
9189       lt_prog_compiler_wl='-Qoption ld '
9190       lt_prog_compiler_pic='-PIC'
9191       lt_prog_compiler_static='-Bstatic'
9192       ;;
9193
9194     sysv4 | sysv4.2uw2* | sysv4.3*)
9195       lt_prog_compiler_wl='-Wl,'
9196       lt_prog_compiler_pic='-KPIC'
9197       lt_prog_compiler_static='-Bstatic'
9198       ;;
9199
9200     sysv4*MP*)
9201       if test -d /usr/nec ;then
9202         lt_prog_compiler_pic='-Kconform_pic'
9203         lt_prog_compiler_static='-Bstatic'
9204       fi
9205       ;;
9206
9207     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9208       lt_prog_compiler_wl='-Wl,'
9209       lt_prog_compiler_pic='-KPIC'
9210       lt_prog_compiler_static='-Bstatic'
9211       ;;
9212
9213     unicos*)
9214       lt_prog_compiler_wl='-Wl,'
9215       lt_prog_compiler_can_build_shared=no
9216       ;;
9217
9218     uts4*)
9219       lt_prog_compiler_pic='-pic'
9220       lt_prog_compiler_static='-Bstatic'
9221       ;;
9222
9223     *)
9224       lt_prog_compiler_can_build_shared=no
9225       ;;
9226     esac
9227   fi
9228
9229 case $host_os in
9230   # For platforms which do not support PIC, -DPIC is meaningless:
9231   *djgpp*)
9232     lt_prog_compiler_pic=
9233     ;;
9234   *)
9235     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9236     ;;
9237 esac
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9239 $as_echo "$lt_prog_compiler_pic" >&6; }
9240
9241
9242
9243
9244
9245
9246 #
9247 # Check to make sure the PIC flag actually works.
9248 #
9249 if test -n "$lt_prog_compiler_pic"; then
9250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9251 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9252 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9253   $as_echo_n "(cached) " >&6
9254 else
9255   lt_cv_prog_compiler_pic_works=no
9256    ac_outfile=conftest.$ac_objext
9257    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9258    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9259    # Insert the option either (1) after the last *FLAGS variable, or
9260    # (2) before a word containing "conftest.", or (3) at the end.
9261    # Note that $ac_compile itself does not contain backslashes and begins
9262    # with a dollar sign (not a hyphen), so the echo should work correctly.
9263    # The option is referenced via a variable to avoid confusing sed.
9264    lt_compile=`echo "$ac_compile" | $SED \
9265    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9266    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9267    -e 's:$: $lt_compiler_flag:'`
9268    (eval echo "\"\$as_me:9268: $lt_compile\"" >&5)
9269    (eval "$lt_compile" 2>conftest.err)
9270    ac_status=$?
9271    cat conftest.err >&5
9272    echo "$as_me:9272: \$? = $ac_status" >&5
9273    if (exit $ac_status) && test -s "$ac_outfile"; then
9274      # The compiler can only warn and ignore the option if not recognized
9275      # So say no if there are warnings other than the usual output.
9276      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9277      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9278      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9279        lt_cv_prog_compiler_pic_works=yes
9280      fi
9281    fi
9282    $RM conftest*
9283
9284 fi
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9286 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9287
9288 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9289     case $lt_prog_compiler_pic in
9290      "" | " "*) ;;
9291      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9292      esac
9293 else
9294     lt_prog_compiler_pic=
9295      lt_prog_compiler_can_build_shared=no
9296 fi
9297
9298 fi
9299
9300
9301
9302
9303
9304
9305 #
9306 # Check to make sure the static flag actually works.
9307 #
9308 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9310 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9311 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9312   $as_echo_n "(cached) " >&6
9313 else
9314   lt_cv_prog_compiler_static_works=no
9315    save_LDFLAGS="$LDFLAGS"
9316    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9317    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9318    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9319      # The linker can only warn and ignore the option if not recognized
9320      # So say no if there are warnings
9321      if test -s conftest.err; then
9322        # Append any errors to the config.log.
9323        cat conftest.err 1>&5
9324        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9325        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9326        if diff conftest.exp conftest.er2 >/dev/null; then
9327          lt_cv_prog_compiler_static_works=yes
9328        fi
9329      else
9330        lt_cv_prog_compiler_static_works=yes
9331      fi
9332    fi
9333    $RM -r conftest*
9334    LDFLAGS="$save_LDFLAGS"
9335
9336 fi
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9338 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9339
9340 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9341     :
9342 else
9343     lt_prog_compiler_static=
9344 fi
9345
9346
9347
9348
9349
9350
9351
9352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9353 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9354 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9355   $as_echo_n "(cached) " >&6
9356 else
9357   lt_cv_prog_compiler_c_o=no
9358    $RM -r conftest 2>/dev/null
9359    mkdir conftest
9360    cd conftest
9361    mkdir out
9362    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9363
9364    lt_compiler_flag="-o out/conftest2.$ac_objext"
9365    # Insert the option either (1) after the last *FLAGS variable, or
9366    # (2) before a word containing "conftest.", or (3) at the end.
9367    # Note that $ac_compile itself does not contain backslashes and begins
9368    # with a dollar sign (not a hyphen), so the echo should work correctly.
9369    lt_compile=`echo "$ac_compile" | $SED \
9370    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9371    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9372    -e 's:$: $lt_compiler_flag:'`
9373    (eval echo "\"\$as_me:9373: $lt_compile\"" >&5)
9374    (eval "$lt_compile" 2>out/conftest.err)
9375    ac_status=$?
9376    cat out/conftest.err >&5
9377    echo "$as_me:9377: \$? = $ac_status" >&5
9378    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9379    then
9380      # The compiler can only warn and ignore the option if not recognized
9381      # So say no if there are warnings
9382      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9383      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9384      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9385        lt_cv_prog_compiler_c_o=yes
9386      fi
9387    fi
9388    chmod u+w . 2>&5
9389    $RM conftest*
9390    # SGI C++ compiler will create directory out/ii_files/ for
9391    # template instantiation
9392    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9393    $RM out/* && rmdir out
9394    cd ..
9395    $RM -r conftest
9396    $RM conftest*
9397
9398 fi
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9400 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9401
9402
9403
9404
9405
9406
9407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9408 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9409 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9410   $as_echo_n "(cached) " >&6
9411 else
9412   lt_cv_prog_compiler_c_o=no
9413    $RM -r conftest 2>/dev/null
9414    mkdir conftest
9415    cd conftest
9416    mkdir out
9417    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9418
9419    lt_compiler_flag="-o out/conftest2.$ac_objext"
9420    # Insert the option either (1) after the last *FLAGS variable, or
9421    # (2) before a word containing "conftest.", or (3) at the end.
9422    # Note that $ac_compile itself does not contain backslashes and begins
9423    # with a dollar sign (not a hyphen), so the echo should work correctly.
9424    lt_compile=`echo "$ac_compile" | $SED \
9425    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9426    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9427    -e 's:$: $lt_compiler_flag:'`
9428    (eval echo "\"\$as_me:9428: $lt_compile\"" >&5)
9429    (eval "$lt_compile" 2>out/conftest.err)
9430    ac_status=$?
9431    cat out/conftest.err >&5
9432    echo "$as_me:9432: \$? = $ac_status" >&5
9433    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9434    then
9435      # The compiler can only warn and ignore the option if not recognized
9436      # So say no if there are warnings
9437      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9438      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9439      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9440        lt_cv_prog_compiler_c_o=yes
9441      fi
9442    fi
9443    chmod u+w . 2>&5
9444    $RM conftest*
9445    # SGI C++ compiler will create directory out/ii_files/ for
9446    # template instantiation
9447    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9448    $RM out/* && rmdir out
9449    cd ..
9450    $RM -r conftest
9451    $RM conftest*
9452
9453 fi
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9455 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9456
9457
9458
9459
9460 hard_links="nottested"
9461 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9462   # do not overwrite the value of need_locks provided by the user
9463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9464 $as_echo_n "checking if we can lock with hard links... " >&6; }
9465   hard_links=yes
9466   $RM conftest*
9467   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9468   touch conftest.a
9469   ln conftest.a conftest.b 2>&5 || hard_links=no
9470   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9472 $as_echo "$hard_links" >&6; }
9473   if test "$hard_links" = no; then
9474     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9475 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9476     need_locks=warn
9477   fi
9478 else
9479   need_locks=no
9480 fi
9481
9482
9483
9484
9485
9486
9487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9488 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9489
9490   runpath_var=
9491   allow_undefined_flag=
9492   always_export_symbols=no
9493   archive_cmds=
9494   archive_expsym_cmds=
9495   compiler_needs_object=no
9496   enable_shared_with_static_runtimes=no
9497   export_dynamic_flag_spec=
9498   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9499   hardcode_automatic=no
9500   hardcode_direct=no
9501   hardcode_direct_absolute=no
9502   hardcode_libdir_flag_spec=
9503   hardcode_libdir_flag_spec_ld=
9504   hardcode_libdir_separator=
9505   hardcode_minus_L=no
9506   hardcode_shlibpath_var=unsupported
9507   inherit_rpath=no
9508   link_all_deplibs=unknown
9509   module_cmds=
9510   module_expsym_cmds=
9511   old_archive_from_new_cmds=
9512   old_archive_from_expsyms_cmds=
9513   thread_safe_flag_spec=
9514   whole_archive_flag_spec=
9515   # include_expsyms should be a list of space-separated symbols to be *always*
9516   # included in the symbol list
9517   include_expsyms=
9518   # exclude_expsyms can be an extended regexp of symbols to exclude
9519   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9520   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9521   # as well as any symbol that contains `d'.
9522   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9523   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9524   # platforms (ab)use it in PIC code, but their linkers get confused if
9525   # the symbol is explicitly referenced.  Since portable code cannot
9526   # rely on this symbol name, it's probably fine to never include it in
9527   # preloaded symbol tables.
9528   # Exclude shared library initialization/finalization symbols.
9529   extract_expsyms_cmds=
9530
9531   case $host_os in
9532   cygwin* | mingw* | pw32* | cegcc*)
9533     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9534     # When not using gcc, we currently assume that we are using
9535     # Microsoft Visual C++.
9536     if test "$GCC" != yes; then
9537       with_gnu_ld=no
9538     fi
9539     ;;
9540   interix*)
9541     # we just hope/assume this is gcc and not c89 (= MSVC++)
9542     with_gnu_ld=yes
9543     ;;
9544   openbsd*)
9545     with_gnu_ld=no
9546     ;;
9547   esac
9548
9549   ld_shlibs=yes
9550   if test "$with_gnu_ld" = yes; then
9551     # If archive_cmds runs LD, not CC, wlarc should be empty
9552     wlarc='${wl}'
9553
9554     # Set some defaults for GNU ld with shared library support. These
9555     # are reset later if shared libraries are not supported. Putting them
9556     # here allows them to be overridden if necessary.
9557     runpath_var=LD_RUN_PATH
9558     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9559     export_dynamic_flag_spec='${wl}--export-dynamic'
9560     # ancient GNU ld didn't support --whole-archive et. al.
9561     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9562       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9563     else
9564       whole_archive_flag_spec=
9565     fi
9566     supports_anon_versioning=no
9567     case `$LD -v 2>&1` in
9568       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9569       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9570       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9571       *\ 2.11.*) ;; # other 2.11 versions
9572       *) supports_anon_versioning=yes ;;
9573     esac
9574
9575     # See if GNU ld supports shared libraries.
9576     case $host_os in
9577     aix[3-9]*)
9578       # On AIX/PPC, the GNU linker is very broken
9579       if test "$host_cpu" != ia64; then
9580         ld_shlibs=no
9581         cat <<_LT_EOF 1>&2
9582
9583 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9584 *** to be unable to reliably create shared libraries on AIX.
9585 *** Therefore, libtool is disabling shared libraries support.  If you
9586 *** really care for shared libraries, you may want to modify your PATH
9587 *** so that a non-GNU linker is found, and then restart.
9588
9589 _LT_EOF
9590       fi
9591       ;;
9592
9593     amigaos*)
9594       case $host_cpu in
9595       powerpc)
9596             # see comment about AmigaOS4 .so support
9597             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9598             archive_expsym_cmds=''
9599         ;;
9600       m68k)
9601             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)'
9602             hardcode_libdir_flag_spec='-L$libdir'
9603             hardcode_minus_L=yes
9604         ;;
9605       esac
9606       ;;
9607
9608     beos*)
9609       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9610         allow_undefined_flag=unsupported
9611         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9612         # support --undefined.  This deserves some investigation.  FIXME
9613         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9614       else
9615         ld_shlibs=no
9616       fi
9617       ;;
9618
9619     cygwin* | mingw* | pw32* | cegcc*)
9620       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9621       # as there is no search path for DLLs.
9622       hardcode_libdir_flag_spec='-L$libdir'
9623       allow_undefined_flag=unsupported
9624       always_export_symbols=no
9625       enable_shared_with_static_runtimes=yes
9626       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9627
9628       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9629         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9630         # If the export-symbols file already is a .def file (1st line
9631         # is EXPORTS), use it as is; otherwise, prepend...
9632         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9633           cp $export_symbols $output_objdir/$soname.def;
9634         else
9635           echo EXPORTS > $output_objdir/$soname.def;
9636           cat $export_symbols >> $output_objdir/$soname.def;
9637         fi~
9638         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9639       else
9640         ld_shlibs=no
9641       fi
9642       ;;
9643
9644     interix[3-9]*)
9645       hardcode_direct=no
9646       hardcode_shlibpath_var=no
9647       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9648       export_dynamic_flag_spec='${wl}-E'
9649       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9650       # Instead, shared libraries are loaded at an image base (0x10000000 by
9651       # default) and relocated if they conflict, which is a slow very memory
9652       # consuming and fragmenting process.  To avoid this, we pick a random,
9653       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9654       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9655       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9656       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'
9657       ;;
9658
9659     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9660       tmp_diet=no
9661       if test "$host_os" = linux-dietlibc; then
9662         case $cc_basename in
9663           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9664         esac
9665       fi
9666       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9667          && test "$tmp_diet" = no
9668       then
9669         tmp_addflag=
9670         tmp_sharedflag='-shared'
9671         case $cc_basename,$host_cpu in
9672         pgcc*)                          # Portland Group C compiler
9673           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'
9674           tmp_addflag=' $pic_flag'
9675           ;;
9676         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9677           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'
9678           tmp_addflag=' $pic_flag -Mnomain' ;;
9679         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9680           tmp_addflag=' -i_dynamic' ;;
9681         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9682           tmp_addflag=' -i_dynamic -nofor_main' ;;
9683         ifc* | ifort*)                  # Intel Fortran compiler
9684           tmp_addflag=' -nofor_main' ;;
9685         lf95*)                          # Lahey Fortran 8.1
9686           whole_archive_flag_spec=
9687           tmp_sharedflag='--shared' ;;
9688         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9689           tmp_sharedflag='-qmkshrobj'
9690           tmp_addflag= ;;
9691         esac
9692         case `$CC -V 2>&1 | sed 5q` in
9693         *Sun\ C*)                       # Sun C 5.9
9694           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'
9695           compiler_needs_object=yes
9696           tmp_sharedflag='-G' ;;
9697         *Sun\ F*)                       # Sun Fortran 8.3
9698           tmp_sharedflag='-G' ;;
9699         esac
9700         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9701
9702         if test "x$supports_anon_versioning" = xyes; then
9703           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9704             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9705             echo "local: *; };" >> $output_objdir/$libname.ver~
9706             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9707         fi
9708
9709         case $cc_basename in
9710         xlf*)
9711           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9712           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9713           hardcode_libdir_flag_spec=
9714           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9715           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9716           if test "x$supports_anon_versioning" = xyes; then
9717             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9718               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9719               echo "local: *; };" >> $output_objdir/$libname.ver~
9720               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9721           fi
9722           ;;
9723         esac
9724       else
9725         ld_shlibs=no
9726       fi
9727       ;;
9728
9729     netbsd*)
9730       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9731         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9732         wlarc=
9733       else
9734         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9735         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9736       fi
9737       ;;
9738
9739     solaris*)
9740       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9741         ld_shlibs=no
9742         cat <<_LT_EOF 1>&2
9743
9744 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9745 *** create shared libraries on Solaris systems.  Therefore, libtool
9746 *** is disabling shared libraries support.  We urge you to upgrade GNU
9747 *** binutils to release 2.9.1 or newer.  Another option is to modify
9748 *** your PATH or compiler configuration so that the native linker is
9749 *** used, and then restart.
9750
9751 _LT_EOF
9752       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9753         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9754         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9755       else
9756         ld_shlibs=no
9757       fi
9758       ;;
9759
9760     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9761       case `$LD -v 2>&1` in
9762         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9763         ld_shlibs=no
9764         cat <<_LT_EOF 1>&2
9765
9766 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9767 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9768 *** is disabling shared libraries support.  We urge you to upgrade GNU
9769 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9770 *** your PATH or compiler configuration so that the native linker is
9771 *** used, and then restart.
9772
9773 _LT_EOF
9774         ;;
9775         *)
9776           # For security reasons, it is highly recommended that you always
9777           # use absolute paths for naming shared libraries, and exclude the
9778           # DT_RUNPATH tag from executables and libraries.  But doing so
9779           # requires that you compile everything twice, which is a pain.
9780           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9781             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9782             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9783             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9784           else
9785             ld_shlibs=no
9786           fi
9787         ;;
9788       esac
9789       ;;
9790
9791     sunos4*)
9792       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9793       wlarc=
9794       hardcode_direct=yes
9795       hardcode_shlibpath_var=no
9796       ;;
9797
9798     *)
9799       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9800         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9801         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9802       else
9803         ld_shlibs=no
9804       fi
9805       ;;
9806     esac
9807
9808     if test "$ld_shlibs" = no; then
9809       runpath_var=
9810       hardcode_libdir_flag_spec=
9811       export_dynamic_flag_spec=
9812       whole_archive_flag_spec=
9813     fi
9814   else
9815     # PORTME fill in a description of your system's linker (not GNU ld)
9816     case $host_os in
9817     aix3*)
9818       allow_undefined_flag=unsupported
9819       always_export_symbols=yes
9820       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'
9821       # Note: this linker hardcodes the directories in LIBPATH if there
9822       # are no directories specified by -L.
9823       hardcode_minus_L=yes
9824       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9825         # Neither direct hardcoding nor static linking is supported with a
9826         # broken collect2.
9827         hardcode_direct=unsupported
9828       fi
9829       ;;
9830
9831     aix[4-9]*)
9832       if test "$host_cpu" = ia64; then
9833         # On IA64, the linker does run time linking by default, so we don't
9834         # have to do anything special.
9835         aix_use_runtimelinking=no
9836         exp_sym_flag='-Bexport'
9837         no_entry_flag=""
9838       else
9839         # If we're using GNU nm, then we don't want the "-C" option.
9840         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9841         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9842           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'
9843         else
9844           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'
9845         fi
9846         aix_use_runtimelinking=no
9847
9848         # Test if we are trying to use run time linking or normal
9849         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9850         # need to do runtime linking.
9851         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9852           for ld_flag in $LDFLAGS; do
9853           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9854             aix_use_runtimelinking=yes
9855             break
9856           fi
9857           done
9858           ;;
9859         esac
9860
9861         exp_sym_flag='-bexport'
9862         no_entry_flag='-bnoentry'
9863       fi
9864
9865       # When large executables or shared objects are built, AIX ld can
9866       # have problems creating the table of contents.  If linking a library
9867       # or program results in "error TOC overflow" add -mminimal-toc to
9868       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9869       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9870
9871       archive_cmds=''
9872       hardcode_direct=yes
9873       hardcode_direct_absolute=yes
9874       hardcode_libdir_separator=':'
9875       link_all_deplibs=yes
9876       file_list_spec='${wl}-f,'
9877
9878       if test "$GCC" = yes; then
9879         case $host_os in aix4.[012]|aix4.[012].*)
9880         # We only want to do this on AIX 4.2 and lower, the check
9881         # below for broken collect2 doesn't work under 4.3+
9882           collect2name=`${CC} -print-prog-name=collect2`
9883           if test -f "$collect2name" &&
9884            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9885           then
9886           # We have reworked collect2
9887           :
9888           else
9889           # We have old collect2
9890           hardcode_direct=unsupported
9891           # It fails to find uninstalled libraries when the uninstalled
9892           # path is not listed in the libpath.  Setting hardcode_minus_L
9893           # to unsupported forces relinking
9894           hardcode_minus_L=yes
9895           hardcode_libdir_flag_spec='-L$libdir'
9896           hardcode_libdir_separator=
9897           fi
9898           ;;
9899         esac
9900         shared_flag='-shared'
9901         if test "$aix_use_runtimelinking" = yes; then
9902           shared_flag="$shared_flag "'${wl}-G'
9903         fi
9904       else
9905         # not using gcc
9906         if test "$host_cpu" = ia64; then
9907         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9908         # chokes on -Wl,-G. The following line is correct:
9909           shared_flag='-G'
9910         else
9911           if test "$aix_use_runtimelinking" = yes; then
9912             shared_flag='${wl}-G'
9913           else
9914             shared_flag='${wl}-bM:SRE'
9915           fi
9916         fi
9917       fi
9918
9919       export_dynamic_flag_spec='${wl}-bexpall'
9920       # It seems that -bexpall does not export symbols beginning with
9921       # underscore (_), so it is better to generate a list of symbols to export.
9922       always_export_symbols=yes
9923       if test "$aix_use_runtimelinking" = yes; then
9924         # Warning - without using the other runtime loading flags (-brtl),
9925         # -berok will link without error, but may produce a broken library.
9926         allow_undefined_flag='-berok'
9927         # Determine the default libpath from the value encoded in an
9928         # empty executable.
9929         if test x$gcc_no_link = xyes; then
9930   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9931 fi
9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h.  */
9934
9935 int
9936 main ()
9937 {
9938
9939   ;
9940   return 0;
9941 }
9942 _ACEOF
9943 if ac_fn_c_try_link "$LINENO"; then :
9944
9945 lt_aix_libpath_sed='
9946     /Import File Strings/,/^$/ {
9947         /^0/ {
9948             s/^0  *\(.*\)$/\1/
9949             p
9950         }
9951     }'
9952 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9953 # Check for a 64-bit object if we didn't find anything.
9954 if test -z "$aix_libpath"; then
9955   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9956 fi
9957 fi
9958 rm -f core conftest.err conftest.$ac_objext \
9959     conftest$ac_exeext conftest.$ac_ext
9960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9961
9962         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9963         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"
9964       else
9965         if test "$host_cpu" = ia64; then
9966           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9967           allow_undefined_flag="-z nodefs"
9968           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"
9969         else
9970          # Determine the default libpath from the value encoded in an
9971          # empty executable.
9972          if test x$gcc_no_link = xyes; then
9973   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9974 fi
9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9976 /* end confdefs.h.  */
9977
9978 int
9979 main ()
9980 {
9981
9982   ;
9983   return 0;
9984 }
9985 _ACEOF
9986 if ac_fn_c_try_link "$LINENO"; then :
9987
9988 lt_aix_libpath_sed='
9989     /Import File Strings/,/^$/ {
9990         /^0/ {
9991             s/^0  *\(.*\)$/\1/
9992             p
9993         }
9994     }'
9995 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9996 # Check for a 64-bit object if we didn't find anything.
9997 if test -z "$aix_libpath"; then
9998   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9999 fi
10000 fi
10001 rm -f core conftest.err conftest.$ac_objext \
10002     conftest$ac_exeext conftest.$ac_ext
10003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10004
10005          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10006           # Warning - without using the other run time loading flags,
10007           # -berok will link without error, but may produce a broken library.
10008           no_undefined_flag=' ${wl}-bernotok'
10009           allow_undefined_flag=' ${wl}-berok'
10010           # Exported symbols can be pulled into shared objects from archives
10011           whole_archive_flag_spec='$convenience'
10012           archive_cmds_need_lc=yes
10013           # This is similar to how AIX traditionally builds its shared libraries.
10014           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'
10015         fi
10016       fi
10017       ;;
10018
10019     amigaos*)
10020       case $host_cpu in
10021       powerpc)
10022             # see comment about AmigaOS4 .so support
10023             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10024             archive_expsym_cmds=''
10025         ;;
10026       m68k)
10027             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)'
10028             hardcode_libdir_flag_spec='-L$libdir'
10029             hardcode_minus_L=yes
10030         ;;
10031       esac
10032       ;;
10033
10034     bsdi[45]*)
10035       export_dynamic_flag_spec=-rdynamic
10036       ;;
10037
10038     cygwin* | mingw* | pw32* | cegcc*)
10039       # When not using gcc, we currently assume that we are using
10040       # Microsoft Visual C++.
10041       # hardcode_libdir_flag_spec is actually meaningless, as there is
10042       # no search path for DLLs.
10043       hardcode_libdir_flag_spec=' '
10044       allow_undefined_flag=unsupported
10045       # Tell ltmain to make .lib files, not .a files.
10046       libext=lib
10047       # Tell ltmain to make .dll files, not .so files.
10048       shrext_cmds=".dll"
10049       # FIXME: Setting linknames here is a bad hack.
10050       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10051       # The linker will automatically build a .lib file if we build a DLL.
10052       old_archive_from_new_cmds='true'
10053       # FIXME: Should let the user specify the lib program.
10054       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10055       fix_srcfile_path='`cygpath -w "$srcfile"`'
10056       enable_shared_with_static_runtimes=yes
10057       ;;
10058
10059     darwin* | rhapsody*)
10060
10061
10062   archive_cmds_need_lc=no
10063   hardcode_direct=no
10064   hardcode_automatic=yes
10065   hardcode_shlibpath_var=unsupported
10066   whole_archive_flag_spec=''
10067   link_all_deplibs=yes
10068   allow_undefined_flag="$_lt_dar_allow_undefined"
10069   case $cc_basename in
10070      ifort*) _lt_dar_can_shared=yes ;;
10071      *) _lt_dar_can_shared=$GCC ;;
10072   esac
10073   if test "$_lt_dar_can_shared" = "yes"; then
10074     output_verbose_link_cmd=echo
10075     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10076     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10077     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}"
10078     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}"
10079
10080   else
10081   ld_shlibs=no
10082   fi
10083
10084       ;;
10085
10086     dgux*)
10087       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10088       hardcode_libdir_flag_spec='-L$libdir'
10089       hardcode_shlibpath_var=no
10090       ;;
10091
10092     freebsd1*)
10093       ld_shlibs=no
10094       ;;
10095
10096     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10097     # support.  Future versions do this automatically, but an explicit c++rt0.o
10098     # does not break anything, and helps significantly (at the cost of a little
10099     # extra space).
10100     freebsd2.2*)
10101       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10102       hardcode_libdir_flag_spec='-R$libdir'
10103       hardcode_direct=yes
10104       hardcode_shlibpath_var=no
10105       ;;
10106
10107     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10108     freebsd2*)
10109       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10110       hardcode_direct=yes
10111       hardcode_minus_L=yes
10112       hardcode_shlibpath_var=no
10113       ;;
10114
10115     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10116     freebsd* | dragonfly*)
10117       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10118       hardcode_libdir_flag_spec='-R$libdir'
10119       hardcode_direct=yes
10120       hardcode_shlibpath_var=no
10121       ;;
10122
10123     hpux9*)
10124       if test "$GCC" = yes; then
10125         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'
10126       else
10127         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'
10128       fi
10129       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10130       hardcode_libdir_separator=:
10131       hardcode_direct=yes
10132
10133       # hardcode_minus_L: Not really in the search PATH,
10134       # but as the default location of the library.
10135       hardcode_minus_L=yes
10136       export_dynamic_flag_spec='${wl}-E'
10137       ;;
10138
10139     hpux10*)
10140       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10141         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10142       else
10143         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10144       fi
10145       if test "$with_gnu_ld" = no; then
10146         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10147         hardcode_libdir_flag_spec_ld='+b $libdir'
10148         hardcode_libdir_separator=:
10149         hardcode_direct=yes
10150         hardcode_direct_absolute=yes
10151         export_dynamic_flag_spec='${wl}-E'
10152         # hardcode_minus_L: Not really in the search PATH,
10153         # but as the default location of the library.
10154         hardcode_minus_L=yes
10155       fi
10156       ;;
10157
10158     hpux11*)
10159       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10160         case $host_cpu in
10161         hppa*64*)
10162           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10163           ;;
10164         ia64*)
10165           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10166           ;;
10167         *)
10168           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10169           ;;
10170         esac
10171       else
10172         case $host_cpu in
10173         hppa*64*)
10174           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10175           ;;
10176         ia64*)
10177           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10178           ;;
10179         *)
10180           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10181           ;;
10182         esac
10183       fi
10184       if test "$with_gnu_ld" = no; then
10185         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10186         hardcode_libdir_separator=:
10187
10188         case $host_cpu in
10189         hppa*64*|ia64*)
10190           hardcode_direct=no
10191           hardcode_shlibpath_var=no
10192           ;;
10193         *)
10194           hardcode_direct=yes
10195           hardcode_direct_absolute=yes
10196           export_dynamic_flag_spec='${wl}-E'
10197
10198           # hardcode_minus_L: Not really in the search PATH,
10199           # but as the default location of the library.
10200           hardcode_minus_L=yes
10201           ;;
10202         esac
10203       fi
10204       ;;
10205
10206     irix5* | irix6* | nonstopux*)
10207       if test "$GCC" = yes; then
10208         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'
10209         # Try to use the -exported_symbol ld option, if it does not
10210         # work, assume that -exports_file does not work either and
10211         # implicitly export all symbols.
10212         save_LDFLAGS="$LDFLAGS"
10213         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10214         if test x$gcc_no_link = xyes; then
10215   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10216 fi
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h.  */
10219 int foo(void) {}
10220 _ACEOF
10221 if ac_fn_c_try_link "$LINENO"; then :
10222   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'
10223
10224 fi
10225 rm -f core conftest.err conftest.$ac_objext \
10226     conftest$ac_exeext conftest.$ac_ext
10227         LDFLAGS="$save_LDFLAGS"
10228       else
10229         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'
10230         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'
10231       fi
10232       archive_cmds_need_lc='no'
10233       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10234       hardcode_libdir_separator=:
10235       inherit_rpath=yes
10236       link_all_deplibs=yes
10237       ;;
10238
10239     netbsd*)
10240       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10241         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10242       else
10243         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10244       fi
10245       hardcode_libdir_flag_spec='-R$libdir'
10246       hardcode_direct=yes
10247       hardcode_shlibpath_var=no
10248       ;;
10249
10250     newsos6)
10251       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10252       hardcode_direct=yes
10253       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10254       hardcode_libdir_separator=:
10255       hardcode_shlibpath_var=no
10256       ;;
10257
10258     *nto* | *qnx*)
10259       ;;
10260
10261     openbsd*)
10262       if test -f /usr/libexec/ld.so; then
10263         hardcode_direct=yes
10264         hardcode_shlibpath_var=no
10265         hardcode_direct_absolute=yes
10266         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10267           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10268           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10269           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10270           export_dynamic_flag_spec='${wl}-E'
10271         else
10272           case $host_os in
10273            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10274              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10275              hardcode_libdir_flag_spec='-R$libdir'
10276              ;;
10277            *)
10278              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10279              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10280              ;;
10281           esac
10282         fi
10283       else
10284         ld_shlibs=no
10285       fi
10286       ;;
10287
10288     os2*)
10289       hardcode_libdir_flag_spec='-L$libdir'
10290       hardcode_minus_L=yes
10291       allow_undefined_flag=unsupported
10292       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'
10293       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10294       ;;
10295
10296     osf3*)
10297       if test "$GCC" = yes; then
10298         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10299         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'
10300       else
10301         allow_undefined_flag=' -expect_unresolved \*'
10302         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'
10303       fi
10304       archive_cmds_need_lc='no'
10305       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10306       hardcode_libdir_separator=:
10307       ;;
10308
10309     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10310       if test "$GCC" = yes; then
10311         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10312         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'
10313         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10314       else
10315         allow_undefined_flag=' -expect_unresolved \*'
10316         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'
10317         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~
10318         $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'
10319
10320         # Both c and cxx compiler support -rpath directly
10321         hardcode_libdir_flag_spec='-rpath $libdir'
10322       fi
10323       archive_cmds_need_lc='no'
10324       hardcode_libdir_separator=:
10325       ;;
10326
10327     solaris*)
10328       no_undefined_flag=' -z defs'
10329       if test "$GCC" = yes; then
10330         wlarc='${wl}'
10331         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10332         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10333           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10334       else
10335         case `$CC -V 2>&1` in
10336         *"Compilers 5.0"*)
10337           wlarc=''
10338           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10339           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10340           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10341           ;;
10342         *)
10343           wlarc='${wl}'
10344           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10345           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10346           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10347           ;;
10348         esac
10349       fi
10350       hardcode_libdir_flag_spec='-R$libdir'
10351       hardcode_shlibpath_var=no
10352       case $host_os in
10353       solaris2.[0-5] | solaris2.[0-5].*) ;;
10354       *)
10355         # The compiler driver will combine and reorder linker options,
10356         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10357         # but is careful enough not to reorder.
10358         # Supported since Solaris 2.6 (maybe 2.5.1?)
10359         if test "$GCC" = yes; then
10360           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10361         else
10362           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10363         fi
10364         ;;
10365       esac
10366       link_all_deplibs=yes
10367       ;;
10368
10369     sunos4*)
10370       if test "x$host_vendor" = xsequent; then
10371         # Use $CC to link under sequent, because it throws in some extra .o
10372         # files that make .init and .fini sections work.
10373         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10374       else
10375         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10376       fi
10377       hardcode_libdir_flag_spec='-L$libdir'
10378       hardcode_direct=yes
10379       hardcode_minus_L=yes
10380       hardcode_shlibpath_var=no
10381       ;;
10382
10383     sysv4)
10384       case $host_vendor in
10385         sni)
10386           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10387           hardcode_direct=yes # is this really true???
10388         ;;
10389         siemens)
10390           ## LD is ld it makes a PLAMLIB
10391           ## CC just makes a GrossModule.
10392           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10393           reload_cmds='$CC -r -o $output$reload_objs'
10394           hardcode_direct=no
10395         ;;
10396         motorola)
10397           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10398           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10399         ;;
10400       esac
10401       runpath_var='LD_RUN_PATH'
10402       hardcode_shlibpath_var=no
10403       ;;
10404
10405     sysv4.3*)
10406       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10407       hardcode_shlibpath_var=no
10408       export_dynamic_flag_spec='-Bexport'
10409       ;;
10410
10411     sysv4*MP*)
10412       if test -d /usr/nec; then
10413         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10414         hardcode_shlibpath_var=no
10415         runpath_var=LD_RUN_PATH
10416         hardcode_runpath_var=yes
10417         ld_shlibs=yes
10418       fi
10419       ;;
10420
10421     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10422       no_undefined_flag='${wl}-z,text'
10423       archive_cmds_need_lc=no
10424       hardcode_shlibpath_var=no
10425       runpath_var='LD_RUN_PATH'
10426
10427       if test "$GCC" = yes; then
10428         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10429         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10430       else
10431         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10432         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10433       fi
10434       ;;
10435
10436     sysv5* | sco3.2v5* | sco5v6*)
10437       # Note: We can NOT use -z defs as we might desire, because we do not
10438       # link with -lc, and that would cause any symbols used from libc to
10439       # always be unresolved, which means just about no library would
10440       # ever link correctly.  If we're not using GNU ld we use -z text
10441       # though, which does catch some bad symbols but isn't as heavy-handed
10442       # as -z defs.
10443       no_undefined_flag='${wl}-z,text'
10444       allow_undefined_flag='${wl}-z,nodefs'
10445       archive_cmds_need_lc=no
10446       hardcode_shlibpath_var=no
10447       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10448       hardcode_libdir_separator=':'
10449       link_all_deplibs=yes
10450       export_dynamic_flag_spec='${wl}-Bexport'
10451       runpath_var='LD_RUN_PATH'
10452
10453       if test "$GCC" = yes; then
10454         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10455         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10456       else
10457         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10459       fi
10460       ;;
10461
10462     uts4*)
10463       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10464       hardcode_libdir_flag_spec='-L$libdir'
10465       hardcode_shlibpath_var=no
10466       ;;
10467
10468     *)
10469       ld_shlibs=no
10470       ;;
10471     esac
10472
10473     if test x$host_vendor = xsni; then
10474       case $host in
10475       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10476         export_dynamic_flag_spec='${wl}-Blargedynsym'
10477         ;;
10478       esac
10479     fi
10480   fi
10481
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10483 $as_echo "$ld_shlibs" >&6; }
10484 test "$ld_shlibs" = no && can_build_shared=no
10485
10486 with_gnu_ld=$with_gnu_ld
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502 #
10503 # Do we need to explicitly link libc?
10504 #
10505 case "x$archive_cmds_need_lc" in
10506 x|xyes)
10507   # Assume -lc should be added
10508   archive_cmds_need_lc=yes
10509
10510   if test "$enable_shared" = yes && test "$GCC" = yes; then
10511     case $archive_cmds in
10512     *'~'*)
10513       # FIXME: we may have to deal with multi-command sequences.
10514       ;;
10515     '$CC '*)
10516       # Test whether the compiler implicitly links with -lc since on some
10517       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10518       # to ld, don't add -lc before -lgcc.
10519       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10520 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10521 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10522   $as_echo_n "(cached) " >&6
10523 else
10524   $RM conftest*
10525         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10526
10527         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10528   (eval $ac_compile) 2>&5
10529   ac_status=$?
10530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10531   test $ac_status = 0; } 2>conftest.err; then
10532           soname=conftest
10533           lib=conftest
10534           libobjs=conftest.$ac_objext
10535           deplibs=
10536           wl=$lt_prog_compiler_wl
10537           pic_flag=$lt_prog_compiler_pic
10538           compiler_flags=-v
10539           linker_flags=-v
10540           verstring=
10541           output_objdir=.
10542           libname=conftest
10543           lt_save_allow_undefined_flag=$allow_undefined_flag
10544           allow_undefined_flag=
10545           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10546   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10547   ac_status=$?
10548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10549   test $ac_status = 0; }
10550           then
10551             lt_cv_archive_cmds_need_lc=no
10552           else
10553             lt_cv_archive_cmds_need_lc=yes
10554           fi
10555           allow_undefined_flag=$lt_save_allow_undefined_flag
10556         else
10557           cat conftest.err 1>&5
10558         fi
10559         $RM conftest*
10560
10561 fi
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10563 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10564       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10565       ;;
10566     esac
10567   fi
10568   ;;
10569 esac
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10728 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10729
10730 if test "$GCC" = yes; then
10731   case $host_os in
10732     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10733     *) lt_awk_arg="/^libraries:/" ;;
10734   esac
10735   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10736   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10737     # if the path contains ";" then we assume it to be the separator
10738     # otherwise default to the standard path separator (i.e. ":") - it is
10739     # assumed that no part of a normal pathname contains ";" but that should
10740     # okay in the real world where ";" in dirpaths is itself problematic.
10741     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10742   else
10743     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10744   fi
10745   # Ok, now we have the path, separated by spaces, we can step through it
10746   # and add multilib dir if necessary.
10747   lt_tmp_lt_search_path_spec=
10748   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10749   for lt_sys_path in $lt_search_path_spec; do
10750     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10751       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10752     else
10753       test -d "$lt_sys_path" && \
10754         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10755     fi
10756   done
10757   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10758 BEGIN {RS=" "; FS="/|\n";} {
10759   lt_foo="";
10760   lt_count=0;
10761   for (lt_i = NF; lt_i > 0; lt_i--) {
10762     if ($lt_i != "" && $lt_i != ".") {
10763       if ($lt_i == "..") {
10764         lt_count++;
10765       } else {
10766         if (lt_count == 0) {
10767           lt_foo="/" $lt_i lt_foo;
10768         } else {
10769           lt_count--;
10770         }
10771       }
10772     }
10773   }
10774   if (lt_foo != "") { lt_freq[lt_foo]++; }
10775   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10776 }'`
10777   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10778 else
10779   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10780 fi
10781 library_names_spec=
10782 libname_spec='lib$name'
10783 soname_spec=
10784 shrext_cmds=".so"
10785 postinstall_cmds=
10786 postuninstall_cmds=
10787 finish_cmds=
10788 finish_eval=
10789 shlibpath_var=
10790 shlibpath_overrides_runpath=unknown
10791 version_type=none
10792 dynamic_linker="$host_os ld.so"
10793 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10794 need_lib_prefix=unknown
10795 hardcode_into_libs=no
10796
10797 # when you set need_version to no, make sure it does not cause -set_version
10798 # flags to be left without arguments
10799 need_version=unknown
10800
10801 case $host_os in
10802 aix3*)
10803   version_type=linux
10804   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10805   shlibpath_var=LIBPATH
10806
10807   # AIX 3 has no versioning support, so we append a major version to the name.
10808   soname_spec='${libname}${release}${shared_ext}$major'
10809   ;;
10810
10811 aix[4-9]*)
10812   version_type=linux
10813   need_lib_prefix=no
10814   need_version=no
10815   hardcode_into_libs=yes
10816   if test "$host_cpu" = ia64; then
10817     # AIX 5 supports IA64
10818     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10819     shlibpath_var=LD_LIBRARY_PATH
10820   else
10821     # With GCC up to 2.95.x, collect2 would create an import file
10822     # for dependence libraries.  The import file would start with
10823     # the line `#! .'.  This would cause the generated library to
10824     # depend on `.', always an invalid library.  This was fixed in
10825     # development snapshots of GCC prior to 3.0.
10826     case $host_os in
10827       aix4 | aix4.[01] | aix4.[01].*)
10828       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10829            echo ' yes '
10830            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10831         :
10832       else
10833         can_build_shared=no
10834       fi
10835       ;;
10836     esac
10837     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10838     # soname into executable. Probably we can add versioning support to
10839     # collect2, so additional links can be useful in future.
10840     if test "$aix_use_runtimelinking" = yes; then
10841       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10842       # instead of lib<name>.a to let people know that these are not
10843       # typical AIX shared libraries.
10844       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845     else
10846       # We preserve .a as extension for shared libraries through AIX4.2
10847       # and later when we are not doing run time linking.
10848       library_names_spec='${libname}${release}.a $libname.a'
10849       soname_spec='${libname}${release}${shared_ext}$major'
10850     fi
10851     shlibpath_var=LIBPATH
10852   fi
10853   ;;
10854
10855 amigaos*)
10856   case $host_cpu in
10857   powerpc)
10858     # Since July 2007 AmigaOS4 officially supports .so libraries.
10859     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10860     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861     ;;
10862   m68k)
10863     library_names_spec='$libname.ixlibrary $libname.a'
10864     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10865     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'
10866     ;;
10867   esac
10868   ;;
10869
10870 beos*)
10871   library_names_spec='${libname}${shared_ext}'
10872   dynamic_linker="$host_os ld.so"
10873   shlibpath_var=LIBRARY_PATH
10874   ;;
10875
10876 bsdi[45]*)
10877   version_type=linux
10878   need_version=no
10879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880   soname_spec='${libname}${release}${shared_ext}$major'
10881   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10882   shlibpath_var=LD_LIBRARY_PATH
10883   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10884   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10885   # the default ld.so.conf also contains /usr/contrib/lib and
10886   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10887   # libtool to hard-code these into programs
10888   ;;
10889
10890 cygwin* | mingw* | pw32* | cegcc*)
10891   version_type=windows
10892   shrext_cmds=".dll"
10893   need_version=no
10894   need_lib_prefix=no
10895
10896   case $GCC,$host_os in
10897   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10898     library_names_spec='$libname.dll.a'
10899     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10900     postinstall_cmds='base_file=`basename \${file}`~
10901       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10902       dldir=$destdir/`dirname \$dlpath`~
10903       test -d \$dldir || mkdir -p \$dldir~
10904       $install_prog $dir/$dlname \$dldir/$dlname~
10905       chmod a+x \$dldir/$dlname~
10906       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10907         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10908       fi'
10909     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10910       dlpath=$dir/\$dldll~
10911        $RM \$dlpath'
10912     shlibpath_overrides_runpath=yes
10913
10914     case $host_os in
10915     cygwin*)
10916       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10917       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10918       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10919       ;;
10920     mingw* | cegcc*)
10921       # MinGW DLLs use traditional 'lib' prefix
10922       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10923       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10924       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10925         # It is most probably a Windows format PATH printed by
10926         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10927         # path with ; separators, and with drive letters. We can handle the
10928         # drive letters (cygwin fileutils understands them), so leave them,
10929         # especially as we might pass files found there to a mingw objdump,
10930         # which wouldn't understand a cygwinified path. Ahh.
10931         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10932       else
10933         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10934       fi
10935       ;;
10936     pw32*)
10937       # pw32 DLLs use 'pw' prefix rather than 'lib'
10938       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10939       ;;
10940     esac
10941     ;;
10942
10943   *)
10944     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10945     ;;
10946   esac
10947   dynamic_linker='Win32 ld.exe'
10948   # FIXME: first we should search . and the directory the executable is in
10949   shlibpath_var=PATH
10950   ;;
10951
10952 darwin* | rhapsody*)
10953   dynamic_linker="$host_os dyld"
10954   version_type=darwin
10955   need_lib_prefix=no
10956   need_version=no
10957   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10958   soname_spec='${libname}${release}${major}$shared_ext'
10959   shlibpath_overrides_runpath=yes
10960   shlibpath_var=DYLD_LIBRARY_PATH
10961   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10962
10963   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10964   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10965   ;;
10966
10967 dgux*)
10968   version_type=linux
10969   need_lib_prefix=no
10970   need_version=no
10971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10972   soname_spec='${libname}${release}${shared_ext}$major'
10973   shlibpath_var=LD_LIBRARY_PATH
10974   ;;
10975
10976 freebsd1*)
10977   dynamic_linker=no
10978   ;;
10979
10980 freebsd* | dragonfly*)
10981   # DragonFly does not have aout.  When/if they implement a new
10982   # versioning mechanism, adjust this.
10983   if test -x /usr/bin/objformat; then
10984     objformat=`/usr/bin/objformat`
10985   else
10986     case $host_os in
10987     freebsd[123]*) objformat=aout ;;
10988     *) objformat=elf ;;
10989     esac
10990   fi
10991   version_type=freebsd-$objformat
10992   case $version_type in
10993     freebsd-elf*)
10994       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10995       need_version=no
10996       need_lib_prefix=no
10997       ;;
10998     freebsd-*)
10999       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11000       need_version=yes
11001       ;;
11002   esac
11003   shlibpath_var=LD_LIBRARY_PATH
11004   case $host_os in
11005   freebsd2*)
11006     shlibpath_overrides_runpath=yes
11007     ;;
11008   freebsd3.[01]* | freebsdelf3.[01]*)
11009     shlibpath_overrides_runpath=yes
11010     hardcode_into_libs=yes
11011     ;;
11012   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11013   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11014     shlibpath_overrides_runpath=no
11015     hardcode_into_libs=yes
11016     ;;
11017   *) # from 4.6 on, and DragonFly
11018     shlibpath_overrides_runpath=yes
11019     hardcode_into_libs=yes
11020     ;;
11021   esac
11022   ;;
11023
11024 gnu*)
11025   version_type=linux
11026   need_lib_prefix=no
11027   need_version=no
11028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11029   soname_spec='${libname}${release}${shared_ext}$major'
11030   shlibpath_var=LD_LIBRARY_PATH
11031   hardcode_into_libs=yes
11032   ;;
11033
11034 hpux9* | hpux10* | hpux11*)
11035   # Give a soname corresponding to the major version so that dld.sl refuses to
11036   # link against other versions.
11037   version_type=sunos
11038   need_lib_prefix=no
11039   need_version=no
11040   case $host_cpu in
11041   ia64*)
11042     shrext_cmds='.so'
11043     hardcode_into_libs=yes
11044     dynamic_linker="$host_os dld.so"
11045     shlibpath_var=LD_LIBRARY_PATH
11046     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048     soname_spec='${libname}${release}${shared_ext}$major'
11049     if test "X$HPUX_IA64_MODE" = X32; then
11050       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11051     else
11052       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11053     fi
11054     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11055     ;;
11056   hppa*64*)
11057     shrext_cmds='.sl'
11058     hardcode_into_libs=yes
11059     dynamic_linker="$host_os dld.sl"
11060     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11061     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11062     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063     soname_spec='${libname}${release}${shared_ext}$major'
11064     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11065     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11066     ;;
11067   *)
11068     shrext_cmds='.sl'
11069     dynamic_linker="$host_os dld.sl"
11070     shlibpath_var=SHLIB_PATH
11071     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11073     soname_spec='${libname}${release}${shared_ext}$major'
11074     ;;
11075   esac
11076   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11077   postinstall_cmds='chmod 555 $lib'
11078   ;;
11079
11080 interix[3-9]*)
11081   version_type=linux
11082   need_lib_prefix=no
11083   need_version=no
11084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11085   soname_spec='${libname}${release}${shared_ext}$major'
11086   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11087   shlibpath_var=LD_LIBRARY_PATH
11088   shlibpath_overrides_runpath=no
11089   hardcode_into_libs=yes
11090   ;;
11091
11092 irix5* | irix6* | nonstopux*)
11093   case $host_os in
11094     nonstopux*) version_type=nonstopux ;;
11095     *)
11096         if test "$lt_cv_prog_gnu_ld" = yes; then
11097                 version_type=linux
11098         else
11099                 version_type=irix
11100         fi ;;
11101   esac
11102   need_lib_prefix=no
11103   need_version=no
11104   soname_spec='${libname}${release}${shared_ext}$major'
11105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11106   case $host_os in
11107   irix5* | nonstopux*)
11108     libsuff= shlibsuff=
11109     ;;
11110   *)
11111     case $LD in # libtool.m4 will add one of these switches to LD
11112     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11113       libsuff= shlibsuff= libmagic=32-bit;;
11114     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11115       libsuff=32 shlibsuff=N32 libmagic=N32;;
11116     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11117       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11118     *) libsuff= shlibsuff= libmagic=never-match;;
11119     esac
11120     ;;
11121   esac
11122   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11123   shlibpath_overrides_runpath=no
11124   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11125   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11126   hardcode_into_libs=yes
11127   ;;
11128
11129 # No shared lib support for Linux oldld, aout, or coff.
11130 linux*oldld* | linux*aout* | linux*coff*)
11131   dynamic_linker=no
11132   ;;
11133
11134 # This must be Linux ELF.
11135 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11136   version_type=linux
11137   need_lib_prefix=no
11138   need_version=no
11139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140   soname_spec='${libname}${release}${shared_ext}$major'
11141   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11142   shlibpath_var=LD_LIBRARY_PATH
11143   shlibpath_overrides_runpath=no
11144
11145   # Some binutils ld are patched to set DT_RUNPATH
11146   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11147   $as_echo_n "(cached) " >&6
11148 else
11149   lt_cv_shlibpath_overrides_runpath=no
11150     save_LDFLAGS=$LDFLAGS
11151     save_libdir=$libdir
11152     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11153          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11154     if test x$gcc_no_link = xyes; then
11155   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11156 fi
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h.  */
11159
11160 int
11161 main ()
11162 {
11163
11164   ;
11165   return 0;
11166 }
11167 _ACEOF
11168 if ac_fn_c_try_link "$LINENO"; then :
11169   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11170   lt_cv_shlibpath_overrides_runpath=yes
11171 fi
11172 fi
11173 rm -f core conftest.err conftest.$ac_objext \
11174     conftest$ac_exeext conftest.$ac_ext
11175     LDFLAGS=$save_LDFLAGS
11176     libdir=$save_libdir
11177
11178 fi
11179
11180   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11181
11182   # This implies no fast_install, which is unacceptable.
11183   # Some rework will be needed to allow for fast_install
11184   # before this can be enabled.
11185   hardcode_into_libs=yes
11186
11187   # Append ld.so.conf contents to the search path
11188   if test -f /etc/ld.so.conf; then
11189     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' ' '`
11190     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11191   fi
11192
11193   # We used to test for /lib/ld.so.1 and disable shared libraries on
11194   # powerpc, because MkLinux only supported shared libraries with the
11195   # GNU dynamic linker.  Since this was broken with cross compilers,
11196   # most powerpc-linux boxes support dynamic linking these days and
11197   # people can always --disable-shared, the test was removed, and we
11198   # assume the GNU/Linux dynamic linker is in use.
11199   dynamic_linker='GNU/Linux ld.so'
11200   ;;
11201
11202 netbsd*)
11203   version_type=sunos
11204   need_lib_prefix=no
11205   need_version=no
11206   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11207     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11208     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11209     dynamic_linker='NetBSD (a.out) ld.so'
11210   else
11211     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11212     soname_spec='${libname}${release}${shared_ext}$major'
11213     dynamic_linker='NetBSD ld.elf_so'
11214   fi
11215   shlibpath_var=LD_LIBRARY_PATH
11216   shlibpath_overrides_runpath=yes
11217   hardcode_into_libs=yes
11218   ;;
11219
11220 newsos6)
11221   version_type=linux
11222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11223   shlibpath_var=LD_LIBRARY_PATH
11224   shlibpath_overrides_runpath=yes
11225   ;;
11226
11227 *nto* | *qnx*)
11228   version_type=qnx
11229   need_lib_prefix=no
11230   need_version=no
11231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11232   soname_spec='${libname}${release}${shared_ext}$major'
11233   shlibpath_var=LD_LIBRARY_PATH
11234   shlibpath_overrides_runpath=no
11235   hardcode_into_libs=yes
11236   dynamic_linker='ldqnx.so'
11237   ;;
11238
11239 openbsd*)
11240   version_type=sunos
11241   sys_lib_dlsearch_path_spec="/usr/lib"
11242   need_lib_prefix=no
11243   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11244   case $host_os in
11245     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11246     *)                          need_version=no  ;;
11247   esac
11248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11249   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11250   shlibpath_var=LD_LIBRARY_PATH
11251   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11252     case $host_os in
11253       openbsd2.[89] | openbsd2.[89].*)
11254         shlibpath_overrides_runpath=no
11255         ;;
11256       *)
11257         shlibpath_overrides_runpath=yes
11258         ;;
11259       esac
11260   else
11261     shlibpath_overrides_runpath=yes
11262   fi
11263   ;;
11264
11265 os2*)
11266   libname_spec='$name'
11267   shrext_cmds=".dll"
11268   need_lib_prefix=no
11269   library_names_spec='$libname${shared_ext} $libname.a'
11270   dynamic_linker='OS/2 ld.exe'
11271   shlibpath_var=LIBPATH
11272   ;;
11273
11274 osf3* | osf4* | osf5*)
11275   version_type=osf
11276   need_lib_prefix=no
11277   need_version=no
11278   soname_spec='${libname}${release}${shared_ext}$major'
11279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280   shlibpath_var=LD_LIBRARY_PATH
11281   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11282   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11283   ;;
11284
11285 rdos*)
11286   dynamic_linker=no
11287   ;;
11288
11289 solaris*)
11290   version_type=linux
11291   need_lib_prefix=no
11292   need_version=no
11293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11294   soname_spec='${libname}${release}${shared_ext}$major'
11295   shlibpath_var=LD_LIBRARY_PATH
11296   shlibpath_overrides_runpath=yes
11297   hardcode_into_libs=yes
11298   # ldd complains unless libraries are executable
11299   postinstall_cmds='chmod +x $lib'
11300   ;;
11301
11302 sunos4*)
11303   version_type=sunos
11304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11305   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11306   shlibpath_var=LD_LIBRARY_PATH
11307   shlibpath_overrides_runpath=yes
11308   if test "$with_gnu_ld" = yes; then
11309     need_lib_prefix=no
11310   fi
11311   need_version=yes
11312   ;;
11313
11314 sysv4 | sysv4.3*)
11315   version_type=linux
11316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11317   soname_spec='${libname}${release}${shared_ext}$major'
11318   shlibpath_var=LD_LIBRARY_PATH
11319   case $host_vendor in
11320     sni)
11321       shlibpath_overrides_runpath=no
11322       need_lib_prefix=no
11323       runpath_var=LD_RUN_PATH
11324       ;;
11325     siemens)
11326       need_lib_prefix=no
11327       ;;
11328     motorola)
11329       need_lib_prefix=no
11330       need_version=no
11331       shlibpath_overrides_runpath=no
11332       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11333       ;;
11334   esac
11335   ;;
11336
11337 sysv4*MP*)
11338   if test -d /usr/nec ;then
11339     version_type=linux
11340     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11341     soname_spec='$libname${shared_ext}.$major'
11342     shlibpath_var=LD_LIBRARY_PATH
11343   fi
11344   ;;
11345
11346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11347   version_type=freebsd-elf
11348   need_lib_prefix=no
11349   need_version=no
11350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11351   soname_spec='${libname}${release}${shared_ext}$major'
11352   shlibpath_var=LD_LIBRARY_PATH
11353   shlibpath_overrides_runpath=yes
11354   hardcode_into_libs=yes
11355   if test "$with_gnu_ld" = yes; then
11356     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11357   else
11358     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11359     case $host_os in
11360       sco3.2v5*)
11361         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11362         ;;
11363     esac
11364   fi
11365   sys_lib_dlsearch_path_spec='/usr/lib'
11366   ;;
11367
11368 tpf*)
11369   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11370   version_type=linux
11371   need_lib_prefix=no
11372   need_version=no
11373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374   shlibpath_var=LD_LIBRARY_PATH
11375   shlibpath_overrides_runpath=no
11376   hardcode_into_libs=yes
11377   ;;
11378
11379 uts4*)
11380   version_type=linux
11381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382   soname_spec='${libname}${release}${shared_ext}$major'
11383   shlibpath_var=LD_LIBRARY_PATH
11384   ;;
11385
11386 *)
11387   dynamic_linker=no
11388   ;;
11389 esac
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11391 $as_echo "$dynamic_linker" >&6; }
11392 test "$dynamic_linker" = no && can_build_shared=no
11393
11394 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11395 if test "$GCC" = yes; then
11396   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11397 fi
11398
11399 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11400   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11401 fi
11402 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11403   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11404 fi
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11493 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11494 hardcode_action=
11495 if test -n "$hardcode_libdir_flag_spec" ||
11496    test -n "$runpath_var" ||
11497    test "X$hardcode_automatic" = "Xyes" ; then
11498
11499   # We can hardcode non-existent directories.
11500   if test "$hardcode_direct" != no &&
11501      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11502      # have to relink, otherwise we might link with an installed library
11503      # when we should be linking with a yet-to-be-installed one
11504      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11505      test "$hardcode_minus_L" != no; then
11506     # Linking always hardcodes the temporary library directory.
11507     hardcode_action=relink
11508   else
11509     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11510     hardcode_action=immediate
11511   fi
11512 else
11513   # We cannot hardcode anything, or else we can only hardcode existing
11514   # directories.
11515   hardcode_action=unsupported
11516 fi
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11518 $as_echo "$hardcode_action" >&6; }
11519
11520 if test "$hardcode_action" = relink ||
11521    test "$inherit_rpath" = yes; then
11522   # Fast installation is not supported
11523   enable_fast_install=no
11524 elif test "$shlibpath_overrides_runpath" = yes ||
11525      test "$enable_shared" = no; then
11526   # Fast installation is not necessary
11527   enable_fast_install=needless
11528 fi
11529
11530
11531
11532
11533
11534
11535   if test "x$enable_dlopen" != xyes; then
11536   enable_dlopen=unknown
11537   enable_dlopen_self=unknown
11538   enable_dlopen_self_static=unknown
11539 else
11540   lt_cv_dlopen=no
11541   lt_cv_dlopen_libs=
11542
11543   case $host_os in
11544   beos*)
11545     lt_cv_dlopen="load_add_on"
11546     lt_cv_dlopen_libs=
11547     lt_cv_dlopen_self=yes
11548     ;;
11549
11550   mingw* | pw32* | cegcc*)
11551     lt_cv_dlopen="LoadLibrary"
11552     lt_cv_dlopen_libs=
11553     ;;
11554
11555   cygwin*)
11556     lt_cv_dlopen="dlopen"
11557     lt_cv_dlopen_libs=
11558     ;;
11559
11560   darwin*)
11561   # if libdl is installed we need to link against it
11562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11563 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11564 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11565   $as_echo_n "(cached) " >&6
11566 else
11567   ac_check_lib_save_LIBS=$LIBS
11568 LIBS="-ldl  $LIBS"
11569 if test x$gcc_no_link = xyes; then
11570   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11571 fi
11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h.  */
11574
11575 /* Override any GCC internal prototype to avoid an error.
11576    Use char because int might match the return type of a GCC
11577    builtin and then its argument prototype would still apply.  */
11578 #ifdef __cplusplus
11579 extern "C"
11580 #endif
11581 char dlopen ();
11582 int
11583 main ()
11584 {
11585 return dlopen ();
11586   ;
11587   return 0;
11588 }
11589 _ACEOF
11590 if ac_fn_c_try_link "$LINENO"; then :
11591   ac_cv_lib_dl_dlopen=yes
11592 else
11593   ac_cv_lib_dl_dlopen=no
11594 fi
11595 rm -f core conftest.err conftest.$ac_objext \
11596     conftest$ac_exeext conftest.$ac_ext
11597 LIBS=$ac_check_lib_save_LIBS
11598 fi
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11600 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11601 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11602   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11603 else
11604
11605     lt_cv_dlopen="dyld"
11606     lt_cv_dlopen_libs=
11607     lt_cv_dlopen_self=yes
11608
11609 fi
11610
11611     ;;
11612
11613   *)
11614     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11615 if test "x$ac_cv_func_shl_load" = x""yes; then :
11616   lt_cv_dlopen="shl_load"
11617 else
11618   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11619 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11620 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11621   $as_echo_n "(cached) " >&6
11622 else
11623   ac_check_lib_save_LIBS=$LIBS
11624 LIBS="-ldld  $LIBS"
11625 if test x$gcc_no_link = xyes; then
11626   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11627 fi
11628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11629 /* end confdefs.h.  */
11630
11631 /* Override any GCC internal prototype to avoid an error.
11632    Use char because int might match the return type of a GCC
11633    builtin and then its argument prototype would still apply.  */
11634 #ifdef __cplusplus
11635 extern "C"
11636 #endif
11637 char shl_load ();
11638 int
11639 main ()
11640 {
11641 return shl_load ();
11642   ;
11643   return 0;
11644 }
11645 _ACEOF
11646 if ac_fn_c_try_link "$LINENO"; then :
11647   ac_cv_lib_dld_shl_load=yes
11648 else
11649   ac_cv_lib_dld_shl_load=no
11650 fi
11651 rm -f core conftest.err conftest.$ac_objext \
11652     conftest$ac_exeext conftest.$ac_ext
11653 LIBS=$ac_check_lib_save_LIBS
11654 fi
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11656 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11657 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11658   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11659 else
11660   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11661 if test "x$ac_cv_func_dlopen" = x""yes; then :
11662   lt_cv_dlopen="dlopen"
11663 else
11664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11665 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11666 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11667   $as_echo_n "(cached) " >&6
11668 else
11669   ac_check_lib_save_LIBS=$LIBS
11670 LIBS="-ldl  $LIBS"
11671 if test x$gcc_no_link = xyes; then
11672   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11673 fi
11674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h.  */
11676
11677 /* Override any GCC internal prototype to avoid an error.
11678    Use char because int might match the return type of a GCC
11679    builtin and then its argument prototype would still apply.  */
11680 #ifdef __cplusplus
11681 extern "C"
11682 #endif
11683 char dlopen ();
11684 int
11685 main ()
11686 {
11687 return dlopen ();
11688   ;
11689   return 0;
11690 }
11691 _ACEOF
11692 if ac_fn_c_try_link "$LINENO"; then :
11693   ac_cv_lib_dl_dlopen=yes
11694 else
11695   ac_cv_lib_dl_dlopen=no
11696 fi
11697 rm -f core conftest.err conftest.$ac_objext \
11698     conftest$ac_exeext conftest.$ac_ext
11699 LIBS=$ac_check_lib_save_LIBS
11700 fi
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11702 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11703 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11704   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11705 else
11706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11707 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11708 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11709   $as_echo_n "(cached) " >&6
11710 else
11711   ac_check_lib_save_LIBS=$LIBS
11712 LIBS="-lsvld  $LIBS"
11713 if test x$gcc_no_link = xyes; then
11714   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11715 fi
11716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11717 /* end confdefs.h.  */
11718
11719 /* Override any GCC internal prototype to avoid an error.
11720    Use char because int might match the return type of a GCC
11721    builtin and then its argument prototype would still apply.  */
11722 #ifdef __cplusplus
11723 extern "C"
11724 #endif
11725 char dlopen ();
11726 int
11727 main ()
11728 {
11729 return dlopen ();
11730   ;
11731   return 0;
11732 }
11733 _ACEOF
11734 if ac_fn_c_try_link "$LINENO"; then :
11735   ac_cv_lib_svld_dlopen=yes
11736 else
11737   ac_cv_lib_svld_dlopen=no
11738 fi
11739 rm -f core conftest.err conftest.$ac_objext \
11740     conftest$ac_exeext conftest.$ac_ext
11741 LIBS=$ac_check_lib_save_LIBS
11742 fi
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11744 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11745 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11746   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11747 else
11748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11749 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11750 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11751   $as_echo_n "(cached) " >&6
11752 else
11753   ac_check_lib_save_LIBS=$LIBS
11754 LIBS="-ldld  $LIBS"
11755 if test x$gcc_no_link = xyes; then
11756   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11757 fi
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h.  */
11760
11761 /* Override any GCC internal prototype to avoid an error.
11762    Use char because int might match the return type of a GCC
11763    builtin and then its argument prototype would still apply.  */
11764 #ifdef __cplusplus
11765 extern "C"
11766 #endif
11767 char dld_link ();
11768 int
11769 main ()
11770 {
11771 return dld_link ();
11772   ;
11773   return 0;
11774 }
11775 _ACEOF
11776 if ac_fn_c_try_link "$LINENO"; then :
11777   ac_cv_lib_dld_dld_link=yes
11778 else
11779   ac_cv_lib_dld_dld_link=no
11780 fi
11781 rm -f core conftest.err conftest.$ac_objext \
11782     conftest$ac_exeext conftest.$ac_ext
11783 LIBS=$ac_check_lib_save_LIBS
11784 fi
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11786 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11787 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11788   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11789 fi
11790
11791
11792 fi
11793
11794
11795 fi
11796
11797
11798 fi
11799
11800
11801 fi
11802
11803
11804 fi
11805
11806     ;;
11807   esac
11808
11809   if test "x$lt_cv_dlopen" != xno; then
11810     enable_dlopen=yes
11811   else
11812     enable_dlopen=no
11813   fi
11814
11815   case $lt_cv_dlopen in
11816   dlopen)
11817     save_CPPFLAGS="$CPPFLAGS"
11818     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11819
11820     save_LDFLAGS="$LDFLAGS"
11821     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11822
11823     save_LIBS="$LIBS"
11824     LIBS="$lt_cv_dlopen_libs $LIBS"
11825
11826     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11827 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11828 if test "${lt_cv_dlopen_self+set}" = set; then :
11829   $as_echo_n "(cached) " >&6
11830 else
11831           if test "$cross_compiling" = yes; then :
11832   lt_cv_dlopen_self=cross
11833 else
11834   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11835   lt_status=$lt_dlunknown
11836   cat > conftest.$ac_ext <<_LT_EOF
11837 #line 11837 "configure"
11838 #include "confdefs.h"
11839
11840 #if HAVE_DLFCN_H
11841 #include <dlfcn.h>
11842 #endif
11843
11844 #include <stdio.h>
11845
11846 #ifdef RTLD_GLOBAL
11847 #  define LT_DLGLOBAL           RTLD_GLOBAL
11848 #else
11849 #  ifdef DL_GLOBAL
11850 #    define LT_DLGLOBAL         DL_GLOBAL
11851 #  else
11852 #    define LT_DLGLOBAL         0
11853 #  endif
11854 #endif
11855
11856 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11857    find out it does not work in some platform. */
11858 #ifndef LT_DLLAZY_OR_NOW
11859 #  ifdef RTLD_LAZY
11860 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11861 #  else
11862 #    ifdef DL_LAZY
11863 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11864 #    else
11865 #      ifdef RTLD_NOW
11866 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11867 #      else
11868 #        ifdef DL_NOW
11869 #          define LT_DLLAZY_OR_NOW      DL_NOW
11870 #        else
11871 #          define LT_DLLAZY_OR_NOW      0
11872 #        endif
11873 #      endif
11874 #    endif
11875 #  endif
11876 #endif
11877
11878 void fnord() { int i=42;}
11879 int main ()
11880 {
11881   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11882   int status = $lt_dlunknown;
11883
11884   if (self)
11885     {
11886       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11887       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11888       /* dlclose (self); */
11889     }
11890   else
11891     puts (dlerror ());
11892
11893   return status;
11894 }
11895 _LT_EOF
11896   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11897   (eval $ac_link) 2>&5
11898   ac_status=$?
11899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11900   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11901     (./conftest; exit; ) >&5 2>/dev/null
11902     lt_status=$?
11903     case x$lt_status in
11904       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11905       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11906       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11907     esac
11908   else :
11909     # compilation failed
11910     lt_cv_dlopen_self=no
11911   fi
11912 fi
11913 rm -fr conftest*
11914
11915
11916 fi
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11918 $as_echo "$lt_cv_dlopen_self" >&6; }
11919
11920     if test "x$lt_cv_dlopen_self" = xyes; then
11921       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11922       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11923 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11924 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11925   $as_echo_n "(cached) " >&6
11926 else
11927           if test "$cross_compiling" = yes; then :
11928   lt_cv_dlopen_self_static=cross
11929 else
11930   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11931   lt_status=$lt_dlunknown
11932   cat > conftest.$ac_ext <<_LT_EOF
11933 #line 11933 "configure"
11934 #include "confdefs.h"
11935
11936 #if HAVE_DLFCN_H
11937 #include <dlfcn.h>
11938 #endif
11939
11940 #include <stdio.h>
11941
11942 #ifdef RTLD_GLOBAL
11943 #  define LT_DLGLOBAL           RTLD_GLOBAL
11944 #else
11945 #  ifdef DL_GLOBAL
11946 #    define LT_DLGLOBAL         DL_GLOBAL
11947 #  else
11948 #    define LT_DLGLOBAL         0
11949 #  endif
11950 #endif
11951
11952 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11953    find out it does not work in some platform. */
11954 #ifndef LT_DLLAZY_OR_NOW
11955 #  ifdef RTLD_LAZY
11956 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11957 #  else
11958 #    ifdef DL_LAZY
11959 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11960 #    else
11961 #      ifdef RTLD_NOW
11962 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11963 #      else
11964 #        ifdef DL_NOW
11965 #          define LT_DLLAZY_OR_NOW      DL_NOW
11966 #        else
11967 #          define LT_DLLAZY_OR_NOW      0
11968 #        endif
11969 #      endif
11970 #    endif
11971 #  endif
11972 #endif
11973
11974 void fnord() { int i=42;}
11975 int main ()
11976 {
11977   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11978   int status = $lt_dlunknown;
11979
11980   if (self)
11981     {
11982       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11983       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11984       /* dlclose (self); */
11985     }
11986   else
11987     puts (dlerror ());
11988
11989   return status;
11990 }
11991 _LT_EOF
11992   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11993   (eval $ac_link) 2>&5
11994   ac_status=$?
11995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11996   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11997     (./conftest; exit; ) >&5 2>/dev/null
11998     lt_status=$?
11999     case x$lt_status in
12000       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12001       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12002       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12003     esac
12004   else :
12005     # compilation failed
12006     lt_cv_dlopen_self_static=no
12007   fi
12008 fi
12009 rm -fr conftest*
12010
12011
12012 fi
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12014 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12015     fi
12016
12017     CPPFLAGS="$save_CPPFLAGS"
12018     LDFLAGS="$save_LDFLAGS"
12019     LIBS="$save_LIBS"
12020     ;;
12021   esac
12022
12023   case $lt_cv_dlopen_self in
12024   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12025   *) enable_dlopen_self=unknown ;;
12026   esac
12027
12028   case $lt_cv_dlopen_self_static in
12029   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12030   *) enable_dlopen_self_static=unknown ;;
12031   esac
12032 fi
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050 striplib=
12051 old_striplib=
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12053 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12054 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12055   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12056   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12058 $as_echo "yes" >&6; }
12059 else
12060 # FIXME - insert some real tests, host_os isn't really good enough
12061   case $host_os in
12062   darwin*)
12063     if test -n "$STRIP" ; then
12064       striplib="$STRIP -x"
12065       old_striplib="$STRIP -S"
12066       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12067 $as_echo "yes" >&6; }
12068     else
12069       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12070 $as_echo "no" >&6; }
12071     fi
12072     ;;
12073   *)
12074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075 $as_echo "no" >&6; }
12076     ;;
12077   esac
12078 fi
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091   # Report which library types will actually be built
12092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12093 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12095 $as_echo "$can_build_shared" >&6; }
12096
12097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12098 $as_echo_n "checking whether to build shared libraries... " >&6; }
12099   test "$can_build_shared" = "no" && enable_shared=no
12100
12101   # On AIX, shared libraries and static libraries use the same namespace, and
12102   # are all built from PIC.
12103   case $host_os in
12104   aix3*)
12105     test "$enable_shared" = yes && enable_static=no
12106     if test -n "$RANLIB"; then
12107       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12108       postinstall_cmds='$RANLIB $lib'
12109     fi
12110     ;;
12111
12112   aix[4-9]*)
12113     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12114       test "$enable_shared" = yes && enable_static=no
12115     fi
12116     ;;
12117   esac
12118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12119 $as_echo "$enable_shared" >&6; }
12120
12121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12122 $as_echo_n "checking whether to build static libraries... " >&6; }
12123   # Make sure either enable_shared or enable_static is yes.
12124   test "$enable_shared" = yes || enable_static=yes
12125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12126 $as_echo "$enable_static" >&6; }
12127
12128
12129
12130
12131 fi
12132 ac_ext=c
12133 ac_cpp='$CPP $CPPFLAGS'
12134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12137
12138 CC="$lt_save_CC"
12139
12140
12141 ac_ext=cpp
12142 ac_cpp='$CXXCPP $CPPFLAGS'
12143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12146
12147 archive_cmds_need_lc_CXX=no
12148 allow_undefined_flag_CXX=
12149 always_export_symbols_CXX=no
12150 archive_expsym_cmds_CXX=
12151 compiler_needs_object_CXX=no
12152 export_dynamic_flag_spec_CXX=
12153 hardcode_direct_CXX=no
12154 hardcode_direct_absolute_CXX=no
12155 hardcode_libdir_flag_spec_CXX=
12156 hardcode_libdir_flag_spec_ld_CXX=
12157 hardcode_libdir_separator_CXX=
12158 hardcode_minus_L_CXX=no
12159 hardcode_shlibpath_var_CXX=unsupported
12160 hardcode_automatic_CXX=no
12161 inherit_rpath_CXX=no
12162 module_cmds_CXX=
12163 module_expsym_cmds_CXX=
12164 link_all_deplibs_CXX=unknown
12165 old_archive_cmds_CXX=$old_archive_cmds
12166 no_undefined_flag_CXX=
12167 whole_archive_flag_spec_CXX=
12168 enable_shared_with_static_runtimes_CXX=no
12169
12170 # Source file extension for C++ test sources.
12171 ac_ext=cpp
12172
12173 # Object file extension for compiled C++ test sources.
12174 objext=o
12175 objext_CXX=$objext
12176
12177 # No sense in running all these tests if we already determined that
12178 # the CXX compiler isn't working.  Some variables (like enable_shared)
12179 # are currently assumed to apply to all compilers on this platform,
12180 # and will be corrupted by setting them based on a non-working compiler.
12181 if test "$_lt_caught_CXX_error" != yes; then
12182   # Code to be used in simple compile tests
12183   lt_simple_compile_test_code="int some_variable = 0;"
12184
12185   # Code to be used in simple link tests
12186   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12187
12188   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12189
12190
12191
12192
12193
12194
12195 # If no C compiler was specified, use CC.
12196 LTCC=${LTCC-"$CC"}
12197
12198 # If no C compiler flags were specified, use CFLAGS.
12199 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12200
12201 # Allow CC to be a program name with arguments.
12202 compiler=$CC
12203
12204
12205   # save warnings/boilerplate of simple test code
12206   ac_outfile=conftest.$ac_objext
12207 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12208 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12209 _lt_compiler_boilerplate=`cat conftest.err`
12210 $RM conftest*
12211
12212   ac_outfile=conftest.$ac_objext
12213 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12214 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12215 _lt_linker_boilerplate=`cat conftest.err`
12216 $RM -r conftest*
12217
12218
12219   # Allow CC to be a program name with arguments.
12220   lt_save_CC=$CC
12221   lt_save_LD=$LD
12222   lt_save_GCC=$GCC
12223   GCC=$GXX
12224   lt_save_with_gnu_ld=$with_gnu_ld
12225   lt_save_path_LD=$lt_cv_path_LD
12226   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12227     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12228   else
12229     $as_unset lt_cv_prog_gnu_ld
12230   fi
12231   if test -n "${lt_cv_path_LDCXX+set}"; then
12232     lt_cv_path_LD=$lt_cv_path_LDCXX
12233   else
12234     $as_unset lt_cv_path_LD
12235   fi
12236   test -z "${LDCXX+set}" || LD=$LDCXX
12237   CC=${CXX-"c++"}
12238   compiler=$CC
12239   compiler_CXX=$CC
12240   for cc_temp in $compiler""; do
12241   case $cc_temp in
12242     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12243     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12244     \-*) ;;
12245     *) break;;
12246   esac
12247 done
12248 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12249
12250
12251   if test -n "$compiler"; then
12252     # We don't want -fno-exception when compiling C++ code, so set the
12253     # no_builtin_flag separately
12254     if test "$GXX" = yes; then
12255       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12256     else
12257       lt_prog_compiler_no_builtin_flag_CXX=
12258     fi
12259
12260     if test "$GXX" = yes; then
12261       # Set up default GNU C++ configuration
12262
12263
12264
12265 # Check whether --with-gnu-ld was given.
12266 if test "${with_gnu_ld+set}" = set; then :
12267   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12268 else
12269   with_gnu_ld=no
12270 fi
12271
12272 ac_prog=ld
12273 if test "$GCC" = yes; then
12274   # Check if gcc -print-prog-name=ld gives a path.
12275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12276 $as_echo_n "checking for ld used by $CC... " >&6; }
12277   case $host in
12278   *-*-mingw*)
12279     # gcc leaves a trailing carriage return which upsets mingw
12280     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12281   *)
12282     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12283   esac
12284   case $ac_prog in
12285     # Accept absolute paths.
12286     [\\/]* | ?:[\\/]*)
12287       re_direlt='/[^/][^/]*/\.\./'
12288       # Canonicalize the pathname of ld
12289       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12290       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12291         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12292       done
12293       test -z "$LD" && LD="$ac_prog"
12294       ;;
12295   "")
12296     # If it fails, then pretend we aren't using GCC.
12297     ac_prog=ld
12298     ;;
12299   *)
12300     # If it is relative, then search for the first ld in PATH.
12301     with_gnu_ld=unknown
12302     ;;
12303   esac
12304 elif test "$with_gnu_ld" = yes; then
12305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12306 $as_echo_n "checking for GNU ld... " >&6; }
12307 else
12308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12309 $as_echo_n "checking for non-GNU ld... " >&6; }
12310 fi
12311 if test "${lt_cv_path_LD+set}" = set; then :
12312   $as_echo_n "(cached) " >&6
12313 else
12314   if test -z "$LD"; then
12315   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12316   for ac_dir in $PATH; do
12317     IFS="$lt_save_ifs"
12318     test -z "$ac_dir" && ac_dir=.
12319     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12320       lt_cv_path_LD="$ac_dir/$ac_prog"
12321       # Check to see if the program is GNU ld.  I'd rather use --version,
12322       # but apparently some variants of GNU ld only accept -v.
12323       # Break only if it was the GNU/non-GNU ld that we prefer.
12324       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12325       *GNU* | *'with BFD'*)
12326         test "$with_gnu_ld" != no && break
12327         ;;
12328       *)
12329         test "$with_gnu_ld" != yes && break
12330         ;;
12331       esac
12332     fi
12333   done
12334   IFS="$lt_save_ifs"
12335 else
12336   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12337 fi
12338 fi
12339
12340 LD="$lt_cv_path_LD"
12341 if test -n "$LD"; then
12342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12343 $as_echo "$LD" >&6; }
12344 else
12345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346 $as_echo "no" >&6; }
12347 fi
12348 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12350 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12351 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12352   $as_echo_n "(cached) " >&6
12353 else
12354   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12355 case `$LD -v 2>&1 </dev/null` in
12356 *GNU* | *'with BFD'*)
12357   lt_cv_prog_gnu_ld=yes
12358   ;;
12359 *)
12360   lt_cv_prog_gnu_ld=no
12361   ;;
12362 esac
12363 fi
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12365 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12366 with_gnu_ld=$lt_cv_prog_gnu_ld
12367
12368
12369
12370
12371
12372
12373
12374       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12375       # archiving commands below assume that GNU ld is being used.
12376       if test "$with_gnu_ld" = yes; then
12377         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12378         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'
12379
12380         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12381         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12382
12383         # If archive_cmds runs LD, not CC, wlarc should be empty
12384         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12385         #     investigate it a little bit more. (MM)
12386         wlarc='${wl}'
12387
12388         # ancient GNU ld didn't support --whole-archive et. al.
12389         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12390           $GREP 'no-whole-archive' > /dev/null; then
12391           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12392         else
12393           whole_archive_flag_spec_CXX=
12394         fi
12395       else
12396         with_gnu_ld=no
12397         wlarc=
12398
12399         # A generic and very simple default shared library creation
12400         # command for GNU C++ for the case where it uses the native
12401         # linker, instead of GNU ld.  If possible, this setting should
12402         # overridden to take advantage of the native linker features on
12403         # the platform it is being used on.
12404         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12405       fi
12406
12407       # Commands to make compiler produce verbose output that lists
12408       # what "hidden" libraries, object files and flags are used when
12409       # linking a shared library.
12410       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12411
12412     else
12413       GXX=no
12414       with_gnu_ld=no
12415       wlarc=
12416     fi
12417
12418     # PORTME: fill in a description of your system's C++ link characteristics
12419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12420 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12421     ld_shlibs_CXX=yes
12422     case $host_os in
12423       aix3*)
12424         # FIXME: insert proper C++ library support
12425         ld_shlibs_CXX=no
12426         ;;
12427       aix[4-9]*)
12428         if test "$host_cpu" = ia64; then
12429           # On IA64, the linker does run time linking by default, so we don't
12430           # have to do anything special.
12431           aix_use_runtimelinking=no
12432           exp_sym_flag='-Bexport'
12433           no_entry_flag=""
12434         else
12435           aix_use_runtimelinking=no
12436
12437           # Test if we are trying to use run time linking or normal
12438           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12439           # need to do runtime linking.
12440           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12441             for ld_flag in $LDFLAGS; do
12442               case $ld_flag in
12443               *-brtl*)
12444                 aix_use_runtimelinking=yes
12445                 break
12446                 ;;
12447               esac
12448             done
12449             ;;
12450           esac
12451
12452           exp_sym_flag='-bexport'
12453           no_entry_flag='-bnoentry'
12454         fi
12455
12456         # When large executables or shared objects are built, AIX ld can
12457         # have problems creating the table of contents.  If linking a library
12458         # or program results in "error TOC overflow" add -mminimal-toc to
12459         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12460         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12461
12462         archive_cmds_CXX=''
12463         hardcode_direct_CXX=yes
12464         hardcode_direct_absolute_CXX=yes
12465         hardcode_libdir_separator_CXX=':'
12466         link_all_deplibs_CXX=yes
12467         file_list_spec_CXX='${wl}-f,'
12468
12469         if test "$GXX" = yes; then
12470           case $host_os in aix4.[012]|aix4.[012].*)
12471           # We only want to do this on AIX 4.2 and lower, the check
12472           # below for broken collect2 doesn't work under 4.3+
12473           collect2name=`${CC} -print-prog-name=collect2`
12474           if test -f "$collect2name" &&
12475              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12476           then
12477             # We have reworked collect2
12478             :
12479           else
12480             # We have old collect2
12481             hardcode_direct_CXX=unsupported
12482             # It fails to find uninstalled libraries when the uninstalled
12483             # path is not listed in the libpath.  Setting hardcode_minus_L
12484             # to unsupported forces relinking
12485             hardcode_minus_L_CXX=yes
12486             hardcode_libdir_flag_spec_CXX='-L$libdir'
12487             hardcode_libdir_separator_CXX=
12488           fi
12489           esac
12490           shared_flag='-shared'
12491           if test "$aix_use_runtimelinking" = yes; then
12492             shared_flag="$shared_flag "'${wl}-G'
12493           fi
12494         else
12495           # not using gcc
12496           if test "$host_cpu" = ia64; then
12497           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12498           # chokes on -Wl,-G. The following line is correct:
12499           shared_flag='-G'
12500           else
12501             if test "$aix_use_runtimelinking" = yes; then
12502               shared_flag='${wl}-G'
12503             else
12504               shared_flag='${wl}-bM:SRE'
12505             fi
12506           fi
12507         fi
12508
12509         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12510         # It seems that -bexpall does not export symbols beginning with
12511         # underscore (_), so it is better to generate a list of symbols to
12512         # export.
12513         always_export_symbols_CXX=yes
12514         if test "$aix_use_runtimelinking" = yes; then
12515           # Warning - without using the other runtime loading flags (-brtl),
12516           # -berok will link without error, but may produce a broken library.
12517           allow_undefined_flag_CXX='-berok'
12518           # Determine the default libpath from the value encoded in an empty
12519           # executable.
12520           if test x$gcc_no_link = xyes; then
12521   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12522 fi
12523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h.  */
12525
12526 int
12527 main ()
12528 {
12529
12530   ;
12531   return 0;
12532 }
12533 _ACEOF
12534 if ac_fn_cxx_try_link "$LINENO"; then :
12535
12536 lt_aix_libpath_sed='
12537     /Import File Strings/,/^$/ {
12538         /^0/ {
12539             s/^0  *\(.*\)$/\1/
12540             p
12541         }
12542     }'
12543 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12544 # Check for a 64-bit object if we didn't find anything.
12545 if test -z "$aix_libpath"; then
12546   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12547 fi
12548 fi
12549 rm -f core conftest.err conftest.$ac_objext \
12550     conftest$ac_exeext conftest.$ac_ext
12551 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12552
12553           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12554
12555           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"
12556         else
12557           if test "$host_cpu" = ia64; then
12558             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12559             allow_undefined_flag_CXX="-z nodefs"
12560             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"
12561           else
12562             # Determine the default libpath from the value encoded in an
12563             # empty executable.
12564             if test x$gcc_no_link = xyes; then
12565   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12566 fi
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h.  */
12569
12570 int
12571 main ()
12572 {
12573
12574   ;
12575   return 0;
12576 }
12577 _ACEOF
12578 if ac_fn_cxx_try_link "$LINENO"; then :
12579
12580 lt_aix_libpath_sed='
12581     /Import File Strings/,/^$/ {
12582         /^0/ {
12583             s/^0  *\(.*\)$/\1/
12584             p
12585         }
12586     }'
12587 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12588 # Check for a 64-bit object if we didn't find anything.
12589 if test -z "$aix_libpath"; then
12590   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12591 fi
12592 fi
12593 rm -f core conftest.err conftest.$ac_objext \
12594     conftest$ac_exeext conftest.$ac_ext
12595 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12596
12597             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12598             # Warning - without using the other run time loading flags,
12599             # -berok will link without error, but may produce a broken library.
12600             no_undefined_flag_CXX=' ${wl}-bernotok'
12601             allow_undefined_flag_CXX=' ${wl}-berok'
12602             # Exported symbols can be pulled into shared objects from archives
12603             whole_archive_flag_spec_CXX='$convenience'
12604             archive_cmds_need_lc_CXX=yes
12605             # This is similar to how AIX traditionally builds its shared
12606             # libraries.
12607             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'
12608           fi
12609         fi
12610         ;;
12611
12612       beos*)
12613         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12614           allow_undefined_flag_CXX=unsupported
12615           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12616           # support --undefined.  This deserves some investigation.  FIXME
12617           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12618         else
12619           ld_shlibs_CXX=no
12620         fi
12621         ;;
12622
12623       chorus*)
12624         case $cc_basename in
12625           *)
12626           # FIXME: insert proper C++ library support
12627           ld_shlibs_CXX=no
12628           ;;
12629         esac
12630         ;;
12631
12632       cygwin* | mingw* | pw32* | cegcc*)
12633         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12634         # as there is no search path for DLLs.
12635         hardcode_libdir_flag_spec_CXX='-L$libdir'
12636         allow_undefined_flag_CXX=unsupported
12637         always_export_symbols_CXX=no
12638         enable_shared_with_static_runtimes_CXX=yes
12639
12640         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12641           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'
12642           # If the export-symbols file already is a .def file (1st line
12643           # is EXPORTS), use it as is; otherwise, prepend...
12644           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12645             cp $export_symbols $output_objdir/$soname.def;
12646           else
12647             echo EXPORTS > $output_objdir/$soname.def;
12648             cat $export_symbols >> $output_objdir/$soname.def;
12649           fi~
12650           $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'
12651         else
12652           ld_shlibs_CXX=no
12653         fi
12654         ;;
12655       darwin* | rhapsody*)
12656
12657
12658   archive_cmds_need_lc_CXX=no
12659   hardcode_direct_CXX=no
12660   hardcode_automatic_CXX=yes
12661   hardcode_shlibpath_var_CXX=unsupported
12662   whole_archive_flag_spec_CXX=''
12663   link_all_deplibs_CXX=yes
12664   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12665   case $cc_basename in
12666      ifort*) _lt_dar_can_shared=yes ;;
12667      *) _lt_dar_can_shared=$GCC ;;
12668   esac
12669   if test "$_lt_dar_can_shared" = "yes"; then
12670     output_verbose_link_cmd=echo
12671     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}"
12672     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12673     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}"
12674     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}"
12675        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12676       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}"
12677       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}"
12678     fi
12679
12680   else
12681   ld_shlibs_CXX=no
12682   fi
12683
12684         ;;
12685
12686       dgux*)
12687         case $cc_basename in
12688           ec++*)
12689             # FIXME: insert proper C++ library support
12690             ld_shlibs_CXX=no
12691             ;;
12692           ghcx*)
12693             # Green Hills C++ Compiler
12694             # FIXME: insert proper C++ library support
12695             ld_shlibs_CXX=no
12696             ;;
12697           *)
12698             # FIXME: insert proper C++ library support
12699             ld_shlibs_CXX=no
12700             ;;
12701         esac
12702         ;;
12703
12704       freebsd[12]*)
12705         # C++ shared libraries reported to be fairly broken before
12706         # switch to ELF
12707         ld_shlibs_CXX=no
12708         ;;
12709
12710       freebsd-elf*)
12711         archive_cmds_need_lc_CXX=no
12712         ;;
12713
12714       freebsd* | dragonfly*)
12715         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12716         # conventions
12717         ld_shlibs_CXX=yes
12718         ;;
12719
12720       gnu*)
12721         ;;
12722
12723       hpux9*)
12724         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12725         hardcode_libdir_separator_CXX=:
12726         export_dynamic_flag_spec_CXX='${wl}-E'
12727         hardcode_direct_CXX=yes
12728         hardcode_minus_L_CXX=yes # Not in the search PATH,
12729                                              # but as the default
12730                                              # location of the library.
12731
12732         case $cc_basename in
12733           CC*)
12734             # FIXME: insert proper C++ library support
12735             ld_shlibs_CXX=no
12736             ;;
12737           aCC*)
12738             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'
12739             # Commands to make compiler produce verbose output that lists
12740             # what "hidden" libraries, object files and flags are used when
12741             # linking a shared library.
12742             #
12743             # There doesn't appear to be a way to prevent this compiler from
12744             # explicitly linking system object files so we need to strip them
12745             # from the output so that they don't get included in the library
12746             # dependencies.
12747             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12748             ;;
12749           *)
12750             if test "$GXX" = yes; then
12751               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'
12752             else
12753               # FIXME: insert proper C++ library support
12754               ld_shlibs_CXX=no
12755             fi
12756             ;;
12757         esac
12758         ;;
12759
12760       hpux10*|hpux11*)
12761         if test $with_gnu_ld = no; then
12762           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12763           hardcode_libdir_separator_CXX=:
12764
12765           case $host_cpu in
12766             hppa*64*|ia64*)
12767               ;;
12768             *)
12769               export_dynamic_flag_spec_CXX='${wl}-E'
12770               ;;
12771           esac
12772         fi
12773         case $host_cpu in
12774           hppa*64*|ia64*)
12775             hardcode_direct_CXX=no
12776             hardcode_shlibpath_var_CXX=no
12777             ;;
12778           *)
12779             hardcode_direct_CXX=yes
12780             hardcode_direct_absolute_CXX=yes
12781             hardcode_minus_L_CXX=yes # Not in the search PATH,
12782                                                  # but as the default
12783                                                  # location of the library.
12784             ;;
12785         esac
12786
12787         case $cc_basename in
12788           CC*)
12789             # FIXME: insert proper C++ library support
12790             ld_shlibs_CXX=no
12791             ;;
12792           aCC*)
12793             case $host_cpu in
12794               hppa*64*)
12795                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12796                 ;;
12797               ia64*)
12798                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12799                 ;;
12800               *)
12801                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12802                 ;;
12803             esac
12804             # Commands to make compiler produce verbose output that lists
12805             # what "hidden" libraries, object files and flags are used when
12806             # linking a shared library.
12807             #
12808             # There doesn't appear to be a way to prevent this compiler from
12809             # explicitly linking system object files so we need to strip them
12810             # from the output so that they don't get included in the library
12811             # dependencies.
12812             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'
12813             ;;
12814           *)
12815             if test "$GXX" = yes; then
12816               if test $with_gnu_ld = no; then
12817                 case $host_cpu in
12818                   hppa*64*)
12819                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12820                     ;;
12821                   ia64*)
12822                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12823                     ;;
12824                   *)
12825                     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'
12826                     ;;
12827                 esac
12828               fi
12829             else
12830               # FIXME: insert proper C++ library support
12831               ld_shlibs_CXX=no
12832             fi
12833             ;;
12834         esac
12835         ;;
12836
12837       interix[3-9]*)
12838         hardcode_direct_CXX=no
12839         hardcode_shlibpath_var_CXX=no
12840         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12841         export_dynamic_flag_spec_CXX='${wl}-E'
12842         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12843         # Instead, shared libraries are loaded at an image base (0x10000000 by
12844         # default) and relocated if they conflict, which is a slow very memory
12845         # consuming and fragmenting process.  To avoid this, we pick a random,
12846         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12847         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12848         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'
12849         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'
12850         ;;
12851       irix5* | irix6*)
12852         case $cc_basename in
12853           CC*)
12854             # SGI C++
12855             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'
12856
12857             # Archives containing C++ object files must be created using
12858             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12859             # necessary to make sure instantiated templates are included
12860             # in the archive.
12861             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12862             ;;
12863           *)
12864             if test "$GXX" = yes; then
12865               if test "$with_gnu_ld" = no; then
12866                 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'
12867               else
12868                 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'
12869               fi
12870             fi
12871             link_all_deplibs_CXX=yes
12872             ;;
12873         esac
12874         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12875         hardcode_libdir_separator_CXX=:
12876         inherit_rpath_CXX=yes
12877         ;;
12878
12879       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12880         case $cc_basename in
12881           KCC*)
12882             # Kuck and Associates, Inc. (KAI) C++ Compiler
12883
12884             # KCC will only create a shared library if the output file
12885             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12886             # to its proper name (with version) after linking.
12887             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'
12888             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'
12889             # Commands to make compiler produce verbose output that lists
12890             # what "hidden" libraries, object files and flags are used when
12891             # linking a shared library.
12892             #
12893             # There doesn't appear to be a way to prevent this compiler from
12894             # explicitly linking system object files so we need to strip them
12895             # from the output so that they don't get included in the library
12896             # dependencies.
12897             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'
12898
12899             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12900             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12901
12902             # Archives containing C++ object files must be created using
12903             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12904             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12905             ;;
12906           icpc* | ecpc* )
12907             # Intel C++
12908             with_gnu_ld=yes
12909             # version 8.0 and above of icpc choke on multiply defined symbols
12910             # if we add $predep_objects and $postdep_objects, however 7.1 and
12911             # earlier do not add the objects themselves.
12912             case `$CC -V 2>&1` in
12913               *"Version 7."*)
12914                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12915                 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'
12916                 ;;
12917               *)  # Version 8.0 or newer
12918                 tmp_idyn=
12919                 case $host_cpu in
12920                   ia64*) tmp_idyn=' -i_dynamic';;
12921                 esac
12922                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12923                 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'
12924                 ;;
12925             esac
12926             archive_cmds_need_lc_CXX=no
12927             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12928             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12929             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12930             ;;
12931           pgCC* | pgcpp*)
12932             # Portland Group C++ compiler
12933             case `$CC -V` in
12934             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12935               prelink_cmds_CXX='tpldir=Template.dir~
12936                 rm -rf $tpldir~
12937                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12938                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12939               old_archive_cmds_CXX='tpldir=Template.dir~
12940                 rm -rf $tpldir~
12941                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12942                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12943                 $RANLIB $oldlib'
12944               archive_cmds_CXX='tpldir=Template.dir~
12945                 rm -rf $tpldir~
12946                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12947                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12948               archive_expsym_cmds_CXX='tpldir=Template.dir~
12949                 rm -rf $tpldir~
12950                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12951                 $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'
12952               ;;
12953             *) # Version 6 will use weak symbols
12954               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12955               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'
12956               ;;
12957             esac
12958
12959             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12960             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12961             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'
12962             ;;
12963           cxx*)
12964             # Compaq C++
12965             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12966             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'
12967
12968             runpath_var=LD_RUN_PATH
12969             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12970             hardcode_libdir_separator_CXX=:
12971
12972             # Commands to make compiler produce verbose output that lists
12973             # what "hidden" libraries, object files and flags are used when
12974             # linking a shared library.
12975             #
12976             # There doesn't appear to be a way to prevent this compiler from
12977             # explicitly linking system object files so we need to strip them
12978             # from the output so that they don't get included in the library
12979             # dependencies.
12980             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'
12981             ;;
12982           xl*)
12983             # IBM XL 8.0 on PPC, with GNU ld
12984             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12985             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12986             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12987             if test "x$supports_anon_versioning" = xyes; then
12988               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12989                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12990                 echo "local: *; };" >> $output_objdir/$libname.ver~
12991                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12992             fi
12993             ;;
12994           *)
12995             case `$CC -V 2>&1 | sed 5q` in
12996             *Sun\ C*)
12997               # Sun C++ 5.9
12998               no_undefined_flag_CXX=' -zdefs'
12999               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13000               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'
13001               hardcode_libdir_flag_spec_CXX='-R$libdir'
13002               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'
13003               compiler_needs_object_CXX=yes
13004
13005               # Not sure whether something based on
13006               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13007               # would be better.
13008               output_verbose_link_cmd='echo'
13009
13010               # Archives containing C++ object files must be created using
13011               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13012               # necessary to make sure instantiated templates are included
13013               # in the archive.
13014               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13015               ;;
13016             esac
13017             ;;
13018         esac
13019         ;;
13020
13021       lynxos*)
13022         # FIXME: insert proper C++ library support
13023         ld_shlibs_CXX=no
13024         ;;
13025
13026       m88k*)
13027         # FIXME: insert proper C++ library support
13028         ld_shlibs_CXX=no
13029         ;;
13030
13031       mvs*)
13032         case $cc_basename in
13033           cxx*)
13034             # FIXME: insert proper C++ library support
13035             ld_shlibs_CXX=no
13036             ;;
13037           *)
13038             # FIXME: insert proper C++ library support
13039             ld_shlibs_CXX=no
13040             ;;
13041         esac
13042         ;;
13043
13044       netbsd*)
13045         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13046           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13047           wlarc=
13048           hardcode_libdir_flag_spec_CXX='-R$libdir'
13049           hardcode_direct_CXX=yes
13050           hardcode_shlibpath_var_CXX=no
13051         fi
13052         # Workaround some broken pre-1.5 toolchains
13053         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13054         ;;
13055
13056       *nto* | *qnx*)
13057         ld_shlibs_CXX=yes
13058         ;;
13059
13060       openbsd2*)
13061         # C++ shared libraries are fairly broken
13062         ld_shlibs_CXX=no
13063         ;;
13064
13065       openbsd*)
13066         if test -f /usr/libexec/ld.so; then
13067           hardcode_direct_CXX=yes
13068           hardcode_shlibpath_var_CXX=no
13069           hardcode_direct_absolute_CXX=yes
13070           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13071           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13072           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13073             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13074             export_dynamic_flag_spec_CXX='${wl}-E'
13075             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13076           fi
13077           output_verbose_link_cmd=echo
13078         else
13079           ld_shlibs_CXX=no
13080         fi
13081         ;;
13082
13083       osf3* | osf4* | osf5*)
13084         case $cc_basename in
13085           KCC*)
13086             # Kuck and Associates, Inc. (KAI) C++ Compiler
13087
13088             # KCC will only create a shared library if the output file
13089             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13090             # to its proper name (with version) after linking.
13091             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'
13092
13093             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13094             hardcode_libdir_separator_CXX=:
13095
13096             # Archives containing C++ object files must be created using
13097             # the KAI C++ compiler.
13098             case $host in
13099               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13100               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13101             esac
13102             ;;
13103           RCC*)
13104             # Rational C++ 2.4.1
13105             # FIXME: insert proper C++ library support
13106             ld_shlibs_CXX=no
13107             ;;
13108           cxx*)
13109             case $host in
13110               osf3*)
13111                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13112                 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'
13113                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13114                 ;;
13115               *)
13116                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13117                 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'
13118                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13119                   echo "-hidden">> $lib.exp~
13120                   $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~
13121                   $RM $lib.exp'
13122                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13123                 ;;
13124             esac
13125
13126             hardcode_libdir_separator_CXX=:
13127
13128             # Commands to make compiler produce verbose output that lists
13129             # what "hidden" libraries, object files and flags are used when
13130             # linking a shared library.
13131             #
13132             # There doesn't appear to be a way to prevent this compiler from
13133             # explicitly linking system object files so we need to strip them
13134             # from the output so that they don't get included in the library
13135             # dependencies.
13136             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'
13137             ;;
13138           *)
13139             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13140               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13141               case $host in
13142                 osf3*)
13143                   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'
13144                   ;;
13145                 *)
13146                   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'
13147                   ;;
13148               esac
13149
13150               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13151               hardcode_libdir_separator_CXX=:
13152
13153               # Commands to make compiler produce verbose output that lists
13154               # what "hidden" libraries, object files and flags are used when
13155               # linking a shared library.
13156               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13157
13158             else
13159               # FIXME: insert proper C++ library support
13160               ld_shlibs_CXX=no
13161             fi
13162             ;;
13163         esac
13164         ;;
13165
13166       psos*)
13167         # FIXME: insert proper C++ library support
13168         ld_shlibs_CXX=no
13169         ;;
13170
13171       sunos4*)
13172         case $cc_basename in
13173           CC*)
13174             # Sun C++ 4.x
13175             # FIXME: insert proper C++ library support
13176             ld_shlibs_CXX=no
13177             ;;
13178           lcc*)
13179             # Lucid
13180             # FIXME: insert proper C++ library support
13181             ld_shlibs_CXX=no
13182             ;;
13183           *)
13184             # FIXME: insert proper C++ library support
13185             ld_shlibs_CXX=no
13186             ;;
13187         esac
13188         ;;
13189
13190       solaris*)
13191         case $cc_basename in
13192           CC*)
13193             # Sun C++ 4.2, 5.x and Centerline C++
13194             archive_cmds_need_lc_CXX=yes
13195             no_undefined_flag_CXX=' -zdefs'
13196             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13197             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13198               $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'
13199
13200             hardcode_libdir_flag_spec_CXX='-R$libdir'
13201             hardcode_shlibpath_var_CXX=no
13202             case $host_os in
13203               solaris2.[0-5] | solaris2.[0-5].*) ;;
13204               *)
13205                 # The compiler driver will combine and reorder linker options,
13206                 # but understands `-z linker_flag'.
13207                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13208                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13209                 ;;
13210             esac
13211             link_all_deplibs_CXX=yes
13212
13213             output_verbose_link_cmd='echo'
13214
13215             # Archives containing C++ object files must be created using
13216             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13217             # necessary to make sure instantiated templates are included
13218             # in the archive.
13219             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13220             ;;
13221           gcx*)
13222             # Green Hills C++ Compiler
13223             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13224
13225             # The C++ compiler must be used to create the archive.
13226             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13227             ;;
13228           *)
13229             # GNU C++ compiler with Solaris linker
13230             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13231               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13232               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13233                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13234                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13235                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13236
13237                 # Commands to make compiler produce verbose output that lists
13238                 # what "hidden" libraries, object files and flags are used when
13239                 # linking a shared library.
13240                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13241               else
13242                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13243                 # platform.
13244                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13245                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13246                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13247
13248                 # Commands to make compiler produce verbose output that lists
13249                 # what "hidden" libraries, object files and flags are used when
13250                 # linking a shared library.
13251                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13252               fi
13253
13254               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13255               case $host_os in
13256                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13257                 *)
13258                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13259                   ;;
13260               esac
13261             fi
13262             ;;
13263         esac
13264         ;;
13265
13266     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13267       no_undefined_flag_CXX='${wl}-z,text'
13268       archive_cmds_need_lc_CXX=no
13269       hardcode_shlibpath_var_CXX=no
13270       runpath_var='LD_RUN_PATH'
13271
13272       case $cc_basename in
13273         CC*)
13274           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13275           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13276           ;;
13277         *)
13278           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13279           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13280           ;;
13281       esac
13282       ;;
13283
13284       sysv5* | sco3.2v5* | sco5v6*)
13285         # Note: We can NOT use -z defs as we might desire, because we do not
13286         # link with -lc, and that would cause any symbols used from libc to
13287         # always be unresolved, which means just about no library would
13288         # ever link correctly.  If we're not using GNU ld we use -z text
13289         # though, which does catch some bad symbols but isn't as heavy-handed
13290         # as -z defs.
13291         no_undefined_flag_CXX='${wl}-z,text'
13292         allow_undefined_flag_CXX='${wl}-z,nodefs'
13293         archive_cmds_need_lc_CXX=no
13294         hardcode_shlibpath_var_CXX=no
13295         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13296         hardcode_libdir_separator_CXX=':'
13297         link_all_deplibs_CXX=yes
13298         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13299         runpath_var='LD_RUN_PATH'
13300
13301         case $cc_basename in
13302           CC*)
13303             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13304             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13305             ;;
13306           *)
13307             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13308             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13309             ;;
13310         esac
13311       ;;
13312
13313       tandem*)
13314         case $cc_basename in
13315           NCC*)
13316             # NonStop-UX NCC 3.20
13317             # FIXME: insert proper C++ library support
13318             ld_shlibs_CXX=no
13319             ;;
13320           *)
13321             # FIXME: insert proper C++ library support
13322             ld_shlibs_CXX=no
13323             ;;
13324         esac
13325         ;;
13326
13327       vxworks*)
13328         # FIXME: insert proper C++ library support
13329         ld_shlibs_CXX=no
13330         ;;
13331
13332       *)
13333         # FIXME: insert proper C++ library support
13334         ld_shlibs_CXX=no
13335         ;;
13336     esac
13337
13338     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13339 $as_echo "$ld_shlibs_CXX" >&6; }
13340     test "$ld_shlibs_CXX" = no && can_build_shared=no
13341
13342     GCC_CXX="$GXX"
13343     LD_CXX="$LD"
13344
13345     ## CAVEAT EMPTOR:
13346     ## There is no encapsulation within the following macros, do not change
13347     ## the running order or otherwise move them around unless you know exactly
13348     ## what you are doing...
13349     # Dependencies to place before and after the object being linked:
13350 predep_objects_CXX=
13351 postdep_objects_CXX=
13352 predeps_CXX=
13353 postdeps_CXX=
13354 compiler_lib_search_path_CXX=
13355
13356 cat > conftest.$ac_ext <<_LT_EOF
13357 class Foo
13358 {
13359 public:
13360   Foo (void) { a = 0; }
13361 private:
13362   int a;
13363 };
13364 _LT_EOF
13365
13366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13367   (eval $ac_compile) 2>&5
13368   ac_status=$?
13369   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13370   test $ac_status = 0; }; then
13371   # Parse the compiler output and extract the necessary
13372   # objects, libraries and library flags.
13373
13374   # Sentinel used to keep track of whether or not we are before
13375   # the conftest object file.
13376   pre_test_object_deps_done=no
13377
13378   for p in `eval "$output_verbose_link_cmd"`; do
13379     case $p in
13380
13381     -L* | -R* | -l*)
13382        # Some compilers place space between "-{L,R}" and the path.
13383        # Remove the space.
13384        if test $p = "-L" ||
13385           test $p = "-R"; then
13386          prev=$p
13387          continue
13388        else
13389          prev=
13390        fi
13391
13392        if test "$pre_test_object_deps_done" = no; then
13393          case $p in
13394          -L* | -R*)
13395            # Internal compiler library paths should come after those
13396            # provided the user.  The postdeps already come after the
13397            # user supplied libs so there is no need to process them.
13398            if test -z "$compiler_lib_search_path_CXX"; then
13399              compiler_lib_search_path_CXX="${prev}${p}"
13400            else
13401              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13402            fi
13403            ;;
13404          # The "-l" case would never come before the object being
13405          # linked, so don't bother handling this case.
13406          esac
13407        else
13408          if test -z "$postdeps_CXX"; then
13409            postdeps_CXX="${prev}${p}"
13410          else
13411            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13412          fi
13413        fi
13414        ;;
13415
13416     *.$objext)
13417        # This assumes that the test object file only shows up
13418        # once in the compiler output.
13419        if test "$p" = "conftest.$objext"; then
13420          pre_test_object_deps_done=yes
13421          continue
13422        fi
13423
13424        if test "$pre_test_object_deps_done" = no; then
13425          if test -z "$predep_objects_CXX"; then
13426            predep_objects_CXX="$p"
13427          else
13428            predep_objects_CXX="$predep_objects_CXX $p"
13429          fi
13430        else
13431          if test -z "$postdep_objects_CXX"; then
13432            postdep_objects_CXX="$p"
13433          else
13434            postdep_objects_CXX="$postdep_objects_CXX $p"
13435          fi
13436        fi
13437        ;;
13438
13439     *) ;; # Ignore the rest.
13440
13441     esac
13442   done
13443
13444   # Clean up.
13445   rm -f a.out a.exe
13446 else
13447   echo "libtool.m4: error: problem compiling CXX test program"
13448 fi
13449
13450 $RM -f confest.$objext
13451
13452 # PORTME: override above test on systems where it is broken
13453 case $host_os in
13454 interix[3-9]*)
13455   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13456   # hack all around it, let's just trust "g++" to DTRT.
13457   predep_objects_CXX=
13458   postdep_objects_CXX=
13459   postdeps_CXX=
13460   ;;
13461
13462 linux*)
13463   case `$CC -V 2>&1 | sed 5q` in
13464   *Sun\ C*)
13465     # Sun C++ 5.9
13466
13467     # The more standards-conforming stlport4 library is
13468     # incompatible with the Cstd library. Avoid specifying
13469     # it if it's in CXXFLAGS. Ignore libCrun as
13470     # -library=stlport4 depends on it.
13471     case " $CXX $CXXFLAGS " in
13472     *" -library=stlport4 "*)
13473       solaris_use_stlport4=yes
13474       ;;
13475     esac
13476
13477     if test "$solaris_use_stlport4" != yes; then
13478       postdeps_CXX='-library=Cstd -library=Crun'
13479     fi
13480     ;;
13481   esac
13482   ;;
13483
13484 solaris*)
13485   case $cc_basename in
13486   CC*)
13487     # The more standards-conforming stlport4 library is
13488     # incompatible with the Cstd library. Avoid specifying
13489     # it if it's in CXXFLAGS. Ignore libCrun as
13490     # -library=stlport4 depends on it.
13491     case " $CXX $CXXFLAGS " in
13492     *" -library=stlport4 "*)
13493       solaris_use_stlport4=yes
13494       ;;
13495     esac
13496
13497     # Adding this requires a known-good setup of shared libraries for
13498     # Sun compiler versions before 5.6, else PIC objects from an old
13499     # archive will be linked into the output, leading to subtle bugs.
13500     if test "$solaris_use_stlport4" != yes; then
13501       postdeps_CXX='-library=Cstd -library=Crun'
13502     fi
13503     ;;
13504   esac
13505   ;;
13506 esac
13507
13508
13509 case " $postdeps_CXX " in
13510 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13511 esac
13512  compiler_lib_search_dirs_CXX=
13513 if test -n "${compiler_lib_search_path_CXX}"; then
13514  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13515 fi
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547     lt_prog_compiler_wl_CXX=
13548 lt_prog_compiler_pic_CXX=
13549 lt_prog_compiler_static_CXX=
13550
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13552 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13553
13554   # C++ specific cases for pic, static, wl, etc.
13555   if test "$GXX" = yes; then
13556     lt_prog_compiler_wl_CXX='-Wl,'
13557     lt_prog_compiler_static_CXX='-static'
13558
13559     case $host_os in
13560     aix*)
13561       # All AIX code is PIC.
13562       if test "$host_cpu" = ia64; then
13563         # AIX 5 now supports IA64 processor
13564         lt_prog_compiler_static_CXX='-Bstatic'
13565       fi
13566       ;;
13567
13568     amigaos*)
13569       case $host_cpu in
13570       powerpc)
13571             # see comment about AmigaOS4 .so support
13572             lt_prog_compiler_pic_CXX='-fPIC'
13573         ;;
13574       m68k)
13575             # FIXME: we need at least 68020 code to build shared libraries, but
13576             # adding the `-m68020' flag to GCC prevents building anything better,
13577             # like `-m68040'.
13578             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13579         ;;
13580       esac
13581       ;;
13582
13583     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13584       # PIC is the default for these OSes.
13585       ;;
13586     mingw* | cygwin* | os2* | pw32* | cegcc*)
13587       # This hack is so that the source file can tell whether it is being
13588       # built for inclusion in a dll (and should export symbols for example).
13589       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13590       # (--disable-auto-import) libraries
13591       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13592       ;;
13593     darwin* | rhapsody*)
13594       # PIC is the default on this platform
13595       # Common symbols not allowed in MH_DYLIB files
13596       lt_prog_compiler_pic_CXX='-fno-common'
13597       ;;
13598     *djgpp*)
13599       # DJGPP does not support shared libraries at all
13600       lt_prog_compiler_pic_CXX=
13601       ;;
13602     interix[3-9]*)
13603       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13604       # Instead, we relocate shared libraries at runtime.
13605       ;;
13606     sysv4*MP*)
13607       if test -d /usr/nec; then
13608         lt_prog_compiler_pic_CXX=-Kconform_pic
13609       fi
13610       ;;
13611     hpux*)
13612       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13613       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13614       # sets the default TLS model and affects inlining.
13615       case $host_cpu in
13616       hppa*64*)
13617         ;;
13618       *)
13619         lt_prog_compiler_pic_CXX='-fPIC'
13620         ;;
13621       esac
13622       ;;
13623     *qnx* | *nto*)
13624       # QNX uses GNU C++, but need to define -shared option too, otherwise
13625       # it will coredump.
13626       lt_prog_compiler_pic_CXX='-fPIC -shared'
13627       ;;
13628     *)
13629       lt_prog_compiler_pic_CXX='-fPIC'
13630       ;;
13631     esac
13632   else
13633     case $host_os in
13634       aix[4-9]*)
13635         # All AIX code is PIC.
13636         if test "$host_cpu" = ia64; then
13637           # AIX 5 now supports IA64 processor
13638           lt_prog_compiler_static_CXX='-Bstatic'
13639         else
13640           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13641         fi
13642         ;;
13643       chorus*)
13644         case $cc_basename in
13645         cxch68*)
13646           # Green Hills C++ Compiler
13647           # _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"
13648           ;;
13649         esac
13650         ;;
13651       dgux*)
13652         case $cc_basename in
13653           ec++*)
13654             lt_prog_compiler_pic_CXX='-KPIC'
13655             ;;
13656           ghcx*)
13657             # Green Hills C++ Compiler
13658             lt_prog_compiler_pic_CXX='-pic'
13659             ;;
13660           *)
13661             ;;
13662         esac
13663         ;;
13664       freebsd* | dragonfly*)
13665         # FreeBSD uses GNU C++
13666         ;;
13667       hpux9* | hpux10* | hpux11*)
13668         case $cc_basename in
13669           CC*)
13670             lt_prog_compiler_wl_CXX='-Wl,'
13671             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13672             if test "$host_cpu" != ia64; then
13673               lt_prog_compiler_pic_CXX='+Z'
13674             fi
13675             ;;
13676           aCC*)
13677             lt_prog_compiler_wl_CXX='-Wl,'
13678             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13679             case $host_cpu in
13680             hppa*64*|ia64*)
13681               # +Z the default
13682               ;;
13683             *)
13684               lt_prog_compiler_pic_CXX='+Z'
13685               ;;
13686             esac
13687             ;;
13688           *)
13689             ;;
13690         esac
13691         ;;
13692       interix*)
13693         # This is c89, which is MS Visual C++ (no shared libs)
13694         # Anyone wants to do a port?
13695         ;;
13696       irix5* | irix6* | nonstopux*)
13697         case $cc_basename in
13698           CC*)
13699             lt_prog_compiler_wl_CXX='-Wl,'
13700             lt_prog_compiler_static_CXX='-non_shared'
13701             # CC pic flag -KPIC is the default.
13702             ;;
13703           *)
13704             ;;
13705         esac
13706         ;;
13707       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13708         case $cc_basename in
13709           KCC*)
13710             # KAI C++ Compiler
13711             lt_prog_compiler_wl_CXX='--backend -Wl,'
13712             lt_prog_compiler_pic_CXX='-fPIC'
13713             ;;
13714           ecpc* )
13715             # old Intel C++ for x86_64 which still supported -KPIC.
13716             lt_prog_compiler_wl_CXX='-Wl,'
13717             lt_prog_compiler_pic_CXX='-KPIC'
13718             lt_prog_compiler_static_CXX='-static'
13719             ;;
13720           icpc* )
13721             # Intel C++, used to be incompatible with GCC.
13722             # ICC 10 doesn't accept -KPIC any more.
13723             lt_prog_compiler_wl_CXX='-Wl,'
13724             lt_prog_compiler_pic_CXX='-fPIC'
13725             lt_prog_compiler_static_CXX='-static'
13726             ;;
13727           pgCC* | pgcpp*)
13728             # Portland Group C++ compiler
13729             lt_prog_compiler_wl_CXX='-Wl,'
13730             lt_prog_compiler_pic_CXX='-fpic'
13731             lt_prog_compiler_static_CXX='-Bstatic'
13732             ;;
13733           cxx*)
13734             # Compaq C++
13735             # Make sure the PIC flag is empty.  It appears that all Alpha
13736             # Linux and Compaq Tru64 Unix objects are PIC.
13737             lt_prog_compiler_pic_CXX=
13738             lt_prog_compiler_static_CXX='-non_shared'
13739             ;;
13740           xlc* | xlC*)
13741             # IBM XL 8.0 on PPC
13742             lt_prog_compiler_wl_CXX='-Wl,'
13743             lt_prog_compiler_pic_CXX='-qpic'
13744             lt_prog_compiler_static_CXX='-qstaticlink'
13745             ;;
13746           *)
13747             case `$CC -V 2>&1 | sed 5q` in
13748             *Sun\ C*)
13749               # Sun C++ 5.9
13750               lt_prog_compiler_pic_CXX='-KPIC'
13751               lt_prog_compiler_static_CXX='-Bstatic'
13752               lt_prog_compiler_wl_CXX='-Qoption ld '
13753               ;;
13754             esac
13755             ;;
13756         esac
13757         ;;
13758       lynxos*)
13759         ;;
13760       m88k*)
13761         ;;
13762       mvs*)
13763         case $cc_basename in
13764           cxx*)
13765             lt_prog_compiler_pic_CXX='-W c,exportall'
13766             ;;
13767           *)
13768             ;;
13769         esac
13770         ;;
13771       netbsd*)
13772         ;;
13773       *qnx* | *nto*)
13774         # QNX uses GNU C++, but need to define -shared option too, otherwise
13775         # it will coredump.
13776         lt_prog_compiler_pic_CXX='-fPIC -shared'
13777         ;;
13778       osf3* | osf4* | osf5*)
13779         case $cc_basename in
13780           KCC*)
13781             lt_prog_compiler_wl_CXX='--backend -Wl,'
13782             ;;
13783           RCC*)
13784             # Rational C++ 2.4.1
13785             lt_prog_compiler_pic_CXX='-pic'
13786             ;;
13787           cxx*)
13788             # Digital/Compaq C++
13789             lt_prog_compiler_wl_CXX='-Wl,'
13790             # Make sure the PIC flag is empty.  It appears that all Alpha
13791             # Linux and Compaq Tru64 Unix objects are PIC.
13792             lt_prog_compiler_pic_CXX=
13793             lt_prog_compiler_static_CXX='-non_shared'
13794             ;;
13795           *)
13796             ;;
13797         esac
13798         ;;
13799       psos*)
13800         ;;
13801       solaris*)
13802         case $cc_basename in
13803           CC*)
13804             # Sun C++ 4.2, 5.x and Centerline C++
13805             lt_prog_compiler_pic_CXX='-KPIC'
13806             lt_prog_compiler_static_CXX='-Bstatic'
13807             lt_prog_compiler_wl_CXX='-Qoption ld '
13808             ;;
13809           gcx*)
13810             # Green Hills C++ Compiler
13811             lt_prog_compiler_pic_CXX='-PIC'
13812             ;;
13813           *)
13814             ;;
13815         esac
13816         ;;
13817       sunos4*)
13818         case $cc_basename in
13819           CC*)
13820             # Sun C++ 4.x
13821             lt_prog_compiler_pic_CXX='-pic'
13822             lt_prog_compiler_static_CXX='-Bstatic'
13823             ;;
13824           lcc*)
13825             # Lucid
13826             lt_prog_compiler_pic_CXX='-pic'
13827             ;;
13828           *)
13829             ;;
13830         esac
13831         ;;
13832       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13833         case $cc_basename in
13834           CC*)
13835             lt_prog_compiler_wl_CXX='-Wl,'
13836             lt_prog_compiler_pic_CXX='-KPIC'
13837             lt_prog_compiler_static_CXX='-Bstatic'
13838             ;;
13839         esac
13840         ;;
13841       tandem*)
13842         case $cc_basename in
13843           NCC*)
13844             # NonStop-UX NCC 3.20
13845             lt_prog_compiler_pic_CXX='-KPIC'
13846             ;;
13847           *)
13848             ;;
13849         esac
13850         ;;
13851       vxworks*)
13852         ;;
13853       *)
13854         lt_prog_compiler_can_build_shared_CXX=no
13855         ;;
13856     esac
13857   fi
13858
13859 case $host_os in
13860   # For platforms which do not support PIC, -DPIC is meaningless:
13861   *djgpp*)
13862     lt_prog_compiler_pic_CXX=
13863     ;;
13864   *)
13865     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13866     ;;
13867 esac
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13869 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13870
13871
13872
13873 #
13874 # Check to make sure the PIC flag actually works.
13875 #
13876 if test -n "$lt_prog_compiler_pic_CXX"; then
13877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13878 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13879 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13880   $as_echo_n "(cached) " >&6
13881 else
13882   lt_cv_prog_compiler_pic_works_CXX=no
13883    ac_outfile=conftest.$ac_objext
13884    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13885    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13886    # Insert the option either (1) after the last *FLAGS variable, or
13887    # (2) before a word containing "conftest.", or (3) at the end.
13888    # Note that $ac_compile itself does not contain backslashes and begins
13889    # with a dollar sign (not a hyphen), so the echo should work correctly.
13890    # The option is referenced via a variable to avoid confusing sed.
13891    lt_compile=`echo "$ac_compile" | $SED \
13892    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13893    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13894    -e 's:$: $lt_compiler_flag:'`
13895    (eval echo "\"\$as_me:13895: $lt_compile\"" >&5)
13896    (eval "$lt_compile" 2>conftest.err)
13897    ac_status=$?
13898    cat conftest.err >&5
13899    echo "$as_me:13899: \$? = $ac_status" >&5
13900    if (exit $ac_status) && test -s "$ac_outfile"; then
13901      # The compiler can only warn and ignore the option if not recognized
13902      # So say no if there are warnings other than the usual output.
13903      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13904      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13905      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13906        lt_cv_prog_compiler_pic_works_CXX=yes
13907      fi
13908    fi
13909    $RM conftest*
13910
13911 fi
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13913 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13914
13915 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13916     case $lt_prog_compiler_pic_CXX in
13917      "" | " "*) ;;
13918      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13919      esac
13920 else
13921     lt_prog_compiler_pic_CXX=
13922      lt_prog_compiler_can_build_shared_CXX=no
13923 fi
13924
13925 fi
13926
13927
13928
13929 #
13930 # Check to make sure the static flag actually works.
13931 #
13932 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13934 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13935 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13936   $as_echo_n "(cached) " >&6
13937 else
13938   lt_cv_prog_compiler_static_works_CXX=no
13939    save_LDFLAGS="$LDFLAGS"
13940    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13941    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13942    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13943      # The linker can only warn and ignore the option if not recognized
13944      # So say no if there are warnings
13945      if test -s conftest.err; then
13946        # Append any errors to the config.log.
13947        cat conftest.err 1>&5
13948        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13949        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13950        if diff conftest.exp conftest.er2 >/dev/null; then
13951          lt_cv_prog_compiler_static_works_CXX=yes
13952        fi
13953      else
13954        lt_cv_prog_compiler_static_works_CXX=yes
13955      fi
13956    fi
13957    $RM -r conftest*
13958    LDFLAGS="$save_LDFLAGS"
13959
13960 fi
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13962 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13963
13964 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13965     :
13966 else
13967     lt_prog_compiler_static_CXX=
13968 fi
13969
13970
13971
13972
13973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13974 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13975 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13976   $as_echo_n "(cached) " >&6
13977 else
13978   lt_cv_prog_compiler_c_o_CXX=no
13979    $RM -r conftest 2>/dev/null
13980    mkdir conftest
13981    cd conftest
13982    mkdir out
13983    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13984
13985    lt_compiler_flag="-o out/conftest2.$ac_objext"
13986    # Insert the option either (1) after the last *FLAGS variable, or
13987    # (2) before a word containing "conftest.", or (3) at the end.
13988    # Note that $ac_compile itself does not contain backslashes and begins
13989    # with a dollar sign (not a hyphen), so the echo should work correctly.
13990    lt_compile=`echo "$ac_compile" | $SED \
13991    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13992    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13993    -e 's:$: $lt_compiler_flag:'`
13994    (eval echo "\"\$as_me:13994: $lt_compile\"" >&5)
13995    (eval "$lt_compile" 2>out/conftest.err)
13996    ac_status=$?
13997    cat out/conftest.err >&5
13998    echo "$as_me:13998: \$? = $ac_status" >&5
13999    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14000    then
14001      # The compiler can only warn and ignore the option if not recognized
14002      # So say no if there are warnings
14003      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14004      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14005      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14006        lt_cv_prog_compiler_c_o_CXX=yes
14007      fi
14008    fi
14009    chmod u+w . 2>&5
14010    $RM conftest*
14011    # SGI C++ compiler will create directory out/ii_files/ for
14012    # template instantiation
14013    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14014    $RM out/* && rmdir out
14015    cd ..
14016    $RM -r conftest
14017    $RM conftest*
14018
14019 fi
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14021 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14022
14023
14024
14025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14026 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14027 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14028   $as_echo_n "(cached) " >&6
14029 else
14030   lt_cv_prog_compiler_c_o_CXX=no
14031    $RM -r conftest 2>/dev/null
14032    mkdir conftest
14033    cd conftest
14034    mkdir out
14035    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14036
14037    lt_compiler_flag="-o out/conftest2.$ac_objext"
14038    # Insert the option either (1) after the last *FLAGS variable, or
14039    # (2) before a word containing "conftest.", or (3) at the end.
14040    # Note that $ac_compile itself does not contain backslashes and begins
14041    # with a dollar sign (not a hyphen), so the echo should work correctly.
14042    lt_compile=`echo "$ac_compile" | $SED \
14043    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14044    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14045    -e 's:$: $lt_compiler_flag:'`
14046    (eval echo "\"\$as_me:14046: $lt_compile\"" >&5)
14047    (eval "$lt_compile" 2>out/conftest.err)
14048    ac_status=$?
14049    cat out/conftest.err >&5
14050    echo "$as_me:14050: \$? = $ac_status" >&5
14051    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14052    then
14053      # The compiler can only warn and ignore the option if not recognized
14054      # So say no if there are warnings
14055      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14056      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14057      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14058        lt_cv_prog_compiler_c_o_CXX=yes
14059      fi
14060    fi
14061    chmod u+w . 2>&5
14062    $RM conftest*
14063    # SGI C++ compiler will create directory out/ii_files/ for
14064    # template instantiation
14065    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14066    $RM out/* && rmdir out
14067    cd ..
14068    $RM -r conftest
14069    $RM conftest*
14070
14071 fi
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14073 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14074
14075
14076
14077
14078 hard_links="nottested"
14079 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14080   # do not overwrite the value of need_locks provided by the user
14081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14082 $as_echo_n "checking if we can lock with hard links... " >&6; }
14083   hard_links=yes
14084   $RM conftest*
14085   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14086   touch conftest.a
14087   ln conftest.a conftest.b 2>&5 || hard_links=no
14088   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14090 $as_echo "$hard_links" >&6; }
14091   if test "$hard_links" = no; then
14092     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14093 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14094     need_locks=warn
14095   fi
14096 else
14097   need_locks=no
14098 fi
14099
14100
14101
14102     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14103 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14104
14105   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14106   case $host_os in
14107   aix[4-9]*)
14108     # If we're using GNU nm, then we don't want the "-C" option.
14109     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14110     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14111       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'
14112     else
14113       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'
14114     fi
14115     ;;
14116   pw32*)
14117     export_symbols_cmds_CXX="$ltdll_cmds"
14118   ;;
14119   cygwin* | mingw* | cegcc*)
14120     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'
14121   ;;
14122   *)
14123     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14124   ;;
14125   esac
14126   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14127
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14129 $as_echo "$ld_shlibs_CXX" >&6; }
14130 test "$ld_shlibs_CXX" = no && can_build_shared=no
14131
14132 with_gnu_ld_CXX=$with_gnu_ld
14133
14134
14135
14136
14137
14138
14139 #
14140 # Do we need to explicitly link libc?
14141 #
14142 case "x$archive_cmds_need_lc_CXX" in
14143 x|xyes)
14144   # Assume -lc should be added
14145   archive_cmds_need_lc_CXX=yes
14146
14147   if test "$enable_shared" = yes && test "$GCC" = yes; then
14148     case $archive_cmds_CXX in
14149     *'~'*)
14150       # FIXME: we may have to deal with multi-command sequences.
14151       ;;
14152     '$CC '*)
14153       # Test whether the compiler implicitly links with -lc since on some
14154       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14155       # to ld, don't add -lc before -lgcc.
14156       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14157 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14158 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14159   $as_echo_n "(cached) " >&6
14160 else
14161   $RM conftest*
14162         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14163
14164         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14165   (eval $ac_compile) 2>&5
14166   ac_status=$?
14167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14168   test $ac_status = 0; } 2>conftest.err; then
14169           soname=conftest
14170           lib=conftest
14171           libobjs=conftest.$ac_objext
14172           deplibs=
14173           wl=$lt_prog_compiler_wl_CXX
14174           pic_flag=$lt_prog_compiler_pic_CXX
14175           compiler_flags=-v
14176           linker_flags=-v
14177           verstring=
14178           output_objdir=.
14179           libname=conftest
14180           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14181           allow_undefined_flag_CXX=
14182           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14183   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14184   ac_status=$?
14185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14186   test $ac_status = 0; }
14187           then
14188             lt_cv_archive_cmds_need_lc_CXX=no
14189           else
14190             lt_cv_archive_cmds_need_lc_CXX=yes
14191           fi
14192           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14193         else
14194           cat conftest.err 1>&5
14195         fi
14196         $RM conftest*
14197
14198 fi
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14200 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14201       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14202       ;;
14203     esac
14204   fi
14205   ;;
14206 esac
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14272 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14273
14274 library_names_spec=
14275 libname_spec='lib$name'
14276 soname_spec=
14277 shrext_cmds=".so"
14278 postinstall_cmds=
14279 postuninstall_cmds=
14280 finish_cmds=
14281 finish_eval=
14282 shlibpath_var=
14283 shlibpath_overrides_runpath=unknown
14284 version_type=none
14285 dynamic_linker="$host_os ld.so"
14286 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14287 need_lib_prefix=unknown
14288 hardcode_into_libs=no
14289
14290 # when you set need_version to no, make sure it does not cause -set_version
14291 # flags to be left without arguments
14292 need_version=unknown
14293
14294 case $host_os in
14295 aix3*)
14296   version_type=linux
14297   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14298   shlibpath_var=LIBPATH
14299
14300   # AIX 3 has no versioning support, so we append a major version to the name.
14301   soname_spec='${libname}${release}${shared_ext}$major'
14302   ;;
14303
14304 aix[4-9]*)
14305   version_type=linux
14306   need_lib_prefix=no
14307   need_version=no
14308   hardcode_into_libs=yes
14309   if test "$host_cpu" = ia64; then
14310     # AIX 5 supports IA64
14311     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14312     shlibpath_var=LD_LIBRARY_PATH
14313   else
14314     # With GCC up to 2.95.x, collect2 would create an import file
14315     # for dependence libraries.  The import file would start with
14316     # the line `#! .'.  This would cause the generated library to
14317     # depend on `.', always an invalid library.  This was fixed in
14318     # development snapshots of GCC prior to 3.0.
14319     case $host_os in
14320       aix4 | aix4.[01] | aix4.[01].*)
14321       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14322            echo ' yes '
14323            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14324         :
14325       else
14326         can_build_shared=no
14327       fi
14328       ;;
14329     esac
14330     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14331     # soname into executable. Probably we can add versioning support to
14332     # collect2, so additional links can be useful in future.
14333     if test "$aix_use_runtimelinking" = yes; then
14334       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14335       # instead of lib<name>.a to let people know that these are not
14336       # typical AIX shared libraries.
14337       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14338     else
14339       # We preserve .a as extension for shared libraries through AIX4.2
14340       # and later when we are not doing run time linking.
14341       library_names_spec='${libname}${release}.a $libname.a'
14342       soname_spec='${libname}${release}${shared_ext}$major'
14343     fi
14344     shlibpath_var=LIBPATH
14345   fi
14346   ;;
14347
14348 amigaos*)
14349   case $host_cpu in
14350   powerpc)
14351     # Since July 2007 AmigaOS4 officially supports .so libraries.
14352     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14353     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14354     ;;
14355   m68k)
14356     library_names_spec='$libname.ixlibrary $libname.a'
14357     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14358     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'
14359     ;;
14360   esac
14361   ;;
14362
14363 beos*)
14364   library_names_spec='${libname}${shared_ext}'
14365   dynamic_linker="$host_os ld.so"
14366   shlibpath_var=LIBRARY_PATH
14367   ;;
14368
14369 bsdi[45]*)
14370   version_type=linux
14371   need_version=no
14372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14373   soname_spec='${libname}${release}${shared_ext}$major'
14374   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14375   shlibpath_var=LD_LIBRARY_PATH
14376   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14377   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14378   # the default ld.so.conf also contains /usr/contrib/lib and
14379   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14380   # libtool to hard-code these into programs
14381   ;;
14382
14383 cygwin* | mingw* | pw32* | cegcc*)
14384   version_type=windows
14385   shrext_cmds=".dll"
14386   need_version=no
14387   need_lib_prefix=no
14388
14389   case $GCC,$host_os in
14390   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14391     library_names_spec='$libname.dll.a'
14392     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14393     postinstall_cmds='base_file=`basename \${file}`~
14394       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14395       dldir=$destdir/`dirname \$dlpath`~
14396       test -d \$dldir || mkdir -p \$dldir~
14397       $install_prog $dir/$dlname \$dldir/$dlname~
14398       chmod a+x \$dldir/$dlname~
14399       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14400         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14401       fi'
14402     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14403       dlpath=$dir/\$dldll~
14404        $RM \$dlpath'
14405     shlibpath_overrides_runpath=yes
14406
14407     case $host_os in
14408     cygwin*)
14409       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14410       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14411       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14412       ;;
14413     mingw* | cegcc*)
14414       # MinGW DLLs use traditional 'lib' prefix
14415       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14416       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14417       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14418         # It is most probably a Windows format PATH printed by
14419         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14420         # path with ; separators, and with drive letters. We can handle the
14421         # drive letters (cygwin fileutils understands them), so leave them,
14422         # especially as we might pass files found there to a mingw objdump,
14423         # which wouldn't understand a cygwinified path. Ahh.
14424         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14425       else
14426         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14427       fi
14428       ;;
14429     pw32*)
14430       # pw32 DLLs use 'pw' prefix rather than 'lib'
14431       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14432       ;;
14433     esac
14434     ;;
14435
14436   *)
14437     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14438     ;;
14439   esac
14440   dynamic_linker='Win32 ld.exe'
14441   # FIXME: first we should search . and the directory the executable is in
14442   shlibpath_var=PATH
14443   ;;
14444
14445 darwin* | rhapsody*)
14446   dynamic_linker="$host_os dyld"
14447   version_type=darwin
14448   need_lib_prefix=no
14449   need_version=no
14450   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14451   soname_spec='${libname}${release}${major}$shared_ext'
14452   shlibpath_overrides_runpath=yes
14453   shlibpath_var=DYLD_LIBRARY_PATH
14454   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14455
14456   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14457   ;;
14458
14459 dgux*)
14460   version_type=linux
14461   need_lib_prefix=no
14462   need_version=no
14463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14464   soname_spec='${libname}${release}${shared_ext}$major'
14465   shlibpath_var=LD_LIBRARY_PATH
14466   ;;
14467
14468 freebsd1*)
14469   dynamic_linker=no
14470   ;;
14471
14472 freebsd* | dragonfly*)
14473   # DragonFly does not have aout.  When/if they implement a new
14474   # versioning mechanism, adjust this.
14475   if test -x /usr/bin/objformat; then
14476     objformat=`/usr/bin/objformat`
14477   else
14478     case $host_os in
14479     freebsd[123]*) objformat=aout ;;
14480     *) objformat=elf ;;
14481     esac
14482   fi
14483   version_type=freebsd-$objformat
14484   case $version_type in
14485     freebsd-elf*)
14486       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14487       need_version=no
14488       need_lib_prefix=no
14489       ;;
14490     freebsd-*)
14491       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14492       need_version=yes
14493       ;;
14494   esac
14495   shlibpath_var=LD_LIBRARY_PATH
14496   case $host_os in
14497   freebsd2*)
14498     shlibpath_overrides_runpath=yes
14499     ;;
14500   freebsd3.[01]* | freebsdelf3.[01]*)
14501     shlibpath_overrides_runpath=yes
14502     hardcode_into_libs=yes
14503     ;;
14504   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14505   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14506     shlibpath_overrides_runpath=no
14507     hardcode_into_libs=yes
14508     ;;
14509   *) # from 4.6 on, and DragonFly
14510     shlibpath_overrides_runpath=yes
14511     hardcode_into_libs=yes
14512     ;;
14513   esac
14514   ;;
14515
14516 gnu*)
14517   version_type=linux
14518   need_lib_prefix=no
14519   need_version=no
14520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14521   soname_spec='${libname}${release}${shared_ext}$major'
14522   shlibpath_var=LD_LIBRARY_PATH
14523   hardcode_into_libs=yes
14524   ;;
14525
14526 hpux9* | hpux10* | hpux11*)
14527   # Give a soname corresponding to the major version so that dld.sl refuses to
14528   # link against other versions.
14529   version_type=sunos
14530   need_lib_prefix=no
14531   need_version=no
14532   case $host_cpu in
14533   ia64*)
14534     shrext_cmds='.so'
14535     hardcode_into_libs=yes
14536     dynamic_linker="$host_os dld.so"
14537     shlibpath_var=LD_LIBRARY_PATH
14538     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14539     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14540     soname_spec='${libname}${release}${shared_ext}$major'
14541     if test "X$HPUX_IA64_MODE" = X32; then
14542       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14543     else
14544       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14545     fi
14546     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14547     ;;
14548   hppa*64*)
14549     shrext_cmds='.sl'
14550     hardcode_into_libs=yes
14551     dynamic_linker="$host_os dld.sl"
14552     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14553     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14554     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14555     soname_spec='${libname}${release}${shared_ext}$major'
14556     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14557     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14558     ;;
14559   *)
14560     shrext_cmds='.sl'
14561     dynamic_linker="$host_os dld.sl"
14562     shlibpath_var=SHLIB_PATH
14563     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14564     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14565     soname_spec='${libname}${release}${shared_ext}$major'
14566     ;;
14567   esac
14568   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14569   postinstall_cmds='chmod 555 $lib'
14570   ;;
14571
14572 interix[3-9]*)
14573   version_type=linux
14574   need_lib_prefix=no
14575   need_version=no
14576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14577   soname_spec='${libname}${release}${shared_ext}$major'
14578   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14579   shlibpath_var=LD_LIBRARY_PATH
14580   shlibpath_overrides_runpath=no
14581   hardcode_into_libs=yes
14582   ;;
14583
14584 irix5* | irix6* | nonstopux*)
14585   case $host_os in
14586     nonstopux*) version_type=nonstopux ;;
14587     *)
14588         if test "$lt_cv_prog_gnu_ld" = yes; then
14589                 version_type=linux
14590         else
14591                 version_type=irix
14592         fi ;;
14593   esac
14594   need_lib_prefix=no
14595   need_version=no
14596   soname_spec='${libname}${release}${shared_ext}$major'
14597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14598   case $host_os in
14599   irix5* | nonstopux*)
14600     libsuff= shlibsuff=
14601     ;;
14602   *)
14603     case $LD in # libtool.m4 will add one of these switches to LD
14604     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14605       libsuff= shlibsuff= libmagic=32-bit;;
14606     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14607       libsuff=32 shlibsuff=N32 libmagic=N32;;
14608     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14609       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14610     *) libsuff= shlibsuff= libmagic=never-match;;
14611     esac
14612     ;;
14613   esac
14614   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14615   shlibpath_overrides_runpath=no
14616   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14617   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14618   hardcode_into_libs=yes
14619   ;;
14620
14621 # No shared lib support for Linux oldld, aout, or coff.
14622 linux*oldld* | linux*aout* | linux*coff*)
14623   dynamic_linker=no
14624   ;;
14625
14626 # This must be Linux ELF.
14627 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14628   version_type=linux
14629   need_lib_prefix=no
14630   need_version=no
14631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14632   soname_spec='${libname}${release}${shared_ext}$major'
14633   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14634   shlibpath_var=LD_LIBRARY_PATH
14635   shlibpath_overrides_runpath=no
14636
14637   # Some binutils ld are patched to set DT_RUNPATH
14638   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14639   $as_echo_n "(cached) " >&6
14640 else
14641   lt_cv_shlibpath_overrides_runpath=no
14642     save_LDFLAGS=$LDFLAGS
14643     save_libdir=$libdir
14644     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14645          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14646     if test x$gcc_no_link = xyes; then
14647   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14648 fi
14649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650 /* end confdefs.h.  */
14651
14652 int
14653 main ()
14654 {
14655
14656   ;
14657   return 0;
14658 }
14659 _ACEOF
14660 if ac_fn_cxx_try_link "$LINENO"; then :
14661   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14662   lt_cv_shlibpath_overrides_runpath=yes
14663 fi
14664 fi
14665 rm -f core conftest.err conftest.$ac_objext \
14666     conftest$ac_exeext conftest.$ac_ext
14667     LDFLAGS=$save_LDFLAGS
14668     libdir=$save_libdir
14669
14670 fi
14671
14672   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14673
14674   # This implies no fast_install, which is unacceptable.
14675   # Some rework will be needed to allow for fast_install
14676   # before this can be enabled.
14677   hardcode_into_libs=yes
14678
14679   # Append ld.so.conf contents to the search path
14680   if test -f /etc/ld.so.conf; then
14681     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' ' '`
14682     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14683   fi
14684
14685   # We used to test for /lib/ld.so.1 and disable shared libraries on
14686   # powerpc, because MkLinux only supported shared libraries with the
14687   # GNU dynamic linker.  Since this was broken with cross compilers,
14688   # most powerpc-linux boxes support dynamic linking these days and
14689   # people can always --disable-shared, the test was removed, and we
14690   # assume the GNU/Linux dynamic linker is in use.
14691   dynamic_linker='GNU/Linux ld.so'
14692   ;;
14693
14694 netbsd*)
14695   version_type=sunos
14696   need_lib_prefix=no
14697   need_version=no
14698   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14699     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14700     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14701     dynamic_linker='NetBSD (a.out) ld.so'
14702   else
14703     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14704     soname_spec='${libname}${release}${shared_ext}$major'
14705     dynamic_linker='NetBSD ld.elf_so'
14706   fi
14707   shlibpath_var=LD_LIBRARY_PATH
14708   shlibpath_overrides_runpath=yes
14709   hardcode_into_libs=yes
14710   ;;
14711
14712 newsos6)
14713   version_type=linux
14714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715   shlibpath_var=LD_LIBRARY_PATH
14716   shlibpath_overrides_runpath=yes
14717   ;;
14718
14719 *nto* | *qnx*)
14720   version_type=qnx
14721   need_lib_prefix=no
14722   need_version=no
14723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14724   soname_spec='${libname}${release}${shared_ext}$major'
14725   shlibpath_var=LD_LIBRARY_PATH
14726   shlibpath_overrides_runpath=no
14727   hardcode_into_libs=yes
14728   dynamic_linker='ldqnx.so'
14729   ;;
14730
14731 openbsd*)
14732   version_type=sunos
14733   sys_lib_dlsearch_path_spec="/usr/lib"
14734   need_lib_prefix=no
14735   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14736   case $host_os in
14737     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14738     *)                          need_version=no  ;;
14739   esac
14740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14741   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14742   shlibpath_var=LD_LIBRARY_PATH
14743   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14744     case $host_os in
14745       openbsd2.[89] | openbsd2.[89].*)
14746         shlibpath_overrides_runpath=no
14747         ;;
14748       *)
14749         shlibpath_overrides_runpath=yes
14750         ;;
14751       esac
14752   else
14753     shlibpath_overrides_runpath=yes
14754   fi
14755   ;;
14756
14757 os2*)
14758   libname_spec='$name'
14759   shrext_cmds=".dll"
14760   need_lib_prefix=no
14761   library_names_spec='$libname${shared_ext} $libname.a'
14762   dynamic_linker='OS/2 ld.exe'
14763   shlibpath_var=LIBPATH
14764   ;;
14765
14766 osf3* | osf4* | osf5*)
14767   version_type=osf
14768   need_lib_prefix=no
14769   need_version=no
14770   soname_spec='${libname}${release}${shared_ext}$major'
14771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772   shlibpath_var=LD_LIBRARY_PATH
14773   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14774   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14775   ;;
14776
14777 rdos*)
14778   dynamic_linker=no
14779   ;;
14780
14781 solaris*)
14782   version_type=linux
14783   need_lib_prefix=no
14784   need_version=no
14785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14786   soname_spec='${libname}${release}${shared_ext}$major'
14787   shlibpath_var=LD_LIBRARY_PATH
14788   shlibpath_overrides_runpath=yes
14789   hardcode_into_libs=yes
14790   # ldd complains unless libraries are executable
14791   postinstall_cmds='chmod +x $lib'
14792   ;;
14793
14794 sunos4*)
14795   version_type=sunos
14796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14797   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14798   shlibpath_var=LD_LIBRARY_PATH
14799   shlibpath_overrides_runpath=yes
14800   if test "$with_gnu_ld" = yes; then
14801     need_lib_prefix=no
14802   fi
14803   need_version=yes
14804   ;;
14805
14806 sysv4 | sysv4.3*)
14807   version_type=linux
14808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14809   soname_spec='${libname}${release}${shared_ext}$major'
14810   shlibpath_var=LD_LIBRARY_PATH
14811   case $host_vendor in
14812     sni)
14813       shlibpath_overrides_runpath=no
14814       need_lib_prefix=no
14815       runpath_var=LD_RUN_PATH
14816       ;;
14817     siemens)
14818       need_lib_prefix=no
14819       ;;
14820     motorola)
14821       need_lib_prefix=no
14822       need_version=no
14823       shlibpath_overrides_runpath=no
14824       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14825       ;;
14826   esac
14827   ;;
14828
14829 sysv4*MP*)
14830   if test -d /usr/nec ;then
14831     version_type=linux
14832     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14833     soname_spec='$libname${shared_ext}.$major'
14834     shlibpath_var=LD_LIBRARY_PATH
14835   fi
14836   ;;
14837
14838 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14839   version_type=freebsd-elf
14840   need_lib_prefix=no
14841   need_version=no
14842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14843   soname_spec='${libname}${release}${shared_ext}$major'
14844   shlibpath_var=LD_LIBRARY_PATH
14845   shlibpath_overrides_runpath=yes
14846   hardcode_into_libs=yes
14847   if test "$with_gnu_ld" = yes; then
14848     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14849   else
14850     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14851     case $host_os in
14852       sco3.2v5*)
14853         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14854         ;;
14855     esac
14856   fi
14857   sys_lib_dlsearch_path_spec='/usr/lib'
14858   ;;
14859
14860 tpf*)
14861   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14862   version_type=linux
14863   need_lib_prefix=no
14864   need_version=no
14865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14866   shlibpath_var=LD_LIBRARY_PATH
14867   shlibpath_overrides_runpath=no
14868   hardcode_into_libs=yes
14869   ;;
14870
14871 uts4*)
14872   version_type=linux
14873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874   soname_spec='${libname}${release}${shared_ext}$major'
14875   shlibpath_var=LD_LIBRARY_PATH
14876   ;;
14877
14878 *)
14879   dynamic_linker=no
14880   ;;
14881 esac
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14883 $as_echo "$dynamic_linker" >&6; }
14884 test "$dynamic_linker" = no && can_build_shared=no
14885
14886 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14887 if test "$GCC" = yes; then
14888   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14889 fi
14890
14891 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14892   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14893 fi
14894 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14895   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14896 fi
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14934 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14935 hardcode_action_CXX=
14936 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14937    test -n "$runpath_var_CXX" ||
14938    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14939
14940   # We can hardcode non-existent directories.
14941   if test "$hardcode_direct_CXX" != no &&
14942      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14943      # have to relink, otherwise we might link with an installed library
14944      # when we should be linking with a yet-to-be-installed one
14945      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14946      test "$hardcode_minus_L_CXX" != no; then
14947     # Linking always hardcodes the temporary library directory.
14948     hardcode_action_CXX=relink
14949   else
14950     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14951     hardcode_action_CXX=immediate
14952   fi
14953 else
14954   # We cannot hardcode anything, or else we can only hardcode existing
14955   # directories.
14956   hardcode_action_CXX=unsupported
14957 fi
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14959 $as_echo "$hardcode_action_CXX" >&6; }
14960
14961 if test "$hardcode_action_CXX" = relink ||
14962    test "$inherit_rpath_CXX" = yes; then
14963   # Fast installation is not supported
14964   enable_fast_install=no
14965 elif test "$shlibpath_overrides_runpath" = yes ||
14966      test "$enable_shared" = no; then
14967   # Fast installation is not necessary
14968   enable_fast_install=needless
14969 fi
14970
14971
14972
14973
14974
14975
14976
14977   fi # test -n "$compiler"
14978
14979   CC=$lt_save_CC
14980   LDCXX=$LD
14981   LD=$lt_save_LD
14982   GCC=$lt_save_GCC
14983   with_gnu_ld=$lt_save_with_gnu_ld
14984   lt_cv_path_LDCXX=$lt_cv_path_LD
14985   lt_cv_path_LD=$lt_save_path_LD
14986   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14987   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14988 fi # test "$_lt_caught_CXX_error" != yes
14989
14990 ac_ext=c
14991 ac_cpp='$CPP $CPPFLAGS'
14992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008         ac_config_commands="$ac_config_commands libtool"
15009
15010
15011
15012
15013 # Only expand once:
15014
15015
15016
15017
15018 # Check whether --with-target-subdir was given.
15019 if test "${with_target_subdir+set}" = set; then :
15020   withval=$with_target_subdir;
15021 fi
15022
15023
15024 # Check whether --with-cross-host was given.
15025 if test "${with_cross_host+set}" = set; then :
15026   withval=$with_cross_host;
15027 fi
15028
15029
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
15031 $as_echo_n "checking for thread model used by GCC... " >&6; }
15032 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
15033 if test -z "$THREADS"; then
15034    THREADS=no
15035 fi
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
15037 $as_echo "$THREADS" >&6; }
15038
15039 # Check whether --enable-parallel-mark was given.
15040 if test "${enable_parallel_mark+set}" = set; then :
15041   enableval=$enable_parallel_mark; case "$THREADS" in
15042       no | none | single)
15043         as_fn_error "Parallel mark requires --enable-threads=x spec" "$LINENO" 5
15044         ;;
15045     esac
15046
15047 fi
15048
15049
15050 AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
15051 THREADLIBS=
15052 case "$THREADS" in
15053  no | none | single)
15054     THREADS=none
15055     ;;
15056  posix | posix95 | pthreads)
15057     THREADS=posix
15058     THREADLIBS=-lpthread
15059     case "$host" in
15060      x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
15061
15062 $as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
15063
15064
15065 $as_echo "#define _REENTRANT 1" >>confdefs.h
15066
15067         if test "${enable_parallel_mark}" = yes; then
15068
15069 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
15070
15071         fi
15072
15073 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
15074
15075         ;;
15076      *-*-linux*)
15077         $as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
15078
15079         $as_echo "#define _REENTRANT 1" >>confdefs.h
15080
15081         ;;
15082      *-*-aix*)
15083
15084 $as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
15085
15086         $as_echo "#define _REENTRANT 1" >>confdefs.h
15087
15088         ;;
15089      *-*-hpux11*)
15090         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
15091 $as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
15092
15093 $as_echo "#define GC_HPUX_THREADS 1" >>confdefs.h
15094
15095
15096 $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
15097
15098         if test "${enable_parallel_mark}" = yes; then
15099           $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
15100
15101         fi
15102         $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
15103
15104         THREADLIBS="-lpthread -lrt"
15105         # HPUX needs REENTRANT for the _r calls.
15106
15107 $as_echo "#define _REENTRANT 1" >>confdefs.h
15108
15109         ;;
15110      *-*-hpux10*)
15111         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
15112 $as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
15113         ;;
15114       *-*-kfreebsd*-gnu)
15115        $as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
15116
15117        INCLUDES="$INCLUDES -pthread"
15118        THREADDLLIBS=-pthread
15119        $as_echo "#define _REENTRANT 1" >>confdefs.h
15120
15121          if test "${enable_parallel_mark}" = yes; then
15122          $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
15123
15124        fi
15125        $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
15126
15127
15128 $as_echo "#define USE_COMPILER_TLS 1" >>confdefs.h
15129
15130                ;;
15131      *-*-freebsd*)
15132         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
15133 $as_echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
15134
15135 $as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
15136
15137         AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
15138         THREADLIBS=-pthread
15139         ;;
15140      *-*-solaris*)
15141
15142 $as_echo "#define GC_SOLARIS_PTHREADS 1" >>confdefs.h
15143
15144         # Need to use alternate thread library, otherwise gctest hangs
15145         # on Solaris 8.
15146         multi_os_directory=`$CC -print-multi-os-directory`
15147         THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
15148                     -R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
15149         ;;
15150      *-*-irix*)
15151
15152 $as_echo "#define GC_IRIX_THREADS 1" >>confdefs.h
15153
15154         ;;
15155      *-*-cygwin*)
15156
15157 $as_echo "#define GC_WIN32_THREADS 1" >>confdefs.h
15158
15159         ;;
15160      *-*-darwin*)
15161
15162 $as_echo "#define GC_DARWIN_THREADS 1" >>confdefs.h
15163
15164         $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
15165
15166         if test "${enable_parallel_mark}" = yes; then
15167           $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
15168
15169         fi
15170         ;;
15171      *-*-osf*)
15172
15173 $as_echo "#define GC_OSF1_THREADS 1" >>confdefs.h
15174
15175         if test "${enable_parallel_mark}" = yes; then
15176           $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
15177
15178           $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
15179
15180           # May want to enable it in other cases, too.
15181           # Measurements havent yet been done.
15182         fi
15183         AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
15184         THREADLIBS="-lpthread -lrt"
15185         ;;
15186     esac
15187     ;;
15188  win32)
15189     $as_echo "#define GC_WIN32_THREADS 1" >>confdefs.h
15190
15191             ;;
15192  dgux386)
15193     THREADS=dgux386
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADLIBS" >&5
15195 $as_echo "$THREADLIBS" >&6; }
15196     # Use pthread GCC  switch
15197     THREADLIBS=-pthread
15198     if test "${enable_parallel_mark}" = yes; then
15199         $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
15200
15201     fi
15202     $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
15203
15204
15205 $as_echo "#define GC_DGUX386_THREADS 1" >>confdefs.h
15206
15207
15208 $as_echo "#define DGUX_THREADS 1" >>confdefs.h
15209
15210     # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
15211     AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
15212     ;;
15213  aix)
15214     THREADS=posix
15215     THREADLIBS=-lpthread
15216     $as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
15217
15218     $as_echo "#define _REENTRANT 1" >>confdefs.h
15219
15220     ;;
15221  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
15222     as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
15223     ;;
15224  *)
15225     as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
15226     ;;
15227 esac
15228
15229
15230 case "$host" in
15231    powerpc-*-darwin*)
15232       powerpc_darwin=true
15233       ;;
15234 esac
15235  if test x$powerpc_darwin = xtrue; then
15236   POWERPC_DARWIN_TRUE=
15237   POWERPC_DARWIN_FALSE='#'
15238 else
15239   POWERPC_DARWIN_TRUE='#'
15240   POWERPC_DARWIN_FALSE=
15241 fi
15242
15243
15244 # Darwin needs a few extra special tests to deal with variation in the
15245 # system headers.
15246 case "$host" in
15247   powerpc*-*-darwin*)
15248     ac_fn_c_check_member "$LINENO" "ppc_thread_state_t" "r0" "ac_cv_member_ppc_thread_state_t_r0" "#include <mach/thread_status.h>
15249 "
15250 if test "x$ac_cv_member_ppc_thread_state_t_r0" = x""yes; then :
15251
15252 $as_echo "#define HAS_PPC_THREAD_STATE_R0 1" >>confdefs.h
15253
15254 fi
15255
15256     ac_fn_c_check_member "$LINENO" "ppc_thread_state_t" "__r0" "ac_cv_member_ppc_thread_state_t___r0" "#include <mach/thread_status.h>
15257 "
15258 if test "x$ac_cv_member_ppc_thread_state_t___r0" = x""yes; then :
15259
15260 $as_echo "#define HAS_PPC_THREAD_STATE___R0 1" >>confdefs.h
15261
15262 fi
15263
15264     ac_fn_c_check_member "$LINENO" "ppc_thread_state64_t" "r0" "ac_cv_member_ppc_thread_state64_t_r0" "#include <mach/thread_status.h>
15265 "
15266 if test "x$ac_cv_member_ppc_thread_state64_t_r0" = x""yes; then :
15267
15268 $as_echo "#define HAS_PPC_THREAD_STATE64_R0 1" >>confdefs.h
15269
15270 fi
15271
15272     ac_fn_c_check_member "$LINENO" "ppc_thread_state64_t" "__r0" "ac_cv_member_ppc_thread_state64_t___r0" "#include <mach/thread_status.h>
15273 "
15274 if test "x$ac_cv_member_ppc_thread_state64_t___r0" = x""yes; then :
15275
15276 $as_echo "#define HAS_PPC_THREAD_STATE64___R0 1" >>confdefs.h
15277
15278 fi
15279
15280     ;;
15281   i?86*-*-darwin*)
15282     ac_fn_c_check_member "$LINENO" "x86_thread_state32_t" "eax" "ac_cv_member_x86_thread_state32_t_eax" "#include <sys/cdefs.h>
15283       #include <mach/thread_status.h>
15284 "
15285 if test "x$ac_cv_member_x86_thread_state32_t_eax" = x""yes; then :
15286
15287 $as_echo "#define HAS_X86_THREAD_STATE32_EAX 1" >>confdefs.h
15288
15289 fi
15290
15291     ac_fn_c_check_member "$LINENO" "x86_thread_state32_t" "__eax" "ac_cv_member_x86_thread_state32_t___eax" "#include <sys/cdefs.h>
15292       #include <mach/thread_status.h>
15293 "
15294 if test "x$ac_cv_member_x86_thread_state32_t___eax" = x""yes; then :
15295
15296 $as_echo "#define HAS_X86_THREAD_STATE32___EAX 1" >>confdefs.h
15297
15298 fi
15299
15300     ;;
15301   x86_64-*-darwin*)
15302     ac_fn_c_check_member "$LINENO" "x86_thread_state64_t" "rax" "ac_cv_member_x86_thread_state64_t_rax" "#include <sys/cdefs.h>
15303       #include <mach/thread_status.h>
15304 "
15305 if test "x$ac_cv_member_x86_thread_state64_t_rax" = x""yes; then :
15306
15307 $as_echo "#define HAS_X86_THREAD_STATE64_RAX 1" >>confdefs.h
15308
15309 fi
15310
15311     ac_fn_c_check_member "$LINENO" "x86_thread_state64_t" "__rax" "ac_cv_member_x86_thread_state64_t___rax" "#include <sys/cdefs.h>
15312       #include <mach/thread_status.h>
15313 "
15314 if test "x$ac_cv_member_x86_thread_state64_t___rax" = x""yes; then :
15315
15316 $as_echo "#define HAS_X86_THREAD_STATE64___RAX 1" >>confdefs.h
15317
15318 fi
15319
15320      ;;
15321   *) ;;
15322 esac
15323
15324 # We never want libdl on darwin. It is a fake libdl that just ends up making
15325 # dyld calls anyway
15326 case "$host" in
15327   *-*-darwin*) ;;
15328   *)
15329     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15330 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15331 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15332   $as_echo_n "(cached) " >&6
15333 else
15334   ac_check_lib_save_LIBS=$LIBS
15335 LIBS="-ldl  $LIBS"
15336 if test x$gcc_no_link = xyes; then
15337   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15338 fi
15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h.  */
15341
15342 /* Override any GCC internal prototype to avoid an error.
15343    Use char because int might match the return type of a GCC
15344    builtin and then its argument prototype would still apply.  */
15345 #ifdef __cplusplus
15346 extern "C"
15347 #endif
15348 char dlopen ();
15349 int
15350 main ()
15351 {
15352 return dlopen ();
15353   ;
15354   return 0;
15355 }
15356 _ACEOF
15357 if ac_fn_c_try_link "$LINENO"; then :
15358   ac_cv_lib_dl_dlopen=yes
15359 else
15360   ac_cv_lib_dl_dlopen=no
15361 fi
15362 rm -f core conftest.err conftest.$ac_objext \
15363     conftest$ac_exeext conftest.$ac_ext
15364 LIBS=$ac_check_lib_save_LIBS
15365 fi
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15367 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15368 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15369   EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
15370 fi
15371
15372     ;;
15373 esac
15374
15375 # extra LD Flags which are required for targets
15376 case "${host}" in
15377   *-*-darwin*)
15378     extra_ldflags_libgc=-Wl,-single_module
15379     ;;
15380 esac
15381
15382
15383
15384
15385 target_all=libgcjgc.la
15386
15387
15388 TARGET_ECOS="no"
15389
15390 # Check whether --with-ecos was given.
15391 if test "${with_ecos+set}" = set; then :
15392   withval=$with_ecos; TARGET_ECOS="$with_ecos"
15393
15394 fi
15395
15396
15397 addobjs=
15398 addlibs=
15399 addincludes=
15400 addtests=
15401 case "$TARGET_ECOS" in
15402    no)
15403       ;;
15404    *)
15405
15406 $as_echo "#define ECOS 1" >>confdefs.h
15407
15408       AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
15409       addobjs="$addobjs ecos.lo"
15410       ;;
15411 esac
15412
15413 if test "${enable_cplusplus}" = yes; then
15414       addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
15415       addtests="$addtests test_cpp"
15416 fi
15417
15418  if test "${enable_cplusplus}" = yes; then
15419   CPLUSPLUS_TRUE=
15420   CPLUSPLUS_FALSE='#'
15421 else
15422   CPLUSPLUS_TRUE='#'
15423   CPLUSPLUS_FALSE=
15424 fi
15425
15426
15427
15428
15429
15430
15431 # Configuration of shared libraries
15432 #
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15434 $as_echo_n "checking whether to build shared libraries... " >&6; }
15435 # Check whether --enable-shared was given.
15436 if test "${enable_shared+set}" = set; then :
15437   enableval=$enable_shared; p=${PACKAGE-default}
15438     case $enableval in
15439     yes) enable_shared=yes ;;
15440     no) enable_shared=no ;;
15441     *)
15442       enable_shared=no
15443       # Look at the argument we got.  We use all the common list separators.
15444       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15445       for pkg in $enableval; do
15446         IFS="$lt_save_ifs"
15447         if test "X$pkg" = "X$p"; then
15448           enable_shared=yes
15449         fi
15450       done
15451       IFS="$lt_save_ifs"
15452       ;;
15453     esac
15454 else
15455   enable_shared=yes
15456 fi
15457
15458
15459
15460
15461
15462
15463
15464 case "$host" in
15465  alpha-*-openbsd*)
15466      enable_shared=no
15467      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15468 $as_echo "no" >&6; }
15469      ;;
15470  *)
15471      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15472 $as_echo "yes" >&6; }
15473      ;;
15474 esac
15475
15476 # Checks for pthreads functions
15477 #
15478 oldLIBS="$LIBS"
15479 LIBS="$LIBS $THREADLIBS"
15480 for ac_func in pthread_getattr_np
15481 do :
15482   ac_fn_c_check_func "$LINENO" "pthread_getattr_np" "ac_cv_func_pthread_getattr_np"
15483 if test "x$ac_cv_func_pthread_getattr_np" = x""yes; then :
15484   cat >>confdefs.h <<_ACEOF
15485 #define HAVE_PTHREAD_GETATTR_NP 1
15486 _ACEOF
15487
15488 fi
15489 done
15490
15491 LIBS="$oldLIBS"
15492
15493 # Configuration of machine-dependent code
15494 #
15495 # Set NO_EXECUTE_PERMISSION by default because gcj already uses
15496 # ffi_closure_{alloc,free} which takes care of allocating trampolines
15497 # in executable memory.
15498 #
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which machine-dependent code should be used" >&5
15500 $as_echo_n "checking which machine-dependent code should be used... " >&6; }
15501 machdep=
15502 case "$host" in
15503  alpha*-*-openbsd*)
15504     machdep="alpha_mach_dep.lo"
15505     if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
15506        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
15507 $as_echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
15508     fi
15509     ;;
15510  alpha*-*-linux*)
15511     machdep="alpha_mach_dep.lo"
15512     ;;
15513  i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
15514
15515 $as_echo "#define SOLARIS25_PROC_VDB_BUG_FIXED 1" >>confdefs.h
15516
15517     ;;
15518  mipstx39-*-elf*)
15519     machdep="mips_ultrix_mach_dep.lo"
15520
15521 $as_echo "#define STACKBASE __stackbase" >>confdefs.h
15522
15523
15524 $as_echo "#define DATASTART_IS_ETEXT 1" >>confdefs.h
15525
15526     ;;
15527  mips-dec-ultrix*)
15528     machdep="mips_ultrix_mach-dep.lo"
15529     ;;
15530  mips-nec-sysv*|mips-unknown-sysv*)
15531     ;;
15532  mips*-*-linux*)
15533     ;;
15534  mips-*-*)
15535     machdep="mips_sgi_mach_dep.lo"
15536     ;;
15537  sparc-*-netbsd*)
15538     machdep="sparc_netbsd_mach_dep.lo"
15539     ;;
15540  sparc-sun-solaris2.3)
15541     machdep="sparc_mach_dep.lo"
15542
15543 $as_echo "#define SUNOS53_SHARED_LIB 1" >>confdefs.h
15544
15545     ;;
15546  sparc*-sun-solaris2.*)
15547     machdep="sparc_mach_dep.lo"
15548     ;;
15549  ia64-*-*)
15550     machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
15551     ;;
15552 esac
15553
15554 $as_echo "#define NO_EXECUTE_PERMISSION 1" >>confdefs.h
15555
15556 if test x"$machdep" = x; then
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $machdep" >&5
15558 $as_echo "$machdep" >&6; }
15559    machdep="mach_dep.lo"
15560 fi
15561 addobjs="$addobjs $machdep"
15562
15563
15564
15565
15566
15567 #
15568 # Check for AViiON Machines running DGUX
15569 #
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if host is AViiON running DGUX" >&5
15571 $as_echo_n "checking if host is AViiON running DGUX... " >&6; }
15572 ac_is_dgux=no
15573 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15574 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
15575   ac_is_dgux=yes;
15576 fi
15577
15578
15579
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_is_dgux" >&5
15581 $as_echo "$ac_is_dgux" >&6; }
15582     ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
15583 if test $ac_is_dgux = yes; then
15584     if test "$enable_full_debug" = "yes"; then
15585       CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15586       CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15587     else
15588       CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15589       CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15590     fi
15591
15592
15593 fi
15594
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Solaris gcc optimization fix is necessary" >&5
15596 $as_echo_n "checking whether Solaris gcc optimization fix is necessary... " >&6; }
15597 case "$host" in
15598  *aix*)
15599     if test "$GCC" = yes; then
15600        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15601 $as_echo "yes" >&6; }
15602        new_CFLAGS=
15603        for i in $CFLAGS; do
15604           case "$i" in
15605            -O*)
15606               ;;
15607            *)
15608               new_CFLAGS="$new_CFLAGS $i"
15609               ;;
15610           esac
15611        done
15612        CFLAGS="$new_CFLAGS"
15613     else
15614        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15615 $as_echo "no" >&6; }
15616     fi
15617     ;;
15618  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15619 $as_echo "no" >&6; } ;;
15620 esac
15621
15622 MY_CFLAGS="$CFLAGS"
15623
15624
15625
15626 $as_echo "#define SILENT 1" >>confdefs.h
15627
15628
15629 $as_echo "#define NO_SIGNALS 1" >>confdefs.h
15630
15631
15632 $as_echo "#define ALL_INTERIOR_POINTERS 1" >>confdefs.h
15633
15634
15635
15636 $as_echo "#define JAVA_FINALIZATION 1" >>confdefs.h
15637
15638
15639 $as_echo "#define GC_GCJ_SUPPORT 1" >>confdefs.h
15640
15641
15642 $as_echo "#define ATOMIC_UNCOLLECTABLE 1" >>confdefs.h
15643
15644
15645 # Check whether --enable-gc-debug was given.
15646 if test "${enable_gc_debug+set}" = set; then :
15647   enableval=$enable_gc_debug;  if test "$enable_gc_debug" = "yes"; then
15648     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
15649 $as_echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
15650
15651 $as_echo "#define KEEP_BACK_PTRS 1" >>confdefs.h
15652
15653
15654 $as_echo "#define DBG_HDRS_ALL 1" >>confdefs.h
15655
15656     case $host in
15657       ia64-*-linux* )
15658
15659 $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
15660
15661       ;;
15662       x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
15663         $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
15664
15665         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
15666 $as_echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
15667
15668 $as_echo "#define SAVE_CALL_COUNT 8" >>confdefs.h
15669
15670       ;;
15671       i345686-*-dgux*)
15672         $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
15673
15674       ;;
15675     esac
15676   fi
15677 fi
15678
15679
15680 if test "${gc_use_mmap}" = "yes"; then
15681
15682 $as_echo "#define USE_MMAP 1" >>confdefs.h
15683
15684 fi
15685
15686 if test -n "$with_cross_host" &&
15687    test x"$with_cross_host" != x"no"; then
15688   toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15689   toolexeclibdir='$(toolexecdir)/lib'
15690 else
15691   toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15692   toolexeclibdir='$(libdir)'
15693 fi
15694 multi_os_directory=`$CC -print-multi-os-directory`
15695 case $multi_os_directory in
15696   .) ;; # Avoid trailing /.
15697   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
15698 esac
15699
15700
15701
15702 if test "${multilib}" = "yes"; then
15703   multilib_arg="--enable-multilib"
15704 else
15705   multilib_arg=
15706 fi
15707
15708 ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h"
15709
15710
15711 ac_config_files="$ac_config_files Makefile include/Makefile threads.mk"
15712
15713 cat >confcache <<\_ACEOF
15714 # This file is a shell script that caches the results of configure
15715 # tests run on this system so they can be shared between configure
15716 # scripts and configure runs, see configure's option --config-cache.
15717 # It is not useful on other systems.  If it contains results you don't
15718 # want to keep, you may remove or edit it.
15719 #
15720 # config.status only pays attention to the cache file if you give it
15721 # the --recheck option to rerun configure.
15722 #
15723 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15724 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15725 # following values.
15726
15727 _ACEOF
15728
15729 # The following way of writing the cache mishandles newlines in values,
15730 # but we know of no workaround that is simple, portable, and efficient.
15731 # So, we kill variables containing newlines.
15732 # Ultrix sh set writes to stderr and can't be redirected directly,
15733 # and sets the high bit in the cache file unless we assign to the vars.
15734 (
15735   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15736     eval ac_val=\$$ac_var
15737     case $ac_val in #(
15738     *${as_nl}*)
15739       case $ac_var in #(
15740       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15741 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15742       esac
15743       case $ac_var in #(
15744       _ | IFS | as_nl) ;; #(
15745       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15746       *) { eval $ac_var=; unset $ac_var;} ;;
15747       esac ;;
15748     esac
15749   done
15750
15751   (set) 2>&1 |
15752     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15753     *${as_nl}ac_space=\ *)
15754       # `set' does not quote correctly, so add quotes: double-quote
15755       # substitution turns \\\\ into \\, and sed turns \\ into \.
15756       sed -n \
15757         "s/'/'\\\\''/g;
15758           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15759       ;; #(
15760     *)
15761       # `set' quotes correctly as required by POSIX, so do not add quotes.
15762       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15763       ;;
15764     esac |
15765     sort
15766 ) |
15767   sed '
15768      /^ac_cv_env_/b end
15769      t clear
15770      :clear
15771      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15772      t end
15773      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15774      :end' >>confcache
15775 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15776   if test -w "$cache_file"; then
15777     test "x$cache_file" != "x/dev/null" &&
15778       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15779 $as_echo "$as_me: updating cache $cache_file" >&6;}
15780     cat confcache >$cache_file
15781   else
15782     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15783 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15784   fi
15785 fi
15786 rm -f confcache
15787
15788 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15789 # Let make expand exec_prefix.
15790 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15791
15792 DEFS=-DHAVE_CONFIG_H
15793
15794 ac_libobjs=
15795 ac_ltlibobjs=
15796 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15797   # 1. Remove the extension, and $U if already installed.
15798   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15799   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15800   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15801   #    will be set to the directory where LIBOBJS objects are built.
15802   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15803   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15804 done
15805 LIBOBJS=$ac_libobjs
15806
15807 LTLIBOBJS=$ac_ltlibobjs
15808
15809
15810  if test -n "$EXEEXT"; then
15811   am__EXEEXT_TRUE=
15812   am__EXEEXT_FALSE='#'
15813 else
15814   am__EXEEXT_TRUE='#'
15815   am__EXEEXT_FALSE=
15816 fi
15817
15818 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15819   as_fn_error "conditional \"AMDEP\" was never defined.
15820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15821 fi
15822 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15823   as_fn_error "conditional \"am__fastdepCC\" was never defined.
15824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15825 fi
15826 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15827   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15829 fi
15830 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15831   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15833 fi
15834 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15835   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15837 fi
15838 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15839   as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
15840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15841 fi
15842 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
15843   as_fn_error "conditional \"CPLUSPLUS\" was never defined.
15844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15845 fi
15846
15847 : ${CONFIG_STATUS=./config.status}
15848 ac_write_fail=0
15849 ac_clean_files_save=$ac_clean_files
15850 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15852 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15853 as_write_fail=0
15854 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15855 #! $SHELL
15856 # Generated by $as_me.
15857 # Run this file to recreate the current configuration.
15858 # Compiler output produced by configure, useful for debugging
15859 # configure, is in config.log if it exists.
15860
15861 debug=false
15862 ac_cs_recheck=false
15863 ac_cs_silent=false
15864
15865 SHELL=\${CONFIG_SHELL-$SHELL}
15866 export SHELL
15867 _ASEOF
15868 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15869 ## -------------------- ##
15870 ## M4sh Initialization. ##
15871 ## -------------------- ##
15872
15873 # Be more Bourne compatible
15874 DUALCASE=1; export DUALCASE # for MKS sh
15875 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15876   emulate sh
15877   NULLCMD=:
15878   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15879   # is contrary to our usage.  Disable this feature.
15880   alias -g '${1+"$@"}'='"$@"'
15881   setopt NO_GLOB_SUBST
15882 else
15883   case `(set -o) 2>/dev/null` in #(
15884   *posix*) :
15885     set -o posix ;; #(
15886   *) :
15887      ;;
15888 esac
15889 fi
15890
15891
15892 as_nl='
15893 '
15894 export as_nl
15895 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15896 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15897 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15898 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15899 # Prefer a ksh shell builtin over an external printf program on Solaris,
15900 # but without wasting forks for bash or zsh.
15901 if test -z "$BASH_VERSION$ZSH_VERSION" \
15902     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15903   as_echo='print -r --'
15904   as_echo_n='print -rn --'
15905 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15906   as_echo='printf %s\n'
15907   as_echo_n='printf %s'
15908 else
15909   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15910     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15911     as_echo_n='/usr/ucb/echo -n'
15912   else
15913     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15914     as_echo_n_body='eval
15915       arg=$1;
15916       case $arg in #(
15917       *"$as_nl"*)
15918         expr "X$arg" : "X\\(.*\\)$as_nl";
15919         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15920       esac;
15921       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15922     '
15923     export as_echo_n_body
15924     as_echo_n='sh -c $as_echo_n_body as_echo'
15925   fi
15926   export as_echo_body
15927   as_echo='sh -c $as_echo_body as_echo'
15928 fi
15929
15930 # The user is always right.
15931 if test "${PATH_SEPARATOR+set}" != set; then
15932   PATH_SEPARATOR=:
15933   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15934     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15935       PATH_SEPARATOR=';'
15936   }
15937 fi
15938
15939
15940 # IFS
15941 # We need space, tab and new line, in precisely that order.  Quoting is
15942 # there to prevent editors from complaining about space-tab.
15943 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15944 # splitting by setting IFS to empty value.)
15945 IFS=" ""        $as_nl"
15946
15947 # Find who we are.  Look in the path if we contain no directory separator.
15948 case $0 in #((
15949   *[\\/]* ) as_myself=$0 ;;
15950   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15951 for as_dir in $PATH
15952 do
15953   IFS=$as_save_IFS
15954   test -z "$as_dir" && as_dir=.
15955     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15956   done
15957 IFS=$as_save_IFS
15958
15959      ;;
15960 esac
15961 # We did not find ourselves, most probably we were run as `sh COMMAND'
15962 # in which case we are not to be found in the path.
15963 if test "x$as_myself" = x; then
15964   as_myself=$0
15965 fi
15966 if test ! -f "$as_myself"; then
15967   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15968   exit 1
15969 fi
15970
15971 # Unset variables that we do not need and which cause bugs (e.g. in
15972 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15973 # suppresses any "Segmentation fault" message there.  '((' could
15974 # trigger a bug in pdksh 5.2.14.
15975 for as_var in BASH_ENV ENV MAIL MAILPATH
15976 do eval test x\${$as_var+set} = xset \
15977   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15978 done
15979 PS1='$ '
15980 PS2='> '
15981 PS4='+ '
15982
15983 # NLS nuisances.
15984 LC_ALL=C
15985 export LC_ALL
15986 LANGUAGE=C
15987 export LANGUAGE
15988
15989 # CDPATH.
15990 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15991
15992
15993 # as_fn_error ERROR [LINENO LOG_FD]
15994 # ---------------------------------
15995 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15996 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15997 # script with status $?, using 1 if that was 0.
15998 as_fn_error ()
15999 {
16000   as_status=$?; test $as_status -eq 0 && as_status=1
16001   if test "$3"; then
16002     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16003     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16004   fi
16005   $as_echo "$as_me: error: $1" >&2
16006   as_fn_exit $as_status
16007 } # as_fn_error
16008
16009
16010 # as_fn_set_status STATUS
16011 # -----------------------
16012 # Set $? to STATUS, without forking.
16013 as_fn_set_status ()
16014 {
16015   return $1
16016 } # as_fn_set_status
16017
16018 # as_fn_exit STATUS
16019 # -----------------
16020 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16021 as_fn_exit ()
16022 {
16023   set +e
16024   as_fn_set_status $1
16025   exit $1
16026 } # as_fn_exit
16027
16028 # as_fn_unset VAR
16029 # ---------------
16030 # Portably unset VAR.
16031 as_fn_unset ()
16032 {
16033   { eval $1=; unset $1;}
16034 }
16035 as_unset=as_fn_unset
16036 # as_fn_append VAR VALUE
16037 # ----------------------
16038 # Append the text in VALUE to the end of the definition contained in VAR. Take
16039 # advantage of any shell optimizations that allow amortized linear growth over
16040 # repeated appends, instead of the typical quadratic growth present in naive
16041 # implementations.
16042 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16043   eval 'as_fn_append ()
16044   {
16045     eval $1+=\$2
16046   }'
16047 else
16048   as_fn_append ()
16049   {
16050     eval $1=\$$1\$2
16051   }
16052 fi # as_fn_append
16053
16054 # as_fn_arith ARG...
16055 # ------------------
16056 # Perform arithmetic evaluation on the ARGs, and store the result in the
16057 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16058 # must be portable across $(()) and expr.
16059 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16060   eval 'as_fn_arith ()
16061   {
16062     as_val=$(( $* ))
16063   }'
16064 else
16065   as_fn_arith ()
16066   {
16067     as_val=`expr "$@" || test $? -eq 1`
16068   }
16069 fi # as_fn_arith
16070
16071
16072 if expr a : '\(a\)' >/dev/null 2>&1 &&
16073    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16074   as_expr=expr
16075 else
16076   as_expr=false
16077 fi
16078
16079 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16080   as_basename=basename
16081 else
16082   as_basename=false
16083 fi
16084
16085 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16086   as_dirname=dirname
16087 else
16088   as_dirname=false
16089 fi
16090
16091 as_me=`$as_basename -- "$0" ||
16092 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16093          X"$0" : 'X\(//\)$' \| \
16094          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16095 $as_echo X/"$0" |
16096     sed '/^.*\/\([^/][^/]*\)\/*$/{
16097             s//\1/
16098             q
16099           }
16100           /^X\/\(\/\/\)$/{
16101             s//\1/
16102             q
16103           }
16104           /^X\/\(\/\).*/{
16105             s//\1/
16106             q
16107           }
16108           s/.*/./; q'`
16109
16110 # Avoid depending upon Character Ranges.
16111 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16112 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16113 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16114 as_cr_digits='0123456789'
16115 as_cr_alnum=$as_cr_Letters$as_cr_digits
16116
16117 ECHO_C= ECHO_N= ECHO_T=
16118 case `echo -n x` in #(((((
16119 -n*)
16120   case `echo 'xy\c'` in
16121   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16122   xy)  ECHO_C='\c';;
16123   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16124        ECHO_T=' ';;
16125   esac;;
16126 *)
16127   ECHO_N='-n';;
16128 esac
16129
16130 rm -f conf$$ conf$$.exe conf$$.file
16131 if test -d conf$$.dir; then
16132   rm -f conf$$.dir/conf$$.file
16133 else
16134   rm -f conf$$.dir
16135   mkdir conf$$.dir 2>/dev/null
16136 fi
16137 if (echo >conf$$.file) 2>/dev/null; then
16138   if ln -s conf$$.file conf$$ 2>/dev/null; then
16139     as_ln_s='ln -s'
16140     # ... but there are two gotchas:
16141     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16142     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16143     # In both cases, we have to default to `cp -p'.
16144     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16145       as_ln_s='cp -p'
16146   elif ln conf$$.file conf$$ 2>/dev/null; then
16147     as_ln_s=ln
16148   else
16149     as_ln_s='cp -p'
16150   fi
16151 else
16152   as_ln_s='cp -p'
16153 fi
16154 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16155 rmdir conf$$.dir 2>/dev/null
16156
16157
16158 # as_fn_mkdir_p
16159 # -------------
16160 # Create "$as_dir" as a directory, including parents if necessary.
16161 as_fn_mkdir_p ()
16162 {
16163
16164   case $as_dir in #(
16165   -*) as_dir=./$as_dir;;
16166   esac
16167   test -d "$as_dir" || eval $as_mkdir_p || {
16168     as_dirs=
16169     while :; do
16170       case $as_dir in #(
16171       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16172       *) as_qdir=$as_dir;;
16173       esac
16174       as_dirs="'$as_qdir' $as_dirs"
16175       as_dir=`$as_dirname -- "$as_dir" ||
16176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16177          X"$as_dir" : 'X\(//\)[^/]' \| \
16178          X"$as_dir" : 'X\(//\)$' \| \
16179          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16180 $as_echo X"$as_dir" |
16181     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16182             s//\1/
16183             q
16184           }
16185           /^X\(\/\/\)[^/].*/{
16186             s//\1/
16187             q
16188           }
16189           /^X\(\/\/\)$/{
16190             s//\1/
16191             q
16192           }
16193           /^X\(\/\).*/{
16194             s//\1/
16195             q
16196           }
16197           s/.*/./; q'`
16198       test -d "$as_dir" && break
16199     done
16200     test -z "$as_dirs" || eval "mkdir $as_dirs"
16201   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16202
16203
16204 } # as_fn_mkdir_p
16205 if mkdir -p . 2>/dev/null; then
16206   as_mkdir_p='mkdir -p "$as_dir"'
16207 else
16208   test -d ./-p && rmdir ./-p
16209   as_mkdir_p=false
16210 fi
16211
16212 if test -x / >/dev/null 2>&1; then
16213   as_test_x='test -x'
16214 else
16215   if ls -dL / >/dev/null 2>&1; then
16216     as_ls_L_option=L
16217   else
16218     as_ls_L_option=
16219   fi
16220   as_test_x='
16221     eval sh -c '\''
16222       if test -d "$1"; then
16223         test -d "$1/.";
16224       else
16225         case $1 in #(
16226         -*)set "./$1";;
16227         esac;
16228         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16229         ???[sx]*):;;*)false;;esac;fi
16230     '\'' sh
16231   '
16232 fi
16233 as_executable_p=$as_test_x
16234
16235 # Sed expression to map a string onto a valid CPP name.
16236 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16237
16238 # Sed expression to map a string onto a valid variable name.
16239 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16240
16241
16242 exec 6>&1
16243 ## ----------------------------------- ##
16244 ## Main body of $CONFIG_STATUS script. ##
16245 ## ----------------------------------- ##
16246 _ASEOF
16247 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16248
16249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16250 # Save the log message, to keep $0 and so on meaningful, and to
16251 # report actual input values of CONFIG_FILES etc. instead of their
16252 # values after options handling.
16253 ac_log="
16254 This file was extended by $as_me, which was
16255 generated by GNU Autoconf 2.64.  Invocation command line was
16256
16257   CONFIG_FILES    = $CONFIG_FILES
16258   CONFIG_HEADERS  = $CONFIG_HEADERS
16259   CONFIG_LINKS    = $CONFIG_LINKS
16260   CONFIG_COMMANDS = $CONFIG_COMMANDS
16261   $ $0 $@
16262
16263 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16264 "
16265
16266 _ACEOF
16267
16268 case $ac_config_files in *"
16269 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16270 esac
16271
16272 case $ac_config_headers in *"
16273 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16274 esac
16275
16276
16277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16278 # Files that config.status was made for.
16279 config_files="$ac_config_files"
16280 config_headers="$ac_config_headers"
16281 config_commands="$ac_config_commands"
16282
16283 _ACEOF
16284
16285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16286 ac_cs_usage="\
16287 \`$as_me' instantiates files and other configuration actions
16288 from templates according to the current configuration.  Unless the files
16289 and actions are specified as TAGs, all are instantiated by default.
16290
16291 Usage: $0 [OPTION]... [TAG]...
16292
16293   -h, --help       print this help, then exit
16294   -V, --version    print version number and configuration settings, then exit
16295   -q, --quiet, --silent
16296                    do not print progress messages
16297   -d, --debug      don't remove temporary files
16298       --recheck    update $as_me by reconfiguring in the same conditions
16299       --file=FILE[:TEMPLATE]
16300                    instantiate the configuration file FILE
16301       --header=FILE[:TEMPLATE]
16302                    instantiate the configuration header FILE
16303
16304 Configuration files:
16305 $config_files
16306
16307 Configuration headers:
16308 $config_headers
16309
16310 Configuration commands:
16311 $config_commands
16312
16313 Report bugs to the package provider."
16314
16315 _ACEOF
16316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16317 ac_cs_version="\\
16318 config.status
16319 configured by $0, generated by GNU Autoconf 2.64,
16320   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16321
16322 Copyright (C) 2009 Free Software Foundation, Inc.
16323 This config.status script is free software; the Free Software Foundation
16324 gives unlimited permission to copy, distribute and modify it."
16325
16326 ac_pwd='$ac_pwd'
16327 srcdir='$srcdir'
16328 INSTALL='$INSTALL'
16329 MKDIR_P='$MKDIR_P'
16330 AWK='$AWK'
16331 test -n "\$AWK" || AWK=awk
16332 _ACEOF
16333
16334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16335 # The default lists apply if the user does not specify any file.
16336 ac_need_defaults=:
16337 while test $# != 0
16338 do
16339   case $1 in
16340   --*=*)
16341     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16342     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16343     ac_shift=:
16344     ;;
16345   *)
16346     ac_option=$1
16347     ac_optarg=$2
16348     ac_shift=shift
16349     ;;
16350   esac
16351
16352   case $ac_option in
16353   # Handling of the options.
16354   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16355     ac_cs_recheck=: ;;
16356   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16357     $as_echo "$ac_cs_version"; exit ;;
16358   --debug | --debu | --deb | --de | --d | -d )
16359     debug=: ;;
16360   --file | --fil | --fi | --f )
16361     $ac_shift
16362     case $ac_optarg in
16363     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16364     esac
16365     as_fn_append CONFIG_FILES " '$ac_optarg'"
16366     ac_need_defaults=false;;
16367   --header | --heade | --head | --hea )
16368     $ac_shift
16369     case $ac_optarg in
16370     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16371     esac
16372     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16373     ac_need_defaults=false;;
16374   --he | --h)
16375     # Conflict between --help and --header
16376     as_fn_error "ambiguous option: \`$1'
16377 Try \`$0 --help' for more information.";;
16378   --help | --hel | -h )
16379     $as_echo "$ac_cs_usage"; exit ;;
16380   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16381   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16382     ac_cs_silent=: ;;
16383
16384   # This is an error.
16385   -*) as_fn_error "unrecognized option: \`$1'
16386 Try \`$0 --help' for more information." ;;
16387
16388   *) as_fn_append ac_config_targets " $1"
16389      ac_need_defaults=false ;;
16390
16391   esac
16392   shift
16393 done
16394
16395 ac_configure_extra_args=
16396
16397 if $ac_cs_silent; then
16398   exec 6>/dev/null
16399   ac_configure_extra_args="$ac_configure_extra_args --silent"
16400 fi
16401
16402 _ACEOF
16403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16404 if \$ac_cs_recheck; then
16405   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16406   shift
16407   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16408   CONFIG_SHELL='$SHELL'
16409   export CONFIG_SHELL
16410   exec "\$@"
16411 fi
16412
16413 _ACEOF
16414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16415 exec 5>>config.log
16416 {
16417   echo
16418   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16419 ## Running $as_me. ##
16420 _ASBOX
16421   $as_echo "$ac_log"
16422 } >&5
16423
16424 _ACEOF
16425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16426 #
16427 # INIT-COMMANDS
16428 #
16429
16430 srcdir="$srcdir"
16431 host="$host"
16432 target="$target"
16433 with_multisubdir="$with_multisubdir"
16434 with_multisrctop="$with_multisrctop"
16435 with_target_subdir="$with_target_subdir"
16436 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16437 multi_basedir="$multi_basedir"
16438 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16439 CC="$CC"
16440 CXX="$CXX"
16441 GFORTRAN="$GFORTRAN"
16442 GCJ="$GCJ"
16443 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16444
16445
16446 # The HP-UX ksh and POSIX shell print the target directory to stdout
16447 # if CDPATH is set.
16448 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16449
16450 sed_quote_subst='$sed_quote_subst'
16451 double_quote_subst='$double_quote_subst'
16452 delay_variable_subst='$delay_variable_subst'
16453 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16454 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16455 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16456 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16457 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16458 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16459 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16460 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16461 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16462 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16463 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16464 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16465 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16466 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16467 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16468 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16469 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16470 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16471 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16472 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16473 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16474 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16475 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16476 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16477 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16478 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16479 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16480 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16481 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16482 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16483 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16484 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16485 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16486 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16487 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16488 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16489 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16490 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16491 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16492 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16493 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16494 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16495 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16496 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16497 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16498 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16499 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16500 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16501 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16502 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16503 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16504 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16505 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16506 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16507 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16508 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16509 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16510 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16511 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16512 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16513 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16514 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16515 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16516 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16517 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16518 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16519 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16520 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16521 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16522 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16523 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16524 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16525 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16526 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16527 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16528 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16529 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16530 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16531 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16532 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16533 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16534 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16535 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16536 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16537 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16538 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16539 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16540 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16541 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16542 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16543 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16544 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16545 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16546 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16547 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16548 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16549 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16550 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16551 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16552 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16553 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16554 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16555 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16556 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16557 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16558 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16559 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16560 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16561 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16562 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16563 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16564 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16565 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16566 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16567 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16568 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16569 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16570 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16571 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16572 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16573 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16574 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16575 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16576 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16577 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16578 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16579 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16580 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16581 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16582 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16583 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16584 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16585 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16586 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16587 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16588 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16589 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16590 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16591 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16592 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16593 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16594 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16595 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16596 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16597 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16598 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16599 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16600 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16601 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16602 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16603 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16604 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16605 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16606 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16607 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16608 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16609 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16610 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16611 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16612 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16613 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16614 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16615 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16616 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16617 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16618 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16619 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16620 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16621 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16622 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16623 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16624
16625 LTCC='$LTCC'
16626 LTCFLAGS='$LTCFLAGS'
16627 compiler='$compiler_DEFAULT'
16628
16629 # Quote evaled strings.
16630 for var in SED \
16631 GREP \
16632 EGREP \
16633 FGREP \
16634 LD \
16635 NM \
16636 LN_S \
16637 lt_SP2NL \
16638 lt_NL2SP \
16639 reload_flag \
16640 OBJDUMP \
16641 deplibs_check_method \
16642 file_magic_cmd \
16643 AR \
16644 AR_FLAGS \
16645 STRIP \
16646 RANLIB \
16647 CC \
16648 CFLAGS \
16649 compiler \
16650 lt_cv_sys_global_symbol_pipe \
16651 lt_cv_sys_global_symbol_to_cdecl \
16652 lt_cv_sys_global_symbol_to_c_name_address \
16653 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16654 SHELL \
16655 ECHO \
16656 lt_prog_compiler_no_builtin_flag \
16657 lt_prog_compiler_wl \
16658 lt_prog_compiler_pic \
16659 lt_prog_compiler_static \
16660 lt_cv_prog_compiler_c_o \
16661 need_locks \
16662 DSYMUTIL \
16663 NMEDIT \
16664 LIPO \
16665 OTOOL \
16666 OTOOL64 \
16667 shrext_cmds \
16668 export_dynamic_flag_spec \
16669 whole_archive_flag_spec \
16670 compiler_needs_object \
16671 with_gnu_ld \
16672 allow_undefined_flag \
16673 no_undefined_flag \
16674 hardcode_libdir_flag_spec \
16675 hardcode_libdir_flag_spec_ld \
16676 hardcode_libdir_separator \
16677 fix_srcfile_path \
16678 exclude_expsyms \
16679 include_expsyms \
16680 file_list_spec \
16681 variables_saved_for_relink \
16682 libname_spec \
16683 library_names_spec \
16684 soname_spec \
16685 finish_eval \
16686 old_striplib \
16687 striplib \
16688 compiler_lib_search_dirs \
16689 predep_objects \
16690 postdep_objects \
16691 predeps \
16692 postdeps \
16693 compiler_lib_search_path \
16694 LD_CXX \
16695 compiler_CXX \
16696 lt_prog_compiler_no_builtin_flag_CXX \
16697 lt_prog_compiler_wl_CXX \
16698 lt_prog_compiler_pic_CXX \
16699 lt_prog_compiler_static_CXX \
16700 lt_cv_prog_compiler_c_o_CXX \
16701 export_dynamic_flag_spec_CXX \
16702 whole_archive_flag_spec_CXX \
16703 compiler_needs_object_CXX \
16704 with_gnu_ld_CXX \
16705 allow_undefined_flag_CXX \
16706 no_undefined_flag_CXX \
16707 hardcode_libdir_flag_spec_CXX \
16708 hardcode_libdir_flag_spec_ld_CXX \
16709 hardcode_libdir_separator_CXX \
16710 fix_srcfile_path_CXX \
16711 exclude_expsyms_CXX \
16712 include_expsyms_CXX \
16713 file_list_spec_CXX \
16714 compiler_lib_search_dirs_CXX \
16715 predep_objects_CXX \
16716 postdep_objects_CXX \
16717 predeps_CXX \
16718 postdeps_CXX \
16719 compiler_lib_search_path_CXX; do
16720     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16721     *[\\\\\\\`\\"\\\$]*)
16722       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16723       ;;
16724     *)
16725       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16726       ;;
16727     esac
16728 done
16729
16730 # Double-quote double-evaled strings.
16731 for var in reload_cmds \
16732 old_postinstall_cmds \
16733 old_postuninstall_cmds \
16734 old_archive_cmds \
16735 extract_expsyms_cmds \
16736 old_archive_from_new_cmds \
16737 old_archive_from_expsyms_cmds \
16738 archive_cmds \
16739 archive_expsym_cmds \
16740 module_cmds \
16741 module_expsym_cmds \
16742 export_symbols_cmds \
16743 prelink_cmds \
16744 postinstall_cmds \
16745 postuninstall_cmds \
16746 finish_cmds \
16747 sys_lib_search_path_spec \
16748 sys_lib_dlsearch_path_spec \
16749 old_archive_cmds_CXX \
16750 old_archive_from_new_cmds_CXX \
16751 old_archive_from_expsyms_cmds_CXX \
16752 archive_cmds_CXX \
16753 archive_expsym_cmds_CXX \
16754 module_cmds_CXX \
16755 module_expsym_cmds_CXX \
16756 export_symbols_cmds_CXX \
16757 prelink_cmds_CXX; do
16758     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16759     *[\\\\\\\`\\"\\\$]*)
16760       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16761       ;;
16762     *)
16763       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16764       ;;
16765     esac
16766 done
16767
16768 # Fix-up fallback echo if it was mangled by the above quoting rules.
16769 case \$lt_ECHO in
16770 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16771   ;;
16772 esac
16773
16774 ac_aux_dir='$ac_aux_dir'
16775 xsi_shell='$xsi_shell'
16776 lt_shell_append='$lt_shell_append'
16777
16778 # See if we are running on zsh, and set the options which allow our
16779 # commands through without removal of \ escapes INIT.
16780 if test -n "\${ZSH_VERSION+set}" ; then
16781    setopt NO_GLOB_SUBST
16782 fi
16783
16784
16785     PACKAGE='$PACKAGE'
16786     VERSION='$VERSION'
16787     TIMESTAMP='$TIMESTAMP'
16788     RM='$RM'
16789     ofile='$ofile'
16790
16791
16792
16793
16794
16795
16796 _ACEOF
16797
16798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16799
16800 # Handling of arguments.
16801 for ac_config_target in $ac_config_targets
16802 do
16803   case $ac_config_target in
16804     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16805     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16806     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16807     "include/gc_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
16808     "include/gc_ext_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;;
16809     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16810     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16811     "threads.mk") CONFIG_FILES="$CONFIG_FILES threads.mk" ;;
16812
16813   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16814   esac
16815 done
16816
16817
16818 # If the user did not use the arguments to specify the items to instantiate,
16819 # then the envvar interface is used.  Set only those that are not.
16820 # We use the long form for the default assignment because of an extremely
16821 # bizarre bug on SunOS 4.1.3.
16822 if $ac_need_defaults; then
16823   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16824   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16825   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16826 fi
16827
16828 # Have a temporary directory for convenience.  Make it in the build tree
16829 # simply because there is no reason against having it here, and in addition,
16830 # creating and moving files from /tmp can sometimes cause problems.
16831 # Hook for its removal unless debugging.
16832 # Note that there is a small window in which the directory will not be cleaned:
16833 # after its creation but before its name has been assigned to `$tmp'.
16834 $debug ||
16835 {
16836   tmp=
16837   trap 'exit_status=$?
16838   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16839 ' 0
16840   trap 'as_fn_exit 1' 1 2 13 15
16841 }
16842 # Create a (secure) tmp directory for tmp files.
16843
16844 {
16845   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16846   test -n "$tmp" && test -d "$tmp"
16847 }  ||
16848 {
16849   tmp=./conf$$-$RANDOM
16850   (umask 077 && mkdir "$tmp")
16851 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16852
16853 # Set up the scripts for CONFIG_FILES section.
16854 # No need to generate them if there are no CONFIG_FILES.
16855 # This happens for instance with `./config.status config.h'.
16856 if test -n "$CONFIG_FILES"; then
16857
16858
16859 ac_cr=`echo X | tr X '\015'`
16860 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16861 # But we know of no other shell where ac_cr would be empty at this
16862 # point, so we can use a bashism as a fallback.
16863 if test "x$ac_cr" = x; then
16864   eval ac_cr=\$\'\\r\'
16865 fi
16866 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16867 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16868   ac_cs_awk_cr='\r'
16869 else
16870   ac_cs_awk_cr=$ac_cr
16871 fi
16872
16873 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16874 _ACEOF
16875
16876
16877 {
16878   echo "cat >conf$$subs.awk <<_ACEOF" &&
16879   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16880   echo "_ACEOF"
16881 } >conf$$subs.sh ||
16882   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16883 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16884 ac_delim='%!_!# '
16885 for ac_last_try in false false false false false :; do
16886   . ./conf$$subs.sh ||
16887     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16888
16889   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16890   if test $ac_delim_n = $ac_delim_num; then
16891     break
16892   elif $ac_last_try; then
16893     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16894   else
16895     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16896   fi
16897 done
16898 rm -f conf$$subs.sh
16899
16900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16901 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16902 _ACEOF
16903 sed -n '
16904 h
16905 s/^/S["/; s/!.*/"]=/
16906 p
16907 g
16908 s/^[^!]*!//
16909 :repl
16910 t repl
16911 s/'"$ac_delim"'$//
16912 t delim
16913 :nl
16914 h
16915 s/\(.\{148\}\).*/\1/
16916 t more1
16917 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16918 p
16919 n
16920 b repl
16921 :more1
16922 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16923 p
16924 g
16925 s/.\{148\}//
16926 t nl
16927 :delim
16928 h
16929 s/\(.\{148\}\).*/\1/
16930 t more2
16931 s/["\\]/\\&/g; s/^/"/; s/$/"/
16932 p
16933 b
16934 :more2
16935 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16936 p
16937 g
16938 s/.\{148\}//
16939 t delim
16940 ' <conf$$subs.awk | sed '
16941 /^[^""]/{
16942   N
16943   s/\n//
16944 }
16945 ' >>$CONFIG_STATUS || ac_write_fail=1
16946 rm -f conf$$subs.awk
16947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16948 _ACAWK
16949 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16950   for (key in S) S_is_set[key] = 1
16951   FS = "\a"
16952
16953 }
16954 {
16955   line = $ 0
16956   nfields = split(line, field, "@")
16957   substed = 0
16958   len = length(field[1])
16959   for (i = 2; i < nfields; i++) {
16960     key = field[i]
16961     keylen = length(key)
16962     if (S_is_set[key]) {
16963       value = S[key]
16964       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16965       len += length(value) + length(field[++i])
16966       substed = 1
16967     } else
16968       len += 1 + keylen
16969   }
16970
16971   print line
16972 }
16973
16974 _ACAWK
16975 _ACEOF
16976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16977 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16978   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16979 else
16980   cat
16981 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16982   || as_fn_error "could not setup config files machinery" "$LINENO" 5
16983 _ACEOF
16984
16985 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16986 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16987 # trailing colons and then remove the whole line if VPATH becomes empty
16988 # (actually we leave an empty line to preserve line numbers).
16989 if test "x$srcdir" = x.; then
16990   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16991 s/:*\$(srcdir):*/:/
16992 s/:*\${srcdir}:*/:/
16993 s/:*@srcdir@:*/:/
16994 s/^\([^=]*=[     ]*\):*/\1/
16995 s/:*$//
16996 s/^[^=]*=[       ]*$//
16997 }'
16998 fi
16999
17000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17001 fi # test -n "$CONFIG_FILES"
17002
17003 # Set up the scripts for CONFIG_HEADERS section.
17004 # No need to generate them if there are no CONFIG_HEADERS.
17005 # This happens for instance with `./config.status Makefile'.
17006 if test -n "$CONFIG_HEADERS"; then
17007 cat >"$tmp/defines.awk" <<\_ACAWK ||
17008 BEGIN {
17009 _ACEOF
17010
17011 # Transform confdefs.h into an awk script `defines.awk', embedded as
17012 # here-document in config.status, that substitutes the proper values into
17013 # config.h.in to produce config.h.
17014
17015 # Create a delimiter string that does not exist in confdefs.h, to ease
17016 # handling of long lines.
17017 ac_delim='%!_!# '
17018 for ac_last_try in false false :; do
17019   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17020   if test -z "$ac_t"; then
17021     break
17022   elif $ac_last_try; then
17023     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17024   else
17025     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17026   fi
17027 done
17028
17029 # For the awk script, D is an array of macro values keyed by name,
17030 # likewise P contains macro parameters if any.  Preserve backslash
17031 # newline sequences.
17032
17033 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17034 sed -n '
17035 s/.\{148\}/&'"$ac_delim"'/g
17036 t rset
17037 :rset
17038 s/^[     ]*#[    ]*define[       ][      ]*/ /
17039 t def
17040 d
17041 :def
17042 s/\\$//
17043 t bsnl
17044 s/["\\]/\\&/g
17045 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17046 D["\1"]=" \3"/p
17047 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17048 d
17049 :bsnl
17050 s/["\\]/\\&/g
17051 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17052 D["\1"]=" \3\\\\\\n"\\/p
17053 t cont
17054 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17055 t cont
17056 d
17057 :cont
17058 n
17059 s/.\{148\}/&'"$ac_delim"'/g
17060 t clear
17061 :clear
17062 s/\\$//
17063 t bsnlc
17064 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17065 d
17066 :bsnlc
17067 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17068 b cont
17069 ' <confdefs.h | sed '
17070 s/'"$ac_delim"'/"\\\
17071 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17072
17073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17074   for (key in D) D_is_set[key] = 1
17075   FS = "\a"
17076 }
17077 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17078   line = \$ 0
17079   split(line, arg, " ")
17080   if (arg[1] == "#") {
17081     defundef = arg[2]
17082     mac1 = arg[3]
17083   } else {
17084     defundef = substr(arg[1], 2)
17085     mac1 = arg[2]
17086   }
17087   split(mac1, mac2, "(") #)
17088   macro = mac2[1]
17089   prefix = substr(line, 1, index(line, defundef) - 1)
17090   if (D_is_set[macro]) {
17091     # Preserve the white space surrounding the "#".
17092     print prefix "define", macro P[macro] D[macro]
17093     next
17094   } else {
17095     # Replace #undef with comments.  This is necessary, for example,
17096     # in the case of _POSIX_SOURCE, which is predefined and required
17097     # on some systems where configure will not decide to define it.
17098     if (defundef == "undef") {
17099       print "/*", prefix defundef, macro, "*/"
17100       next
17101     }
17102   }
17103 }
17104 { print }
17105 _ACAWK
17106 _ACEOF
17107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17108   as_fn_error "could not setup config headers machinery" "$LINENO" 5
17109 fi # test -n "$CONFIG_HEADERS"
17110
17111
17112 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17113 shift
17114 for ac_tag
17115 do
17116   case $ac_tag in
17117   :[FHLC]) ac_mode=$ac_tag; continue;;
17118   esac
17119   case $ac_mode$ac_tag in
17120   :[FHL]*:*);;
17121   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17122   :[FH]-) ac_tag=-:-;;
17123   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17124   esac
17125   ac_save_IFS=$IFS
17126   IFS=:
17127   set x $ac_tag
17128   IFS=$ac_save_IFS
17129   shift
17130   ac_file=$1
17131   shift
17132
17133   case $ac_mode in
17134   :L) ac_source=$1;;
17135   :[FH])
17136     ac_file_inputs=
17137     for ac_f
17138     do
17139       case $ac_f in
17140       -) ac_f="$tmp/stdin";;
17141       *) # Look for the file first in the build tree, then in the source tree
17142          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17143          # because $ac_f cannot contain `:'.
17144          test -f "$ac_f" ||
17145            case $ac_f in
17146            [\\/$]*) false;;
17147            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17148            esac ||
17149            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17150       esac
17151       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17152       as_fn_append ac_file_inputs " '$ac_f'"
17153     done
17154
17155     # Let's still pretend it is `configure' which instantiates (i.e., don't
17156     # use $as_me), people would be surprised to read:
17157     #    /* config.h.  Generated by config.status.  */
17158     configure_input='Generated from '`
17159           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17160         `' by configure.'
17161     if test x"$ac_file" != x-; then
17162       configure_input="$ac_file.  $configure_input"
17163       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17164 $as_echo "$as_me: creating $ac_file" >&6;}
17165     fi
17166     # Neutralize special characters interpreted by sed in replacement strings.
17167     case $configure_input in #(
17168     *\&* | *\|* | *\\* )
17169        ac_sed_conf_input=`$as_echo "$configure_input" |
17170        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17171     *) ac_sed_conf_input=$configure_input;;
17172     esac
17173
17174     case $ac_tag in
17175     *:-:* | *:-) cat >"$tmp/stdin" \
17176       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17177     esac
17178     ;;
17179   esac
17180
17181   ac_dir=`$as_dirname -- "$ac_file" ||
17182 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17183          X"$ac_file" : 'X\(//\)[^/]' \| \
17184          X"$ac_file" : 'X\(//\)$' \| \
17185          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17186 $as_echo X"$ac_file" |
17187     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17188             s//\1/
17189             q
17190           }
17191           /^X\(\/\/\)[^/].*/{
17192             s//\1/
17193             q
17194           }
17195           /^X\(\/\/\)$/{
17196             s//\1/
17197             q
17198           }
17199           /^X\(\/\).*/{
17200             s//\1/
17201             q
17202           }
17203           s/.*/./; q'`
17204   as_dir="$ac_dir"; as_fn_mkdir_p
17205   ac_builddir=.
17206
17207 case "$ac_dir" in
17208 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17209 *)
17210   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17211   # A ".." for each directory in $ac_dir_suffix.
17212   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17213   case $ac_top_builddir_sub in
17214   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17215   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17216   esac ;;
17217 esac
17218 ac_abs_top_builddir=$ac_pwd
17219 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17220 # for backward compatibility:
17221 ac_top_builddir=$ac_top_build_prefix
17222
17223 case $srcdir in
17224   .)  # We are building in place.
17225     ac_srcdir=.
17226     ac_top_srcdir=$ac_top_builddir_sub
17227     ac_abs_top_srcdir=$ac_pwd ;;
17228   [\\/]* | ?:[\\/]* )  # Absolute name.
17229     ac_srcdir=$srcdir$ac_dir_suffix;
17230     ac_top_srcdir=$srcdir
17231     ac_abs_top_srcdir=$srcdir ;;
17232   *) # Relative name.
17233     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17234     ac_top_srcdir=$ac_top_build_prefix$srcdir
17235     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17236 esac
17237 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17238
17239
17240   case $ac_mode in
17241   :F)
17242   #
17243   # CONFIG_FILE
17244   #
17245
17246   case $INSTALL in
17247   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17248   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17249   esac
17250   ac_MKDIR_P=$MKDIR_P
17251   case $MKDIR_P in
17252   [\\/$]* | ?:[\\/]* ) ;;
17253   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17254   esac
17255 _ACEOF
17256
17257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17258 # If the template does not know about datarootdir, expand it.
17259 # FIXME: This hack should be removed a few years after 2.60.
17260 ac_datarootdir_hack=; ac_datarootdir_seen=
17261 ac_sed_dataroot='
17262 /datarootdir/ {
17263   p
17264   q
17265 }
17266 /@datadir@/p
17267 /@docdir@/p
17268 /@infodir@/p
17269 /@localedir@/p
17270 /@mandir@/p'
17271 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17272 *datarootdir*) ac_datarootdir_seen=yes;;
17273 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17274   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17275 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17276 _ACEOF
17277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17278   ac_datarootdir_hack='
17279   s&@datadir@&$datadir&g
17280   s&@docdir@&$docdir&g
17281   s&@infodir@&$infodir&g
17282   s&@localedir@&$localedir&g
17283   s&@mandir@&$mandir&g
17284   s&\\\${datarootdir}&$datarootdir&g' ;;
17285 esac
17286 _ACEOF
17287
17288 # Neutralize VPATH when `$srcdir' = `.'.
17289 # Shell code in configure.ac might set extrasub.
17290 # FIXME: do we really want to maintain this feature?
17291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17292 ac_sed_extra="$ac_vpsub
17293 $extrasub
17294 _ACEOF
17295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17296 :t
17297 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17298 s|@configure_input@|$ac_sed_conf_input|;t t
17299 s&@top_builddir@&$ac_top_builddir_sub&;t t
17300 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17301 s&@srcdir@&$ac_srcdir&;t t
17302 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17303 s&@top_srcdir@&$ac_top_srcdir&;t t
17304 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17305 s&@builddir@&$ac_builddir&;t t
17306 s&@abs_builddir@&$ac_abs_builddir&;t t
17307 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17308 s&@INSTALL@&$ac_INSTALL&;t t
17309 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17310 $ac_datarootdir_hack
17311 "
17312 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17313   || as_fn_error "could not create $ac_file" "$LINENO" 5
17314
17315 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17316   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17317   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17318   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17319 which seems to be undefined.  Please make sure it is defined." >&5
17320 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17321 which seems to be undefined.  Please make sure it is defined." >&2;}
17322
17323   rm -f "$tmp/stdin"
17324   case $ac_file in
17325   -) cat "$tmp/out" && rm -f "$tmp/out";;
17326   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17327   esac \
17328   || as_fn_error "could not create $ac_file" "$LINENO" 5
17329  ;;
17330   :H)
17331   #
17332   # CONFIG_HEADER
17333   #
17334   if test x"$ac_file" != x-; then
17335     {
17336       $as_echo "/* $configure_input  */" \
17337       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17338     } >"$tmp/config.h" \
17339       || as_fn_error "could not create $ac_file" "$LINENO" 5
17340     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17341       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17342 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17343     else
17344       rm -f "$ac_file"
17345       mv "$tmp/config.h" "$ac_file" \
17346         || as_fn_error "could not create $ac_file" "$LINENO" 5
17347     fi
17348   else
17349     $as_echo "/* $configure_input  */" \
17350       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17351       || as_fn_error "could not create -" "$LINENO" 5
17352   fi
17353 # Compute "$ac_file"'s index in $config_headers.
17354 _am_arg="$ac_file"
17355 _am_stamp_count=1
17356 for _am_header in $config_headers :; do
17357   case $_am_header in
17358     $_am_arg | $_am_arg:* )
17359       break ;;
17360     * )
17361       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17362   esac
17363 done
17364 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17365 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17366          X"$_am_arg" : 'X\(//\)[^/]' \| \
17367          X"$_am_arg" : 'X\(//\)$' \| \
17368          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17369 $as_echo X"$_am_arg" |
17370     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17371             s//\1/
17372             q
17373           }
17374           /^X\(\/\/\)[^/].*/{
17375             s//\1/
17376             q
17377           }
17378           /^X\(\/\/\)$/{
17379             s//\1/
17380             q
17381           }
17382           /^X\(\/\).*/{
17383             s//\1/
17384             q
17385           }
17386           s/.*/./; q'`/stamp-h$_am_stamp_count
17387  ;;
17388
17389   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17390 $as_echo "$as_me: executing $ac_file commands" >&6;}
17391  ;;
17392   esac
17393
17394
17395   case $ac_file$ac_mode in
17396     "default-1":C)
17397 # Only add multilib support code if we just rebuilt the top-level
17398 # Makefile.
17399 case " $CONFIG_FILES " in
17400  *" Makefile "*)
17401    ac_file=Makefile . ${multi_basedir}/config-ml.in
17402    ;;
17403 esac ;;
17404     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17405   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17406   # are listed without --file.  Let's play safe and only enable the eval
17407   # if we detect the quoting.
17408   case $CONFIG_FILES in
17409   *\'*) eval set x "$CONFIG_FILES" ;;
17410   *)   set x $CONFIG_FILES ;;
17411   esac
17412   shift
17413   for mf
17414   do
17415     # Strip MF so we end up with the name of the file.
17416     mf=`echo "$mf" | sed -e 's/:.*$//'`
17417     # Check whether this is an Automake generated Makefile or not.
17418     # We used to match only the files named `Makefile.in', but
17419     # some people rename them; so instead we look at the file content.
17420     # Grep'ing the first line is not enough: some people post-process
17421     # each Makefile.in and add a new line on top of each file to say so.
17422     # Grep'ing the whole file is not good either: AIX grep has a line
17423     # limit of 2048, but all sed's we know have understand at least 4000.
17424     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17425       dirpart=`$as_dirname -- "$mf" ||
17426 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17427          X"$mf" : 'X\(//\)[^/]' \| \
17428          X"$mf" : 'X\(//\)$' \| \
17429          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17430 $as_echo X"$mf" |
17431     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17432             s//\1/
17433             q
17434           }
17435           /^X\(\/\/\)[^/].*/{
17436             s//\1/
17437             q
17438           }
17439           /^X\(\/\/\)$/{
17440             s//\1/
17441             q
17442           }
17443           /^X\(\/\).*/{
17444             s//\1/
17445             q
17446           }
17447           s/.*/./; q'`
17448     else
17449       continue
17450     fi
17451     # Extract the definition of DEPDIR, am__include, and am__quote
17452     # from the Makefile without running `make'.
17453     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17454     test -z "$DEPDIR" && continue
17455     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17456     test -z "am__include" && continue
17457     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17458     # When using ansi2knr, U may be empty or an underscore; expand it
17459     U=`sed -n 's/^U = //p' < "$mf"`
17460     # Find all dependency output files, they are included files with
17461     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17462     # simplest approach to changing $(DEPDIR) to its actual value in the
17463     # expansion.
17464     for file in `sed -n "
17465       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17466          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17467       # Make sure the directory exists.
17468       test -f "$dirpart/$file" && continue
17469       fdir=`$as_dirname -- "$file" ||
17470 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17471          X"$file" : 'X\(//\)[^/]' \| \
17472          X"$file" : 'X\(//\)$' \| \
17473          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17474 $as_echo X"$file" |
17475     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17476             s//\1/
17477             q
17478           }
17479           /^X\(\/\/\)[^/].*/{
17480             s//\1/
17481             q
17482           }
17483           /^X\(\/\/\)$/{
17484             s//\1/
17485             q
17486           }
17487           /^X\(\/\).*/{
17488             s//\1/
17489             q
17490           }
17491           s/.*/./; q'`
17492       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17493       # echo "creating $dirpart/$file"
17494       echo '# dummy' > "$dirpart/$file"
17495     done
17496   done
17497 }
17498  ;;
17499     "libtool":C)
17500
17501     # See if we are running on zsh, and set the options which allow our
17502     # commands through without removal of \ escapes.
17503     if test -n "${ZSH_VERSION+set}" ; then
17504       setopt NO_GLOB_SUBST
17505     fi
17506
17507     cfgfile="${ofile}T"
17508     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17509     $RM "$cfgfile"
17510
17511     cat <<_LT_EOF >> "$cfgfile"
17512 #! $SHELL
17513
17514 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17515 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17516 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17517 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17518 #
17519 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17520 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17521 #   Written by Gordon Matzigkeit, 1996
17522 #
17523 #   This file is part of GNU Libtool.
17524 #
17525 # GNU Libtool is free software; you can redistribute it and/or
17526 # modify it under the terms of the GNU General Public License as
17527 # published by the Free Software Foundation; either version 2 of
17528 # the License, or (at your option) any later version.
17529 #
17530 # As a special exception to the GNU General Public License,
17531 # if you distribute this file as part of a program or library that
17532 # is built using GNU Libtool, you may include this file under the
17533 # same distribution terms that you use for the rest of that program.
17534 #
17535 # GNU Libtool is distributed in the hope that it will be useful,
17536 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17537 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17538 # GNU General Public License for more details.
17539 #
17540 # You should have received a copy of the GNU General Public License
17541 # along with GNU Libtool; see the file COPYING.  If not, a copy
17542 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17543 # obtained by writing to the Free Software Foundation, Inc.,
17544 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17545
17546
17547 # The names of the tagged configurations supported by this script.
17548 available_tags="CXX "
17549
17550 # ### BEGIN LIBTOOL CONFIG
17551
17552 # Which release of libtool.m4 was used?
17553 macro_version=$macro_version
17554 macro_revision=$macro_revision
17555
17556 # Whether or not to build shared libraries.
17557 build_libtool_libs=$enable_shared
17558
17559 # Whether or not to build static libraries.
17560 build_old_libs=$enable_static
17561
17562 # What type of objects to build.
17563 pic_mode=$pic_mode
17564
17565 # Whether or not to optimize for fast installation.
17566 fast_install=$enable_fast_install
17567
17568 # The host system.
17569 host_alias=$host_alias
17570 host=$host
17571 host_os=$host_os
17572
17573 # The build system.
17574 build_alias=$build_alias
17575 build=$build
17576 build_os=$build_os
17577
17578 # A sed program that does not truncate output.
17579 SED=$lt_SED
17580
17581 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17582 Xsed="\$SED -e 1s/^X//"
17583
17584 # A grep program that handles long lines.
17585 GREP=$lt_GREP
17586
17587 # An ERE matcher.
17588 EGREP=$lt_EGREP
17589
17590 # A literal string matcher.
17591 FGREP=$lt_FGREP
17592
17593 # A BSD- or MS-compatible name lister.
17594 NM=$lt_NM
17595
17596 # Whether we need soft or hard links.
17597 LN_S=$lt_LN_S
17598
17599 # What is the maximum length of a command?
17600 max_cmd_len=$max_cmd_len
17601
17602 # Object file suffix (normally "o").
17603 objext=$ac_objext
17604
17605 # Executable file suffix (normally "").
17606 exeext=$exeext
17607
17608 # whether the shell understands "unset".
17609 lt_unset=$lt_unset
17610
17611 # turn spaces into newlines.
17612 SP2NL=$lt_lt_SP2NL
17613
17614 # turn newlines into spaces.
17615 NL2SP=$lt_lt_NL2SP
17616
17617 # How to create reloadable object files.
17618 reload_flag=$lt_reload_flag
17619 reload_cmds=$lt_reload_cmds
17620
17621 # An object symbol dumper.
17622 OBJDUMP=$lt_OBJDUMP
17623
17624 # Method to check whether dependent libraries are shared objects.
17625 deplibs_check_method=$lt_deplibs_check_method
17626
17627 # Command to use when deplibs_check_method == "file_magic".
17628 file_magic_cmd=$lt_file_magic_cmd
17629
17630 # The archiver.
17631 AR=$lt_AR
17632 AR_FLAGS=$lt_AR_FLAGS
17633
17634 # A symbol stripping program.
17635 STRIP=$lt_STRIP
17636
17637 # Commands used to install an old-style archive.
17638 RANLIB=$lt_RANLIB
17639 old_postinstall_cmds=$lt_old_postinstall_cmds
17640 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17641
17642 # A C compiler.
17643 LTCC=$lt_CC
17644
17645 # LTCC compiler flags.
17646 LTCFLAGS=$lt_CFLAGS
17647
17648 # Take the output of nm and produce a listing of raw symbols and C names.
17649 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17650
17651 # Transform the output of nm in a proper C declaration.
17652 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17653
17654 # Transform the output of nm in a C name address pair.
17655 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17656
17657 # Transform the output of nm in a C name address pair when lib prefix is needed.
17658 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17659
17660 # The name of the directory that contains temporary libtool files.
17661 objdir=$objdir
17662
17663 # Shell to use when invoking shell scripts.
17664 SHELL=$lt_SHELL
17665
17666 # An echo program that does not interpret backslashes.
17667 ECHO=$lt_ECHO
17668
17669 # Used to examine libraries when file_magic_cmd begins with "file".
17670 MAGIC_CMD=$MAGIC_CMD
17671
17672 # Must we lock files when doing compilation?
17673 need_locks=$lt_need_locks
17674
17675 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17676 DSYMUTIL=$lt_DSYMUTIL
17677
17678 # Tool to change global to local symbols on Mac OS X.
17679 NMEDIT=$lt_NMEDIT
17680
17681 # Tool to manipulate fat objects and archives on Mac OS X.
17682 LIPO=$lt_LIPO
17683
17684 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17685 OTOOL=$lt_OTOOL
17686
17687 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17688 OTOOL64=$lt_OTOOL64
17689
17690 # Old archive suffix (normally "a").
17691 libext=$libext
17692
17693 # Shared library suffix (normally ".so").
17694 shrext_cmds=$lt_shrext_cmds
17695
17696 # The commands to extract the exported symbol list from a shared archive.
17697 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17698
17699 # Variables whose values should be saved in libtool wrapper scripts and
17700 # restored at link time.
17701 variables_saved_for_relink=$lt_variables_saved_for_relink
17702
17703 # Do we need the "lib" prefix for modules?
17704 need_lib_prefix=$need_lib_prefix
17705
17706 # Do we need a version for libraries?
17707 need_version=$need_version
17708
17709 # Library versioning type.
17710 version_type=$version_type
17711
17712 # Shared library runtime path variable.
17713 runpath_var=$runpath_var
17714
17715 # Shared library path variable.
17716 shlibpath_var=$shlibpath_var
17717
17718 # Is shlibpath searched before the hard-coded library search path?
17719 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17720
17721 # Format of library name prefix.
17722 libname_spec=$lt_libname_spec
17723
17724 # List of archive names.  First name is the real one, the rest are links.
17725 # The last name is the one that the linker finds with -lNAME
17726 library_names_spec=$lt_library_names_spec
17727
17728 # The coded name of the library, if different from the real name.
17729 soname_spec=$lt_soname_spec
17730
17731 # Command to use after installation of a shared archive.
17732 postinstall_cmds=$lt_postinstall_cmds
17733
17734 # Command to use after uninstallation of a shared archive.
17735 postuninstall_cmds=$lt_postuninstall_cmds
17736
17737 # Commands used to finish a libtool library installation in a directory.
17738 finish_cmds=$lt_finish_cmds
17739
17740 # As "finish_cmds", except a single script fragment to be evaled but
17741 # not shown.
17742 finish_eval=$lt_finish_eval
17743
17744 # Whether we should hardcode library paths into libraries.
17745 hardcode_into_libs=$hardcode_into_libs
17746
17747 # Compile-time system search path for libraries.
17748 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17749
17750 # Run-time system search path for libraries.
17751 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17752
17753 # Whether dlopen is supported.
17754 dlopen_support=$enable_dlopen
17755
17756 # Whether dlopen of programs is supported.
17757 dlopen_self=$enable_dlopen_self
17758
17759 # Whether dlopen of statically linked programs is supported.
17760 dlopen_self_static=$enable_dlopen_self_static
17761
17762 # Commands to strip libraries.
17763 old_striplib=$lt_old_striplib
17764 striplib=$lt_striplib
17765
17766
17767 # The linker used to build libraries.
17768 LD=$lt_LD
17769
17770 # Commands used to build an old-style archive.
17771 old_archive_cmds=$lt_old_archive_cmds
17772
17773 # A language specific compiler.
17774 CC=$lt_compiler
17775
17776 # Is the compiler the GNU compiler?
17777 with_gcc=$GCC
17778
17779 # Compiler flag to turn off builtin functions.
17780 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17781
17782 # How to pass a linker flag through the compiler.
17783 wl=$lt_lt_prog_compiler_wl
17784
17785 # Additional compiler flags for building library objects.
17786 pic_flag=$lt_lt_prog_compiler_pic
17787
17788 # Compiler flag to prevent dynamic linking.
17789 link_static_flag=$lt_lt_prog_compiler_static
17790
17791 # Does compiler simultaneously support -c and -o options?
17792 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17793
17794 # Whether or not to add -lc for building shared libraries.
17795 build_libtool_need_lc=$archive_cmds_need_lc
17796
17797 # Whether or not to disallow shared libs when runtime libs are static.
17798 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17799
17800 # Compiler flag to allow reflexive dlopens.
17801 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17802
17803 # Compiler flag to generate shared objects directly from archives.
17804 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17805
17806 # Whether the compiler copes with passing no objects directly.
17807 compiler_needs_object=$lt_compiler_needs_object
17808
17809 # Create an old-style archive from a shared archive.
17810 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17811
17812 # Create a temporary old-style archive to link instead of a shared archive.
17813 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17814
17815 # Commands used to build a shared archive.
17816 archive_cmds=$lt_archive_cmds
17817 archive_expsym_cmds=$lt_archive_expsym_cmds
17818
17819 # Commands used to build a loadable module if different from building
17820 # a shared archive.
17821 module_cmds=$lt_module_cmds
17822 module_expsym_cmds=$lt_module_expsym_cmds
17823
17824 # Whether we are building with GNU ld or not.
17825 with_gnu_ld=$lt_with_gnu_ld
17826
17827 # Flag that allows shared libraries with undefined symbols to be built.
17828 allow_undefined_flag=$lt_allow_undefined_flag
17829
17830 # Flag that enforces no undefined symbols.
17831 no_undefined_flag=$lt_no_undefined_flag
17832
17833 # Flag to hardcode \$libdir into a binary during linking.
17834 # This must work even if \$libdir does not exist
17835 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17836
17837 # If ld is used when linking, flag to hardcode \$libdir into a binary
17838 # during linking.  This must work even if \$libdir does not exist.
17839 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17840
17841 # Whether we need a single "-rpath" flag with a separated argument.
17842 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17843
17844 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17845 # DIR into the resulting binary.
17846 hardcode_direct=$hardcode_direct
17847
17848 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17849 # DIR into the resulting binary and the resulting library dependency is
17850 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17851 # library is relocated.
17852 hardcode_direct_absolute=$hardcode_direct_absolute
17853
17854 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17855 # into the resulting binary.
17856 hardcode_minus_L=$hardcode_minus_L
17857
17858 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17859 # into the resulting binary.
17860 hardcode_shlibpath_var=$hardcode_shlibpath_var
17861
17862 # Set to "yes" if building a shared library automatically hardcodes DIR
17863 # into the library and all subsequent libraries and executables linked
17864 # against it.
17865 hardcode_automatic=$hardcode_automatic
17866
17867 # Set to yes if linker adds runtime paths of dependent libraries
17868 # to runtime path list.
17869 inherit_rpath=$inherit_rpath
17870
17871 # Whether libtool must link a program against all its dependency libraries.
17872 link_all_deplibs=$link_all_deplibs
17873
17874 # Fix the shell variable \$srcfile for the compiler.
17875 fix_srcfile_path=$lt_fix_srcfile_path
17876
17877 # Set to "yes" if exported symbols are required.
17878 always_export_symbols=$always_export_symbols
17879
17880 # The commands to list exported symbols.
17881 export_symbols_cmds=$lt_export_symbols_cmds
17882
17883 # Symbols that should not be listed in the preloaded symbols.
17884 exclude_expsyms=$lt_exclude_expsyms
17885
17886 # Symbols that must always be exported.
17887 include_expsyms=$lt_include_expsyms
17888
17889 # Commands necessary for linking programs (against libraries) with templates.
17890 prelink_cmds=$lt_prelink_cmds
17891
17892 # Specify filename containing input files.
17893 file_list_spec=$lt_file_list_spec
17894
17895 # How to hardcode a shared library path into an executable.
17896 hardcode_action=$hardcode_action
17897
17898 # The directories searched by this compiler when creating a shared library.
17899 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17900
17901 # Dependencies to place before and after the objects being linked to
17902 # create a shared library.
17903 predep_objects=$lt_predep_objects
17904 postdep_objects=$lt_postdep_objects
17905 predeps=$lt_predeps
17906 postdeps=$lt_postdeps
17907
17908 # The library search path used internally by the compiler when linking
17909 # a shared library.
17910 compiler_lib_search_path=$lt_compiler_lib_search_path
17911
17912 # ### END LIBTOOL CONFIG
17913
17914 _LT_EOF
17915
17916   case $host_os in
17917   aix3*)
17918     cat <<\_LT_EOF >> "$cfgfile"
17919 # AIX sometimes has problems with the GCC collect2 program.  For some
17920 # reason, if we set the COLLECT_NAMES environment variable, the problems
17921 # vanish in a puff of smoke.
17922 if test "X${COLLECT_NAMES+set}" != Xset; then
17923   COLLECT_NAMES=
17924   export COLLECT_NAMES
17925 fi
17926 _LT_EOF
17927     ;;
17928   esac
17929
17930
17931 ltmain="$ac_aux_dir/ltmain.sh"
17932
17933
17934   # We use sed instead of cat because bash on DJGPP gets confused if
17935   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17936   # text mode, it properly converts lines to CR/LF.  This bash problem
17937   # is reportedly fixed, but why not run on old versions too?
17938   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17939     || (rm -f "$cfgfile"; exit 1)
17940
17941   case $xsi_shell in
17942   yes)
17943     cat << \_LT_EOF >> "$cfgfile"
17944
17945 # func_dirname file append nondir_replacement
17946 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17947 # otherwise set result to NONDIR_REPLACEMENT.
17948 func_dirname ()
17949 {
17950   case ${1} in
17951     */*) func_dirname_result="${1%/*}${2}" ;;
17952     *  ) func_dirname_result="${3}" ;;
17953   esac
17954 }
17955
17956 # func_basename file
17957 func_basename ()
17958 {
17959   func_basename_result="${1##*/}"
17960 }
17961
17962 # func_dirname_and_basename file append nondir_replacement
17963 # perform func_basename and func_dirname in a single function
17964 # call:
17965 #   dirname:  Compute the dirname of FILE.  If nonempty,
17966 #             add APPEND to the result, otherwise set result
17967 #             to NONDIR_REPLACEMENT.
17968 #             value returned in "$func_dirname_result"
17969 #   basename: Compute filename of FILE.
17970 #             value retuned in "$func_basename_result"
17971 # Implementation must be kept synchronized with func_dirname
17972 # and func_basename. For efficiency, we do not delegate to
17973 # those functions but instead duplicate the functionality here.
17974 func_dirname_and_basename ()
17975 {
17976   case ${1} in
17977     */*) func_dirname_result="${1%/*}${2}" ;;
17978     *  ) func_dirname_result="${3}" ;;
17979   esac
17980   func_basename_result="${1##*/}"
17981 }
17982
17983 # func_stripname prefix suffix name
17984 # strip PREFIX and SUFFIX off of NAME.
17985 # PREFIX and SUFFIX must not contain globbing or regex special
17986 # characters, hashes, percent signs, but SUFFIX may contain a leading
17987 # dot (in which case that matches only a dot).
17988 func_stripname ()
17989 {
17990   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17991   # positional parameters, so assign one to ordinary parameter first.
17992   func_stripname_result=${3}
17993   func_stripname_result=${func_stripname_result#"${1}"}
17994   func_stripname_result=${func_stripname_result%"${2}"}
17995 }
17996
17997 # func_opt_split
17998 func_opt_split ()
17999 {
18000   func_opt_split_opt=${1%%=*}
18001   func_opt_split_arg=${1#*=}
18002 }
18003
18004 # func_lo2o object
18005 func_lo2o ()
18006 {
18007   case ${1} in
18008     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18009     *)    func_lo2o_result=${1} ;;
18010   esac
18011 }
18012
18013 # func_xform libobj-or-source
18014 func_xform ()
18015 {
18016   func_xform_result=${1%.*}.lo
18017 }
18018
18019 # func_arith arithmetic-term...
18020 func_arith ()
18021 {
18022   func_arith_result=$(( $* ))
18023 }
18024
18025 # func_len string
18026 # STRING may not start with a hyphen.
18027 func_len ()
18028 {
18029   func_len_result=${#1}
18030 }
18031
18032 _LT_EOF
18033     ;;
18034   *) # Bourne compatible functions.
18035     cat << \_LT_EOF >> "$cfgfile"
18036
18037 # func_dirname file append nondir_replacement
18038 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18039 # otherwise set result to NONDIR_REPLACEMENT.
18040 func_dirname ()
18041 {
18042   # Extract subdirectory from the argument.
18043   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18044   if test "X$func_dirname_result" = "X${1}"; then
18045     func_dirname_result="${3}"
18046   else
18047     func_dirname_result="$func_dirname_result${2}"
18048   fi
18049 }
18050
18051 # func_basename file
18052 func_basename ()
18053 {
18054   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18055 }
18056
18057
18058 # func_stripname prefix suffix name
18059 # strip PREFIX and SUFFIX off of NAME.
18060 # PREFIX and SUFFIX must not contain globbing or regex special
18061 # characters, hashes, percent signs, but SUFFIX may contain a leading
18062 # dot (in which case that matches only a dot).
18063 # func_strip_suffix prefix name
18064 func_stripname ()
18065 {
18066   case ${2} in
18067     .*) func_stripname_result=`$ECHO "X${3}" \
18068            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18069     *)  func_stripname_result=`$ECHO "X${3}" \
18070            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18071   esac
18072 }
18073
18074 # sed scripts:
18075 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18076 my_sed_long_arg='1s/^-[^=]*=//'
18077
18078 # func_opt_split
18079 func_opt_split ()
18080 {
18081   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18082   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18083 }
18084
18085 # func_lo2o object
18086 func_lo2o ()
18087 {
18088   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18089 }
18090
18091 # func_xform libobj-or-source
18092 func_xform ()
18093 {
18094   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18095 }
18096
18097 # func_arith arithmetic-term...
18098 func_arith ()
18099 {
18100   func_arith_result=`expr "$@"`
18101 }
18102
18103 # func_len string
18104 # STRING may not start with a hyphen.
18105 func_len ()
18106 {
18107   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18108 }
18109
18110 _LT_EOF
18111 esac
18112
18113 case $lt_shell_append in
18114   yes)
18115     cat << \_LT_EOF >> "$cfgfile"
18116
18117 # func_append var value
18118 # Append VALUE to the end of shell variable VAR.
18119 func_append ()
18120 {
18121   eval "$1+=\$2"
18122 }
18123 _LT_EOF
18124     ;;
18125   *)
18126     cat << \_LT_EOF >> "$cfgfile"
18127
18128 # func_append var value
18129 # Append VALUE to the end of shell variable VAR.
18130 func_append ()
18131 {
18132   eval "$1=\$$1\$2"
18133 }
18134
18135 _LT_EOF
18136     ;;
18137   esac
18138
18139
18140   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18141     || (rm -f "$cfgfile"; exit 1)
18142
18143   mv -f "$cfgfile" "$ofile" ||
18144     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18145   chmod +x "$ofile"
18146
18147
18148     cat <<_LT_EOF >> "$ofile"
18149
18150 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18151
18152 # The linker used to build libraries.
18153 LD=$lt_LD_CXX
18154
18155 # Commands used to build an old-style archive.
18156 old_archive_cmds=$lt_old_archive_cmds_CXX
18157
18158 # A language specific compiler.
18159 CC=$lt_compiler_CXX
18160
18161 # Is the compiler the GNU compiler?
18162 with_gcc=$GCC_CXX
18163
18164 # Compiler flag to turn off builtin functions.
18165 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18166
18167 # How to pass a linker flag through the compiler.
18168 wl=$lt_lt_prog_compiler_wl_CXX
18169
18170 # Additional compiler flags for building library objects.
18171 pic_flag=$lt_lt_prog_compiler_pic_CXX
18172
18173 # Compiler flag to prevent dynamic linking.
18174 link_static_flag=$lt_lt_prog_compiler_static_CXX
18175
18176 # Does compiler simultaneously support -c and -o options?
18177 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18178
18179 # Whether or not to add -lc for building shared libraries.
18180 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18181
18182 # Whether or not to disallow shared libs when runtime libs are static.
18183 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18184
18185 # Compiler flag to allow reflexive dlopens.
18186 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18187
18188 # Compiler flag to generate shared objects directly from archives.
18189 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18190
18191 # Whether the compiler copes with passing no objects directly.
18192 compiler_needs_object=$lt_compiler_needs_object_CXX
18193
18194 # Create an old-style archive from a shared archive.
18195 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18196
18197 # Create a temporary old-style archive to link instead of a shared archive.
18198 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18199
18200 # Commands used to build a shared archive.
18201 archive_cmds=$lt_archive_cmds_CXX
18202 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18203
18204 # Commands used to build a loadable module if different from building
18205 # a shared archive.
18206 module_cmds=$lt_module_cmds_CXX
18207 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18208
18209 # Whether we are building with GNU ld or not.
18210 with_gnu_ld=$lt_with_gnu_ld_CXX
18211
18212 # Flag that allows shared libraries with undefined symbols to be built.
18213 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18214
18215 # Flag that enforces no undefined symbols.
18216 no_undefined_flag=$lt_no_undefined_flag_CXX
18217
18218 # Flag to hardcode \$libdir into a binary during linking.
18219 # This must work even if \$libdir does not exist
18220 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18221
18222 # If ld is used when linking, flag to hardcode \$libdir into a binary
18223 # during linking.  This must work even if \$libdir does not exist.
18224 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18225
18226 # Whether we need a single "-rpath" flag with a separated argument.
18227 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18228
18229 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18230 # DIR into the resulting binary.
18231 hardcode_direct=$hardcode_direct_CXX
18232
18233 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18234 # DIR into the resulting binary and the resulting library dependency is
18235 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18236 # library is relocated.
18237 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18238
18239 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18240 # into the resulting binary.
18241 hardcode_minus_L=$hardcode_minus_L_CXX
18242
18243 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18244 # into the resulting binary.
18245 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18246
18247 # Set to "yes" if building a shared library automatically hardcodes DIR
18248 # into the library and all subsequent libraries and executables linked
18249 # against it.
18250 hardcode_automatic=$hardcode_automatic_CXX
18251
18252 # Set to yes if linker adds runtime paths of dependent libraries
18253 # to runtime path list.
18254 inherit_rpath=$inherit_rpath_CXX
18255
18256 # Whether libtool must link a program against all its dependency libraries.
18257 link_all_deplibs=$link_all_deplibs_CXX
18258
18259 # Fix the shell variable \$srcfile for the compiler.
18260 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18261
18262 # Set to "yes" if exported symbols are required.
18263 always_export_symbols=$always_export_symbols_CXX
18264
18265 # The commands to list exported symbols.
18266 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18267
18268 # Symbols that should not be listed in the preloaded symbols.
18269 exclude_expsyms=$lt_exclude_expsyms_CXX
18270
18271 # Symbols that must always be exported.
18272 include_expsyms=$lt_include_expsyms_CXX
18273
18274 # Commands necessary for linking programs (against libraries) with templates.
18275 prelink_cmds=$lt_prelink_cmds_CXX
18276
18277 # Specify filename containing input files.
18278 file_list_spec=$lt_file_list_spec_CXX
18279
18280 # How to hardcode a shared library path into an executable.
18281 hardcode_action=$hardcode_action_CXX
18282
18283 # The directories searched by this compiler when creating a shared library.
18284 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18285
18286 # Dependencies to place before and after the objects being linked to
18287 # create a shared library.
18288 predep_objects=$lt_predep_objects_CXX
18289 postdep_objects=$lt_postdep_objects_CXX
18290 predeps=$lt_predeps_CXX
18291 postdeps=$lt_postdeps_CXX
18292
18293 # The library search path used internally by the compiler when linking
18294 # a shared library.
18295 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18296
18297 # ### END LIBTOOL TAG CONFIG: CXX
18298 _LT_EOF
18299
18300  ;;
18301
18302   esac
18303 done # for ac_tag
18304
18305
18306 as_fn_exit 0
18307 _ACEOF
18308 ac_clean_files=$ac_clean_files_save
18309
18310 test $ac_write_fail = 0 ||
18311   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18312
18313
18314 # configure is writing to config.log, and then calls config.status.
18315 # config.status does its own redirection, appending to config.log.
18316 # Unfortunately, on DOS this fails, as config.log is still kept open
18317 # by configure, so config.status won't be able to write to it; its
18318 # output is simply discarded.  So we exec the FD to /dev/null,
18319 # effectively closing config.log, so it can be properly (re)opened and
18320 # appended to by config.status.  When coming back to configure, we
18321 # need to make the FD available again.
18322 if test "$no_create" != yes; then
18323   ac_cs_success=:
18324   ac_config_status_args=
18325   test "$silent" = yes &&
18326     ac_config_status_args="$ac_config_status_args --quiet"
18327   exec 5>/dev/null
18328   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18329   exec 5>>config.log
18330   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18331   # would make configure fail if this is the last instruction.
18332   $ac_cs_success || as_fn_exit $?
18333 fi
18334 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18335   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18336 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18337 fi
18338