OSDN Git Service

Merge branch 'master' of git://github.com/monaka/binutils
[pf3gnuchains/pf3gnuchains3x.git] / gas / 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="as.h"
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 LIBM
745 ALLOCA
746 GENINSRC_NEVER_FALSE
747 GENINSRC_NEVER_TRUE
748 MAINT
749 MAINTAINER_MODE_FALSE
750 MAINTAINER_MODE_TRUE
751 MSGMERGE
752 MSGFMT
753 MKINSTALLDIRS
754 CATOBJEXT
755 GENCAT
756 INSTOBJEXT
757 DATADIRNAME
758 CATALOGS
759 POSUB
760 GMSGFMT
761 XGETTEXT
762 INCINTL
763 LIBINTL_DEP
764 LIBINTL
765 USE_NLS
766 LEXLIB
767 LEX_OUTPUT_ROOT
768 LEX
769 YFLAGS
770 YACC
771 OPCODES_LIB
772 atof
773 install_tooldir
774 te_file
775 obj_format
776 target_cpu_type
777 extra_objects
778 cgen_cpu_prefix
779 GDBINIT
780 NO_WERROR
781 WARN_CFLAGS
782 OTOOL64
783 OTOOL
784 LIPO
785 NMEDIT
786 DSYMUTIL
787 lt_ECHO
788 RANLIB
789 AR
790 OBJDUMP
791 LN_S
792 NM
793 ac_ct_DUMPBIN
794 DUMPBIN
795 LD
796 FGREP
797 SED
798 LIBTOOL
799 EGREP
800 GREP
801 CPP
802 am__fastdepCC_FALSE
803 am__fastdepCC_TRUE
804 CCDEPMODE
805 AMDEPBACKSLASH
806 AMDEP_FALSE
807 AMDEP_TRUE
808 am__quote
809 am__include
810 DEPDIR
811 am__untar
812 am__tar
813 AMTAR
814 am__leading_dot
815 SET_MAKE
816 AWK
817 mkdir_p
818 MKDIR_P
819 INSTALL_STRIP_PROGRAM
820 STRIP
821 install_sh
822 MAKEINFO
823 AUTOHEADER
824 AUTOMAKE
825 AUTOCONF
826 ACLOCAL
827 VERSION
828 PACKAGE
829 CYGPATH_W
830 am__isrc
831 INSTALL_DATA
832 INSTALL_SCRIPT
833 INSTALL_PROGRAM
834 OBJEXT
835 EXEEXT
836 ac_ct_CC
837 CPPFLAGS
838 LDFLAGS
839 CFLAGS
840 CC
841 target_os
842 target_vendor
843 target_cpu
844 target
845 host_os
846 host_vendor
847 host_cpu
848 host
849 build_os
850 build_vendor
851 build_cpu
852 build
853 target_alias
854 host_alias
855 build_alias
856 LIBS
857 ECHO_T
858 ECHO_N
859 ECHO_C
860 DEFS
861 mandir
862 localedir
863 libdir
864 psdir
865 pdfdir
866 dvidir
867 htmldir
868 infodir
869 docdir
870 oldincludedir
871 includedir
872 localstatedir
873 sharedstatedir
874 sysconfdir
875 datadir
876 datarootdir
877 libexecdir
878 sbindir
879 bindir
880 program_transform_name
881 prefix
882 exec_prefix
883 PACKAGE_URL
884 PACKAGE_BUGREPORT
885 PACKAGE_STRING
886 PACKAGE_VERSION
887 PACKAGE_TARNAME
888 PACKAGE_NAME
889 PATH_SEPARATOR
890 SHELL'
891 ac_subst_files=''
892 ac_user_opts='
893 enable_option_checking
894 enable_dependency_tracking
895 enable_plugins
896 enable_largefile
897 enable_shared
898 enable_static
899 with_pic
900 enable_fast_install
901 with_gnu_ld
902 enable_libtool_lock
903 enable_targets
904 enable_checking
905 enable_werror
906 enable_build_warnings
907 enable_nls
908 enable_maintainer_mode
909 '
910       ac_precious_vars='build_alias
911 host_alias
912 target_alias
913 CC
914 CFLAGS
915 LDFLAGS
916 LIBS
917 CPPFLAGS
918 CPP
919 YACC
920 YFLAGS'
921
922
923 # Initialize some variables set by options.
924 ac_init_help=
925 ac_init_version=false
926 ac_unrecognized_opts=
927 ac_unrecognized_sep=
928 # The variables have the same names as the options, with
929 # dashes changed to underlines.
930 cache_file=/dev/null
931 exec_prefix=NONE
932 no_create=
933 no_recursion=
934 prefix=NONE
935 program_prefix=NONE
936 program_suffix=NONE
937 program_transform_name=s,x,x,
938 silent=
939 site=
940 srcdir=
941 verbose=
942 x_includes=NONE
943 x_libraries=NONE
944
945 # Installation directory options.
946 # These are left unexpanded so users can "make install exec_prefix=/foo"
947 # and all the variables that are supposed to be based on exec_prefix
948 # by default will actually change.
949 # Use braces instead of parens because sh, perl, etc. also accept them.
950 # (The list follows the same order as the GNU Coding Standards.)
951 bindir='${exec_prefix}/bin'
952 sbindir='${exec_prefix}/sbin'
953 libexecdir='${exec_prefix}/libexec'
954 datarootdir='${prefix}/share'
955 datadir='${datarootdir}'
956 sysconfdir='${prefix}/etc'
957 sharedstatedir='${prefix}/com'
958 localstatedir='${prefix}/var'
959 includedir='${prefix}/include'
960 oldincludedir='/usr/include'
961 docdir='${datarootdir}/doc/${PACKAGE}'
962 infodir='${datarootdir}/info'
963 htmldir='${docdir}'
964 dvidir='${docdir}'
965 pdfdir='${docdir}'
966 psdir='${docdir}'
967 libdir='${exec_prefix}/lib'
968 localedir='${datarootdir}/locale'
969 mandir='${datarootdir}/man'
970
971 ac_prev=
972 ac_dashdash=
973 for ac_option
974 do
975   # If the previous option needs an argument, assign it.
976   if test -n "$ac_prev"; then
977     eval $ac_prev=\$ac_option
978     ac_prev=
979     continue
980   fi
981
982   case $ac_option in
983   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984   *)    ac_optarg=yes ;;
985   esac
986
987   # Accept the important Cygnus configure options, so we can diagnose typos.
988
989   case $ac_dashdash$ac_option in
990   --)
991     ac_dashdash=yes ;;
992
993   -bindir | --bindir | --bindi | --bind | --bin | --bi)
994     ac_prev=bindir ;;
995   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996     bindir=$ac_optarg ;;
997
998   -build | --build | --buil | --bui | --bu)
999     ac_prev=build_alias ;;
1000   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001     build_alias=$ac_optarg ;;
1002
1003   -cache-file | --cache-file | --cache-fil | --cache-fi \
1004   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005     ac_prev=cache_file ;;
1006   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008     cache_file=$ac_optarg ;;
1009
1010   --config-cache | -C)
1011     cache_file=config.cache ;;
1012
1013   -datadir | --datadir | --datadi | --datad)
1014     ac_prev=datadir ;;
1015   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016     datadir=$ac_optarg ;;
1017
1018   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019   | --dataroo | --dataro | --datar)
1020     ac_prev=datarootdir ;;
1021   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023     datarootdir=$ac_optarg ;;
1024
1025   -disable-* | --disable-*)
1026     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027     # Reject names that are not valid shell variable names.
1028     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029       as_fn_error "invalid feature name: $ac_useropt"
1030     ac_useropt_orig=$ac_useropt
1031     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032     case $ac_user_opts in
1033       *"
1034 "enable_$ac_useropt"
1035 "*) ;;
1036       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037          ac_unrecognized_sep=', ';;
1038     esac
1039     eval enable_$ac_useropt=no ;;
1040
1041   -docdir | --docdir | --docdi | --doc | --do)
1042     ac_prev=docdir ;;
1043   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044     docdir=$ac_optarg ;;
1045
1046   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047     ac_prev=dvidir ;;
1048   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049     dvidir=$ac_optarg ;;
1050
1051   -enable-* | --enable-*)
1052     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053     # Reject names that are not valid shell variable names.
1054     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055       as_fn_error "invalid feature name: $ac_useropt"
1056     ac_useropt_orig=$ac_useropt
1057     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058     case $ac_user_opts in
1059       *"
1060 "enable_$ac_useropt"
1061 "*) ;;
1062       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063          ac_unrecognized_sep=', ';;
1064     esac
1065     eval enable_$ac_useropt=\$ac_optarg ;;
1066
1067   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069   | --exec | --exe | --ex)
1070     ac_prev=exec_prefix ;;
1071   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073   | --exec=* | --exe=* | --ex=*)
1074     exec_prefix=$ac_optarg ;;
1075
1076   -gas | --gas | --ga | --g)
1077     # Obsolete; use --with-gas.
1078     with_gas=yes ;;
1079
1080   -help | --help | --hel | --he | -h)
1081     ac_init_help=long ;;
1082   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083     ac_init_help=recursive ;;
1084   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085     ac_init_help=short ;;
1086
1087   -host | --host | --hos | --ho)
1088     ac_prev=host_alias ;;
1089   -host=* | --host=* | --hos=* | --ho=*)
1090     host_alias=$ac_optarg ;;
1091
1092   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1093     ac_prev=htmldir ;;
1094   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1095   | --ht=*)
1096     htmldir=$ac_optarg ;;
1097
1098   -includedir | --includedir | --includedi | --included | --include \
1099   | --includ | --inclu | --incl | --inc)
1100     ac_prev=includedir ;;
1101   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102   | --includ=* | --inclu=* | --incl=* | --inc=*)
1103     includedir=$ac_optarg ;;
1104
1105   -infodir | --infodir | --infodi | --infod | --info | --inf)
1106     ac_prev=infodir ;;
1107   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108     infodir=$ac_optarg ;;
1109
1110   -libdir | --libdir | --libdi | --libd)
1111     ac_prev=libdir ;;
1112   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113     libdir=$ac_optarg ;;
1114
1115   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116   | --libexe | --libex | --libe)
1117     ac_prev=libexecdir ;;
1118   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119   | --libexe=* | --libex=* | --libe=*)
1120     libexecdir=$ac_optarg ;;
1121
1122   -localedir | --localedir | --localedi | --localed | --locale)
1123     ac_prev=localedir ;;
1124   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125     localedir=$ac_optarg ;;
1126
1127   -localstatedir | --localstatedir | --localstatedi | --localstated \
1128   | --localstate | --localstat | --localsta | --localst | --locals)
1129     ac_prev=localstatedir ;;
1130   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132     localstatedir=$ac_optarg ;;
1133
1134   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1135     ac_prev=mandir ;;
1136   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137     mandir=$ac_optarg ;;
1138
1139   -nfp | --nfp | --nf)
1140     # Obsolete; use --without-fp.
1141     with_fp=no ;;
1142
1143   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144   | --no-cr | --no-c | -n)
1145     no_create=yes ;;
1146
1147   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149     no_recursion=yes ;;
1150
1151   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153   | --oldin | --oldi | --old | --ol | --o)
1154     ac_prev=oldincludedir ;;
1155   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158     oldincludedir=$ac_optarg ;;
1159
1160   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1161     ac_prev=prefix ;;
1162   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163     prefix=$ac_optarg ;;
1164
1165   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166   | --program-pre | --program-pr | --program-p)
1167     ac_prev=program_prefix ;;
1168   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170     program_prefix=$ac_optarg ;;
1171
1172   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173   | --program-suf | --program-su | --program-s)
1174     ac_prev=program_suffix ;;
1175   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177     program_suffix=$ac_optarg ;;
1178
1179   -program-transform-name | --program-transform-name \
1180   | --program-transform-nam | --program-transform-na \
1181   | --program-transform-n | --program-transform- \
1182   | --program-transform | --program-transfor \
1183   | --program-transfo | --program-transf \
1184   | --program-trans | --program-tran \
1185   | --progr-tra | --program-tr | --program-t)
1186     ac_prev=program_transform_name ;;
1187   -program-transform-name=* | --program-transform-name=* \
1188   | --program-transform-nam=* | --program-transform-na=* \
1189   | --program-transform-n=* | --program-transform-=* \
1190   | --program-transform=* | --program-transfor=* \
1191   | --program-transfo=* | --program-transf=* \
1192   | --program-trans=* | --program-tran=* \
1193   | --progr-tra=* | --program-tr=* | --program-t=*)
1194     program_transform_name=$ac_optarg ;;
1195
1196   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1197     ac_prev=pdfdir ;;
1198   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199     pdfdir=$ac_optarg ;;
1200
1201   -psdir | --psdir | --psdi | --psd | --ps)
1202     ac_prev=psdir ;;
1203   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204     psdir=$ac_optarg ;;
1205
1206   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207   | -silent | --silent | --silen | --sile | --sil)
1208     silent=yes ;;
1209
1210   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1211     ac_prev=sbindir ;;
1212   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1213   | --sbi=* | --sb=*)
1214     sbindir=$ac_optarg ;;
1215
1216   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218   | --sharedst | --shareds | --shared | --share | --shar \
1219   | --sha | --sh)
1220     ac_prev=sharedstatedir ;;
1221   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1224   | --sha=* | --sh=*)
1225     sharedstatedir=$ac_optarg ;;
1226
1227   -site | --site | --sit)
1228     ac_prev=site ;;
1229   -site=* | --site=* | --sit=*)
1230     site=$ac_optarg ;;
1231
1232   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1233     ac_prev=srcdir ;;
1234   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235     srcdir=$ac_optarg ;;
1236
1237   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238   | --syscon | --sysco | --sysc | --sys | --sy)
1239     ac_prev=sysconfdir ;;
1240   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242     sysconfdir=$ac_optarg ;;
1243
1244   -target | --target | --targe | --targ | --tar | --ta | --t)
1245     ac_prev=target_alias ;;
1246   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247     target_alias=$ac_optarg ;;
1248
1249   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250     verbose=yes ;;
1251
1252   -version | --version | --versio | --versi | --vers | -V)
1253     ac_init_version=: ;;
1254
1255   -with-* | --with-*)
1256     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257     # Reject names that are not valid shell variable names.
1258     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259       as_fn_error "invalid package name: $ac_useropt"
1260     ac_useropt_orig=$ac_useropt
1261     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262     case $ac_user_opts in
1263       *"
1264 "with_$ac_useropt"
1265 "*) ;;
1266       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1267          ac_unrecognized_sep=', ';;
1268     esac
1269     eval with_$ac_useropt=\$ac_optarg ;;
1270
1271   -without-* | --without-*)
1272     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273     # Reject names that are not valid shell variable names.
1274     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275       as_fn_error "invalid package name: $ac_useropt"
1276     ac_useropt_orig=$ac_useropt
1277     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278     case $ac_user_opts in
1279       *"
1280 "with_$ac_useropt"
1281 "*) ;;
1282       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1283          ac_unrecognized_sep=', ';;
1284     esac
1285     eval with_$ac_useropt=no ;;
1286
1287   --x)
1288     # Obsolete; use --with-x.
1289     with_x=yes ;;
1290
1291   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292   | --x-incl | --x-inc | --x-in | --x-i)
1293     ac_prev=x_includes ;;
1294   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296     x_includes=$ac_optarg ;;
1297
1298   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300     ac_prev=x_libraries ;;
1301   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303     x_libraries=$ac_optarg ;;
1304
1305   -*) as_fn_error "unrecognized option: \`$ac_option'
1306 Try \`$0 --help' for more information."
1307     ;;
1308
1309   *=*)
1310     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311     # Reject names that are not valid shell variable names.
1312     case $ac_envvar in #(
1313       '' | [0-9]* | *[!_$as_cr_alnum]* )
1314       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1315     esac
1316     eval $ac_envvar=\$ac_optarg
1317     export $ac_envvar ;;
1318
1319   *)
1320     # FIXME: should be removed in autoconf 3.0.
1321     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1325     ;;
1326
1327   esac
1328 done
1329
1330 if test -n "$ac_prev"; then
1331   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332   as_fn_error "missing argument to $ac_option"
1333 fi
1334
1335 if test -n "$ac_unrecognized_opts"; then
1336   case $enable_option_checking in
1337     no) ;;
1338     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1339     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1340   esac
1341 fi
1342
1343 # Check all directory arguments for consistency.
1344 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345                 datadir sysconfdir sharedstatedir localstatedir includedir \
1346                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347                 libdir localedir mandir
1348 do
1349   eval ac_val=\$$ac_var
1350   # Remove trailing slashes.
1351   case $ac_val in
1352     */ )
1353       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1354       eval $ac_var=\$ac_val;;
1355   esac
1356   # Be sure to have absolute directory names.
1357   case $ac_val in
1358     [\\/$]* | ?:[\\/]* )  continue;;
1359     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1360   esac
1361   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1362 done
1363
1364 # There might be people who depend on the old broken behavior: `$host'
1365 # used to hold the argument of --host etc.
1366 # FIXME: To remove some day.
1367 build=$build_alias
1368 host=$host_alias
1369 target=$target_alias
1370
1371 # FIXME: To remove some day.
1372 if test "x$host_alias" != x; then
1373   if test "x$build_alias" = x; then
1374     cross_compiling=maybe
1375     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1376     If a cross compiler is detected then cross compile mode will be used." >&2
1377   elif test "x$build_alias" != "x$host_alias"; then
1378     cross_compiling=yes
1379   fi
1380 fi
1381
1382 ac_tool_prefix=
1383 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384
1385 test "$silent" = yes && exec 6>/dev/null
1386
1387
1388 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389 ac_ls_di=`ls -di .` &&
1390 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391   as_fn_error "working directory cannot be determined"
1392 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393   as_fn_error "pwd does not report name of working directory"
1394
1395
1396 # Find the source files, if location was not specified.
1397 if test -z "$srcdir"; then
1398   ac_srcdir_defaulted=yes
1399   # Try the directory containing this script, then the parent directory.
1400   ac_confdir=`$as_dirname -- "$as_myself" ||
1401 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402          X"$as_myself" : 'X\(//\)[^/]' \| \
1403          X"$as_myself" : 'X\(//\)$' \| \
1404          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405 $as_echo X"$as_myself" |
1406     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407             s//\1/
1408             q
1409           }
1410           /^X\(\/\/\)[^/].*/{
1411             s//\1/
1412             q
1413           }
1414           /^X\(\/\/\)$/{
1415             s//\1/
1416             q
1417           }
1418           /^X\(\/\).*/{
1419             s//\1/
1420             q
1421           }
1422           s/.*/./; q'`
1423   srcdir=$ac_confdir
1424   if test ! -r "$srcdir/$ac_unique_file"; then
1425     srcdir=..
1426   fi
1427 else
1428   ac_srcdir_defaulted=no
1429 fi
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1431   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1433 fi
1434 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435 ac_abs_confdir=`(
1436         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1437         pwd)`
1438 # When building in place, set srcdir=.
1439 if test "$ac_abs_confdir" = "$ac_pwd"; then
1440   srcdir=.
1441 fi
1442 # Remove unnecessary trailing slashes from srcdir.
1443 # Double slashes in file names in object file debugging info
1444 # mess up M-x gdb in Emacs.
1445 case $srcdir in
1446 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447 esac
1448 for ac_var in $ac_precious_vars; do
1449   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450   eval ac_env_${ac_var}_value=\$${ac_var}
1451   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453 done
1454
1455 #
1456 # Report the --help message.
1457 #
1458 if test "$ac_init_help" = "long"; then
1459   # Omit some internal or obsolete options to make the list less imposing.
1460   # This message is too long to be a string in the A/UX 3.1 sh.
1461   cat <<_ACEOF
1462 \`configure' configures this package to adapt to many kinds of systems.
1463
1464 Usage: $0 [OPTION]... [VAR=VALUE]...
1465
1466 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467 VAR=VALUE.  See below for descriptions of some of the useful variables.
1468
1469 Defaults for the options are specified in brackets.
1470
1471 Configuration:
1472   -h, --help              display this help and exit
1473       --help=short        display options specific to this package
1474       --help=recursive    display the short help of all the included packages
1475   -V, --version           display version information and exit
1476   -q, --quiet, --silent   do not print \`checking...' messages
1477       --cache-file=FILE   cache test results in FILE [disabled]
1478   -C, --config-cache      alias for \`--cache-file=config.cache'
1479   -n, --no-create         do not create output files
1480       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1481
1482 Installation directories:
1483   --prefix=PREFIX         install architecture-independent files in PREFIX
1484                           [$ac_default_prefix]
1485   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1486                           [PREFIX]
1487
1488 By default, \`make install' will install all the files in
1489 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1490 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491 for instance \`--prefix=\$HOME'.
1492
1493 For better control, use the options below.
1494
1495 Fine tuning of the installation directories:
1496   --bindir=DIR            user executables [EPREFIX/bin]
1497   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1498   --libexecdir=DIR        program executables [EPREFIX/libexec]
1499   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1500   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1501   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1502   --libdir=DIR            object code libraries [EPREFIX/lib]
1503   --includedir=DIR        C header files [PREFIX/include]
1504   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1505   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1506   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1507   --infodir=DIR           info documentation [DATAROOTDIR/info]
1508   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1509   --mandir=DIR            man documentation [DATAROOTDIR/man]
1510   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1511   --htmldir=DIR           html documentation [DOCDIR]
1512   --dvidir=DIR            dvi documentation [DOCDIR]
1513   --pdfdir=DIR            pdf documentation [DOCDIR]
1514   --psdir=DIR             ps documentation [DOCDIR]
1515 _ACEOF
1516
1517   cat <<\_ACEOF
1518
1519 Program names:
1520   --program-prefix=PREFIX            prepend PREFIX to installed program names
1521   --program-suffix=SUFFIX            append SUFFIX to installed program names
1522   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1523
1524 System types:
1525   --build=BUILD     configure for building on BUILD [guessed]
1526   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1527   --target=TARGET   configure for building compilers for TARGET [HOST]
1528 _ACEOF
1529 fi
1530
1531 if test -n "$ac_init_help"; then
1532
1533   cat <<\_ACEOF
1534
1535 Optional Features:
1536   --disable-option-checking  ignore unrecognized --enable/--with options
1537   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1538   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1539   --disable-dependency-tracking  speeds up one-time build
1540   --enable-dependency-tracking   do not reject slow dependency extractors
1541   --enable-plugins        Enable support for plugins (defaults no)
1542   --disable-largefile     omit support for large files
1543   --enable-shared[=PKGS]  build shared libraries [default=yes]
1544   --enable-static[=PKGS]  build static libraries [default=yes]
1545   --enable-fast-install[=PKGS]
1546                           optimize for fast installation [default=yes]
1547   --disable-libtool-lock  avoid locking (might break parallel builds)
1548   --enable-targets        alternative target configurations besides the primary
1549   --enable-checking       enable run-time checks
1550   --enable-werror         treat compile warnings as errors
1551   --enable-build-warnings enable build-time compiler warnings
1552   --disable-nls           do not use Native Language Support
1553   --enable-maintainer-mode  enable make rules and dependencies not useful
1554                           (and sometimes confusing) to the casual installer
1555
1556 Optional Packages:
1557   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1558   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1559   --with-pic              try to use only PIC/non-PIC objects [default=use
1560                           both]
1561   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1562
1563 Some influential environment variables:
1564   CC          C compiler command
1565   CFLAGS      C compiler flags
1566   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1567               nonstandard directory <lib dir>
1568   LIBS        libraries to pass to the linker, e.g. -l<library>
1569   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1570               you have headers in a nonstandard directory <include dir>
1571   CPP         C preprocessor
1572   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1573               the first program found out of: `bison -y', `byacc', `yacc'.
1574   YFLAGS      The list of arguments that will be passed by default to $YACC.
1575               This script will default YFLAGS to the empty string to avoid a
1576               default value of `-d' given by some make applications.
1577
1578 Use these variables to override the choices made by `configure' or to help
1579 it to find libraries and programs with nonstandard names/locations.
1580
1581 Report bugs to the package provider.
1582 _ACEOF
1583 ac_status=$?
1584 fi
1585
1586 if test "$ac_init_help" = "recursive"; then
1587   # If there are subdirs, report their specific --help.
1588   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1589     test -d "$ac_dir" ||
1590       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1591       continue
1592     ac_builddir=.
1593
1594 case "$ac_dir" in
1595 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *)
1597   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1598   # A ".." for each directory in $ac_dir_suffix.
1599   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1600   case $ac_top_builddir_sub in
1601   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1603   esac ;;
1604 esac
1605 ac_abs_top_builddir=$ac_pwd
1606 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1607 # for backward compatibility:
1608 ac_top_builddir=$ac_top_build_prefix
1609
1610 case $srcdir in
1611   .)  # We are building in place.
1612     ac_srcdir=.
1613     ac_top_srcdir=$ac_top_builddir_sub
1614     ac_abs_top_srcdir=$ac_pwd ;;
1615   [\\/]* | ?:[\\/]* )  # Absolute name.
1616     ac_srcdir=$srcdir$ac_dir_suffix;
1617     ac_top_srcdir=$srcdir
1618     ac_abs_top_srcdir=$srcdir ;;
1619   *) # Relative name.
1620     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1621     ac_top_srcdir=$ac_top_build_prefix$srcdir
1622     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1623 esac
1624 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1625
1626     cd "$ac_dir" || { ac_status=$?; continue; }
1627     # Check for guested configure.
1628     if test -f "$ac_srcdir/configure.gnu"; then
1629       echo &&
1630       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1631     elif test -f "$ac_srcdir/configure"; then
1632       echo &&
1633       $SHELL "$ac_srcdir/configure" --help=recursive
1634     else
1635       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1636     fi || ac_status=$?
1637     cd "$ac_pwd" || { ac_status=$?; break; }
1638   done
1639 fi
1640
1641 test -n "$ac_init_help" && exit $ac_status
1642 if $ac_init_version; then
1643   cat <<\_ACEOF
1644 configure
1645 generated by GNU Autoconf 2.64
1646
1647 Copyright (C) 2009 Free Software Foundation, Inc.
1648 This configure script is free software; the Free Software Foundation
1649 gives unlimited permission to copy, distribute and modify it.
1650 _ACEOF
1651   exit
1652 fi
1653
1654 ## ------------------------ ##
1655 ## Autoconf initialization. ##
1656 ## ------------------------ ##
1657
1658 # ac_fn_c_try_compile LINENO
1659 # --------------------------
1660 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_compile ()
1662 {
1663   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664   rm -f conftest.$ac_objext
1665   if { { ac_try="$ac_compile"
1666 case "(($ac_try" in
1667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668   *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672   (eval "$ac_compile") 2>conftest.err
1673   ac_status=$?
1674   if test -s conftest.err; then
1675     grep -v '^ *+' conftest.err >conftest.er1
1676     cat conftest.er1 >&5
1677     mv -f conftest.er1 conftest.err
1678   fi
1679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680   test $ac_status = 0; } && {
1681          test -z "$ac_c_werror_flag" ||
1682          test ! -s conftest.err
1683        } && test -s conftest.$ac_objext; then :
1684   ac_retval=0
1685 else
1686   $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689         ac_retval=1
1690 fi
1691   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692   return $ac_retval
1693
1694 } # ac_fn_c_try_compile
1695
1696 # ac_fn_c_try_link LINENO
1697 # -----------------------
1698 # Try to link conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_link ()
1700 {
1701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702   rm -f conftest.$ac_objext conftest$ac_exeext
1703   if { { ac_try="$ac_link"
1704 case "(($ac_try" in
1705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706   *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710   (eval "$ac_link") 2>conftest.err
1711   ac_status=$?
1712   if test -s conftest.err; then
1713     grep -v '^ *+' conftest.err >conftest.er1
1714     cat conftest.er1 >&5
1715     mv -f conftest.er1 conftest.err
1716   fi
1717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718   test $ac_status = 0; } && {
1719          test -z "$ac_c_werror_flag" ||
1720          test ! -s conftest.err
1721        } && test -s conftest$ac_exeext && {
1722          test "$cross_compiling" = yes ||
1723          $as_test_x conftest$ac_exeext
1724        }; then :
1725   ac_retval=0
1726 else
1727   $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730         ac_retval=1
1731 fi
1732   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1733   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1734   # interfere with the next link command; also delete a directory that is
1735   # left behind by Apple's compiler.  We do this before executing the actions.
1736   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738   return $ac_retval
1739
1740 } # ac_fn_c_try_link
1741
1742 # ac_fn_c_try_cpp LINENO
1743 # ----------------------
1744 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1745 ac_fn_c_try_cpp ()
1746 {
1747   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748   if { { ac_try="$ac_cpp conftest.$ac_ext"
1749 case "(($ac_try" in
1750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751   *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1756   ac_status=$?
1757   if test -s conftest.err; then
1758     grep -v '^ *+' conftest.err >conftest.er1
1759     cat conftest.er1 >&5
1760     mv -f conftest.er1 conftest.err
1761   fi
1762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763   test $ac_status = 0; } >/dev/null && {
1764          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1765          test ! -s conftest.err
1766        }; then :
1767   ac_retval=0
1768 else
1769   $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1771
1772     ac_retval=1
1773 fi
1774   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775   return $ac_retval
1776
1777 } # ac_fn_c_try_cpp
1778
1779 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1780 # -------------------------------------------------------
1781 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1782 # the include files in INCLUDES and setting the cache variable VAR
1783 # accordingly.
1784 ac_fn_c_check_header_mongrel ()
1785 {
1786   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1791   $as_echo_n "(cached) " >&6
1792 fi
1793 eval ac_res=\$$3
1794                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 else
1797   # Is the header compilable?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1799 $as_echo_n "checking $2 usability... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h.  */
1802 $4
1803 #include <$2>
1804 _ACEOF
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806   ac_header_compiler=yes
1807 else
1808   ac_header_compiler=no
1809 fi
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1812 $as_echo "$ac_header_compiler" >&6; }
1813
1814 # Is the header present?
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1816 $as_echo_n "checking $2 presence... " >&6; }
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h.  */
1819 #include <$2>
1820 _ACEOF
1821 if ac_fn_c_try_cpp "$LINENO"; then :
1822   ac_header_preproc=yes
1823 else
1824   ac_header_preproc=no
1825 fi
1826 rm -f conftest.err conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1828 $as_echo "$ac_header_preproc" >&6; }
1829
1830 # So?  What about this header?
1831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1832   yes:no: )
1833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1834 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1837     ;;
1838   no:yes:* )
1839     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1840 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1842 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1843     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1844 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1845     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1846 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1847     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849     ;;
1850 esac
1851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1854   $as_echo_n "(cached) " >&6
1855 else
1856   eval "$3=\$ac_header_compiler"
1857 fi
1858 eval ac_res=\$$3
1859                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 fi
1862   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863
1864 } # ac_fn_c_check_header_mongrel
1865
1866 # ac_fn_c_try_run LINENO
1867 # ----------------------
1868 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1869 # that executables *can* be run.
1870 ac_fn_c_try_run ()
1871 {
1872   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873   if { { ac_try="$ac_link"
1874 case "(($ac_try" in
1875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876   *) ac_try_echo=$ac_try;;
1877 esac
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880   (eval "$ac_link") 2>&5
1881   ac_status=$?
1882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1884   { { case "(($ac_try" in
1885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886   *) ac_try_echo=$ac_try;;
1887 esac
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890   (eval "$ac_try") 2>&5
1891   ac_status=$?
1892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893   test $ac_status = 0; }; }; then :
1894   ac_retval=0
1895 else
1896   $as_echo "$as_me: program exited with status $ac_status" >&5
1897        $as_echo "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.$ac_ext >&5
1899
1900        ac_retval=$ac_status
1901 fi
1902   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1903   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904   return $ac_retval
1905
1906 } # ac_fn_c_try_run
1907
1908 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1909 # -------------------------------------------------------
1910 # Tests whether HEADER exists and can be compiled using the include files in
1911 # INCLUDES, setting the cache variable VAR accordingly.
1912 ac_fn_c_check_header_compile ()
1913 {
1914   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918   $as_echo_n "(cached) " >&6
1919 else
1920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h.  */
1922 $4
1923 #include <$2>
1924 _ACEOF
1925 if ac_fn_c_try_compile "$LINENO"; then :
1926   eval "$3=yes"
1927 else
1928   eval "$3=no"
1929 fi
1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931 fi
1932 eval ac_res=\$$3
1933                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1936
1937 } # ac_fn_c_check_header_compile
1938
1939 # ac_fn_c_check_func LINENO FUNC VAR
1940 # ----------------------------------
1941 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1942 ac_fn_c_check_func ()
1943 {
1944   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1948   $as_echo_n "(cached) " >&6
1949 else
1950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h.  */
1952 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1954 #define $2 innocuous_$2
1955
1956 /* System header to define __stub macros and hopefully few prototypes,
1957     which can conflict with char $2 (); below.
1958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1959     <limits.h> exists even on freestanding compilers.  */
1960
1961 #ifdef __STDC__
1962 # include <limits.h>
1963 #else
1964 # include <assert.h>
1965 #endif
1966
1967 #undef $2
1968
1969 /* Override any GCC internal prototype to avoid an error.
1970    Use char because int might match the return type of a GCC
1971    builtin and then its argument prototype would still apply.  */
1972 #ifdef __cplusplus
1973 extern "C"
1974 #endif
1975 char $2 ();
1976 /* The GNU C library defines this for functions which it implements
1977     to always fail with ENOSYS.  Some functions are actually named
1978     something starting with __ and the normal name is an alias.  */
1979 #if defined __stub_$2 || defined __stub___$2
1980 choke me
1981 #endif
1982
1983 int
1984 main ()
1985 {
1986 return $2 ();
1987   ;
1988   return 0;
1989 }
1990 _ACEOF
1991 if ac_fn_c_try_link "$LINENO"; then :
1992   eval "$3=yes"
1993 else
1994   eval "$3=no"
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext \
1997     conftest$ac_exeext conftest.$ac_ext
1998 fi
1999 eval ac_res=\$$3
2000                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003
2004 } # ac_fn_c_check_func
2005
2006 # ac_fn_c_check_decl LINENO SYMBOL VAR
2007 # ------------------------------------
2008 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2009 ac_fn_c_check_decl ()
2010 {
2011   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2013 $as_echo_n "checking whether $2 is declared... " >&6; }
2014 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015   $as_echo_n "(cached) " >&6
2016 else
2017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h.  */
2019 $4
2020 int
2021 main ()
2022 {
2023 #ifndef $2
2024   (void) $2;
2025 #endif
2026
2027   ;
2028   return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032   eval "$3=yes"
2033 else
2034   eval "$3=no"
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 fi
2038 eval ac_res=\$$3
2039                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2042
2043 } # ac_fn_c_check_decl
2044 cat >config.log <<_ACEOF
2045 This file contains any messages produced by compilers while
2046 running configure, to aid debugging if configure makes a mistake.
2047
2048 It was created by $as_me, which was
2049 generated by GNU Autoconf 2.64.  Invocation command line was
2050
2051   $ $0 $@
2052
2053 _ACEOF
2054 exec 5>>config.log
2055 {
2056 cat <<_ASUNAME
2057 ## --------- ##
2058 ## Platform. ##
2059 ## --------- ##
2060
2061 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2062 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2063 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2064 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2065 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2066
2067 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2068 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2069
2070 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2071 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2072 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2073 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2074 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2075 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2076 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2077
2078 _ASUNAME
2079
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 for as_dir in $PATH
2082 do
2083   IFS=$as_save_IFS
2084   test -z "$as_dir" && as_dir=.
2085     $as_echo "PATH: $as_dir"
2086   done
2087 IFS=$as_save_IFS
2088
2089 } >&5
2090
2091 cat >&5 <<_ACEOF
2092
2093
2094 ## ----------- ##
2095 ## Core tests. ##
2096 ## ----------- ##
2097
2098 _ACEOF
2099
2100
2101 # Keep a trace of the command line.
2102 # Strip out --no-create and --no-recursion so they do not pile up.
2103 # Strip out --silent because we don't want to record it for future runs.
2104 # Also quote any args containing shell meta-characters.
2105 # Make two passes to allow for proper duplicate-argument suppression.
2106 ac_configure_args=
2107 ac_configure_args0=
2108 ac_configure_args1=
2109 ac_must_keep_next=false
2110 for ac_pass in 1 2
2111 do
2112   for ac_arg
2113   do
2114     case $ac_arg in
2115     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2116     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2117     | -silent | --silent | --silen | --sile | --sil)
2118       continue ;;
2119     *\'*)
2120       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2121     esac
2122     case $ac_pass in
2123     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2124     2)
2125       as_fn_append ac_configure_args1 " '$ac_arg'"
2126       if test $ac_must_keep_next = true; then
2127         ac_must_keep_next=false # Got value, back to normal.
2128       else
2129         case $ac_arg in
2130           *=* | --config-cache | -C | -disable-* | --disable-* \
2131           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2132           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2133           | -with-* | --with-* | -without-* | --without-* | --x)
2134             case "$ac_configure_args0 " in
2135               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2136             esac
2137             ;;
2138           -* ) ac_must_keep_next=true ;;
2139         esac
2140       fi
2141       as_fn_append ac_configure_args " '$ac_arg'"
2142       ;;
2143     esac
2144   done
2145 done
2146 { ac_configure_args0=; unset ac_configure_args0;}
2147 { ac_configure_args1=; unset ac_configure_args1;}
2148
2149 # When interrupted or exit'd, cleanup temporary files, and complete
2150 # config.log.  We remove comments because anyway the quotes in there
2151 # would cause problems or look ugly.
2152 # WARNING: Use '\'' to represent an apostrophe within the trap.
2153 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2154 trap 'exit_status=$?
2155   # Save into config.log some information that might help in debugging.
2156   {
2157     echo
2158
2159     cat <<\_ASBOX
2160 ## ---------------- ##
2161 ## Cache variables. ##
2162 ## ---------------- ##
2163 _ASBOX
2164     echo
2165     # The following way of writing the cache mishandles newlines in values,
2166 (
2167   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2168     eval ac_val=\$$ac_var
2169     case $ac_val in #(
2170     *${as_nl}*)
2171       case $ac_var in #(
2172       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2173 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2174       esac
2175       case $ac_var in #(
2176       _ | IFS | as_nl) ;; #(
2177       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2178       *) { eval $ac_var=; unset $ac_var;} ;;
2179       esac ;;
2180     esac
2181   done
2182   (set) 2>&1 |
2183     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2184     *${as_nl}ac_space=\ *)
2185       sed -n \
2186         "s/'\''/'\''\\\\'\'''\''/g;
2187           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2188       ;; #(
2189     *)
2190       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2191       ;;
2192     esac |
2193     sort
2194 )
2195     echo
2196
2197     cat <<\_ASBOX
2198 ## ----------------- ##
2199 ## Output variables. ##
2200 ## ----------------- ##
2201 _ASBOX
2202     echo
2203     for ac_var in $ac_subst_vars
2204     do
2205       eval ac_val=\$$ac_var
2206       case $ac_val in
2207       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2208       esac
2209       $as_echo "$ac_var='\''$ac_val'\''"
2210     done | sort
2211     echo
2212
2213     if test -n "$ac_subst_files"; then
2214       cat <<\_ASBOX
2215 ## ------------------- ##
2216 ## File substitutions. ##
2217 ## ------------------- ##
2218 _ASBOX
2219       echo
2220       for ac_var in $ac_subst_files
2221       do
2222         eval ac_val=\$$ac_var
2223         case $ac_val in
2224         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225         esac
2226         $as_echo "$ac_var='\''$ac_val'\''"
2227       done | sort
2228       echo
2229     fi
2230
2231     if test -s confdefs.h; then
2232       cat <<\_ASBOX
2233 ## ----------- ##
2234 ## confdefs.h. ##
2235 ## ----------- ##
2236 _ASBOX
2237       echo
2238       cat confdefs.h
2239       echo
2240     fi
2241     test "$ac_signal" != 0 &&
2242       $as_echo "$as_me: caught signal $ac_signal"
2243     $as_echo "$as_me: exit $exit_status"
2244   } >&5
2245   rm -f core *.core core.conftest.* &&
2246     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2247     exit $exit_status
2248 ' 0
2249 for ac_signal in 1 2 13 15; do
2250   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2251 done
2252 ac_signal=0
2253
2254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2255 rm -f -r conftest* confdefs.h
2256
2257 $as_echo "/* confdefs.h */" > confdefs.h
2258
2259 # Predefined preprocessor variables.
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_NAME "$PACKAGE_NAME"
2263 _ACEOF
2264
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2267 _ACEOF
2268
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2271 _ACEOF
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_STRING "$PACKAGE_STRING"
2275 _ACEOF
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2279 _ACEOF
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_URL "$PACKAGE_URL"
2283 _ACEOF
2284
2285
2286 # Let the site file select an alternate cache file if it wants to.
2287 # Prefer an explicitly selected file to automatically selected ones.
2288 ac_site_file1=NONE
2289 ac_site_file2=NONE
2290 if test -n "$CONFIG_SITE"; then
2291   ac_site_file1=$CONFIG_SITE
2292 elif test "x$prefix" != xNONE; then
2293   ac_site_file1=$prefix/share/config.site
2294   ac_site_file2=$prefix/etc/config.site
2295 else
2296   ac_site_file1=$ac_default_prefix/share/config.site
2297   ac_site_file2=$ac_default_prefix/etc/config.site
2298 fi
2299 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2300 do
2301   test "x$ac_site_file" = xNONE && continue
2302   if test -r "$ac_site_file"; then
2303     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2304 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2305     sed 's/^/| /' "$ac_site_file" >&5
2306     . "$ac_site_file"
2307   fi
2308 done
2309
2310 if test -r "$cache_file"; then
2311   # Some versions of bash will fail to source /dev/null (special
2312   # files actually), so we avoid doing that.
2313   if test -f "$cache_file"; then
2314     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2315 $as_echo "$as_me: loading cache $cache_file" >&6;}
2316     case $cache_file in
2317       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2318       *)                      . "./$cache_file";;
2319     esac
2320   fi
2321 else
2322   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2323 $as_echo "$as_me: creating cache $cache_file" >&6;}
2324   >$cache_file
2325 fi
2326
2327 # Check that the precious variables saved in the cache have kept the same
2328 # value.
2329 ac_cache_corrupted=false
2330 for ac_var in $ac_precious_vars; do
2331   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2332   eval ac_new_set=\$ac_env_${ac_var}_set
2333   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2334   eval ac_new_val=\$ac_env_${ac_var}_value
2335   case $ac_old_set,$ac_new_set in
2336     set,)
2337       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2338 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2339       ac_cache_corrupted=: ;;
2340     ,set)
2341       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2342 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2343       ac_cache_corrupted=: ;;
2344     ,);;
2345     *)
2346       if test "x$ac_old_val" != "x$ac_new_val"; then
2347         # differences in whitespace do not lead to failure.
2348         ac_old_val_w=`echo x $ac_old_val`
2349         ac_new_val_w=`echo x $ac_new_val`
2350         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2351           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2352 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2353           ac_cache_corrupted=:
2354         else
2355           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2356 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2357           eval $ac_var=\$ac_old_val
2358         fi
2359         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2360 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2361         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2362 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2363       fi;;
2364   esac
2365   # Pass precious variables to config.status.
2366   if test "$ac_new_set" = set; then
2367     case $ac_new_val in
2368     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2369     *) ac_arg=$ac_var=$ac_new_val ;;
2370     esac
2371     case " $ac_configure_args " in
2372       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2373       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2374     esac
2375   fi
2376 done
2377 if $ac_cache_corrupted; then
2378   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2380   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2381 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2382   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2383 fi
2384 ## -------------------- ##
2385 ## Main body of script. ##
2386 ## -------------------- ##
2387
2388 ac_ext=c
2389 ac_cpp='$CPP $CPPFLAGS'
2390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2393
2394
2395
2396
2397
2398
2399
2400 ac_aux_dir=
2401 for ac_dir in .. "$srcdir"/..; do
2402   for ac_t in install-sh install.sh shtool; do
2403     if test -f "$ac_dir/$ac_t"; then
2404       ac_aux_dir=$ac_dir
2405       ac_install_sh="$ac_aux_dir/$ac_t -c"
2406       break 2
2407     fi
2408   done
2409 done
2410 if test -z "$ac_aux_dir"; then
2411   as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2412 fi
2413
2414 # These three variables are undocumented and unsupported,
2415 # and are intended to be withdrawn in a future Autoconf release.
2416 # They can cause serious problems if a builder's source tree is in a directory
2417 # whose full name contains unusual characters.
2418 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2419 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2420 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2421
2422
2423 # Make sure we can run config.sub.
2424 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2425   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2426
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2428 $as_echo_n "checking build system type... " >&6; }
2429 if test "${ac_cv_build+set}" = set; then :
2430   $as_echo_n "(cached) " >&6
2431 else
2432   ac_build_alias=$build_alias
2433 test "x$ac_build_alias" = x &&
2434   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2435 test "x$ac_build_alias" = x &&
2436   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2437 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2438   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2439
2440 fi
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2442 $as_echo "$ac_cv_build" >&6; }
2443 case $ac_cv_build in
2444 *-*-*) ;;
2445 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2446 esac
2447 build=$ac_cv_build
2448 ac_save_IFS=$IFS; IFS='-'
2449 set x $ac_cv_build
2450 shift
2451 build_cpu=$1
2452 build_vendor=$2
2453 shift; shift
2454 # Remember, the first character of IFS is used to create $*,
2455 # except with old shells:
2456 build_os=$*
2457 IFS=$ac_save_IFS
2458 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2459
2460
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2462 $as_echo_n "checking host system type... " >&6; }
2463 if test "${ac_cv_host+set}" = set; then :
2464   $as_echo_n "(cached) " >&6
2465 else
2466   if test "x$host_alias" = x; then
2467   ac_cv_host=$ac_cv_build
2468 else
2469   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2470     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2471 fi
2472
2473 fi
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2475 $as_echo "$ac_cv_host" >&6; }
2476 case $ac_cv_host in
2477 *-*-*) ;;
2478 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2479 esac
2480 host=$ac_cv_host
2481 ac_save_IFS=$IFS; IFS='-'
2482 set x $ac_cv_host
2483 shift
2484 host_cpu=$1
2485 host_vendor=$2
2486 shift; shift
2487 # Remember, the first character of IFS is used to create $*,
2488 # except with old shells:
2489 host_os=$*
2490 IFS=$ac_save_IFS
2491 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2492
2493
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2495 $as_echo_n "checking target system type... " >&6; }
2496 if test "${ac_cv_target+set}" = set; then :
2497   $as_echo_n "(cached) " >&6
2498 else
2499   if test "x$target_alias" = x; then
2500   ac_cv_target=$ac_cv_host
2501 else
2502   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2503     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2504 fi
2505
2506 fi
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2508 $as_echo "$ac_cv_target" >&6; }
2509 case $ac_cv_target in
2510 *-*-*) ;;
2511 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2512 esac
2513 target=$ac_cv_target
2514 ac_save_IFS=$IFS; IFS='-'
2515 set x $ac_cv_target
2516 shift
2517 target_cpu=$1
2518 target_vendor=$2
2519 shift; shift
2520 # Remember, the first character of IFS is used to create $*,
2521 # except with old shells:
2522 target_os=$*
2523 IFS=$ac_save_IFS
2524 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2525
2526
2527 # The aliases save the names the user supplied, while $host etc.
2528 # will get canonicalized.
2529 test -n "$target_alias" &&
2530   test "$program_prefix$program_suffix$program_transform_name" = \
2531     NONENONEs,x,x, &&
2532   program_prefix=${target_alias}-
2533 ac_ext=c
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538 if test -n "$ac_tool_prefix"; then
2539   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2542 $as_echo_n "checking for $ac_word... " >&6; }
2543 if test "${ac_cv_prog_CC+set}" = set; then :
2544   $as_echo_n "(cached) " >&6
2545 else
2546   if test -n "$CC"; then
2547   ac_cv_prog_CC="$CC" # Let the user override the test.
2548 else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2551 do
2552   IFS=$as_save_IFS
2553   test -z "$as_dir" && as_dir=.
2554     for ac_exec_ext in '' $ac_executable_extensions; do
2555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2556     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2558     break 2
2559   fi
2560 done
2561   done
2562 IFS=$as_save_IFS
2563
2564 fi
2565 fi
2566 CC=$ac_cv_prog_CC
2567 if test -n "$CC"; then
2568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2569 $as_echo "$CC" >&6; }
2570 else
2571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2572 $as_echo "no" >&6; }
2573 fi
2574
2575
2576 fi
2577 if test -z "$ac_cv_prog_CC"; then
2578   ac_ct_CC=$CC
2579   # Extract the first word of "gcc", so it can be a program name with args.
2580 set dummy gcc; ac_word=$2
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582 $as_echo_n "checking for $ac_word... " >&6; }
2583 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2584   $as_echo_n "(cached) " >&6
2585 else
2586   if test -n "$ac_ct_CC"; then
2587   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2591 do
2592   IFS=$as_save_IFS
2593   test -z "$as_dir" && as_dir=.
2594     for ac_exec_ext in '' $ac_executable_extensions; do
2595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596     ac_cv_prog_ac_ct_CC="gcc"
2597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598     break 2
2599   fi
2600 done
2601   done
2602 IFS=$as_save_IFS
2603
2604 fi
2605 fi
2606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2607 if test -n "$ac_ct_CC"; then
2608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2609 $as_echo "$ac_ct_CC" >&6; }
2610 else
2611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612 $as_echo "no" >&6; }
2613 fi
2614
2615   if test "x$ac_ct_CC" = x; then
2616     CC=""
2617   else
2618     case $cross_compiling:$ac_tool_warned in
2619 yes:)
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2622 ac_tool_warned=yes ;;
2623 esac
2624     CC=$ac_ct_CC
2625   fi
2626 else
2627   CC="$ac_cv_prog_CC"
2628 fi
2629
2630 if test -z "$CC"; then
2631           if test -n "$ac_tool_prefix"; then
2632     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2633 set dummy ${ac_tool_prefix}cc; ac_word=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if test "${ac_cv_prog_CC+set}" = set; then :
2637   $as_echo_n "(cached) " >&6
2638 else
2639   if test -n "$CC"; then
2640   ac_cv_prog_CC="$CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647     for ac_exec_ext in '' $ac_executable_extensions; do
2648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649     ac_cv_prog_CC="${ac_tool_prefix}cc"
2650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651     break 2
2652   fi
2653 done
2654   done
2655 IFS=$as_save_IFS
2656
2657 fi
2658 fi
2659 CC=$ac_cv_prog_CC
2660 if test -n "$CC"; then
2661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2662 $as_echo "$CC" >&6; }
2663 else
2664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2666 fi
2667
2668
2669   fi
2670 fi
2671 if test -z "$CC"; then
2672   # Extract the first word of "cc", so it can be a program name with args.
2673 set dummy cc; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if test "${ac_cv_prog_CC+set}" = set; then :
2677   $as_echo_n "(cached) " >&6
2678 else
2679   if test -n "$CC"; then
2680   ac_cv_prog_CC="$CC" # Let the user override the test.
2681 else
2682   ac_prog_rejected=no
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686   IFS=$as_save_IFS
2687   test -z "$as_dir" && as_dir=.
2688     for ac_exec_ext in '' $ac_executable_extensions; do
2689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2691        ac_prog_rejected=yes
2692        continue
2693      fi
2694     ac_cv_prog_CC="cc"
2695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696     break 2
2697   fi
2698 done
2699   done
2700 IFS=$as_save_IFS
2701
2702 if test $ac_prog_rejected = yes; then
2703   # We found a bogon in the path, so make sure we never use it.
2704   set dummy $ac_cv_prog_CC
2705   shift
2706   if test $# != 0; then
2707     # We chose a different compiler from the bogus one.
2708     # However, it has the same basename, so the bogon will be chosen
2709     # first if we set CC to just the basename; use the full file name.
2710     shift
2711     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2712   fi
2713 fi
2714 fi
2715 fi
2716 CC=$ac_cv_prog_CC
2717 if test -n "$CC"; then
2718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2719 $as_echo "$CC" >&6; }
2720 else
2721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 $as_echo "no" >&6; }
2723 fi
2724
2725
2726 fi
2727 if test -z "$CC"; then
2728   if test -n "$ac_tool_prefix"; then
2729   for ac_prog in cl.exe
2730   do
2731     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if test "${ac_cv_prog_CC+set}" = set; then :
2736   $as_echo_n "(cached) " >&6
2737 else
2738   if test -n "$CC"; then
2739   ac_cv_prog_CC="$CC" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744   IFS=$as_save_IFS
2745   test -z "$as_dir" && as_dir=.
2746     for ac_exec_ext in '' $ac_executable_extensions; do
2747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750     break 2
2751   fi
2752 done
2753   done
2754 IFS=$as_save_IFS
2755
2756 fi
2757 fi
2758 CC=$ac_cv_prog_CC
2759 if test -n "$CC"; then
2760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761 $as_echo "$CC" >&6; }
2762 else
2763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2765 fi
2766
2767
2768     test -n "$CC" && break
2769   done
2770 fi
2771 if test -z "$CC"; then
2772   ac_ct_CC=$CC
2773   for ac_prog in cl.exe
2774 do
2775   # Extract the first word of "$ac_prog", so it can be a program name with args.
2776 set dummy $ac_prog; ac_word=$2
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778 $as_echo_n "checking for $ac_word... " >&6; }
2779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2780   $as_echo_n "(cached) " >&6
2781 else
2782   if test -n "$ac_ct_CC"; then
2783   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788   IFS=$as_save_IFS
2789   test -z "$as_dir" && as_dir=.
2790     for ac_exec_ext in '' $ac_executable_extensions; do
2791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2792     ac_cv_prog_ac_ct_CC="$ac_prog"
2793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794     break 2
2795   fi
2796 done
2797   done
2798 IFS=$as_save_IFS
2799
2800 fi
2801 fi
2802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2803 if test -n "$ac_ct_CC"; then
2804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2805 $as_echo "$ac_ct_CC" >&6; }
2806 else
2807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 $as_echo "no" >&6; }
2809 fi
2810
2811
2812   test -n "$ac_ct_CC" && break
2813 done
2814
2815   if test "x$ac_ct_CC" = x; then
2816     CC=""
2817   else
2818     case $cross_compiling:$ac_tool_warned in
2819 yes:)
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2822 ac_tool_warned=yes ;;
2823 esac
2824     CC=$ac_ct_CC
2825   fi
2826 fi
2827
2828 fi
2829
2830
2831 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2833 as_fn_error "no acceptable C compiler found in \$PATH
2834 See \`config.log' for more details." "$LINENO" 5; }
2835
2836 # Provide some information about the compiler.
2837 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2838 set X $ac_compile
2839 ac_compiler=$2
2840 for ac_option in --version -v -V -qversion; do
2841   { { ac_try="$ac_compiler $ac_option >&5"
2842 case "(($ac_try" in
2843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844   *) ac_try_echo=$ac_try;;
2845 esac
2846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847 $as_echo "$ac_try_echo"; } >&5
2848   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2849   ac_status=$?
2850   if test -s conftest.err; then
2851     sed '10a\
2852 ... rest of stderr output deleted ...
2853          10q' conftest.err >conftest.er1
2854     cat conftest.er1 >&5
2855     rm -f conftest.er1 conftest.err
2856   fi
2857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858   test $ac_status = 0; }
2859 done
2860
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h.  */
2863
2864 int
2865 main ()
2866 {
2867
2868   ;
2869   return 0;
2870 }
2871 _ACEOF
2872 ac_clean_files_save=$ac_clean_files
2873 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2874 # Try to create an executable without -o first, disregard a.out.
2875 # It will help us diagnose broken compilers, and finding out an intuition
2876 # of exeext.
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2878 $as_echo_n "checking for C compiler default output file name... " >&6; }
2879 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2880
2881 # The possible output files:
2882 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2883
2884 ac_rmfiles=
2885 for ac_file in $ac_files
2886 do
2887   case $ac_file in
2888     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2889     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2890   esac
2891 done
2892 rm -f $ac_rmfiles
2893
2894 if { { ac_try="$ac_link_default"
2895 case "(($ac_try" in
2896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897   *) ac_try_echo=$ac_try;;
2898 esac
2899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2900 $as_echo "$ac_try_echo"; } >&5
2901   (eval "$ac_link_default") 2>&5
2902   ac_status=$?
2903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2904   test $ac_status = 0; }; then :
2905   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2906 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2907 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2908 # so that the user can short-circuit this test for compilers unknown to
2909 # Autoconf.
2910 for ac_file in $ac_files ''
2911 do
2912   test -f "$ac_file" || continue
2913   case $ac_file in
2914     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2915         ;;
2916     [ab].out )
2917         # We found the default executable, but exeext='' is most
2918         # certainly right.
2919         break;;
2920     *.* )
2921         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2922         then :; else
2923            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2924         fi
2925         # We set ac_cv_exeext here because the later test for it is not
2926         # safe: cross compilers may not add the suffix if given an `-o'
2927         # argument, so we may need to know it at that point already.
2928         # Even if this section looks crufty: it has the advantage of
2929         # actually working.
2930         break;;
2931     * )
2932         break;;
2933   esac
2934 done
2935 test "$ac_cv_exeext" = no && ac_cv_exeext=
2936
2937 else
2938   ac_file=''
2939 fi
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2941 $as_echo "$ac_file" >&6; }
2942 if test -z "$ac_file"; then :
2943   $as_echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2948 { as_fn_set_status 77
2949 as_fn_error "C compiler cannot create executables
2950 See \`config.log' for more details." "$LINENO" 5; }; }
2951 fi
2952 ac_exeext=$ac_cv_exeext
2953
2954 # Check that the compiler produces executables we can run.  If not, either
2955 # the compiler is broken, or we cross compile.
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2957 $as_echo_n "checking whether the C compiler works... " >&6; }
2958 # If not cross compiling, check that we can run a simple program.
2959 if test "$cross_compiling" != yes; then
2960   if { ac_try='./$ac_file'
2961   { { case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2966 $as_echo "$ac_try_echo"; } >&5
2967   (eval "$ac_try") 2>&5
2968   ac_status=$?
2969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970   test $ac_status = 0; }; }; then
2971     cross_compiling=no
2972   else
2973     if test "$cross_compiling" = maybe; then
2974         cross_compiling=yes
2975     else
2976         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2978 as_fn_error "cannot run C compiled programs.
2979 If you meant to cross compile, use \`--host'.
2980 See \`config.log' for more details." "$LINENO" 5; }
2981     fi
2982   fi
2983 fi
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2985 $as_echo "yes" >&6; }
2986
2987 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2988 ac_clean_files=$ac_clean_files_save
2989 # Check that the compiler produces executables we can run.  If not, either
2990 # the compiler is broken, or we cross compile.
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2992 $as_echo_n "checking whether we are cross compiling... " >&6; }
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2994 $as_echo "$cross_compiling" >&6; }
2995
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2997 $as_echo_n "checking for suffix of executables... " >&6; }
2998 if { { ac_try="$ac_link"
2999 case "(($ac_try" in
3000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001   *) ac_try_echo=$ac_try;;
3002 esac
3003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004 $as_echo "$ac_try_echo"; } >&5
3005   (eval "$ac_link") 2>&5
3006   ac_status=$?
3007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3008   test $ac_status = 0; }; then :
3009   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3010 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3011 # work properly (i.e., refer to `conftest.exe'), while it won't with
3012 # `rm'.
3013 for ac_file in conftest.exe conftest conftest.*; do
3014   test -f "$ac_file" || continue
3015   case $ac_file in
3016     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3017     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3018           break;;
3019     * ) break;;
3020   esac
3021 done
3022 else
3023   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 as_fn_error "cannot compute suffix of executables: cannot compile and link
3026 See \`config.log' for more details." "$LINENO" 5; }
3027 fi
3028 rm -f conftest$ac_cv_exeext
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3030 $as_echo "$ac_cv_exeext" >&6; }
3031
3032 rm -f conftest.$ac_ext
3033 EXEEXT=$ac_cv_exeext
3034 ac_exeext=$EXEEXT
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3036 $as_echo_n "checking for suffix of object files... " >&6; }
3037 if test "${ac_cv_objext+set}" = set; then :
3038   $as_echo_n "(cached) " >&6
3039 else
3040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041 /* end confdefs.h.  */
3042
3043 int
3044 main ()
3045 {
3046
3047   ;
3048   return 0;
3049 }
3050 _ACEOF
3051 rm -f conftest.o conftest.obj
3052 if { { ac_try="$ac_compile"
3053 case "(($ac_try" in
3054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055   *) ac_try_echo=$ac_try;;
3056 esac
3057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058 $as_echo "$ac_try_echo"; } >&5
3059   (eval "$ac_compile") 2>&5
3060   ac_status=$?
3061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3062   test $ac_status = 0; }; then :
3063   for ac_file in conftest.o conftest.obj conftest.*; do
3064   test -f "$ac_file" || continue;
3065   case $ac_file in
3066     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3067     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3068        break;;
3069   esac
3070 done
3071 else
3072   $as_echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3074
3075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 as_fn_error "cannot compute suffix of object files: cannot compile
3078 See \`config.log' for more details." "$LINENO" 5; }
3079 fi
3080 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3081 fi
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3083 $as_echo "$ac_cv_objext" >&6; }
3084 OBJEXT=$ac_cv_objext
3085 ac_objext=$OBJEXT
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3087 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3088 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3089   $as_echo_n "(cached) " >&6
3090 else
3091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092 /* end confdefs.h.  */
3093
3094 int
3095 main ()
3096 {
3097 #ifndef __GNUC__
3098        choke me
3099 #endif
3100
3101   ;
3102   return 0;
3103 }
3104 _ACEOF
3105 if ac_fn_c_try_compile "$LINENO"; then :
3106   ac_compiler_gnu=yes
3107 else
3108   ac_compiler_gnu=no
3109 fi
3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3112
3113 fi
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3115 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3116 if test $ac_compiler_gnu = yes; then
3117   GCC=yes
3118 else
3119   GCC=
3120 fi
3121 ac_test_CFLAGS=${CFLAGS+set}
3122 ac_save_CFLAGS=$CFLAGS
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3124 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3125 if test "${ac_cv_prog_cc_g+set}" = set; then :
3126   $as_echo_n "(cached) " >&6
3127 else
3128   ac_save_c_werror_flag=$ac_c_werror_flag
3129    ac_c_werror_flag=yes
3130    ac_cv_prog_cc_g=no
3131    CFLAGS="-g"
3132    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133 /* end confdefs.h.  */
3134
3135 int
3136 main ()
3137 {
3138
3139   ;
3140   return 0;
3141 }
3142 _ACEOF
3143 if ac_fn_c_try_compile "$LINENO"; then :
3144   ac_cv_prog_cc_g=yes
3145 else
3146   CFLAGS=""
3147       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148 /* end confdefs.h.  */
3149
3150 int
3151 main ()
3152 {
3153
3154   ;
3155   return 0;
3156 }
3157 _ACEOF
3158 if ac_fn_c_try_compile "$LINENO"; then :
3159
3160 else
3161   ac_c_werror_flag=$ac_save_c_werror_flag
3162          CFLAGS="-g"
3163          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 /* end confdefs.h.  */
3165
3166 int
3167 main ()
3168 {
3169
3170   ;
3171   return 0;
3172 }
3173 _ACEOF
3174 if ac_fn_c_try_compile "$LINENO"; then :
3175   ac_cv_prog_cc_g=yes
3176 fi
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 fi
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 fi
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182    ac_c_werror_flag=$ac_save_c_werror_flag
3183 fi
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3185 $as_echo "$ac_cv_prog_cc_g" >&6; }
3186 if test "$ac_test_CFLAGS" = set; then
3187   CFLAGS=$ac_save_CFLAGS
3188 elif test $ac_cv_prog_cc_g = yes; then
3189   if test "$GCC" = yes; then
3190     CFLAGS="-g -O2"
3191   else
3192     CFLAGS="-g"
3193   fi
3194 else
3195   if test "$GCC" = yes; then
3196     CFLAGS="-O2"
3197   else
3198     CFLAGS=
3199   fi
3200 fi
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3202 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3203 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3204   $as_echo_n "(cached) " >&6
3205 else
3206   ac_cv_prog_cc_c89=no
3207 ac_save_CC=$CC
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h.  */
3210 #include <stdarg.h>
3211 #include <stdio.h>
3212 #include <sys/types.h>
3213 #include <sys/stat.h>
3214 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3215 struct buf { int x; };
3216 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3217 static char *e (p, i)
3218      char **p;
3219      int i;
3220 {
3221   return p[i];
3222 }
3223 static char *f (char * (*g) (char **, int), char **p, ...)
3224 {
3225   char *s;
3226   va_list v;
3227   va_start (v,p);
3228   s = g (p, va_arg (v,int));
3229   va_end (v);
3230   return s;
3231 }
3232
3233 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3234    function prototypes and stuff, but not '\xHH' hex character constants.
3235    These don't provoke an error unfortunately, instead are silently treated
3236    as 'x'.  The following induces an error, until -std is added to get
3237    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3238    array size at least.  It's necessary to write '\x00'==0 to get something
3239    that's true only with -std.  */
3240 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3241
3242 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3243    inside strings and character constants.  */
3244 #define FOO(x) 'x'
3245 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3246
3247 int test (int i, double x);
3248 struct s1 {int (*f) (int a);};
3249 struct s2 {int (*f) (double a);};
3250 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3251 int argc;
3252 char **argv;
3253 int
3254 main ()
3255 {
3256 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3257   ;
3258   return 0;
3259 }
3260 _ACEOF
3261 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3262         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3263 do
3264   CC="$ac_save_CC $ac_arg"
3265   if ac_fn_c_try_compile "$LINENO"; then :
3266   ac_cv_prog_cc_c89=$ac_arg
3267 fi
3268 rm -f core conftest.err conftest.$ac_objext
3269   test "x$ac_cv_prog_cc_c89" != "xno" && break
3270 done
3271 rm -f conftest.$ac_ext
3272 CC=$ac_save_CC
3273
3274 fi
3275 # AC_CACHE_VAL
3276 case "x$ac_cv_prog_cc_c89" in
3277   x)
3278     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3279 $as_echo "none needed" >&6; } ;;
3280   xno)
3281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3282 $as_echo "unsupported" >&6; } ;;
3283   *)
3284     CC="$CC $ac_cv_prog_cc_c89"
3285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3286 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3287 esac
3288 if test "x$ac_cv_prog_cc_c89" != xno; then :
3289
3290 fi
3291
3292 ac_ext=c
3293 ac_cpp='$CPP $CPPFLAGS'
3294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297
3298
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3300 $as_echo_n "checking for library containing strerror... " >&6; }
3301 if test "${ac_cv_search_strerror+set}" = set; then :
3302   $as_echo_n "(cached) " >&6
3303 else
3304   ac_func_search_save_LIBS=$LIBS
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h.  */
3307
3308 /* Override any GCC internal prototype to avoid an error.
3309    Use char because int might match the return type of a GCC
3310    builtin and then its argument prototype would still apply.  */
3311 #ifdef __cplusplus
3312 extern "C"
3313 #endif
3314 char strerror ();
3315 int
3316 main ()
3317 {
3318 return strerror ();
3319   ;
3320   return 0;
3321 }
3322 _ACEOF
3323 for ac_lib in '' cposix; do
3324   if test -z "$ac_lib"; then
3325     ac_res="none required"
3326   else
3327     ac_res=-l$ac_lib
3328     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3329   fi
3330   if ac_fn_c_try_link "$LINENO"; then :
3331   ac_cv_search_strerror=$ac_res
3332 fi
3333 rm -f core conftest.err conftest.$ac_objext \
3334     conftest$ac_exeext
3335   if test "${ac_cv_search_strerror+set}" = set; then :
3336   break
3337 fi
3338 done
3339 if test "${ac_cv_search_strerror+set}" = set; then :
3340
3341 else
3342   ac_cv_search_strerror=no
3343 fi
3344 rm conftest.$ac_ext
3345 LIBS=$ac_func_search_save_LIBS
3346 fi
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3348 $as_echo "$ac_cv_search_strerror" >&6; }
3349 ac_res=$ac_cv_search_strerror
3350 if test "$ac_res" != no; then :
3351   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3352
3353 fi
3354
3355
3356 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3357 am__api_version='1.11'
3358
3359 # Find a good install program.  We prefer a C program (faster),
3360 # so one script is as good as another.  But avoid the broken or
3361 # incompatible versions:
3362 # SysV /etc/install, /usr/sbin/install
3363 # SunOS /usr/etc/install
3364 # IRIX /sbin/install
3365 # AIX /bin/install
3366 # AmigaOS /C/install, which installs bootblocks on floppy discs
3367 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3368 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3369 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3370 # OS/2's system install, which has a completely different semantic
3371 # ./install, which can be erroneously created by make from ./install.sh.
3372 # Reject install programs that cannot install multiple files.
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3374 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3375 if test -z "$INSTALL"; then
3376 if test "${ac_cv_path_install+set}" = set; then :
3377   $as_echo_n "(cached) " >&6
3378 else
3379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382   IFS=$as_save_IFS
3383   test -z "$as_dir" && as_dir=.
3384     # Account for people who put trailing slashes in PATH elements.
3385 case $as_dir/ in #((
3386   ./ | .// | /[cC]/* | \
3387   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3388   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3389   /usr/ucb/* ) ;;
3390   *)
3391     # OSF1 and SCO ODT 3.0 have their own names for install.
3392     # Don't use installbsd from OSF since it installs stuff as root
3393     # by default.
3394     for ac_prog in ginstall scoinst install; do
3395       for ac_exec_ext in '' $ac_executable_extensions; do
3396         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3397           if test $ac_prog = install &&
3398             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3399             # AIX install.  It has an incompatible calling convention.
3400             :
3401           elif test $ac_prog = install &&
3402             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3403             # program-specific install script used by HP pwplus--don't use.
3404             :
3405           else
3406             rm -rf conftest.one conftest.two conftest.dir
3407             echo one > conftest.one
3408             echo two > conftest.two
3409             mkdir conftest.dir
3410             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3411               test -s conftest.one && test -s conftest.two &&
3412               test -s conftest.dir/conftest.one &&
3413               test -s conftest.dir/conftest.two
3414             then
3415               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3416               break 3
3417             fi
3418           fi
3419         fi
3420       done
3421     done
3422     ;;
3423 esac
3424
3425   done
3426 IFS=$as_save_IFS
3427
3428 rm -rf conftest.one conftest.two conftest.dir
3429
3430 fi
3431   if test "${ac_cv_path_install+set}" = set; then
3432     INSTALL=$ac_cv_path_install
3433   else
3434     # As a last resort, use the slow shell script.  Don't cache a
3435     # value for INSTALL within a source directory, because that will
3436     # break other packages using the cache if that directory is
3437     # removed, or if the value is a relative name.
3438     INSTALL=$ac_install_sh
3439   fi
3440 fi
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3442 $as_echo "$INSTALL" >&6; }
3443
3444 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3445 # It thinks the first close brace ends the variable substitution.
3446 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3447
3448 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3449
3450 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3451
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3453 $as_echo_n "checking whether build environment is sane... " >&6; }
3454 # Just in case
3455 sleep 1
3456 echo timestamp > conftest.file
3457 # Reject unsafe characters in $srcdir or the absolute working directory
3458 # name.  Accept space and tab only in the latter.
3459 am_lf='
3460 '
3461 case `pwd` in
3462   *[\\\"\#\$\&\'\`$am_lf]*)
3463     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3464 esac
3465 case $srcdir in
3466   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3467     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3468 esac
3469
3470 # Do `set' in a subshell so we don't clobber the current shell's
3471 # arguments.  Must try -L first in case configure is actually a
3472 # symlink; some systems play weird games with the mod time of symlinks
3473 # (eg FreeBSD returns the mod time of the symlink's containing
3474 # directory).
3475 if (
3476    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3477    if test "$*" = "X"; then
3478       # -L didn't work.
3479       set X `ls -t "$srcdir/configure" conftest.file`
3480    fi
3481    rm -f conftest.file
3482    if test "$*" != "X $srcdir/configure conftest.file" \
3483       && test "$*" != "X conftest.file $srcdir/configure"; then
3484
3485       # If neither matched, then we have a broken ls.  This can happen
3486       # if, for instance, CONFIG_SHELL is bash and it inherits a
3487       # broken ls alias from the environment.  This has actually
3488       # happened.  Such a system could not be considered "sane".
3489       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3490 alias in your environment" "$LINENO" 5
3491    fi
3492
3493    test "$2" = conftest.file
3494    )
3495 then
3496    # Ok.
3497    :
3498 else
3499    as_fn_error "newly created file is older than distributed files!
3500 Check your system clock" "$LINENO" 5
3501 fi
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3503 $as_echo "yes" >&6; }
3504 test "$program_prefix" != NONE &&
3505   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3506 # Use a double $ so make ignores it.
3507 test "$program_suffix" != NONE &&
3508   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3509 # Double any \ or $.
3510 # By default was `s,x,x', remove it if useless.
3511 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3512 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3513
3514 # expand $ac_aux_dir to an absolute path
3515 am_aux_dir=`cd $ac_aux_dir && pwd`
3516
3517 if test x"${MISSING+set}" != xset; then
3518   case $am_aux_dir in
3519   *\ * | *\     *)
3520     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3521   *)
3522     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3523   esac
3524 fi
3525 # Use eval to expand $SHELL
3526 if eval "$MISSING --run true"; then
3527   am_missing_run="$MISSING --run "
3528 else
3529   am_missing_run=
3530   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3531 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3532 fi
3533
3534 if test x"${install_sh}" != xset; then
3535   case $am_aux_dir in
3536   *\ * | *\     *)
3537     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3538   *)
3539     install_sh="\${SHELL} $am_aux_dir/install-sh"
3540   esac
3541 fi
3542
3543 # Installed binaries are usually stripped using `strip' when the user
3544 # run `make install-strip'.  However `strip' might not be the right
3545 # tool to use in cross-compilation environments, therefore Automake
3546 # will honor the `STRIP' environment variable to overrule this program.
3547 if test "$cross_compiling" != no; then
3548   if test -n "$ac_tool_prefix"; then
3549   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3550 set dummy ${ac_tool_prefix}strip; ac_word=$2
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552 $as_echo_n "checking for $ac_word... " >&6; }
3553 if test "${ac_cv_prog_STRIP+set}" = set; then :
3554   $as_echo_n "(cached) " >&6
3555 else
3556   if test -n "$STRIP"; then
3557   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3558 else
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH
3561 do
3562   IFS=$as_save_IFS
3563   test -z "$as_dir" && as_dir=.
3564     for ac_exec_ext in '' $ac_executable_extensions; do
3565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3566     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568     break 2
3569   fi
3570 done
3571   done
3572 IFS=$as_save_IFS
3573
3574 fi
3575 fi
3576 STRIP=$ac_cv_prog_STRIP
3577 if test -n "$STRIP"; then
3578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3579 $as_echo "$STRIP" >&6; }
3580 else
3581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 $as_echo "no" >&6; }
3583 fi
3584
3585
3586 fi
3587 if test -z "$ac_cv_prog_STRIP"; then
3588   ac_ct_STRIP=$STRIP
3589   # Extract the first word of "strip", so it can be a program name with args.
3590 set dummy strip; ac_word=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3594   $as_echo_n "(cached) " >&6
3595 else
3596   if test -n "$ac_ct_STRIP"; then
3597   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3598 else
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3601 do
3602   IFS=$as_save_IFS
3603   test -z "$as_dir" && as_dir=.
3604     for ac_exec_ext in '' $ac_executable_extensions; do
3605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3606     ac_cv_prog_ac_ct_STRIP="strip"
3607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608     break 2
3609   fi
3610 done
3611   done
3612 IFS=$as_save_IFS
3613
3614 fi
3615 fi
3616 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3617 if test -n "$ac_ct_STRIP"; then
3618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3619 $as_echo "$ac_ct_STRIP" >&6; }
3620 else
3621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3623 fi
3624
3625   if test "x$ac_ct_STRIP" = x; then
3626     STRIP=":"
3627   else
3628     case $cross_compiling:$ac_tool_warned in
3629 yes:)
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3632 ac_tool_warned=yes ;;
3633 esac
3634     STRIP=$ac_ct_STRIP
3635   fi
3636 else
3637   STRIP="$ac_cv_prog_STRIP"
3638 fi
3639
3640 fi
3641 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3642
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3644 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3645 if test -z "$MKDIR_P"; then
3646   if test "${ac_cv_path_mkdir+set}" = set; then :
3647   $as_echo_n "(cached) " >&6
3648 else
3649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3651 do
3652   IFS=$as_save_IFS
3653   test -z "$as_dir" && as_dir=.
3654     for ac_prog in mkdir gmkdir; do
3655          for ac_exec_ext in '' $ac_executable_extensions; do
3656            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3657            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3658              'mkdir (GNU coreutils) '* | \
3659              'mkdir (coreutils) '* | \
3660              'mkdir (fileutils) '4.1*)
3661                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3662                break 3;;
3663            esac
3664          done
3665        done
3666   done
3667 IFS=$as_save_IFS
3668
3669 fi
3670
3671   if test "${ac_cv_path_mkdir+set}" = set; then
3672     MKDIR_P="$ac_cv_path_mkdir -p"
3673   else
3674     # As a last resort, use the slow shell script.  Don't cache a
3675     # value for MKDIR_P within a source directory, because that will
3676     # break other packages using the cache if that directory is
3677     # removed, or if the value is a relative name.
3678     test -d ./--version && rmdir ./--version
3679     MKDIR_P="$ac_install_sh -d"
3680   fi
3681 fi
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3683 $as_echo "$MKDIR_P" >&6; }
3684
3685 mkdir_p="$MKDIR_P"
3686 case $mkdir_p in
3687   [\\/$]* | ?:[\\/]*) ;;
3688   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3689 esac
3690
3691 for ac_prog in gawk mawk nawk awk
3692 do
3693   # Extract the first word of "$ac_prog", so it can be a program name with args.
3694 set dummy $ac_prog; ac_word=$2
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696 $as_echo_n "checking for $ac_word... " >&6; }
3697 if test "${ac_cv_prog_AWK+set}" = set; then :
3698   $as_echo_n "(cached) " >&6
3699 else
3700   if test -n "$AWK"; then
3701   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3702 else
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706   IFS=$as_save_IFS
3707   test -z "$as_dir" && as_dir=.
3708     for ac_exec_ext in '' $ac_executable_extensions; do
3709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3710     ac_cv_prog_AWK="$ac_prog"
3711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712     break 2
3713   fi
3714 done
3715   done
3716 IFS=$as_save_IFS
3717
3718 fi
3719 fi
3720 AWK=$ac_cv_prog_AWK
3721 if test -n "$AWK"; then
3722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3723 $as_echo "$AWK" >&6; }
3724 else
3725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3727 fi
3728
3729
3730   test -n "$AWK" && break
3731 done
3732
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3734 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3735 set x ${MAKE-make}
3736 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3737 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3738   $as_echo_n "(cached) " >&6
3739 else
3740   cat >conftest.make <<\_ACEOF
3741 SHELL = /bin/sh
3742 all:
3743         @echo '@@@%%%=$(MAKE)=@@@%%%'
3744 _ACEOF
3745 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3746 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3747   *@@@%%%=?*=@@@%%%*)
3748     eval ac_cv_prog_make_${ac_make}_set=yes;;
3749   *)
3750     eval ac_cv_prog_make_${ac_make}_set=no;;
3751 esac
3752 rm -f conftest.make
3753 fi
3754 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3756 $as_echo "yes" >&6; }
3757   SET_MAKE=
3758 else
3759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3761   SET_MAKE="MAKE=${MAKE-make}"
3762 fi
3763
3764 rm -rf .tst 2>/dev/null
3765 mkdir .tst 2>/dev/null
3766 if test -d .tst; then
3767   am__leading_dot=.
3768 else
3769   am__leading_dot=_
3770 fi
3771 rmdir .tst 2>/dev/null
3772
3773 DEPDIR="${am__leading_dot}deps"
3774
3775 ac_config_commands="$ac_config_commands depfiles"
3776
3777
3778 am_make=${MAKE-make}
3779 cat > confinc << 'END'
3780 am__doit:
3781         @echo this is the am__doit target
3782 .PHONY: am__doit
3783 END
3784 # If we don't find an include directive, just comment out the code.
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3786 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3787 am__include="#"
3788 am__quote=
3789 _am_result=none
3790 # First try GNU make style include.
3791 echo "include confinc" > confmf
3792 # Ignore all kinds of additional output from `make'.
3793 case `$am_make -s -f confmf 2> /dev/null` in #(
3794 *the\ am__doit\ target*)
3795   am__include=include
3796   am__quote=
3797   _am_result=GNU
3798   ;;
3799 esac
3800 # Now try BSD make style include.
3801 if test "$am__include" = "#"; then
3802    echo '.include "confinc"' > confmf
3803    case `$am_make -s -f confmf 2> /dev/null` in #(
3804    *the\ am__doit\ target*)
3805      am__include=.include
3806      am__quote="\""
3807      _am_result=BSD
3808      ;;
3809    esac
3810 fi
3811
3812
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3814 $as_echo "$_am_result" >&6; }
3815 rm -f confinc confmf
3816
3817 # Check whether --enable-dependency-tracking was given.
3818 if test "${enable_dependency_tracking+set}" = set; then :
3819   enableval=$enable_dependency_tracking;
3820 fi
3821
3822 if test "x$enable_dependency_tracking" != xno; then
3823   am_depcomp="$ac_aux_dir/depcomp"
3824   AMDEPBACKSLASH='\'
3825 fi
3826  if test "x$enable_dependency_tracking" != xno; then
3827   AMDEP_TRUE=
3828   AMDEP_FALSE='#'
3829 else
3830   AMDEP_TRUE='#'
3831   AMDEP_FALSE=
3832 fi
3833
3834
3835 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3836   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3837   # is not polluted with repeated "-I."
3838   am__isrc=' -I$(srcdir)'
3839   # test to see if srcdir already configured
3840   if test -f $srcdir/config.status; then
3841     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3842   fi
3843 fi
3844
3845 # test whether we have cygpath
3846 if test -z "$CYGPATH_W"; then
3847   if (cygpath --version) >/dev/null 2>/dev/null; then
3848     CYGPATH_W='cygpath -w'
3849   else
3850     CYGPATH_W=echo
3851   fi
3852 fi
3853
3854
3855 # Define the identity of the package.
3856  PACKAGE=gas
3857  VERSION=${BFD_VERSION}
3858
3859
3860 cat >>confdefs.h <<_ACEOF
3861 #define PACKAGE "$PACKAGE"
3862 _ACEOF
3863
3864
3865 cat >>confdefs.h <<_ACEOF
3866 #define VERSION "$VERSION"
3867 _ACEOF
3868
3869 # Some tools Automake needs.
3870
3871 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3872
3873
3874 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3875
3876
3877 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3878
3879
3880 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3881
3882
3883 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3884
3885 # We need awk for the "check" target.  The system "awk" is bad on
3886 # some platforms.
3887 # Always define AMTAR for backward compatibility.
3888
3889 AMTAR=${AMTAR-"${am_missing_run}tar"}
3890
3891 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3892
3893
3894
3895
3896 depcc="$CC"   am_compiler_list=
3897
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3899 $as_echo_n "checking dependency style of $depcc... " >&6; }
3900 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3901   $as_echo_n "(cached) " >&6
3902 else
3903   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3904   # We make a subdir and do the tests there.  Otherwise we can end up
3905   # making bogus files that we don't know about and never remove.  For
3906   # instance it was reported that on HP-UX the gcc test will end up
3907   # making a dummy file named `D' -- because `-MD' means `put the output
3908   # in D'.
3909   mkdir conftest.dir
3910   # Copy depcomp to subdir because otherwise we won't find it if we're
3911   # using a relative directory.
3912   cp "$am_depcomp" conftest.dir
3913   cd conftest.dir
3914   # We will build objects and dependencies in a subdirectory because
3915   # it helps to detect inapplicable dependency modes.  For instance
3916   # both Tru64's cc and ICC support -MD to output dependencies as a
3917   # side effect of compilation, but ICC will put the dependencies in
3918   # the current directory while Tru64 will put them in the object
3919   # directory.
3920   mkdir sub
3921
3922   am_cv_CC_dependencies_compiler_type=none
3923   if test "$am_compiler_list" = ""; then
3924      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3925   fi
3926   am__universal=false
3927   case " $depcc " in #(
3928      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3929      esac
3930
3931   for depmode in $am_compiler_list; do
3932     # Setup a source with many dependencies, because some compilers
3933     # like to wrap large dependency lists on column 80 (with \), and
3934     # we should not choose a depcomp mode which is confused by this.
3935     #
3936     # We need to recreate these files for each test, as the compiler may
3937     # overwrite some of them when testing with obscure command lines.
3938     # This happens at least with the AIX C compiler.
3939     : > sub/conftest.c
3940     for i in 1 2 3 4 5 6; do
3941       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3942       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3943       # Solaris 8's {/usr,}/bin/sh.
3944       touch sub/conftst$i.h
3945     done
3946     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3947
3948     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3949     # mode.  It turns out that the SunPro C++ compiler does not properly
3950     # handle `-M -o', and we need to detect this.  Also, some Intel
3951     # versions had trouble with output in subdirs
3952     am__obj=sub/conftest.${OBJEXT-o}
3953     am__minus_obj="-o $am__obj"
3954     case $depmode in
3955     gcc)
3956       # This depmode causes a compiler race in universal mode.
3957       test "$am__universal" = false || continue
3958       ;;
3959     nosideeffect)
3960       # after this tag, mechanisms are not by side-effect, so they'll
3961       # only be used when explicitly requested
3962       if test "x$enable_dependency_tracking" = xyes; then
3963         continue
3964       else
3965         break
3966       fi
3967       ;;
3968     msvisualcpp | msvcmsys)
3969       # This compiler won't grok `-c -o', but also, the minuso test has
3970       # not run yet.  These depmodes are late enough in the game, and
3971       # so weak that their functioning should not be impacted.
3972       am__obj=conftest.${OBJEXT-o}
3973       am__minus_obj=
3974       ;;
3975     none) break ;;
3976     esac
3977     if depmode=$depmode \
3978        source=sub/conftest.c object=$am__obj \
3979        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3980        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3981          >/dev/null 2>conftest.err &&
3982        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3983        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3984        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3985        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3986       # icc doesn't choke on unknown options, it will just issue warnings
3987       # or remarks (even with -Werror).  So we grep stderr for any message
3988       # that says an option was ignored or not supported.
3989       # When given -MP, icc 7.0 and 7.1 complain thusly:
3990       #   icc: Command line warning: ignoring option '-M'; no argument required
3991       # The diagnosis changed in icc 8.0:
3992       #   icc: Command line remark: option '-MP' not supported
3993       if (grep 'ignoring option' conftest.err ||
3994           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3995         am_cv_CC_dependencies_compiler_type=$depmode
3996         break
3997       fi
3998     fi
3999   done
4000
4001   cd ..
4002   rm -rf conftest.dir
4003 else
4004   am_cv_CC_dependencies_compiler_type=none
4005 fi
4006
4007 fi
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4009 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4010 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4011
4012  if
4013   test "x$enable_dependency_tracking" != xno \
4014   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4015   am__fastdepCC_TRUE=
4016   am__fastdepCC_FALSE='#'
4017 else
4018   am__fastdepCC_TRUE='#'
4019   am__fastdepCC_FALSE=
4020 fi
4021
4022
4023
4024
4025 ac_ext=c
4026 ac_cpp='$CPP $CPPFLAGS'
4027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4030 if test -n "$ac_tool_prefix"; then
4031   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4032 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034 $as_echo_n "checking for $ac_word... " >&6; }
4035 if test "${ac_cv_prog_CC+set}" = set; then :
4036   $as_echo_n "(cached) " >&6
4037 else
4038   if test -n "$CC"; then
4039   ac_cv_prog_CC="$CC" # Let the user override the test.
4040 else
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4043 do
4044   IFS=$as_save_IFS
4045   test -z "$as_dir" && as_dir=.
4046     for ac_exec_ext in '' $ac_executable_extensions; do
4047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4050     break 2
4051   fi
4052 done
4053   done
4054 IFS=$as_save_IFS
4055
4056 fi
4057 fi
4058 CC=$ac_cv_prog_CC
4059 if test -n "$CC"; then
4060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4061 $as_echo "$CC" >&6; }
4062 else
4063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064 $as_echo "no" >&6; }
4065 fi
4066
4067
4068 fi
4069 if test -z "$ac_cv_prog_CC"; then
4070   ac_ct_CC=$CC
4071   # Extract the first word of "gcc", so it can be a program name with args.
4072 set dummy gcc; ac_word=$2
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4076   $as_echo_n "(cached) " >&6
4077 else
4078   if test -n "$ac_ct_CC"; then
4079   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4083 do
4084   IFS=$as_save_IFS
4085   test -z "$as_dir" && as_dir=.
4086     for ac_exec_ext in '' $ac_executable_extensions; do
4087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4088     ac_cv_prog_ac_ct_CC="gcc"
4089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4090     break 2
4091   fi
4092 done
4093   done
4094 IFS=$as_save_IFS
4095
4096 fi
4097 fi
4098 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4099 if test -n "$ac_ct_CC"; then
4100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4101 $as_echo "$ac_ct_CC" >&6; }
4102 else
4103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 $as_echo "no" >&6; }
4105 fi
4106
4107   if test "x$ac_ct_CC" = x; then
4108     CC=""
4109   else
4110     case $cross_compiling:$ac_tool_warned in
4111 yes:)
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4114 ac_tool_warned=yes ;;
4115 esac
4116     CC=$ac_ct_CC
4117   fi
4118 else
4119   CC="$ac_cv_prog_CC"
4120 fi
4121
4122 if test -z "$CC"; then
4123           if test -n "$ac_tool_prefix"; then
4124     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4125 set dummy ${ac_tool_prefix}cc; ac_word=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if test "${ac_cv_prog_CC+set}" = set; then :
4129   $as_echo_n "(cached) " >&6
4130 else
4131   if test -n "$CC"; then
4132   ac_cv_prog_CC="$CC" # Let the user override the test.
4133 else
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4136 do
4137   IFS=$as_save_IFS
4138   test -z "$as_dir" && as_dir=.
4139     for ac_exec_ext in '' $ac_executable_extensions; do
4140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141     ac_cv_prog_CC="${ac_tool_prefix}cc"
4142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4143     break 2
4144   fi
4145 done
4146   done
4147 IFS=$as_save_IFS
4148
4149 fi
4150 fi
4151 CC=$ac_cv_prog_CC
4152 if test -n "$CC"; then
4153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4154 $as_echo "$CC" >&6; }
4155 else
4156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 $as_echo "no" >&6; }
4158 fi
4159
4160
4161   fi
4162 fi
4163 if test -z "$CC"; then
4164   # Extract the first word of "cc", so it can be a program name with args.
4165 set dummy cc; ac_word=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if test "${ac_cv_prog_CC+set}" = set; then :
4169   $as_echo_n "(cached) " >&6
4170 else
4171   if test -n "$CC"; then
4172   ac_cv_prog_CC="$CC" # Let the user override the test.
4173 else
4174   ac_prog_rejected=no
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178   IFS=$as_save_IFS
4179   test -z "$as_dir" && as_dir=.
4180     for ac_exec_ext in '' $ac_executable_extensions; do
4181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4183        ac_prog_rejected=yes
4184        continue
4185      fi
4186     ac_cv_prog_CC="cc"
4187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188     break 2
4189   fi
4190 done
4191   done
4192 IFS=$as_save_IFS
4193
4194 if test $ac_prog_rejected = yes; then
4195   # We found a bogon in the path, so make sure we never use it.
4196   set dummy $ac_cv_prog_CC
4197   shift
4198   if test $# != 0; then
4199     # We chose a different compiler from the bogus one.
4200     # However, it has the same basename, so the bogon will be chosen
4201     # first if we set CC to just the basename; use the full file name.
4202     shift
4203     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4204   fi
4205 fi
4206 fi
4207 fi
4208 CC=$ac_cv_prog_CC
4209 if test -n "$CC"; then
4210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4211 $as_echo "$CC" >&6; }
4212 else
4213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 $as_echo "no" >&6; }
4215 fi
4216
4217
4218 fi
4219 if test -z "$CC"; then
4220   if test -n "$ac_tool_prefix"; then
4221   for ac_prog in cl.exe
4222   do
4223     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if test "${ac_cv_prog_CC+set}" = set; then :
4228   $as_echo_n "(cached) " >&6
4229 else
4230   if test -n "$CC"; then
4231   ac_cv_prog_CC="$CC" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4235 do
4236   IFS=$as_save_IFS
4237   test -z "$as_dir" && as_dir=.
4238     for ac_exec_ext in '' $ac_executable_extensions; do
4239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4240     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242     break 2
4243   fi
4244 done
4245   done
4246 IFS=$as_save_IFS
4247
4248 fi
4249 fi
4250 CC=$ac_cv_prog_CC
4251 if test -n "$CC"; then
4252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4253 $as_echo "$CC" >&6; }
4254 else
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4257 fi
4258
4259
4260     test -n "$CC" && break
4261   done
4262 fi
4263 if test -z "$CC"; then
4264   ac_ct_CC=$CC
4265   for ac_prog in cl.exe
4266 do
4267   # Extract the first word of "$ac_prog", so it can be a program name with args.
4268 set dummy $ac_prog; ac_word=$2
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270 $as_echo_n "checking for $ac_word... " >&6; }
4271 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4272   $as_echo_n "(cached) " >&6
4273 else
4274   if test -n "$ac_ct_CC"; then
4275   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4276 else
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4279 do
4280   IFS=$as_save_IFS
4281   test -z "$as_dir" && as_dir=.
4282     for ac_exec_ext in '' $ac_executable_extensions; do
4283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4284     ac_cv_prog_ac_ct_CC="$ac_prog"
4285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286     break 2
4287   fi
4288 done
4289   done
4290 IFS=$as_save_IFS
4291
4292 fi
4293 fi
4294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4295 if test -n "$ac_ct_CC"; then
4296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4297 $as_echo "$ac_ct_CC" >&6; }
4298 else
4299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 $as_echo "no" >&6; }
4301 fi
4302
4303
4304   test -n "$ac_ct_CC" && break
4305 done
4306
4307   if test "x$ac_ct_CC" = x; then
4308     CC=""
4309   else
4310     case $cross_compiling:$ac_tool_warned in
4311 yes:)
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4314 ac_tool_warned=yes ;;
4315 esac
4316     CC=$ac_ct_CC
4317   fi
4318 fi
4319
4320 fi
4321
4322
4323 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4325 as_fn_error "no acceptable C compiler found in \$PATH
4326 See \`config.log' for more details." "$LINENO" 5; }
4327
4328 # Provide some information about the compiler.
4329 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4330 set X $ac_compile
4331 ac_compiler=$2
4332 for ac_option in --version -v -V -qversion; do
4333   { { ac_try="$ac_compiler $ac_option >&5"
4334 case "(($ac_try" in
4335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336   *) ac_try_echo=$ac_try;;
4337 esac
4338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4339 $as_echo "$ac_try_echo"; } >&5
4340   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4341   ac_status=$?
4342   if test -s conftest.err; then
4343     sed '10a\
4344 ... rest of stderr output deleted ...
4345          10q' conftest.err >conftest.er1
4346     cat conftest.er1 >&5
4347     rm -f conftest.er1 conftest.err
4348   fi
4349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4350   test $ac_status = 0; }
4351 done
4352
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4354 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4355 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4356   $as_echo_n "(cached) " >&6
4357 else
4358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h.  */
4360
4361 int
4362 main ()
4363 {
4364 #ifndef __GNUC__
4365        choke me
4366 #endif
4367
4368   ;
4369   return 0;
4370 }
4371 _ACEOF
4372 if ac_fn_c_try_compile "$LINENO"; then :
4373   ac_compiler_gnu=yes
4374 else
4375   ac_compiler_gnu=no
4376 fi
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4379
4380 fi
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4382 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4383 if test $ac_compiler_gnu = yes; then
4384   GCC=yes
4385 else
4386   GCC=
4387 fi
4388 ac_test_CFLAGS=${CFLAGS+set}
4389 ac_save_CFLAGS=$CFLAGS
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4391 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4392 if test "${ac_cv_prog_cc_g+set}" = set; then :
4393   $as_echo_n "(cached) " >&6
4394 else
4395   ac_save_c_werror_flag=$ac_c_werror_flag
4396    ac_c_werror_flag=yes
4397    ac_cv_prog_cc_g=no
4398    CFLAGS="-g"
4399    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h.  */
4401
4402 int
4403 main ()
4404 {
4405
4406   ;
4407   return 0;
4408 }
4409 _ACEOF
4410 if ac_fn_c_try_compile "$LINENO"; then :
4411   ac_cv_prog_cc_g=yes
4412 else
4413   CFLAGS=""
4414       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h.  */
4416
4417 int
4418 main ()
4419 {
4420
4421   ;
4422   return 0;
4423 }
4424 _ACEOF
4425 if ac_fn_c_try_compile "$LINENO"; then :
4426
4427 else
4428   ac_c_werror_flag=$ac_save_c_werror_flag
4429          CFLAGS="-g"
4430          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h.  */
4432
4433 int
4434 main ()
4435 {
4436
4437   ;
4438   return 0;
4439 }
4440 _ACEOF
4441 if ac_fn_c_try_compile "$LINENO"; then :
4442   ac_cv_prog_cc_g=yes
4443 fi
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 fi
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 fi
4448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449    ac_c_werror_flag=$ac_save_c_werror_flag
4450 fi
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4452 $as_echo "$ac_cv_prog_cc_g" >&6; }
4453 if test "$ac_test_CFLAGS" = set; then
4454   CFLAGS=$ac_save_CFLAGS
4455 elif test $ac_cv_prog_cc_g = yes; then
4456   if test "$GCC" = yes; then
4457     CFLAGS="-g -O2"
4458   else
4459     CFLAGS="-g"
4460   fi
4461 else
4462   if test "$GCC" = yes; then
4463     CFLAGS="-O2"
4464   else
4465     CFLAGS=
4466   fi
4467 fi
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4469 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4470 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4471   $as_echo_n "(cached) " >&6
4472 else
4473   ac_cv_prog_cc_c89=no
4474 ac_save_CC=$CC
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h.  */
4477 #include <stdarg.h>
4478 #include <stdio.h>
4479 #include <sys/types.h>
4480 #include <sys/stat.h>
4481 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4482 struct buf { int x; };
4483 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4484 static char *e (p, i)
4485      char **p;
4486      int i;
4487 {
4488   return p[i];
4489 }
4490 static char *f (char * (*g) (char **, int), char **p, ...)
4491 {
4492   char *s;
4493   va_list v;
4494   va_start (v,p);
4495   s = g (p, va_arg (v,int));
4496   va_end (v);
4497   return s;
4498 }
4499
4500 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4501    function prototypes and stuff, but not '\xHH' hex character constants.
4502    These don't provoke an error unfortunately, instead are silently treated
4503    as 'x'.  The following induces an error, until -std is added to get
4504    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4505    array size at least.  It's necessary to write '\x00'==0 to get something
4506    that's true only with -std.  */
4507 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4508
4509 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4510    inside strings and character constants.  */
4511 #define FOO(x) 'x'
4512 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4513
4514 int test (int i, double x);
4515 struct s1 {int (*f) (int a);};
4516 struct s2 {int (*f) (double a);};
4517 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4518 int argc;
4519 char **argv;
4520 int
4521 main ()
4522 {
4523 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4524   ;
4525   return 0;
4526 }
4527 _ACEOF
4528 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4529         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4530 do
4531   CC="$ac_save_CC $ac_arg"
4532   if ac_fn_c_try_compile "$LINENO"; then :
4533   ac_cv_prog_cc_c89=$ac_arg
4534 fi
4535 rm -f core conftest.err conftest.$ac_objext
4536   test "x$ac_cv_prog_cc_c89" != "xno" && break
4537 done
4538 rm -f conftest.$ac_ext
4539 CC=$ac_save_CC
4540
4541 fi
4542 # AC_CACHE_VAL
4543 case "x$ac_cv_prog_cc_c89" in
4544   x)
4545     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4546 $as_echo "none needed" >&6; } ;;
4547   xno)
4548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4549 $as_echo "unsupported" >&6; } ;;
4550   *)
4551     CC="$CC $ac_cv_prog_cc_c89"
4552     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4553 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4554 esac
4555 if test "x$ac_cv_prog_cc_c89" != xno; then :
4556
4557 fi
4558
4559 ac_ext=c
4560 ac_cpp='$CPP $CPPFLAGS'
4561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4564
4565 ac_ext=c
4566 ac_cpp='$CPP $CPPFLAGS'
4567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4571 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4572 # On Suns, sometimes $CPP names a directory.
4573 if test -n "$CPP" && test -d "$CPP"; then
4574   CPP=
4575 fi
4576 if test -z "$CPP"; then
4577   if test "${ac_cv_prog_CPP+set}" = set; then :
4578   $as_echo_n "(cached) " >&6
4579 else
4580       # Double quotes because CPP needs to be expanded
4581     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4582     do
4583       ac_preproc_ok=false
4584 for ac_c_preproc_warn_flag in '' yes
4585 do
4586   # Use a header file that comes with gcc, so configuring glibc
4587   # with a fresh cross-compiler works.
4588   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4589   # <limits.h> exists even on freestanding compilers.
4590   # On the NeXT, cc -E runs the code through the compiler's parser,
4591   # not just through cpp. "Syntax error" is here to catch this case.
4592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h.  */
4594 #ifdef __STDC__
4595 # include <limits.h>
4596 #else
4597 # include <assert.h>
4598 #endif
4599                      Syntax error
4600 _ACEOF
4601 if ac_fn_c_try_cpp "$LINENO"; then :
4602
4603 else
4604   # Broken: fails on valid input.
4605 continue
4606 fi
4607 rm -f conftest.err conftest.$ac_ext
4608
4609   # OK, works on sane cases.  Now check whether nonexistent headers
4610   # can be detected and how.
4611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h.  */
4613 #include <ac_nonexistent.h>
4614 _ACEOF
4615 if ac_fn_c_try_cpp "$LINENO"; then :
4616   # Broken: success on invalid input.
4617 continue
4618 else
4619   # Passes both tests.
4620 ac_preproc_ok=:
4621 break
4622 fi
4623 rm -f conftest.err conftest.$ac_ext
4624
4625 done
4626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4627 rm -f conftest.err conftest.$ac_ext
4628 if $ac_preproc_ok; then :
4629   break
4630 fi
4631
4632     done
4633     ac_cv_prog_CPP=$CPP
4634
4635 fi
4636   CPP=$ac_cv_prog_CPP
4637 else
4638   ac_cv_prog_CPP=$CPP
4639 fi
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4641 $as_echo "$CPP" >&6; }
4642 ac_preproc_ok=false
4643 for ac_c_preproc_warn_flag in '' yes
4644 do
4645   # Use a header file that comes with gcc, so configuring glibc
4646   # with a fresh cross-compiler works.
4647   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4648   # <limits.h> exists even on freestanding compilers.
4649   # On the NeXT, cc -E runs the code through the compiler's parser,
4650   # not just through cpp. "Syntax error" is here to catch this case.
4651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h.  */
4653 #ifdef __STDC__
4654 # include <limits.h>
4655 #else
4656 # include <assert.h>
4657 #endif
4658                      Syntax error
4659 _ACEOF
4660 if ac_fn_c_try_cpp "$LINENO"; then :
4661
4662 else
4663   # Broken: fails on valid input.
4664 continue
4665 fi
4666 rm -f conftest.err conftest.$ac_ext
4667
4668   # OK, works on sane cases.  Now check whether nonexistent headers
4669   # can be detected and how.
4670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h.  */
4672 #include <ac_nonexistent.h>
4673 _ACEOF
4674 if ac_fn_c_try_cpp "$LINENO"; then :
4675   # Broken: success on invalid input.
4676 continue
4677 else
4678   # Passes both tests.
4679 ac_preproc_ok=:
4680 break
4681 fi
4682 rm -f conftest.err conftest.$ac_ext
4683
4684 done
4685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4686 rm -f conftest.err conftest.$ac_ext
4687 if $ac_preproc_ok; then :
4688
4689 else
4690   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4692 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4693 See \`config.log' for more details." "$LINENO" 5; }
4694 fi
4695
4696 ac_ext=c
4697 ac_cpp='$CPP $CPPFLAGS'
4698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4701
4702
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4704 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4705 if test "${ac_cv_path_GREP+set}" = set; then :
4706   $as_echo_n "(cached) " >&6
4707 else
4708   if test -z "$GREP"; then
4709   ac_path_GREP_found=false
4710   # Loop through the user's path and test for each of PROGNAME-LIST
4711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4713 do
4714   IFS=$as_save_IFS
4715   test -z "$as_dir" && as_dir=.
4716     for ac_prog in grep ggrep; do
4717     for ac_exec_ext in '' $ac_executable_extensions; do
4718       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4719       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4720 # Check for GNU ac_path_GREP and select it if it is found.
4721   # Check for GNU $ac_path_GREP
4722 case `"$ac_path_GREP" --version 2>&1` in
4723 *GNU*)
4724   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4725 *)
4726   ac_count=0
4727   $as_echo_n 0123456789 >"conftest.in"
4728   while :
4729   do
4730     cat "conftest.in" "conftest.in" >"conftest.tmp"
4731     mv "conftest.tmp" "conftest.in"
4732     cp "conftest.in" "conftest.nl"
4733     $as_echo 'GREP' >> "conftest.nl"
4734     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4735     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4736     as_fn_arith $ac_count + 1 && ac_count=$as_val
4737     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4738       # Best one so far, save it but keep looking for a better one
4739       ac_cv_path_GREP="$ac_path_GREP"
4740       ac_path_GREP_max=$ac_count
4741     fi
4742     # 10*(2^10) chars as input seems more than enough
4743     test $ac_count -gt 10 && break
4744   done
4745   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4746 esac
4747
4748       $ac_path_GREP_found && break 3
4749     done
4750   done
4751   done
4752 IFS=$as_save_IFS
4753   if test -z "$ac_cv_path_GREP"; then
4754     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4755   fi
4756 else
4757   ac_cv_path_GREP=$GREP
4758 fi
4759
4760 fi
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4762 $as_echo "$ac_cv_path_GREP" >&6; }
4763  GREP="$ac_cv_path_GREP"
4764
4765
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4767 $as_echo_n "checking for egrep... " >&6; }
4768 if test "${ac_cv_path_EGREP+set}" = set; then :
4769   $as_echo_n "(cached) " >&6
4770 else
4771   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4772    then ac_cv_path_EGREP="$GREP -E"
4773    else
4774      if test -z "$EGREP"; then
4775   ac_path_EGREP_found=false
4776   # Loop through the user's path and test for each of PROGNAME-LIST
4777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4779 do
4780   IFS=$as_save_IFS
4781   test -z "$as_dir" && as_dir=.
4782     for ac_prog in egrep; do
4783     for ac_exec_ext in '' $ac_executable_extensions; do
4784       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4785       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4786 # Check for GNU ac_path_EGREP and select it if it is found.
4787   # Check for GNU $ac_path_EGREP
4788 case `"$ac_path_EGREP" --version 2>&1` in
4789 *GNU*)
4790   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4791 *)
4792   ac_count=0
4793   $as_echo_n 0123456789 >"conftest.in"
4794   while :
4795   do
4796     cat "conftest.in" "conftest.in" >"conftest.tmp"
4797     mv "conftest.tmp" "conftest.in"
4798     cp "conftest.in" "conftest.nl"
4799     $as_echo 'EGREP' >> "conftest.nl"
4800     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4801     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4802     as_fn_arith $ac_count + 1 && ac_count=$as_val
4803     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4804       # Best one so far, save it but keep looking for a better one
4805       ac_cv_path_EGREP="$ac_path_EGREP"
4806       ac_path_EGREP_max=$ac_count
4807     fi
4808     # 10*(2^10) chars as input seems more than enough
4809     test $ac_count -gt 10 && break
4810   done
4811   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4812 esac
4813
4814       $ac_path_EGREP_found && break 3
4815     done
4816   done
4817   done
4818 IFS=$as_save_IFS
4819   if test -z "$ac_cv_path_EGREP"; then
4820     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4821   fi
4822 else
4823   ac_cv_path_EGREP=$EGREP
4824 fi
4825
4826    fi
4827 fi
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4829 $as_echo "$ac_cv_path_EGREP" >&6; }
4830  EGREP="$ac_cv_path_EGREP"
4831
4832
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4834 $as_echo_n "checking for ANSI C header files... " >&6; }
4835 if test "${ac_cv_header_stdc+set}" = set; then :
4836   $as_echo_n "(cached) " >&6
4837 else
4838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h.  */
4840 #include <stdlib.h>
4841 #include <stdarg.h>
4842 #include <string.h>
4843 #include <float.h>
4844
4845 int
4846 main ()
4847 {
4848
4849   ;
4850   return 0;
4851 }
4852 _ACEOF
4853 if ac_fn_c_try_compile "$LINENO"; then :
4854   ac_cv_header_stdc=yes
4855 else
4856   ac_cv_header_stdc=no
4857 fi
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859
4860 if test $ac_cv_header_stdc = yes; then
4861   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h.  */
4864 #include <string.h>
4865
4866 _ACEOF
4867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4868   $EGREP "memchr" >/dev/null 2>&1; then :
4869
4870 else
4871   ac_cv_header_stdc=no
4872 fi
4873 rm -f conftest*
4874
4875 fi
4876
4877 if test $ac_cv_header_stdc = yes; then
4878   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h.  */
4881 #include <stdlib.h>
4882
4883 _ACEOF
4884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4885   $EGREP "free" >/dev/null 2>&1; then :
4886
4887 else
4888   ac_cv_header_stdc=no
4889 fi
4890 rm -f conftest*
4891
4892 fi
4893
4894 if test $ac_cv_header_stdc = yes; then
4895   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4896   if test "$cross_compiling" = yes; then :
4897   :
4898 else
4899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h.  */
4901 #include <ctype.h>
4902 #include <stdlib.h>
4903 #if ((' ' & 0x0FF) == 0x020)
4904 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4905 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4906 #else
4907 # define ISLOWER(c) \
4908                    (('a' <= (c) && (c) <= 'i') \
4909                      || ('j' <= (c) && (c) <= 'r') \
4910                      || ('s' <= (c) && (c) <= 'z'))
4911 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4912 #endif
4913
4914 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4915 int
4916 main ()
4917 {
4918   int i;
4919   for (i = 0; i < 256; i++)
4920     if (XOR (islower (i), ISLOWER (i))
4921         || toupper (i) != TOUPPER (i))
4922       return 2;
4923   return 0;
4924 }
4925 _ACEOF
4926 if ac_fn_c_try_run "$LINENO"; then :
4927
4928 else
4929   ac_cv_header_stdc=no
4930 fi
4931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4932   conftest.$ac_objext conftest.beam conftest.$ac_ext
4933 fi
4934
4935 fi
4936 fi
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4938 $as_echo "$ac_cv_header_stdc" >&6; }
4939 if test $ac_cv_header_stdc = yes; then
4940
4941 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4942
4943 fi
4944
4945 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4946 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4947                   inttypes.h stdint.h unistd.h
4948 do :
4949   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4950 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4951 "
4952 eval as_val=\$$as_ac_Header
4953    if test "x$as_val" = x""yes; then :
4954   cat >>confdefs.h <<_ACEOF
4955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4956 _ACEOF
4957
4958 fi
4959
4960 done
4961
4962
4963
4964   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4965 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4966   MINIX=yes
4967 else
4968   MINIX=
4969 fi
4970
4971
4972   if test "$MINIX" = yes; then
4973
4974 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4975
4976
4977 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4978
4979
4980 $as_echo "#define _MINIX 1" >>confdefs.h
4981
4982   fi
4983
4984
4985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4986 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4987 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4988   $as_echo_n "(cached) " >&6
4989 else
4990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h.  */
4992
4993 #         define __EXTENSIONS__ 1
4994           $ac_includes_default
4995 int
4996 main ()
4997 {
4998
4999   ;
5000   return 0;
5001 }
5002 _ACEOF
5003 if ac_fn_c_try_compile "$LINENO"; then :
5004   ac_cv_safe_to_define___extensions__=yes
5005 else
5006   ac_cv_safe_to_define___extensions__=no
5007 fi
5008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009 fi
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5011 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5012   test $ac_cv_safe_to_define___extensions__ = yes &&
5013     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5014
5015   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5016
5017   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5018
5019   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5020
5021   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5022
5023
5024
5025
5026
5027 # The tests for host and target for $enable_largefile require
5028 # canonical names.
5029
5030
5031
5032 # As the $enable_largefile decision depends on --enable-plugins we must set it
5033 # even in directories otherwise not depending on the $plugins option.
5034
5035
5036 # Check whether --enable-plugins was given.
5037 if test "${enable_plugins+set}" = set; then :
5038   enableval=$enable_plugins; case "${enableval}" in
5039   yes | "") plugins=yes ;;
5040   no) plugins=no ;;
5041   *) plugins=yes ;;
5042  esac
5043 else
5044   plugins=no
5045 fi
5046
5047
5048
5049 case "${host}" in
5050   sparc-*-solaris*|i[3-7]86-*-solaris*)
5051     # On native 32bit sparc and ia32 solaris, large-file and procfs support
5052     # are mutually exclusive; and without procfs support, the bfd/ elf module
5053     # cannot provide certain routines such as elfcore_write_prpsinfo
5054     # or elfcore_write_prstatus.  So unless the user explicitly requested
5055     # large-file support through the --enable-largefile switch, disable
5056     # large-file support in favor of procfs support.
5057     test "${target}" = "${host}" -a "x$plugins" = xno \
5058       && : ${enable_largefile="no"}
5059     ;;
5060 esac
5061
5062 # Check whether --enable-largefile was given.
5063 if test "${enable_largefile+set}" = set; then :
5064   enableval=$enable_largefile;
5065 fi
5066
5067 if test "$enable_largefile" != no; then
5068
5069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5070 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5071 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5072   $as_echo_n "(cached) " >&6
5073 else
5074   ac_cv_sys_largefile_CC=no
5075      if test "$GCC" != yes; then
5076        ac_save_CC=$CC
5077        while :; do
5078          # IRIX 6.2 and later do not support large files by default,
5079          # so use the C compiler's -n32 option if that helps.
5080          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h.  */
5082 #include <sys/types.h>
5083  /* Check that off_t can represent 2**63 - 1 correctly.
5084     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5085     since some C++ compilers masquerading as C compilers
5086     incorrectly reject 9223372036854775807.  */
5087 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5088   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5089                        && LARGE_OFF_T % 2147483647 == 1)
5090                       ? 1 : -1];
5091 int
5092 main ()
5093 {
5094
5095   ;
5096   return 0;
5097 }
5098 _ACEOF
5099          if ac_fn_c_try_compile "$LINENO"; then :
5100   break
5101 fi
5102 rm -f core conftest.err conftest.$ac_objext
5103          CC="$CC -n32"
5104          if ac_fn_c_try_compile "$LINENO"; then :
5105   ac_cv_sys_largefile_CC=' -n32'; break
5106 fi
5107 rm -f core conftest.err conftest.$ac_objext
5108          break
5109        done
5110        CC=$ac_save_CC
5111        rm -f conftest.$ac_ext
5112     fi
5113 fi
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5115 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5116   if test "$ac_cv_sys_largefile_CC" != no; then
5117     CC=$CC$ac_cv_sys_largefile_CC
5118   fi
5119
5120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5121 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5122 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5123   $as_echo_n "(cached) " >&6
5124 else
5125   while :; do
5126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h.  */
5128 #include <sys/types.h>
5129  /* Check that off_t can represent 2**63 - 1 correctly.
5130     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5131     since some C++ compilers masquerading as C compilers
5132     incorrectly reject 9223372036854775807.  */
5133 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5134   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5135                        && LARGE_OFF_T % 2147483647 == 1)
5136                       ? 1 : -1];
5137 int
5138 main ()
5139 {
5140
5141   ;
5142   return 0;
5143 }
5144 _ACEOF
5145 if ac_fn_c_try_compile "$LINENO"; then :
5146   ac_cv_sys_file_offset_bits=no; break
5147 fi
5148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h.  */
5151 #define _FILE_OFFSET_BITS 64
5152 #include <sys/types.h>
5153  /* Check that off_t can represent 2**63 - 1 correctly.
5154     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5155     since some C++ compilers masquerading as C compilers
5156     incorrectly reject 9223372036854775807.  */
5157 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5158   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5159                        && LARGE_OFF_T % 2147483647 == 1)
5160                       ? 1 : -1];
5161 int
5162 main ()
5163 {
5164
5165   ;
5166   return 0;
5167 }
5168 _ACEOF
5169 if ac_fn_c_try_compile "$LINENO"; then :
5170   ac_cv_sys_file_offset_bits=64; break
5171 fi
5172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173   ac_cv_sys_file_offset_bits=unknown
5174   break
5175 done
5176 fi
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5178 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5179 case $ac_cv_sys_file_offset_bits in #(
5180   no | unknown) ;;
5181   *)
5182 cat >>confdefs.h <<_ACEOF
5183 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5184 _ACEOF
5185 ;;
5186 esac
5187 rm -rf conftest*
5188   if test $ac_cv_sys_file_offset_bits = unknown; then
5189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5190 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5191 if test "${ac_cv_sys_large_files+set}" = set; then :
5192   $as_echo_n "(cached) " >&6
5193 else
5194   while :; do
5195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h.  */
5197 #include <sys/types.h>
5198  /* Check that off_t can represent 2**63 - 1 correctly.
5199     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5200     since some C++ compilers masquerading as C compilers
5201     incorrectly reject 9223372036854775807.  */
5202 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5203   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5204                        && LARGE_OFF_T % 2147483647 == 1)
5205                       ? 1 : -1];
5206 int
5207 main ()
5208 {
5209
5210   ;
5211   return 0;
5212 }
5213 _ACEOF
5214 if ac_fn_c_try_compile "$LINENO"; then :
5215   ac_cv_sys_large_files=no; break
5216 fi
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h.  */
5220 #define _LARGE_FILES 1
5221 #include <sys/types.h>
5222  /* Check that off_t can represent 2**63 - 1 correctly.
5223     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5224     since some C++ compilers masquerading as C compilers
5225     incorrectly reject 9223372036854775807.  */
5226 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5227   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5228                        && LARGE_OFF_T % 2147483647 == 1)
5229                       ? 1 : -1];
5230 int
5231 main ()
5232 {
5233
5234   ;
5235   return 0;
5236 }
5237 _ACEOF
5238 if ac_fn_c_try_compile "$LINENO"; then :
5239   ac_cv_sys_large_files=1; break
5240 fi
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242   ac_cv_sys_large_files=unknown
5243   break
5244 done
5245 fi
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5247 $as_echo "$ac_cv_sys_large_files" >&6; }
5248 case $ac_cv_sys_large_files in #(
5249   no | unknown) ;;
5250   *)
5251 cat >>confdefs.h <<_ACEOF
5252 #define _LARGE_FILES $ac_cv_sys_large_files
5253 _ACEOF
5254 ;;
5255 esac
5256 rm -rf conftest*
5257   fi
5258 fi
5259
5260
5261
5262 case `pwd` in
5263   *\ * | *\     *)
5264     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5265 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5266 esac
5267
5268
5269
5270 macro_version='2.2.6'
5271 macro_revision='1.3012'
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285 ltmain="$ac_aux_dir/ltmain.sh"
5286
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5288 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5289 if test "${ac_cv_path_SED+set}" = set; then :
5290   $as_echo_n "(cached) " >&6
5291 else
5292             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5293      for ac_i in 1 2 3 4 5 6 7; do
5294        ac_script="$ac_script$as_nl$ac_script"
5295      done
5296      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5297      { ac_script=; unset ac_script;}
5298      if test -z "$SED"; then
5299   ac_path_SED_found=false
5300   # Loop through the user's path and test for each of PROGNAME-LIST
5301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5303 do
5304   IFS=$as_save_IFS
5305   test -z "$as_dir" && as_dir=.
5306     for ac_prog in sed gsed; do
5307     for ac_exec_ext in '' $ac_executable_extensions; do
5308       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5309       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5310 # Check for GNU ac_path_SED and select it if it is found.
5311   # Check for GNU $ac_path_SED
5312 case `"$ac_path_SED" --version 2>&1` in
5313 *GNU*)
5314   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5315 *)
5316   ac_count=0
5317   $as_echo_n 0123456789 >"conftest.in"
5318   while :
5319   do
5320     cat "conftest.in" "conftest.in" >"conftest.tmp"
5321     mv "conftest.tmp" "conftest.in"
5322     cp "conftest.in" "conftest.nl"
5323     $as_echo '' >> "conftest.nl"
5324     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5325     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5326     as_fn_arith $ac_count + 1 && ac_count=$as_val
5327     if test $ac_count -gt ${ac_path_SED_max-0}; then
5328       # Best one so far, save it but keep looking for a better one
5329       ac_cv_path_SED="$ac_path_SED"
5330       ac_path_SED_max=$ac_count
5331     fi
5332     # 10*(2^10) chars as input seems more than enough
5333     test $ac_count -gt 10 && break
5334   done
5335   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5336 esac
5337
5338       $ac_path_SED_found && break 3
5339     done
5340   done
5341   done
5342 IFS=$as_save_IFS
5343   if test -z "$ac_cv_path_SED"; then
5344     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5345   fi
5346 else
5347   ac_cv_path_SED=$SED
5348 fi
5349
5350 fi
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5352 $as_echo "$ac_cv_path_SED" >&6; }
5353  SED="$ac_cv_path_SED"
5354   rm -f conftest.sed
5355
5356 test -z "$SED" && SED=sed
5357 Xsed="$SED -e 1s/^X//"
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5370 $as_echo_n "checking for fgrep... " >&6; }
5371 if test "${ac_cv_path_FGREP+set}" = set; then :
5372   $as_echo_n "(cached) " >&6
5373 else
5374   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5375    then ac_cv_path_FGREP="$GREP -F"
5376    else
5377      if test -z "$FGREP"; then
5378   ac_path_FGREP_found=false
5379   # Loop through the user's path and test for each of PROGNAME-LIST
5380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5382 do
5383   IFS=$as_save_IFS
5384   test -z "$as_dir" && as_dir=.
5385     for ac_prog in fgrep; do
5386     for ac_exec_ext in '' $ac_executable_extensions; do
5387       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5388       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5389 # Check for GNU ac_path_FGREP and select it if it is found.
5390   # Check for GNU $ac_path_FGREP
5391 case `"$ac_path_FGREP" --version 2>&1` in
5392 *GNU*)
5393   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5394 *)
5395   ac_count=0
5396   $as_echo_n 0123456789 >"conftest.in"
5397   while :
5398   do
5399     cat "conftest.in" "conftest.in" >"conftest.tmp"
5400     mv "conftest.tmp" "conftest.in"
5401     cp "conftest.in" "conftest.nl"
5402     $as_echo 'FGREP' >> "conftest.nl"
5403     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5404     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5405     as_fn_arith $ac_count + 1 && ac_count=$as_val
5406     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5407       # Best one so far, save it but keep looking for a better one
5408       ac_cv_path_FGREP="$ac_path_FGREP"
5409       ac_path_FGREP_max=$ac_count
5410     fi
5411     # 10*(2^10) chars as input seems more than enough
5412     test $ac_count -gt 10 && break
5413   done
5414   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5415 esac
5416
5417       $ac_path_FGREP_found && break 3
5418     done
5419   done
5420   done
5421 IFS=$as_save_IFS
5422   if test -z "$ac_cv_path_FGREP"; then
5423     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5424   fi
5425 else
5426   ac_cv_path_FGREP=$FGREP
5427 fi
5428
5429    fi
5430 fi
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5432 $as_echo "$ac_cv_path_FGREP" >&6; }
5433  FGREP="$ac_cv_path_FGREP"
5434
5435
5436 test -z "$GREP" && GREP=grep
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456 # Check whether --with-gnu-ld was given.
5457 if test "${with_gnu_ld+set}" = set; then :
5458   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5459 else
5460   with_gnu_ld=no
5461 fi
5462
5463 ac_prog=ld
5464 if test "$GCC" = yes; then
5465   # Check if gcc -print-prog-name=ld gives a path.
5466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5467 $as_echo_n "checking for ld used by $CC... " >&6; }
5468   case $host in
5469   *-*-mingw*)
5470     # gcc leaves a trailing carriage return which upsets mingw
5471     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5472   *)
5473     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5474   esac
5475   case $ac_prog in
5476     # Accept absolute paths.
5477     [\\/]* | ?:[\\/]*)
5478       re_direlt='/[^/][^/]*/\.\./'
5479       # Canonicalize the pathname of ld
5480       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5481       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5482         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5483       done
5484       test -z "$LD" && LD="$ac_prog"
5485       ;;
5486   "")
5487     # If it fails, then pretend we aren't using GCC.
5488     ac_prog=ld
5489     ;;
5490   *)
5491     # If it is relative, then search for the first ld in PATH.
5492     with_gnu_ld=unknown
5493     ;;
5494   esac
5495 elif test "$with_gnu_ld" = yes; then
5496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5497 $as_echo_n "checking for GNU ld... " >&6; }
5498 else
5499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5500 $as_echo_n "checking for non-GNU ld... " >&6; }
5501 fi
5502 if test "${lt_cv_path_LD+set}" = set; then :
5503   $as_echo_n "(cached) " >&6
5504 else
5505   if test -z "$LD"; then
5506   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5507   for ac_dir in $PATH; do
5508     IFS="$lt_save_ifs"
5509     test -z "$ac_dir" && ac_dir=.
5510     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5511       lt_cv_path_LD="$ac_dir/$ac_prog"
5512       # Check to see if the program is GNU ld.  I'd rather use --version,
5513       # but apparently some variants of GNU ld only accept -v.
5514       # Break only if it was the GNU/non-GNU ld that we prefer.
5515       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5516       *GNU* | *'with BFD'*)
5517         test "$with_gnu_ld" != no && break
5518         ;;
5519       *)
5520         test "$with_gnu_ld" != yes && break
5521         ;;
5522       esac
5523     fi
5524   done
5525   IFS="$lt_save_ifs"
5526 else
5527   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5528 fi
5529 fi
5530
5531 LD="$lt_cv_path_LD"
5532 if test -n "$LD"; then
5533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5534 $as_echo "$LD" >&6; }
5535 else
5536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5538 fi
5539 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5541 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5542 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5543   $as_echo_n "(cached) " >&6
5544 else
5545   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5546 case `$LD -v 2>&1 </dev/null` in
5547 *GNU* | *'with BFD'*)
5548   lt_cv_prog_gnu_ld=yes
5549   ;;
5550 *)
5551   lt_cv_prog_gnu_ld=no
5552   ;;
5553 esac
5554 fi
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5556 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5557 with_gnu_ld=$lt_cv_prog_gnu_ld
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5568 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5569 if test "${lt_cv_path_NM+set}" = set; then :
5570   $as_echo_n "(cached) " >&6
5571 else
5572   if test -n "$NM"; then
5573   # Let the user override the test.
5574   lt_cv_path_NM="$NM"
5575 else
5576   lt_nm_to_check="${ac_tool_prefix}nm"
5577   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5578     lt_nm_to_check="$lt_nm_to_check nm"
5579   fi
5580   for lt_tmp_nm in $lt_nm_to_check; do
5581     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5582     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5583       IFS="$lt_save_ifs"
5584       test -z "$ac_dir" && ac_dir=.
5585       tmp_nm="$ac_dir/$lt_tmp_nm"
5586       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5587         # Check to see if the nm accepts a BSD-compat flag.
5588         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5589         #   nm: unknown option "B" ignored
5590         # Tru64's nm complains that /dev/null is an invalid object file
5591         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5592         */dev/null* | *'Invalid file or object type'*)
5593           lt_cv_path_NM="$tmp_nm -B"
5594           break
5595           ;;
5596         *)
5597           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5598           */dev/null*)
5599             lt_cv_path_NM="$tmp_nm -p"
5600             break
5601             ;;
5602           *)
5603             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5604             continue # so that we can try to find one that supports BSD flags
5605             ;;
5606           esac
5607           ;;
5608         esac
5609       fi
5610     done
5611     IFS="$lt_save_ifs"
5612   done
5613   : ${lt_cv_path_NM=no}
5614 fi
5615 fi
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5617 $as_echo "$lt_cv_path_NM" >&6; }
5618 if test "$lt_cv_path_NM" != "no"; then
5619   NM="$lt_cv_path_NM"
5620 else
5621   # Didn't find any BSD compatible name lister, look for dumpbin.
5622   if test -n "$ac_tool_prefix"; then
5623   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5624   do
5625     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5630   $as_echo_n "(cached) " >&6
5631 else
5632   if test -n "$DUMPBIN"; then
5633   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5634 else
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5637 do
5638   IFS=$as_save_IFS
5639   test -z "$as_dir" && as_dir=.
5640     for ac_exec_ext in '' $ac_executable_extensions; do
5641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644     break 2
5645   fi
5646 done
5647   done
5648 IFS=$as_save_IFS
5649
5650 fi
5651 fi
5652 DUMPBIN=$ac_cv_prog_DUMPBIN
5653 if test -n "$DUMPBIN"; then
5654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5655 $as_echo "$DUMPBIN" >&6; }
5656 else
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5659 fi
5660
5661
5662     test -n "$DUMPBIN" && break
5663   done
5664 fi
5665 if test -z "$DUMPBIN"; then
5666   ac_ct_DUMPBIN=$DUMPBIN
5667   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5668 do
5669   # Extract the first word of "$ac_prog", so it can be a program name with args.
5670 set dummy $ac_prog; ac_word=$2
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672 $as_echo_n "checking for $ac_word... " >&6; }
5673 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5674   $as_echo_n "(cached) " >&6
5675 else
5676   if test -n "$ac_ct_DUMPBIN"; then
5677   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5678 else
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 for as_dir in $PATH
5681 do
5682   IFS=$as_save_IFS
5683   test -z "$as_dir" && as_dir=.
5684     for ac_exec_ext in '' $ac_executable_extensions; do
5685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5686     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688     break 2
5689   fi
5690 done
5691   done
5692 IFS=$as_save_IFS
5693
5694 fi
5695 fi
5696 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5697 if test -n "$ac_ct_DUMPBIN"; then
5698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5699 $as_echo "$ac_ct_DUMPBIN" >&6; }
5700 else
5701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5703 fi
5704
5705
5706   test -n "$ac_ct_DUMPBIN" && break
5707 done
5708
5709   if test "x$ac_ct_DUMPBIN" = x; then
5710     DUMPBIN=":"
5711   else
5712     case $cross_compiling:$ac_tool_warned in
5713 yes:)
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5716 ac_tool_warned=yes ;;
5717 esac
5718     DUMPBIN=$ac_ct_DUMPBIN
5719   fi
5720 fi
5721
5722
5723   if test "$DUMPBIN" != ":"; then
5724     NM="$DUMPBIN"
5725   fi
5726 fi
5727 test -z "$NM" && NM=nm
5728
5729
5730
5731
5732
5733
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5735 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5736 if test "${lt_cv_nm_interface+set}" = set; then :
5737   $as_echo_n "(cached) " >&6
5738 else
5739   lt_cv_nm_interface="BSD nm"
5740   echo "int some_variable = 0;" > conftest.$ac_ext
5741   (eval echo "\"\$as_me:5741: $ac_compile\"" >&5)
5742   (eval "$ac_compile" 2>conftest.err)
5743   cat conftest.err >&5
5744   (eval echo "\"\$as_me:5744: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5745   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5746   cat conftest.err >&5
5747   (eval echo "\"\$as_me:5747: output\"" >&5)
5748   cat conftest.out >&5
5749   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5750     lt_cv_nm_interface="MS dumpbin"
5751   fi
5752   rm -f conftest*
5753 fi
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5755 $as_echo "$lt_cv_nm_interface" >&6; }
5756
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5758 $as_echo_n "checking whether ln -s works... " >&6; }
5759 LN_S=$as_ln_s
5760 if test "$LN_S" = "ln -s"; then
5761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5762 $as_echo "yes" >&6; }
5763 else
5764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5765 $as_echo "no, using $LN_S" >&6; }
5766 fi
5767
5768 # find the maximum length of command line arguments
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5770 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5771 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5772   $as_echo_n "(cached) " >&6
5773 else
5774     i=0
5775   teststring="ABCD"
5776
5777   case $build_os in
5778   msdosdjgpp*)
5779     # On DJGPP, this test can blow up pretty badly due to problems in libc
5780     # (any single argument exceeding 2000 bytes causes a buffer overrun
5781     # during glob expansion).  Even if it were fixed, the result of this
5782     # check would be larger than it should be.
5783     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5784     ;;
5785
5786   gnu*)
5787     # Under GNU Hurd, this test is not required because there is
5788     # no limit to the length of command line arguments.
5789     # Libtool will interpret -1 as no limit whatsoever
5790     lt_cv_sys_max_cmd_len=-1;
5791     ;;
5792
5793   cygwin* | mingw* | cegcc*)
5794     # On Win9x/ME, this test blows up -- it succeeds, but takes
5795     # about 5 minutes as the teststring grows exponentially.
5796     # Worse, since 9x/ME are not pre-emptively multitasking,
5797     # you end up with a "frozen" computer, even though with patience
5798     # the test eventually succeeds (with a max line length of 256k).
5799     # Instead, let's just punt: use the minimum linelength reported by
5800     # all of the supported platforms: 8192 (on NT/2K/XP).
5801     lt_cv_sys_max_cmd_len=8192;
5802     ;;
5803
5804   amigaos*)
5805     # On AmigaOS with pdksh, this test takes hours, literally.
5806     # So we just punt and use a minimum line length of 8192.
5807     lt_cv_sys_max_cmd_len=8192;
5808     ;;
5809
5810   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5811     # This has been around since 386BSD, at least.  Likely further.
5812     if test -x /sbin/sysctl; then
5813       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5814     elif test -x /usr/sbin/sysctl; then
5815       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5816     else
5817       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5818     fi
5819     # And add a safety zone
5820     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5821     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5822     ;;
5823
5824   interix*)
5825     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5826     lt_cv_sys_max_cmd_len=196608
5827     ;;
5828
5829   osf*)
5830     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5831     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5832     # nice to cause kernel panics so lets avoid the loop below.
5833     # First set a reasonable default.
5834     lt_cv_sys_max_cmd_len=16384
5835     #
5836     if test -x /sbin/sysconfig; then
5837       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5838         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5839       esac
5840     fi
5841     ;;
5842   sco3.2v5*)
5843     lt_cv_sys_max_cmd_len=102400
5844     ;;
5845   sysv5* | sco5v6* | sysv4.2uw2*)
5846     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5847     if test -n "$kargmax"; then
5848       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5849     else
5850       lt_cv_sys_max_cmd_len=32768
5851     fi
5852     ;;
5853   *)
5854     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5855     if test -n "$lt_cv_sys_max_cmd_len"; then
5856       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5857       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5858     else
5859       # Make teststring a little bigger before we do anything with it.
5860       # a 1K string should be a reasonable start.
5861       for i in 1 2 3 4 5 6 7 8 ; do
5862         teststring=$teststring$teststring
5863       done
5864       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5865       # If test is not a shell built-in, we'll probably end up computing a
5866       # maximum length that is only half of the actual maximum length, but
5867       # we can't tell.
5868       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5869                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5870               test $i != 17 # 1/2 MB should be enough
5871       do
5872         i=`expr $i + 1`
5873         teststring=$teststring$teststring
5874       done
5875       # Only check the string length outside the loop.
5876       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5877       teststring=
5878       # Add a significant safety factor because C++ compilers can tack on
5879       # massive amounts of additional arguments before passing them to the
5880       # linker.  It appears as though 1/2 is a usable value.
5881       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5882     fi
5883     ;;
5884   esac
5885
5886 fi
5887
5888 if test -n $lt_cv_sys_max_cmd_len ; then
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5890 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5891 else
5892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5893 $as_echo "none" >&6; }
5894 fi
5895 max_cmd_len=$lt_cv_sys_max_cmd_len
5896
5897
5898
5899
5900
5901
5902 : ${CP="cp -f"}
5903 : ${MV="mv -f"}
5904 : ${RM="rm -f"}
5905
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5907 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5908 # Try some XSI features
5909 xsi_shell=no
5910 ( _lt_dummy="a/b/c"
5911   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5912       = c,a/b,, \
5913     && eval 'test $(( 1 + 1 )) -eq 2 \
5914     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5915   && xsi_shell=yes
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5917 $as_echo "$xsi_shell" >&6; }
5918
5919
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5921 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5922 lt_shell_append=no
5923 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5924     >/dev/null 2>&1 \
5925   && lt_shell_append=yes
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5927 $as_echo "$lt_shell_append" >&6; }
5928
5929
5930 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5931   lt_unset=unset
5932 else
5933   lt_unset=false
5934 fi
5935
5936
5937
5938
5939
5940 # test EBCDIC or ASCII
5941 case `echo X|tr X '\101'` in
5942  A) # ASCII based system
5943     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5944   lt_SP2NL='tr \040 \012'
5945   lt_NL2SP='tr \015\012 \040\040'
5946   ;;
5947  *) # EBCDIC based system
5948   lt_SP2NL='tr \100 \n'
5949   lt_NL2SP='tr \r\n \100\100'
5950   ;;
5951 esac
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5962 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5963 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5964   $as_echo_n "(cached) " >&6
5965 else
5966   lt_cv_ld_reload_flag='-r'
5967 fi
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5969 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5970 reload_flag=$lt_cv_ld_reload_flag
5971 case $reload_flag in
5972 "" | " "*) ;;
5973 *) reload_flag=" $reload_flag" ;;
5974 esac
5975 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5976 case $host_os in
5977   darwin*)
5978     if test "$GCC" = yes; then
5979       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5980     else
5981       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5982     fi
5983     ;;
5984 esac
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994 if test -n "$ac_tool_prefix"; then
5995   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5996 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998 $as_echo_n "checking for $ac_word... " >&6; }
5999 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6000   $as_echo_n "(cached) " >&6
6001 else
6002   if test -n "$OBJDUMP"; then
6003   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6004 else
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6007 do
6008   IFS=$as_save_IFS
6009   test -z "$as_dir" && as_dir=.
6010     for ac_exec_ext in '' $ac_executable_extensions; do
6011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6012     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014     break 2
6015   fi
6016 done
6017   done
6018 IFS=$as_save_IFS
6019
6020 fi
6021 fi
6022 OBJDUMP=$ac_cv_prog_OBJDUMP
6023 if test -n "$OBJDUMP"; then
6024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6025 $as_echo "$OBJDUMP" >&6; }
6026 else
6027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6029 fi
6030
6031
6032 fi
6033 if test -z "$ac_cv_prog_OBJDUMP"; then
6034   ac_ct_OBJDUMP=$OBJDUMP
6035   # Extract the first word of "objdump", so it can be a program name with args.
6036 set dummy objdump; ac_word=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6040   $as_echo_n "(cached) " >&6
6041 else
6042   if test -n "$ac_ct_OBJDUMP"; then
6043   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6044 else
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6047 do
6048   IFS=$as_save_IFS
6049   test -z "$as_dir" && as_dir=.
6050     for ac_exec_ext in '' $ac_executable_extensions; do
6051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054     break 2
6055   fi
6056 done
6057   done
6058 IFS=$as_save_IFS
6059
6060 fi
6061 fi
6062 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6063 if test -n "$ac_ct_OBJDUMP"; then
6064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6065 $as_echo "$ac_ct_OBJDUMP" >&6; }
6066 else
6067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6069 fi
6070
6071   if test "x$ac_ct_OBJDUMP" = x; then
6072     OBJDUMP="false"
6073   else
6074     case $cross_compiling:$ac_tool_warned in
6075 yes:)
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6078 ac_tool_warned=yes ;;
6079 esac
6080     OBJDUMP=$ac_ct_OBJDUMP
6081   fi
6082 else
6083   OBJDUMP="$ac_cv_prog_OBJDUMP"
6084 fi
6085
6086 test -z "$OBJDUMP" && OBJDUMP=objdump
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6097 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6098 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6099   $as_echo_n "(cached) " >&6
6100 else
6101   lt_cv_file_magic_cmd='$MAGIC_CMD'
6102 lt_cv_file_magic_test_file=
6103 lt_cv_deplibs_check_method='unknown'
6104 # Need to set the preceding variable on all platforms that support
6105 # interlibrary dependencies.
6106 # 'none' -- dependencies not supported.
6107 # `unknown' -- same as none, but documents that we really don't know.
6108 # 'pass_all' -- all dependencies passed with no checks.
6109 # 'test_compile' -- check by making test program.
6110 # 'file_magic [[regex]]' -- check by looking for files in library path
6111 # which responds to the $file_magic_cmd with a given extended regex.
6112 # If you have `file' or equivalent on your system and you're not sure
6113 # whether `pass_all' will *always* work, you probably want this one.
6114
6115 case $host_os in
6116 aix[4-9]*)
6117   lt_cv_deplibs_check_method=pass_all
6118   ;;
6119
6120 beos*)
6121   lt_cv_deplibs_check_method=pass_all
6122   ;;
6123
6124 bsdi[45]*)
6125   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6126   lt_cv_file_magic_cmd='/usr/bin/file -L'
6127   lt_cv_file_magic_test_file=/shlib/libc.so
6128   ;;
6129
6130 cygwin*)
6131   # func_win32_libid is a shell function defined in ltmain.sh
6132   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6133   lt_cv_file_magic_cmd='func_win32_libid'
6134   ;;
6135
6136 mingw* | pw32*)
6137   # Base MSYS/MinGW do not provide the 'file' command needed by
6138   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6139   # unless we find 'file', for example because we are cross-compiling.
6140   if ( file / ) >/dev/null 2>&1; then
6141     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6142     lt_cv_file_magic_cmd='func_win32_libid'
6143   else
6144     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6145     lt_cv_file_magic_cmd='$OBJDUMP -f'
6146   fi
6147   ;;
6148
6149 cegcc)
6150   # use the weaker test based on 'objdump'. See mingw*.
6151   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6152   lt_cv_file_magic_cmd='$OBJDUMP -f'
6153   ;;
6154
6155 darwin* | rhapsody*)
6156   lt_cv_deplibs_check_method=pass_all
6157   ;;
6158
6159 freebsd* | dragonfly*)
6160   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6161     case $host_cpu in
6162     i*86 )
6163       # Not sure whether the presence of OpenBSD here was a mistake.
6164       # Let's accept both of them until this is cleared up.
6165       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6166       lt_cv_file_magic_cmd=/usr/bin/file
6167       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6168       ;;
6169     esac
6170   else
6171     lt_cv_deplibs_check_method=pass_all
6172   fi
6173   ;;
6174
6175 gnu*)
6176   lt_cv_deplibs_check_method=pass_all
6177   ;;
6178
6179 hpux10.20* | hpux11*)
6180   lt_cv_file_magic_cmd=/usr/bin/file
6181   case $host_cpu in
6182   ia64*)
6183     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6184     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6185     ;;
6186   hppa*64*)
6187     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]'
6188     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6189     ;;
6190   *)
6191     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6192     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6193     ;;
6194   esac
6195   ;;
6196
6197 interix[3-9]*)
6198   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6199   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6200   ;;
6201
6202 irix5* | irix6* | nonstopux*)
6203   case $LD in
6204   *-32|*"-32 ") libmagic=32-bit;;
6205   *-n32|*"-n32 ") libmagic=N32;;
6206   *-64|*"-64 ") libmagic=64-bit;;
6207   *) libmagic=never-match;;
6208   esac
6209   lt_cv_deplibs_check_method=pass_all
6210   ;;
6211
6212 # This must be Linux ELF.
6213 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6214   lt_cv_deplibs_check_method=pass_all
6215   ;;
6216
6217 netbsd*)
6218   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6219     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6220   else
6221     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6222   fi
6223   ;;
6224
6225 newos6*)
6226   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6227   lt_cv_file_magic_cmd=/usr/bin/file
6228   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6229   ;;
6230
6231 *nto* | *qnx*)
6232   lt_cv_deplibs_check_method=pass_all
6233   ;;
6234
6235 openbsd*)
6236   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6237     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6238   else
6239     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6240   fi
6241   ;;
6242
6243 osf3* | osf4* | osf5*)
6244   lt_cv_deplibs_check_method=pass_all
6245   ;;
6246
6247 rdos*)
6248   lt_cv_deplibs_check_method=pass_all
6249   ;;
6250
6251 solaris*)
6252   lt_cv_deplibs_check_method=pass_all
6253   ;;
6254
6255 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6256   lt_cv_deplibs_check_method=pass_all
6257   ;;
6258
6259 sysv4 | sysv4.3*)
6260   case $host_vendor in
6261   motorola)
6262     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]'
6263     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6264     ;;
6265   ncr)
6266     lt_cv_deplibs_check_method=pass_all
6267     ;;
6268   sequent)
6269     lt_cv_file_magic_cmd='/bin/file'
6270     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6271     ;;
6272   sni)
6273     lt_cv_file_magic_cmd='/bin/file'
6274     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6275     lt_cv_file_magic_test_file=/lib/libc.so
6276     ;;
6277   siemens)
6278     lt_cv_deplibs_check_method=pass_all
6279     ;;
6280   pc)
6281     lt_cv_deplibs_check_method=pass_all
6282     ;;
6283   esac
6284   ;;
6285
6286 tpf*)
6287   lt_cv_deplibs_check_method=pass_all
6288   ;;
6289 esac
6290
6291 fi
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6293 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6294 file_magic_cmd=$lt_cv_file_magic_cmd
6295 deplibs_check_method=$lt_cv_deplibs_check_method
6296 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309 if test -n "$ac_tool_prefix"; then
6310   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6311 set dummy ${ac_tool_prefix}ar; ac_word=$2
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313 $as_echo_n "checking for $ac_word... " >&6; }
6314 if test "${ac_cv_prog_AR+set}" = set; then :
6315   $as_echo_n "(cached) " >&6
6316 else
6317   if test -n "$AR"; then
6318   ac_cv_prog_AR="$AR" # Let the user override the test.
6319 else
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323   IFS=$as_save_IFS
6324   test -z "$as_dir" && as_dir=.
6325     for ac_exec_ext in '' $ac_executable_extensions; do
6326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6327     ac_cv_prog_AR="${ac_tool_prefix}ar"
6328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329     break 2
6330   fi
6331 done
6332   done
6333 IFS=$as_save_IFS
6334
6335 fi
6336 fi
6337 AR=$ac_cv_prog_AR
6338 if test -n "$AR"; then
6339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6340 $as_echo "$AR" >&6; }
6341 else
6342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 $as_echo "no" >&6; }
6344 fi
6345
6346
6347 fi
6348 if test -z "$ac_cv_prog_AR"; then
6349   ac_ct_AR=$AR
6350   # Extract the first word of "ar", so it can be a program name with args.
6351 set dummy ar; ac_word=$2
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6355   $as_echo_n "(cached) " >&6
6356 else
6357   if test -n "$ac_ct_AR"; then
6358   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363   IFS=$as_save_IFS
6364   test -z "$as_dir" && as_dir=.
6365     for ac_exec_ext in '' $ac_executable_extensions; do
6366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367     ac_cv_prog_ac_ct_AR="ar"
6368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369     break 2
6370   fi
6371 done
6372   done
6373 IFS=$as_save_IFS
6374
6375 fi
6376 fi
6377 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6378 if test -n "$ac_ct_AR"; then
6379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6380 $as_echo "$ac_ct_AR" >&6; }
6381 else
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6384 fi
6385
6386   if test "x$ac_ct_AR" = x; then
6387     AR="false"
6388   else
6389     case $cross_compiling:$ac_tool_warned in
6390 yes:)
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6393 ac_tool_warned=yes ;;
6394 esac
6395     AR=$ac_ct_AR
6396   fi
6397 else
6398   AR="$ac_cv_prog_AR"
6399 fi
6400
6401 test -z "$AR" && AR=ar
6402 test -z "$AR_FLAGS" && AR_FLAGS=cru
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414 if test -n "$ac_tool_prefix"; then
6415   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6416 set dummy ${ac_tool_prefix}strip; ac_word=$2
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 if test "${ac_cv_prog_STRIP+set}" = set; then :
6420   $as_echo_n "(cached) " >&6
6421 else
6422   if test -n "$STRIP"; then
6423   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6424 else
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6427 do
6428   IFS=$as_save_IFS
6429   test -z "$as_dir" && as_dir=.
6430     for ac_exec_ext in '' $ac_executable_extensions; do
6431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6432     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434     break 2
6435   fi
6436 done
6437   done
6438 IFS=$as_save_IFS
6439
6440 fi
6441 fi
6442 STRIP=$ac_cv_prog_STRIP
6443 if test -n "$STRIP"; then
6444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6445 $as_echo "$STRIP" >&6; }
6446 else
6447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6449 fi
6450
6451
6452 fi
6453 if test -z "$ac_cv_prog_STRIP"; then
6454   ac_ct_STRIP=$STRIP
6455   # Extract the first word of "strip", so it can be a program name with args.
6456 set dummy strip; ac_word=$2
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 $as_echo_n "checking for $ac_word... " >&6; }
6459 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6460   $as_echo_n "(cached) " >&6
6461 else
6462   if test -n "$ac_ct_STRIP"; then
6463   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6464 else
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6467 do
6468   IFS=$as_save_IFS
6469   test -z "$as_dir" && as_dir=.
6470     for ac_exec_ext in '' $ac_executable_extensions; do
6471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6472     ac_cv_prog_ac_ct_STRIP="strip"
6473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6474     break 2
6475   fi
6476 done
6477   done
6478 IFS=$as_save_IFS
6479
6480 fi
6481 fi
6482 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6483 if test -n "$ac_ct_STRIP"; then
6484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6485 $as_echo "$ac_ct_STRIP" >&6; }
6486 else
6487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 $as_echo "no" >&6; }
6489 fi
6490
6491   if test "x$ac_ct_STRIP" = x; then
6492     STRIP=":"
6493   else
6494     case $cross_compiling:$ac_tool_warned in
6495 yes:)
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6498 ac_tool_warned=yes ;;
6499 esac
6500     STRIP=$ac_ct_STRIP
6501   fi
6502 else
6503   STRIP="$ac_cv_prog_STRIP"
6504 fi
6505
6506 test -z "$STRIP" && STRIP=:
6507
6508
6509
6510
6511
6512
6513 if test -n "$ac_tool_prefix"; then
6514   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6515 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6519   $as_echo_n "(cached) " >&6
6520 else
6521   if test -n "$RANLIB"; then
6522   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527   IFS=$as_save_IFS
6528   test -z "$as_dir" && as_dir=.
6529     for ac_exec_ext in '' $ac_executable_extensions; do
6530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6531     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533     break 2
6534   fi
6535 done
6536   done
6537 IFS=$as_save_IFS
6538
6539 fi
6540 fi
6541 RANLIB=$ac_cv_prog_RANLIB
6542 if test -n "$RANLIB"; then
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6544 $as_echo "$RANLIB" >&6; }
6545 else
6546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6548 fi
6549
6550
6551 fi
6552 if test -z "$ac_cv_prog_RANLIB"; then
6553   ac_ct_RANLIB=$RANLIB
6554   # Extract the first word of "ranlib", so it can be a program name with args.
6555 set dummy ranlib; ac_word=$2
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557 $as_echo_n "checking for $ac_word... " >&6; }
6558 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6559   $as_echo_n "(cached) " >&6
6560 else
6561   if test -n "$ac_ct_RANLIB"; then
6562   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6563 else
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6566 do
6567   IFS=$as_save_IFS
6568   test -z "$as_dir" && as_dir=.
6569     for ac_exec_ext in '' $ac_executable_extensions; do
6570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6571     ac_cv_prog_ac_ct_RANLIB="ranlib"
6572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573     break 2
6574   fi
6575 done
6576   done
6577 IFS=$as_save_IFS
6578
6579 fi
6580 fi
6581 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6582 if test -n "$ac_ct_RANLIB"; then
6583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6584 $as_echo "$ac_ct_RANLIB" >&6; }
6585 else
6586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6588 fi
6589
6590   if test "x$ac_ct_RANLIB" = x; then
6591     RANLIB=":"
6592   else
6593     case $cross_compiling:$ac_tool_warned in
6594 yes:)
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6597 ac_tool_warned=yes ;;
6598 esac
6599     RANLIB=$ac_ct_RANLIB
6600   fi
6601 else
6602   RANLIB="$ac_cv_prog_RANLIB"
6603 fi
6604
6605 test -z "$RANLIB" && RANLIB=:
6606
6607
6608
6609
6610
6611
6612 # Determine commands to create old-style static archives.
6613 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6614 old_postinstall_cmds='chmod 644 $oldlib'
6615 old_postuninstall_cmds=
6616
6617 if test -n "$RANLIB"; then
6618   case $host_os in
6619   openbsd*)
6620     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6621     ;;
6622   *)
6623     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6624     ;;
6625   esac
6626   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6627 fi
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662 # If no C compiler was specified, use CC.
6663 LTCC=${LTCC-"$CC"}
6664
6665 # If no C compiler flags were specified, use CFLAGS.
6666 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6667
6668 # Allow CC to be a program name with arguments.
6669 compiler=$CC
6670
6671
6672 # Check for command to grab the raw symbol name followed by C symbol from nm.
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6674 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6675 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6676   $as_echo_n "(cached) " >&6
6677 else
6678
6679 # These are sane defaults that work on at least a few old systems.
6680 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6681
6682 # Character class describing NM global symbol codes.
6683 symcode='[BCDEGRST]'
6684
6685 # Regexp to match symbols that can be accessed directly from C.
6686 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6687
6688 # Define system-specific variables.
6689 case $host_os in
6690 aix*)
6691   symcode='[BCDT]'
6692   ;;
6693 cygwin* | mingw* | pw32* | cegcc*)
6694   symcode='[ABCDGISTW]'
6695   ;;
6696 hpux*)
6697   if test "$host_cpu" = ia64; then
6698     symcode='[ABCDEGRST]'
6699   fi
6700   ;;
6701 irix* | nonstopux*)
6702   symcode='[BCDEGRST]'
6703   ;;
6704 osf*)
6705   symcode='[BCDEGQRST]'
6706   ;;
6707 solaris*)
6708   symcode='[BDRT]'
6709   ;;
6710 sco3.2v5*)
6711   symcode='[DT]'
6712   ;;
6713 sysv4.2uw2*)
6714   symcode='[DT]'
6715   ;;
6716 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6717   symcode='[ABDT]'
6718   ;;
6719 sysv4)
6720   symcode='[DFNSTU]'
6721   ;;
6722 esac
6723
6724 # If we're using GNU nm, then use its standard symbol codes.
6725 case `$NM -V 2>&1` in
6726 *GNU* | *'with BFD'*)
6727   symcode='[ABCDGIRSTW]' ;;
6728 esac
6729
6730 # Transform an extracted symbol line into a proper C declaration.
6731 # Some systems (esp. on ia64) link data and code symbols differently,
6732 # so use this general approach.
6733 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6734
6735 # Transform an extracted symbol line into symbol name and symbol address
6736 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6737 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'"
6738
6739 # Handle CRLF in mingw tool chain
6740 opt_cr=
6741 case $build_os in
6742 mingw*)
6743   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6744   ;;
6745 esac
6746
6747 # Try without a prefix underscore, then with it.
6748 for ac_symprfx in "" "_"; do
6749
6750   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6751   symxfrm="\\1 $ac_symprfx\\2 \\2"
6752
6753   # Write the raw and C identifiers.
6754   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6755     # Fake it for dumpbin and say T for any non-static function
6756     # and D for any global variable.
6757     # Also find C++ and __fastcall symbols from MSVC++,
6758     # which start with @ or ?.
6759     lt_cv_sys_global_symbol_pipe="$AWK '"\
6760 "     {last_section=section; section=\$ 3};"\
6761 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6762 "     \$ 0!~/External *\|/{next};"\
6763 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6764 "     {if(hide[section]) next};"\
6765 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6766 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6767 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6768 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6769 "     ' prfx=^$ac_symprfx"
6770   else
6771     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6772   fi
6773
6774   # Check to see that the pipe works correctly.
6775   pipe_works=no
6776
6777   rm -f conftest*
6778   cat > conftest.$ac_ext <<_LT_EOF
6779 #ifdef __cplusplus
6780 extern "C" {
6781 #endif
6782 char nm_test_var;
6783 void nm_test_func(void);
6784 void nm_test_func(void){}
6785 #ifdef __cplusplus
6786 }
6787 #endif
6788 int main(){nm_test_var='a';nm_test_func();return(0);}
6789 _LT_EOF
6790
6791   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6792   (eval $ac_compile) 2>&5
6793   ac_status=$?
6794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6795   test $ac_status = 0; }; then
6796     # Now try to grab the symbols.
6797     nlist=conftest.nm
6798     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6799   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6800   ac_status=$?
6801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6802   test $ac_status = 0; } && test -s "$nlist"; then
6803       # Try sorting and uniquifying the output.
6804       if sort "$nlist" | uniq > "$nlist"T; then
6805         mv -f "$nlist"T "$nlist"
6806       else
6807         rm -f "$nlist"T
6808       fi
6809
6810       # Make sure that we snagged all the symbols we need.
6811       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6812         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6813           cat <<_LT_EOF > conftest.$ac_ext
6814 #ifdef __cplusplus
6815 extern "C" {
6816 #endif
6817
6818 _LT_EOF
6819           # Now generate the symbol file.
6820           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6821
6822           cat <<_LT_EOF >> conftest.$ac_ext
6823
6824 /* The mapping between symbol names and symbols.  */
6825 const struct {
6826   const char *name;
6827   void       *address;
6828 }
6829 lt__PROGRAM__LTX_preloaded_symbols[] =
6830 {
6831   { "@PROGRAM@", (void *) 0 },
6832 _LT_EOF
6833           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6834           cat <<\_LT_EOF >> conftest.$ac_ext
6835   {0, (void *) 0}
6836 };
6837
6838 /* This works around a problem in FreeBSD linker */
6839 #ifdef FREEBSD_WORKAROUND
6840 static const void *lt_preloaded_setup() {
6841   return lt__PROGRAM__LTX_preloaded_symbols;
6842 }
6843 #endif
6844
6845 #ifdef __cplusplus
6846 }
6847 #endif
6848 _LT_EOF
6849           # Now try linking the two files.
6850           mv conftest.$ac_objext conftstm.$ac_objext
6851           lt_save_LIBS="$LIBS"
6852           lt_save_CFLAGS="$CFLAGS"
6853           LIBS="conftstm.$ac_objext"
6854           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6855           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6856   (eval $ac_link) 2>&5
6857   ac_status=$?
6858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6859   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6860             pipe_works=yes
6861           fi
6862           LIBS="$lt_save_LIBS"
6863           CFLAGS="$lt_save_CFLAGS"
6864         else
6865           echo "cannot find nm_test_func in $nlist" >&5
6866         fi
6867       else
6868         echo "cannot find nm_test_var in $nlist" >&5
6869       fi
6870     else
6871       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6872     fi
6873   else
6874     echo "$progname: failed program was:" >&5
6875     cat conftest.$ac_ext >&5
6876   fi
6877   rm -rf conftest* conftst*
6878
6879   # Do not use the global_symbol_pipe unless it works.
6880   if test "$pipe_works" = yes; then
6881     break
6882   else
6883     lt_cv_sys_global_symbol_pipe=
6884   fi
6885 done
6886
6887 fi
6888
6889 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6890   lt_cv_sys_global_symbol_to_cdecl=
6891 fi
6892 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6894 $as_echo "failed" >&6; }
6895 else
6896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6897 $as_echo "ok" >&6; }
6898 fi
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921 # Check whether --enable-libtool-lock was given.
6922 if test "${enable_libtool_lock+set}" = set; then :
6923   enableval=$enable_libtool_lock;
6924 fi
6925
6926 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6927
6928 # Some flags need to be propagated to the compiler or linker for good
6929 # libtool support.
6930 case $host in
6931 ia64-*-hpux*)
6932   # Find out which ABI we are using.
6933   echo 'int i;' > conftest.$ac_ext
6934   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6935   (eval $ac_compile) 2>&5
6936   ac_status=$?
6937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6938   test $ac_status = 0; }; then
6939     case `/usr/bin/file conftest.$ac_objext` in
6940       *ELF-32*)
6941         HPUX_IA64_MODE="32"
6942         ;;
6943       *ELF-64*)
6944         HPUX_IA64_MODE="64"
6945         ;;
6946     esac
6947   fi
6948   rm -rf conftest*
6949   ;;
6950 *-*-irix6*)
6951   # Find out which ABI we are using.
6952   echo '#line 6952 "configure"' > conftest.$ac_ext
6953   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6954   (eval $ac_compile) 2>&5
6955   ac_status=$?
6956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6957   test $ac_status = 0; }; then
6958     if test "$lt_cv_prog_gnu_ld" = yes; then
6959       case `/usr/bin/file conftest.$ac_objext` in
6960         *32-bit*)
6961           LD="${LD-ld} -melf32bsmip"
6962           ;;
6963         *N32*)
6964           LD="${LD-ld} -melf32bmipn32"
6965           ;;
6966         *64-bit*)
6967           LD="${LD-ld} -melf64bmip"
6968         ;;
6969       esac
6970     else
6971       case `/usr/bin/file conftest.$ac_objext` in
6972         *32-bit*)
6973           LD="${LD-ld} -32"
6974           ;;
6975         *N32*)
6976           LD="${LD-ld} -n32"
6977           ;;
6978         *64-bit*)
6979           LD="${LD-ld} -64"
6980           ;;
6981       esac
6982     fi
6983   fi
6984   rm -rf conftest*
6985   ;;
6986
6987 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6988 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6989   # Find out which ABI we are using.
6990   echo 'int i;' > conftest.$ac_ext
6991   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6992   (eval $ac_compile) 2>&5
6993   ac_status=$?
6994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6995   test $ac_status = 0; }; then
6996     case `/usr/bin/file conftest.o` in
6997       *32-bit*)
6998         case $host in
6999           x86_64-*kfreebsd*-gnu)
7000             LD="${LD-ld} -m elf_i386_fbsd"
7001             ;;
7002           x86_64-*linux*)
7003             LD="${LD-ld} -m elf_i386"
7004             ;;
7005           ppc64-*linux*|powerpc64-*linux*)
7006             LD="${LD-ld} -m elf32ppclinux"
7007             ;;
7008           s390x-*linux*)
7009             LD="${LD-ld} -m elf_s390"
7010             ;;
7011           sparc64-*linux*)
7012             LD="${LD-ld} -m elf32_sparc"
7013             ;;
7014         esac
7015         ;;
7016       *64-bit*)
7017         case $host in
7018           x86_64-*kfreebsd*-gnu)
7019             LD="${LD-ld} -m elf_x86_64_fbsd"
7020             ;;
7021           x86_64-*linux*)
7022             LD="${LD-ld} -m elf_x86_64"
7023             ;;
7024           ppc*-*linux*|powerpc*-*linux*)
7025             LD="${LD-ld} -m elf64ppc"
7026             ;;
7027           s390*-*linux*|s390*-*tpf*)
7028             LD="${LD-ld} -m elf64_s390"
7029             ;;
7030           sparc*-*linux*)
7031             LD="${LD-ld} -m elf64_sparc"
7032             ;;
7033         esac
7034         ;;
7035     esac
7036   fi
7037   rm -rf conftest*
7038   ;;
7039
7040 *-*-sco3.2v5*)
7041   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7042   SAVE_CFLAGS="$CFLAGS"
7043   CFLAGS="$CFLAGS -belf"
7044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7045 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7046 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7047   $as_echo_n "(cached) " >&6
7048 else
7049   ac_ext=c
7050 ac_cpp='$CPP $CPPFLAGS'
7051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7054
7055      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h.  */
7057
7058 int
7059 main ()
7060 {
7061
7062   ;
7063   return 0;
7064 }
7065 _ACEOF
7066 if ac_fn_c_try_link "$LINENO"; then :
7067   lt_cv_cc_needs_belf=yes
7068 else
7069   lt_cv_cc_needs_belf=no
7070 fi
7071 rm -f core conftest.err conftest.$ac_objext \
7072     conftest$ac_exeext conftest.$ac_ext
7073      ac_ext=c
7074 ac_cpp='$CPP $CPPFLAGS'
7075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7078
7079 fi
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7081 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7082   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7083     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7084     CFLAGS="$SAVE_CFLAGS"
7085   fi
7086   ;;
7087 sparc*-*solaris*)
7088   # Find out which ABI we are using.
7089   echo 'int i;' > conftest.$ac_ext
7090   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7091   (eval $ac_compile) 2>&5
7092   ac_status=$?
7093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7094   test $ac_status = 0; }; then
7095     case `/usr/bin/file conftest.o` in
7096     *64-bit*)
7097       case $lt_cv_prog_gnu_ld in
7098       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7099       *)
7100         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7101           LD="${LD-ld} -64"
7102         fi
7103         ;;
7104       esac
7105       ;;
7106     esac
7107   fi
7108   rm -rf conftest*
7109   ;;
7110 esac
7111
7112 need_locks="$enable_libtool_lock"
7113
7114
7115   case $host_os in
7116     rhapsody* | darwin*)
7117     if test -n "$ac_tool_prefix"; then
7118   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7119 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121 $as_echo_n "checking for $ac_word... " >&6; }
7122 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7123   $as_echo_n "(cached) " >&6
7124 else
7125   if test -n "$DSYMUTIL"; then
7126   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131   IFS=$as_save_IFS
7132   test -z "$as_dir" && as_dir=.
7133     for ac_exec_ext in '' $ac_executable_extensions; do
7134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137     break 2
7138   fi
7139 done
7140   done
7141 IFS=$as_save_IFS
7142
7143 fi
7144 fi
7145 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7146 if test -n "$DSYMUTIL"; then
7147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7148 $as_echo "$DSYMUTIL" >&6; }
7149 else
7150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7152 fi
7153
7154
7155 fi
7156 if test -z "$ac_cv_prog_DSYMUTIL"; then
7157   ac_ct_DSYMUTIL=$DSYMUTIL
7158   # Extract the first word of "dsymutil", so it can be a program name with args.
7159 set dummy dsymutil; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7163   $as_echo_n "(cached) " >&6
7164 else
7165   if test -n "$ac_ct_DSYMUTIL"; then
7166   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7167 else
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7170 do
7171   IFS=$as_save_IFS
7172   test -z "$as_dir" && as_dir=.
7173     for ac_exec_ext in '' $ac_executable_extensions; do
7174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7175     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177     break 2
7178   fi
7179 done
7180   done
7181 IFS=$as_save_IFS
7182
7183 fi
7184 fi
7185 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7186 if test -n "$ac_ct_DSYMUTIL"; then
7187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7188 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7189 else
7190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7192 fi
7193
7194   if test "x$ac_ct_DSYMUTIL" = x; then
7195     DSYMUTIL=":"
7196   else
7197     case $cross_compiling:$ac_tool_warned in
7198 yes:)
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7201 ac_tool_warned=yes ;;
7202 esac
7203     DSYMUTIL=$ac_ct_DSYMUTIL
7204   fi
7205 else
7206   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7207 fi
7208
7209     if test -n "$ac_tool_prefix"; then
7210   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7211 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213 $as_echo_n "checking for $ac_word... " >&6; }
7214 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7215   $as_echo_n "(cached) " >&6
7216 else
7217   if test -n "$NMEDIT"; then
7218   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7219 else
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 for as_dir in $PATH
7222 do
7223   IFS=$as_save_IFS
7224   test -z "$as_dir" && as_dir=.
7225     for ac_exec_ext in '' $ac_executable_extensions; do
7226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7227     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229     break 2
7230   fi
7231 done
7232   done
7233 IFS=$as_save_IFS
7234
7235 fi
7236 fi
7237 NMEDIT=$ac_cv_prog_NMEDIT
7238 if test -n "$NMEDIT"; then
7239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7240 $as_echo "$NMEDIT" >&6; }
7241 else
7242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243 $as_echo "no" >&6; }
7244 fi
7245
7246
7247 fi
7248 if test -z "$ac_cv_prog_NMEDIT"; then
7249   ac_ct_NMEDIT=$NMEDIT
7250   # Extract the first word of "nmedit", so it can be a program name with args.
7251 set dummy nmedit; ac_word=$2
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253 $as_echo_n "checking for $ac_word... " >&6; }
7254 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7255   $as_echo_n "(cached) " >&6
7256 else
7257   if test -n "$ac_ct_NMEDIT"; then
7258   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7259 else
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7262 do
7263   IFS=$as_save_IFS
7264   test -z "$as_dir" && as_dir=.
7265     for ac_exec_ext in '' $ac_executable_extensions; do
7266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7267     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269     break 2
7270   fi
7271 done
7272   done
7273 IFS=$as_save_IFS
7274
7275 fi
7276 fi
7277 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7278 if test -n "$ac_ct_NMEDIT"; then
7279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7280 $as_echo "$ac_ct_NMEDIT" >&6; }
7281 else
7282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7284 fi
7285
7286   if test "x$ac_ct_NMEDIT" = x; then
7287     NMEDIT=":"
7288   else
7289     case $cross_compiling:$ac_tool_warned in
7290 yes:)
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7293 ac_tool_warned=yes ;;
7294 esac
7295     NMEDIT=$ac_ct_NMEDIT
7296   fi
7297 else
7298   NMEDIT="$ac_cv_prog_NMEDIT"
7299 fi
7300
7301     if test -n "$ac_tool_prefix"; then
7302   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7303 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if test "${ac_cv_prog_LIPO+set}" = set; then :
7307   $as_echo_n "(cached) " >&6
7308 else
7309   if test -n "$LIPO"; then
7310   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7311 else
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315   IFS=$as_save_IFS
7316   test -z "$as_dir" && as_dir=.
7317     for ac_exec_ext in '' $ac_executable_extensions; do
7318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7319     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321     break 2
7322   fi
7323 done
7324   done
7325 IFS=$as_save_IFS
7326
7327 fi
7328 fi
7329 LIPO=$ac_cv_prog_LIPO
7330 if test -n "$LIPO"; then
7331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7332 $as_echo "$LIPO" >&6; }
7333 else
7334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7336 fi
7337
7338
7339 fi
7340 if test -z "$ac_cv_prog_LIPO"; then
7341   ac_ct_LIPO=$LIPO
7342   # Extract the first word of "lipo", so it can be a program name with args.
7343 set dummy lipo; ac_word=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7347   $as_echo_n "(cached) " >&6
7348 else
7349   if test -n "$ac_ct_LIPO"; then
7350   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7351 else
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355   IFS=$as_save_IFS
7356   test -z "$as_dir" && as_dir=.
7357     for ac_exec_ext in '' $ac_executable_extensions; do
7358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7359     ac_cv_prog_ac_ct_LIPO="lipo"
7360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361     break 2
7362   fi
7363 done
7364   done
7365 IFS=$as_save_IFS
7366
7367 fi
7368 fi
7369 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7370 if test -n "$ac_ct_LIPO"; then
7371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7372 $as_echo "$ac_ct_LIPO" >&6; }
7373 else
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7376 fi
7377
7378   if test "x$ac_ct_LIPO" = x; then
7379     LIPO=":"
7380   else
7381     case $cross_compiling:$ac_tool_warned in
7382 yes:)
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7385 ac_tool_warned=yes ;;
7386 esac
7387     LIPO=$ac_ct_LIPO
7388   fi
7389 else
7390   LIPO="$ac_cv_prog_LIPO"
7391 fi
7392
7393     if test -n "$ac_tool_prefix"; then
7394   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7395 set dummy ${ac_tool_prefix}otool; ac_word=$2
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7399   $as_echo_n "(cached) " >&6
7400 else
7401   if test -n "$OTOOL"; then
7402   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407   IFS=$as_save_IFS
7408   test -z "$as_dir" && as_dir=.
7409     for ac_exec_ext in '' $ac_executable_extensions; do
7410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7411     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413     break 2
7414   fi
7415 done
7416   done
7417 IFS=$as_save_IFS
7418
7419 fi
7420 fi
7421 OTOOL=$ac_cv_prog_OTOOL
7422 if test -n "$OTOOL"; then
7423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7424 $as_echo "$OTOOL" >&6; }
7425 else
7426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7428 fi
7429
7430
7431 fi
7432 if test -z "$ac_cv_prog_OTOOL"; then
7433   ac_ct_OTOOL=$OTOOL
7434   # Extract the first word of "otool", so it can be a program name with args.
7435 set dummy otool; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7439   $as_echo_n "(cached) " >&6
7440 else
7441   if test -n "$ac_ct_OTOOL"; then
7442   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447   IFS=$as_save_IFS
7448   test -z "$as_dir" && as_dir=.
7449     for ac_exec_ext in '' $ac_executable_extensions; do
7450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451     ac_cv_prog_ac_ct_OTOOL="otool"
7452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453     break 2
7454   fi
7455 done
7456   done
7457 IFS=$as_save_IFS
7458
7459 fi
7460 fi
7461 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7462 if test -n "$ac_ct_OTOOL"; then
7463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7464 $as_echo "$ac_ct_OTOOL" >&6; }
7465 else
7466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7468 fi
7469
7470   if test "x$ac_ct_OTOOL" = x; then
7471     OTOOL=":"
7472   else
7473     case $cross_compiling:$ac_tool_warned in
7474 yes:)
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7477 ac_tool_warned=yes ;;
7478 esac
7479     OTOOL=$ac_ct_OTOOL
7480   fi
7481 else
7482   OTOOL="$ac_cv_prog_OTOOL"
7483 fi
7484
7485     if test -n "$ac_tool_prefix"; then
7486   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7487 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7489 $as_echo_n "checking for $ac_word... " >&6; }
7490 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7491   $as_echo_n "(cached) " >&6
7492 else
7493   if test -n "$OTOOL64"; then
7494   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7495 else
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 for as_dir in $PATH
7498 do
7499   IFS=$as_save_IFS
7500   test -z "$as_dir" && as_dir=.
7501     for ac_exec_ext in '' $ac_executable_extensions; do
7502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7503     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7505     break 2
7506   fi
7507 done
7508   done
7509 IFS=$as_save_IFS
7510
7511 fi
7512 fi
7513 OTOOL64=$ac_cv_prog_OTOOL64
7514 if test -n "$OTOOL64"; then
7515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7516 $as_echo "$OTOOL64" >&6; }
7517 else
7518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519 $as_echo "no" >&6; }
7520 fi
7521
7522
7523 fi
7524 if test -z "$ac_cv_prog_OTOOL64"; then
7525   ac_ct_OTOOL64=$OTOOL64
7526   # Extract the first word of "otool64", so it can be a program name with args.
7527 set dummy otool64; ac_word=$2
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529 $as_echo_n "checking for $ac_word... " >&6; }
7530 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7531   $as_echo_n "(cached) " >&6
7532 else
7533   if test -n "$ac_ct_OTOOL64"; then
7534   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7535 else
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 for as_dir in $PATH
7538 do
7539   IFS=$as_save_IFS
7540   test -z "$as_dir" && as_dir=.
7541     for ac_exec_ext in '' $ac_executable_extensions; do
7542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7543     ac_cv_prog_ac_ct_OTOOL64="otool64"
7544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7545     break 2
7546   fi
7547 done
7548   done
7549 IFS=$as_save_IFS
7550
7551 fi
7552 fi
7553 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7554 if test -n "$ac_ct_OTOOL64"; then
7555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7556 $as_echo "$ac_ct_OTOOL64" >&6; }
7557 else
7558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 $as_echo "no" >&6; }
7560 fi
7561
7562   if test "x$ac_ct_OTOOL64" = x; then
7563     OTOOL64=":"
7564   else
7565     case $cross_compiling:$ac_tool_warned in
7566 yes:)
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7569 ac_tool_warned=yes ;;
7570 esac
7571     OTOOL64=$ac_ct_OTOOL64
7572   fi
7573 else
7574   OTOOL64="$ac_cv_prog_OTOOL64"
7575 fi
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7604 $as_echo_n "checking for -single_module linker flag... " >&6; }
7605 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7606   $as_echo_n "(cached) " >&6
7607 else
7608   lt_cv_apple_cc_single_mod=no
7609       if test -z "${LT_MULTI_MODULE}"; then
7610         # By default we will add the -single_module flag. You can override
7611         # by either setting the environment variable LT_MULTI_MODULE
7612         # non-empty at configure time, or by adding -multi_module to the
7613         # link flags.
7614         rm -rf libconftest.dylib*
7615         echo "int foo(void){return 1;}" > conftest.c
7616         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7617 -dynamiclib -Wl,-single_module conftest.c" >&5
7618         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7619           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7620         _lt_result=$?
7621         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7622           lt_cv_apple_cc_single_mod=yes
7623         else
7624           cat conftest.err >&5
7625         fi
7626         rm -rf libconftest.dylib*
7627         rm -f conftest.*
7628       fi
7629 fi
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7631 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7633 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7634 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7635   $as_echo_n "(cached) " >&6
7636 else
7637   lt_cv_ld_exported_symbols_list=no
7638       save_LDFLAGS=$LDFLAGS
7639       echo "_main" > conftest.sym
7640       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7641       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h.  */
7643
7644 int
7645 main ()
7646 {
7647
7648   ;
7649   return 0;
7650 }
7651 _ACEOF
7652 if ac_fn_c_try_link "$LINENO"; then :
7653   lt_cv_ld_exported_symbols_list=yes
7654 else
7655   lt_cv_ld_exported_symbols_list=no
7656 fi
7657 rm -f core conftest.err conftest.$ac_objext \
7658     conftest$ac_exeext conftest.$ac_ext
7659         LDFLAGS="$save_LDFLAGS"
7660
7661 fi
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7663 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7664     case $host_os in
7665     rhapsody* | darwin1.[012])
7666       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7667     darwin1.*)
7668       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7669     darwin*) # darwin 5.x on
7670       # if running on 10.5 or later, the deployment target defaults
7671       # to the OS version, if on x86, and 10.4, the deployment
7672       # target defaults to 10.4. Don't you love it?
7673       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7674         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7675           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7676         10.[012]*)
7677           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7678         10.*)
7679           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7680       esac
7681     ;;
7682   esac
7683     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7684       _lt_dar_single_mod='$single_module'
7685     fi
7686     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7687       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7688     else
7689       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7690     fi
7691     if test "$DSYMUTIL" != ":"; then
7692       _lt_dsymutil='~$DSYMUTIL $lib || :'
7693     else
7694       _lt_dsymutil=
7695     fi
7696     ;;
7697   esac
7698
7699 for ac_header in dlfcn.h
7700 do :
7701   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7702 "
7703 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7704   cat >>confdefs.h <<_ACEOF
7705 #define HAVE_DLFCN_H 1
7706 _ACEOF
7707
7708 fi
7709
7710 done
7711
7712
7713
7714 # Set options
7715
7716
7717
7718         enable_dlopen=no
7719
7720
7721   enable_win32_dll=no
7722
7723
7724             # Check whether --enable-shared was given.
7725 if test "${enable_shared+set}" = set; then :
7726   enableval=$enable_shared; p=${PACKAGE-default}
7727     case $enableval in
7728     yes) enable_shared=yes ;;
7729     no) enable_shared=no ;;
7730     *)
7731       enable_shared=no
7732       # Look at the argument we got.  We use all the common list separators.
7733       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7734       for pkg in $enableval; do
7735         IFS="$lt_save_ifs"
7736         if test "X$pkg" = "X$p"; then
7737           enable_shared=yes
7738         fi
7739       done
7740       IFS="$lt_save_ifs"
7741       ;;
7742     esac
7743 else
7744   enable_shared=yes
7745 fi
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755   # Check whether --enable-static was given.
7756 if test "${enable_static+set}" = set; then :
7757   enableval=$enable_static; p=${PACKAGE-default}
7758     case $enableval in
7759     yes) enable_static=yes ;;
7760     no) enable_static=no ;;
7761     *)
7762      enable_static=no
7763       # Look at the argument we got.  We use all the common list separators.
7764       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7765       for pkg in $enableval; do
7766         IFS="$lt_save_ifs"
7767         if test "X$pkg" = "X$p"; then
7768           enable_static=yes
7769         fi
7770       done
7771       IFS="$lt_save_ifs"
7772       ;;
7773     esac
7774 else
7775   enable_static=yes
7776 fi
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787 # Check whether --with-pic was given.
7788 if test "${with_pic+set}" = set; then :
7789   withval=$with_pic; pic_mode="$withval"
7790 else
7791   pic_mode=default
7792 fi
7793
7794
7795 test -z "$pic_mode" && pic_mode=default
7796
7797
7798
7799
7800
7801
7802
7803   # Check whether --enable-fast-install was given.
7804 if test "${enable_fast_install+set}" = set; then :
7805   enableval=$enable_fast_install; p=${PACKAGE-default}
7806     case $enableval in
7807     yes) enable_fast_install=yes ;;
7808     no) enable_fast_install=no ;;
7809     *)
7810       enable_fast_install=no
7811       # Look at the argument we got.  We use all the common list separators.
7812       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7813       for pkg in $enableval; do
7814         IFS="$lt_save_ifs"
7815         if test "X$pkg" = "X$p"; then
7816           enable_fast_install=yes
7817         fi
7818       done
7819       IFS="$lt_save_ifs"
7820       ;;
7821     esac
7822 else
7823   enable_fast_install=yes
7824 fi
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836 # This can be used to rebuild libtool when needed
7837 LIBTOOL_DEPS="$ltmain"
7838
7839 # Always use our own libtool.
7840 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866 test -z "$LN_S" && LN_S="ln -s"
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881 if test -n "${ZSH_VERSION+set}" ; then
7882    setopt NO_GLOB_SUBST
7883 fi
7884
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7886 $as_echo_n "checking for objdir... " >&6; }
7887 if test "${lt_cv_objdir+set}" = set; then :
7888   $as_echo_n "(cached) " >&6
7889 else
7890   rm -f .libs 2>/dev/null
7891 mkdir .libs 2>/dev/null
7892 if test -d .libs; then
7893   lt_cv_objdir=.libs
7894 else
7895   # MS-DOS does not allow filenames that begin with a dot.
7896   lt_cv_objdir=_libs
7897 fi
7898 rmdir .libs 2>/dev/null
7899 fi
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7901 $as_echo "$lt_cv_objdir" >&6; }
7902 objdir=$lt_cv_objdir
7903
7904
7905
7906
7907
7908 cat >>confdefs.h <<_ACEOF
7909 #define LT_OBJDIR "$lt_cv_objdir/"
7910 _ACEOF
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928 case $host_os in
7929 aix3*)
7930   # AIX sometimes has problems with the GCC collect2 program.  For some
7931   # reason, if we set the COLLECT_NAMES environment variable, the problems
7932   # vanish in a puff of smoke.
7933   if test "X${COLLECT_NAMES+set}" != Xset; then
7934     COLLECT_NAMES=
7935     export COLLECT_NAMES
7936   fi
7937   ;;
7938 esac
7939
7940 # Sed substitution that helps us do robust quoting.  It backslashifies
7941 # metacharacters that are still active within double-quoted strings.
7942 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7943
7944 # Same as above, but do not quote variable references.
7945 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7946
7947 # Sed substitution to delay expansion of an escaped shell variable in a
7948 # double_quote_subst'ed string.
7949 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7950
7951 # Sed substitution to delay expansion of an escaped single quote.
7952 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7953
7954 # Sed substitution to avoid accidental globbing in evaled expressions
7955 no_glob_subst='s/\*/\\\*/g'
7956
7957 # Global variables:
7958 ofile=libtool
7959 can_build_shared=yes
7960
7961 # All known linkers require a `.a' archive for static linking (except MSVC,
7962 # which needs '.lib').
7963 libext=a
7964
7965 with_gnu_ld="$lt_cv_prog_gnu_ld"
7966
7967 old_CC="$CC"
7968 old_CFLAGS="$CFLAGS"
7969
7970 # Set sane defaults for various variables
7971 test -z "$CC" && CC=cc
7972 test -z "$LTCC" && LTCC=$CC
7973 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7974 test -z "$LD" && LD=ld
7975 test -z "$ac_objext" && ac_objext=o
7976
7977 for cc_temp in $compiler""; do
7978   case $cc_temp in
7979     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7980     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7981     \-*) ;;
7982     *) break;;
7983   esac
7984 done
7985 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7986
7987
7988 # Only perform the check for file, if the check method requires it
7989 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7990 case $deplibs_check_method in
7991 file_magic*)
7992   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7994 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7995 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7996   $as_echo_n "(cached) " >&6
7997 else
7998   case $MAGIC_CMD in
7999 [\\/*] |  ?:[\\/]*)
8000   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8001   ;;
8002 *)
8003   lt_save_MAGIC_CMD="$MAGIC_CMD"
8004   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8005   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8006   for ac_dir in $ac_dummy; do
8007     IFS="$lt_save_ifs"
8008     test -z "$ac_dir" && ac_dir=.
8009     if test -f $ac_dir/${ac_tool_prefix}file; then
8010       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8011       if test -n "$file_magic_test_file"; then
8012         case $deplibs_check_method in
8013         "file_magic "*)
8014           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8015           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8016           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8017             $EGREP "$file_magic_regex" > /dev/null; then
8018             :
8019           else
8020             cat <<_LT_EOF 1>&2
8021
8022 *** Warning: the command libtool uses to detect shared libraries,
8023 *** $file_magic_cmd, produces output that libtool cannot recognize.
8024 *** The result is that libtool may fail to recognize shared libraries
8025 *** as such.  This will affect the creation of libtool libraries that
8026 *** depend on shared libraries, but programs linked with such libtool
8027 *** libraries will work regardless of this problem.  Nevertheless, you
8028 *** may want to report the problem to your system manager and/or to
8029 *** bug-libtool@gnu.org
8030
8031 _LT_EOF
8032           fi ;;
8033         esac
8034       fi
8035       break
8036     fi
8037   done
8038   IFS="$lt_save_ifs"
8039   MAGIC_CMD="$lt_save_MAGIC_CMD"
8040   ;;
8041 esac
8042 fi
8043
8044 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8045 if test -n "$MAGIC_CMD"; then
8046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8047 $as_echo "$MAGIC_CMD" >&6; }
8048 else
8049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }
8051 fi
8052
8053
8054
8055
8056
8057 if test -z "$lt_cv_path_MAGIC_CMD"; then
8058   if test -n "$ac_tool_prefix"; then
8059     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8060 $as_echo_n "checking for file... " >&6; }
8061 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8062   $as_echo_n "(cached) " >&6
8063 else
8064   case $MAGIC_CMD in
8065 [\\/*] |  ?:[\\/]*)
8066   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8067   ;;
8068 *)
8069   lt_save_MAGIC_CMD="$MAGIC_CMD"
8070   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8071   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8072   for ac_dir in $ac_dummy; do
8073     IFS="$lt_save_ifs"
8074     test -z "$ac_dir" && ac_dir=.
8075     if test -f $ac_dir/file; then
8076       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8077       if test -n "$file_magic_test_file"; then
8078         case $deplibs_check_method in
8079         "file_magic "*)
8080           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8081           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8082           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8083             $EGREP "$file_magic_regex" > /dev/null; then
8084             :
8085           else
8086             cat <<_LT_EOF 1>&2
8087
8088 *** Warning: the command libtool uses to detect shared libraries,
8089 *** $file_magic_cmd, produces output that libtool cannot recognize.
8090 *** The result is that libtool may fail to recognize shared libraries
8091 *** as such.  This will affect the creation of libtool libraries that
8092 *** depend on shared libraries, but programs linked with such libtool
8093 *** libraries will work regardless of this problem.  Nevertheless, you
8094 *** may want to report the problem to your system manager and/or to
8095 *** bug-libtool@gnu.org
8096
8097 _LT_EOF
8098           fi ;;
8099         esac
8100       fi
8101       break
8102     fi
8103   done
8104   IFS="$lt_save_ifs"
8105   MAGIC_CMD="$lt_save_MAGIC_CMD"
8106   ;;
8107 esac
8108 fi
8109
8110 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8111 if test -n "$MAGIC_CMD"; then
8112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8113 $as_echo "$MAGIC_CMD" >&6; }
8114 else
8115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8117 fi
8118
8119
8120   else
8121     MAGIC_CMD=:
8122   fi
8123 fi
8124
8125   fi
8126   ;;
8127 esac
8128
8129 # Use C for the default configuration in the libtool script
8130
8131 lt_save_CC="$CC"
8132 ac_ext=c
8133 ac_cpp='$CPP $CPPFLAGS'
8134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8137
8138
8139 # Source file extension for C test sources.
8140 ac_ext=c
8141
8142 # Object file extension for compiled C test sources.
8143 objext=o
8144 objext=$objext
8145
8146 # Code to be used in simple compile tests
8147 lt_simple_compile_test_code="int some_variable = 0;"
8148
8149 # Code to be used in simple link tests
8150 lt_simple_link_test_code='int main(){return(0);}'
8151
8152
8153
8154
8155
8156
8157
8158 # If no C compiler was specified, use CC.
8159 LTCC=${LTCC-"$CC"}
8160
8161 # If no C compiler flags were specified, use CFLAGS.
8162 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8163
8164 # Allow CC to be a program name with arguments.
8165 compiler=$CC
8166
8167 # Save the default compiler, since it gets overwritten when the other
8168 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8169 compiler_DEFAULT=$CC
8170
8171 # save warnings/boilerplate of simple test code
8172 ac_outfile=conftest.$ac_objext
8173 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8174 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8175 _lt_compiler_boilerplate=`cat conftest.err`
8176 $RM conftest*
8177
8178 ac_outfile=conftest.$ac_objext
8179 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8180 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8181 _lt_linker_boilerplate=`cat conftest.err`
8182 $RM -r conftest*
8183
8184
8185 ## CAVEAT EMPTOR:
8186 ## There is no encapsulation within the following macros, do not change
8187 ## the running order or otherwise move them around unless you know exactly
8188 ## what you are doing...
8189 if test -n "$compiler"; then
8190
8191 lt_prog_compiler_no_builtin_flag=
8192
8193 if test "$GCC" = yes; then
8194   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8195
8196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8197 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8198 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8199   $as_echo_n "(cached) " >&6
8200 else
8201   lt_cv_prog_compiler_rtti_exceptions=no
8202    ac_outfile=conftest.$ac_objext
8203    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8204    lt_compiler_flag="-fno-rtti -fno-exceptions"
8205    # Insert the option either (1) after the last *FLAGS variable, or
8206    # (2) before a word containing "conftest.", or (3) at the end.
8207    # Note that $ac_compile itself does not contain backslashes and begins
8208    # with a dollar sign (not a hyphen), so the echo should work correctly.
8209    # The option is referenced via a variable to avoid confusing sed.
8210    lt_compile=`echo "$ac_compile" | $SED \
8211    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8212    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8213    -e 's:$: $lt_compiler_flag:'`
8214    (eval echo "\"\$as_me:8214: $lt_compile\"" >&5)
8215    (eval "$lt_compile" 2>conftest.err)
8216    ac_status=$?
8217    cat conftest.err >&5
8218    echo "$as_me:8218: \$? = $ac_status" >&5
8219    if (exit $ac_status) && test -s "$ac_outfile"; then
8220      # The compiler can only warn and ignore the option if not recognized
8221      # So say no if there are warnings other than the usual output.
8222      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8223      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8224      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8225        lt_cv_prog_compiler_rtti_exceptions=yes
8226      fi
8227    fi
8228    $RM conftest*
8229
8230 fi
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8232 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8233
8234 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8235     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8236 else
8237     :
8238 fi
8239
8240 fi
8241
8242
8243
8244
8245
8246
8247   lt_prog_compiler_wl=
8248 lt_prog_compiler_pic=
8249 lt_prog_compiler_static=
8250
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8252 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8253
8254   if test "$GCC" = yes; then
8255     lt_prog_compiler_wl='-Wl,'
8256     lt_prog_compiler_static='-static'
8257
8258     case $host_os in
8259       aix*)
8260       # All AIX code is PIC.
8261       if test "$host_cpu" = ia64; then
8262         # AIX 5 now supports IA64 processor
8263         lt_prog_compiler_static='-Bstatic'
8264       fi
8265       ;;
8266
8267     amigaos*)
8268       case $host_cpu in
8269       powerpc)
8270             # see comment about AmigaOS4 .so support
8271             lt_prog_compiler_pic='-fPIC'
8272         ;;
8273       m68k)
8274             # FIXME: we need at least 68020 code to build shared libraries, but
8275             # adding the `-m68020' flag to GCC prevents building anything better,
8276             # like `-m68040'.
8277             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8278         ;;
8279       esac
8280       ;;
8281
8282     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8283       # PIC is the default for these OSes.
8284       ;;
8285
8286     mingw* | cygwin* | pw32* | os2* | cegcc*)
8287       # This hack is so that the source file can tell whether it is being
8288       # built for inclusion in a dll (and should export symbols for example).
8289       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8290       # (--disable-auto-import) libraries
8291       lt_prog_compiler_pic='-DDLL_EXPORT'
8292       ;;
8293
8294     darwin* | rhapsody*)
8295       # PIC is the default on this platform
8296       # Common symbols not allowed in MH_DYLIB files
8297       lt_prog_compiler_pic='-fno-common'
8298       ;;
8299
8300     hpux*)
8301       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8302       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8303       # sets the default TLS model and affects inlining.
8304       case $host_cpu in
8305       hppa*64*)
8306         # +Z the default
8307         ;;
8308       *)
8309         lt_prog_compiler_pic='-fPIC'
8310         ;;
8311       esac
8312       ;;
8313
8314     interix[3-9]*)
8315       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8316       # Instead, we relocate shared libraries at runtime.
8317       ;;
8318
8319     msdosdjgpp*)
8320       # Just because we use GCC doesn't mean we suddenly get shared libraries
8321       # on systems that don't support them.
8322       lt_prog_compiler_can_build_shared=no
8323       enable_shared=no
8324       ;;
8325
8326     *nto* | *qnx*)
8327       # QNX uses GNU C++, but need to define -shared option too, otherwise
8328       # it will coredump.
8329       lt_prog_compiler_pic='-fPIC -shared'
8330       ;;
8331
8332     sysv4*MP*)
8333       if test -d /usr/nec; then
8334         lt_prog_compiler_pic=-Kconform_pic
8335       fi
8336       ;;
8337
8338     *)
8339       lt_prog_compiler_pic='-fPIC'
8340       ;;
8341     esac
8342   else
8343     # PORTME Check for flag to pass linker flags through the system compiler.
8344     case $host_os in
8345     aix*)
8346       lt_prog_compiler_wl='-Wl,'
8347       if test "$host_cpu" = ia64; then
8348         # AIX 5 now supports IA64 processor
8349         lt_prog_compiler_static='-Bstatic'
8350       else
8351         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8352       fi
8353       ;;
8354
8355     mingw* | cygwin* | pw32* | os2* | cegcc*)
8356       # This hack is so that the source file can tell whether it is being
8357       # built for inclusion in a dll (and should export symbols for example).
8358       lt_prog_compiler_pic='-DDLL_EXPORT'
8359       ;;
8360
8361     hpux9* | hpux10* | hpux11*)
8362       lt_prog_compiler_wl='-Wl,'
8363       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8364       # not for PA HP-UX.
8365       case $host_cpu in
8366       hppa*64*|ia64*)
8367         # +Z the default
8368         ;;
8369       *)
8370         lt_prog_compiler_pic='+Z'
8371         ;;
8372       esac
8373       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8374       lt_prog_compiler_static='${wl}-a ${wl}archive'
8375       ;;
8376
8377     irix5* | irix6* | nonstopux*)
8378       lt_prog_compiler_wl='-Wl,'
8379       # PIC (with -KPIC) is the default.
8380       lt_prog_compiler_static='-non_shared'
8381       ;;
8382
8383     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8384       case $cc_basename in
8385       # old Intel for x86_64 which still supported -KPIC.
8386       ecc*)
8387         lt_prog_compiler_wl='-Wl,'
8388         lt_prog_compiler_pic='-KPIC'
8389         lt_prog_compiler_static='-static'
8390         ;;
8391       # icc used to be incompatible with GCC.
8392       # ICC 10 doesn't accept -KPIC any more.
8393       icc* | ifort*)
8394         lt_prog_compiler_wl='-Wl,'
8395         lt_prog_compiler_pic='-fPIC'
8396         lt_prog_compiler_static='-static'
8397         ;;
8398       # Lahey Fortran 8.1.
8399       lf95*)
8400         lt_prog_compiler_wl='-Wl,'
8401         lt_prog_compiler_pic='--shared'
8402         lt_prog_compiler_static='--static'
8403         ;;
8404       pgcc* | pgf77* | pgf90* | pgf95*)
8405         # Portland Group compilers (*not* the Pentium gcc compiler,
8406         # which looks to be a dead project)
8407         lt_prog_compiler_wl='-Wl,'
8408         lt_prog_compiler_pic='-fpic'
8409         lt_prog_compiler_static='-Bstatic'
8410         ;;
8411       ccc*)
8412         lt_prog_compiler_wl='-Wl,'
8413         # All Alpha code is PIC.
8414         lt_prog_compiler_static='-non_shared'
8415         ;;
8416       xl*)
8417         # IBM XL C 8.0/Fortran 10.1 on PPC
8418         lt_prog_compiler_wl='-Wl,'
8419         lt_prog_compiler_pic='-qpic'
8420         lt_prog_compiler_static='-qstaticlink'
8421         ;;
8422       *)
8423         case `$CC -V 2>&1 | sed 5q` in
8424         *Sun\ C*)
8425           # Sun C 5.9
8426           lt_prog_compiler_pic='-KPIC'
8427           lt_prog_compiler_static='-Bstatic'
8428           lt_prog_compiler_wl='-Wl,'
8429           ;;
8430         *Sun\ F*)
8431           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8432           lt_prog_compiler_pic='-KPIC'
8433           lt_prog_compiler_static='-Bstatic'
8434           lt_prog_compiler_wl=''
8435           ;;
8436         esac
8437         ;;
8438       esac
8439       ;;
8440
8441     newsos6)
8442       lt_prog_compiler_pic='-KPIC'
8443       lt_prog_compiler_static='-Bstatic'
8444       ;;
8445
8446     *nto* | *qnx*)
8447       # QNX uses GNU C++, but need to define -shared option too, otherwise
8448       # it will coredump.
8449       lt_prog_compiler_pic='-fPIC -shared'
8450       ;;
8451
8452     osf3* | osf4* | osf5*)
8453       lt_prog_compiler_wl='-Wl,'
8454       # All OSF/1 code is PIC.
8455       lt_prog_compiler_static='-non_shared'
8456       ;;
8457
8458     rdos*)
8459       lt_prog_compiler_static='-non_shared'
8460       ;;
8461
8462     solaris*)
8463       lt_prog_compiler_pic='-KPIC'
8464       lt_prog_compiler_static='-Bstatic'
8465       case $cc_basename in
8466       f77* | f90* | f95*)
8467         lt_prog_compiler_wl='-Qoption ld ';;
8468       *)
8469         lt_prog_compiler_wl='-Wl,';;
8470       esac
8471       ;;
8472
8473     sunos4*)
8474       lt_prog_compiler_wl='-Qoption ld '
8475       lt_prog_compiler_pic='-PIC'
8476       lt_prog_compiler_static='-Bstatic'
8477       ;;
8478
8479     sysv4 | sysv4.2uw2* | sysv4.3*)
8480       lt_prog_compiler_wl='-Wl,'
8481       lt_prog_compiler_pic='-KPIC'
8482       lt_prog_compiler_static='-Bstatic'
8483       ;;
8484
8485     sysv4*MP*)
8486       if test -d /usr/nec ;then
8487         lt_prog_compiler_pic='-Kconform_pic'
8488         lt_prog_compiler_static='-Bstatic'
8489       fi
8490       ;;
8491
8492     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8493       lt_prog_compiler_wl='-Wl,'
8494       lt_prog_compiler_pic='-KPIC'
8495       lt_prog_compiler_static='-Bstatic'
8496       ;;
8497
8498     unicos*)
8499       lt_prog_compiler_wl='-Wl,'
8500       lt_prog_compiler_can_build_shared=no
8501       ;;
8502
8503     uts4*)
8504       lt_prog_compiler_pic='-pic'
8505       lt_prog_compiler_static='-Bstatic'
8506       ;;
8507
8508     *)
8509       lt_prog_compiler_can_build_shared=no
8510       ;;
8511     esac
8512   fi
8513
8514 case $host_os in
8515   # For platforms which do not support PIC, -DPIC is meaningless:
8516   *djgpp*)
8517     lt_prog_compiler_pic=
8518     ;;
8519   *)
8520     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8521     ;;
8522 esac
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8524 $as_echo "$lt_prog_compiler_pic" >&6; }
8525
8526
8527
8528
8529
8530
8531 #
8532 # Check to make sure the PIC flag actually works.
8533 #
8534 if test -n "$lt_prog_compiler_pic"; then
8535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8536 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8537 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8538   $as_echo_n "(cached) " >&6
8539 else
8540   lt_cv_prog_compiler_pic_works=no
8541    ac_outfile=conftest.$ac_objext
8542    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8543    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8544    # Insert the option either (1) after the last *FLAGS variable, or
8545    # (2) before a word containing "conftest.", or (3) at the end.
8546    # Note that $ac_compile itself does not contain backslashes and begins
8547    # with a dollar sign (not a hyphen), so the echo should work correctly.
8548    # The option is referenced via a variable to avoid confusing sed.
8549    lt_compile=`echo "$ac_compile" | $SED \
8550    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8551    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8552    -e 's:$: $lt_compiler_flag:'`
8553    (eval echo "\"\$as_me:8553: $lt_compile\"" >&5)
8554    (eval "$lt_compile" 2>conftest.err)
8555    ac_status=$?
8556    cat conftest.err >&5
8557    echo "$as_me:8557: \$? = $ac_status" >&5
8558    if (exit $ac_status) && test -s "$ac_outfile"; then
8559      # The compiler can only warn and ignore the option if not recognized
8560      # So say no if there are warnings other than the usual output.
8561      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8562      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8563      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8564        lt_cv_prog_compiler_pic_works=yes
8565      fi
8566    fi
8567    $RM conftest*
8568
8569 fi
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8571 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8572
8573 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8574     case $lt_prog_compiler_pic in
8575      "" | " "*) ;;
8576      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8577      esac
8578 else
8579     lt_prog_compiler_pic=
8580      lt_prog_compiler_can_build_shared=no
8581 fi
8582
8583 fi
8584
8585
8586
8587
8588
8589
8590 #
8591 # Check to make sure the static flag actually works.
8592 #
8593 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8595 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8596 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8597   $as_echo_n "(cached) " >&6
8598 else
8599   lt_cv_prog_compiler_static_works=no
8600    save_LDFLAGS="$LDFLAGS"
8601    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8602    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8603    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8604      # The linker can only warn and ignore the option if not recognized
8605      # So say no if there are warnings
8606      if test -s conftest.err; then
8607        # Append any errors to the config.log.
8608        cat conftest.err 1>&5
8609        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8610        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8611        if diff conftest.exp conftest.er2 >/dev/null; then
8612          lt_cv_prog_compiler_static_works=yes
8613        fi
8614      else
8615        lt_cv_prog_compiler_static_works=yes
8616      fi
8617    fi
8618    $RM -r conftest*
8619    LDFLAGS="$save_LDFLAGS"
8620
8621 fi
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8623 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8624
8625 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8626     :
8627 else
8628     lt_prog_compiler_static=
8629 fi
8630
8631
8632
8633
8634
8635
8636
8637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8638 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8639 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8640   $as_echo_n "(cached) " >&6
8641 else
8642   lt_cv_prog_compiler_c_o=no
8643    $RM -r conftest 2>/dev/null
8644    mkdir conftest
8645    cd conftest
8646    mkdir out
8647    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8648
8649    lt_compiler_flag="-o out/conftest2.$ac_objext"
8650    # Insert the option either (1) after the last *FLAGS variable, or
8651    # (2) before a word containing "conftest.", or (3) at the end.
8652    # Note that $ac_compile itself does not contain backslashes and begins
8653    # with a dollar sign (not a hyphen), so the echo should work correctly.
8654    lt_compile=`echo "$ac_compile" | $SED \
8655    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8656    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8657    -e 's:$: $lt_compiler_flag:'`
8658    (eval echo "\"\$as_me:8658: $lt_compile\"" >&5)
8659    (eval "$lt_compile" 2>out/conftest.err)
8660    ac_status=$?
8661    cat out/conftest.err >&5
8662    echo "$as_me:8662: \$? = $ac_status" >&5
8663    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8664    then
8665      # The compiler can only warn and ignore the option if not recognized
8666      # So say no if there are warnings
8667      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8668      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8669      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8670        lt_cv_prog_compiler_c_o=yes
8671      fi
8672    fi
8673    chmod u+w . 2>&5
8674    $RM conftest*
8675    # SGI C++ compiler will create directory out/ii_files/ for
8676    # template instantiation
8677    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8678    $RM out/* && rmdir out
8679    cd ..
8680    $RM -r conftest
8681    $RM conftest*
8682
8683 fi
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8685 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8686
8687
8688
8689
8690
8691
8692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8693 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8694 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8695   $as_echo_n "(cached) " >&6
8696 else
8697   lt_cv_prog_compiler_c_o=no
8698    $RM -r conftest 2>/dev/null
8699    mkdir conftest
8700    cd conftest
8701    mkdir out
8702    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8703
8704    lt_compiler_flag="-o out/conftest2.$ac_objext"
8705    # Insert the option either (1) after the last *FLAGS variable, or
8706    # (2) before a word containing "conftest.", or (3) at the end.
8707    # Note that $ac_compile itself does not contain backslashes and begins
8708    # with a dollar sign (not a hyphen), so the echo should work correctly.
8709    lt_compile=`echo "$ac_compile" | $SED \
8710    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8711    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8712    -e 's:$: $lt_compiler_flag:'`
8713    (eval echo "\"\$as_me:8713: $lt_compile\"" >&5)
8714    (eval "$lt_compile" 2>out/conftest.err)
8715    ac_status=$?
8716    cat out/conftest.err >&5
8717    echo "$as_me:8717: \$? = $ac_status" >&5
8718    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8719    then
8720      # The compiler can only warn and ignore the option if not recognized
8721      # So say no if there are warnings
8722      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8723      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8724      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8725        lt_cv_prog_compiler_c_o=yes
8726      fi
8727    fi
8728    chmod u+w . 2>&5
8729    $RM conftest*
8730    # SGI C++ compiler will create directory out/ii_files/ for
8731    # template instantiation
8732    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8733    $RM out/* && rmdir out
8734    cd ..
8735    $RM -r conftest
8736    $RM conftest*
8737
8738 fi
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8740 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8741
8742
8743
8744
8745 hard_links="nottested"
8746 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8747   # do not overwrite the value of need_locks provided by the user
8748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8749 $as_echo_n "checking if we can lock with hard links... " >&6; }
8750   hard_links=yes
8751   $RM conftest*
8752   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8753   touch conftest.a
8754   ln conftest.a conftest.b 2>&5 || hard_links=no
8755   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8757 $as_echo "$hard_links" >&6; }
8758   if test "$hard_links" = no; then
8759     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8760 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8761     need_locks=warn
8762   fi
8763 else
8764   need_locks=no
8765 fi
8766
8767
8768
8769
8770
8771
8772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8773 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8774
8775   runpath_var=
8776   allow_undefined_flag=
8777   always_export_symbols=no
8778   archive_cmds=
8779   archive_expsym_cmds=
8780   compiler_needs_object=no
8781   enable_shared_with_static_runtimes=no
8782   export_dynamic_flag_spec=
8783   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8784   hardcode_automatic=no
8785   hardcode_direct=no
8786   hardcode_direct_absolute=no
8787   hardcode_libdir_flag_spec=
8788   hardcode_libdir_flag_spec_ld=
8789   hardcode_libdir_separator=
8790   hardcode_minus_L=no
8791   hardcode_shlibpath_var=unsupported
8792   inherit_rpath=no
8793   link_all_deplibs=unknown
8794   module_cmds=
8795   module_expsym_cmds=
8796   old_archive_from_new_cmds=
8797   old_archive_from_expsyms_cmds=
8798   thread_safe_flag_spec=
8799   whole_archive_flag_spec=
8800   # include_expsyms should be a list of space-separated symbols to be *always*
8801   # included in the symbol list
8802   include_expsyms=
8803   # exclude_expsyms can be an extended regexp of symbols to exclude
8804   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8805   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8806   # as well as any symbol that contains `d'.
8807   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8808   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8809   # platforms (ab)use it in PIC code, but their linkers get confused if
8810   # the symbol is explicitly referenced.  Since portable code cannot
8811   # rely on this symbol name, it's probably fine to never include it in
8812   # preloaded symbol tables.
8813   # Exclude shared library initialization/finalization symbols.
8814   extract_expsyms_cmds=
8815
8816   case $host_os in
8817   cygwin* | mingw* | pw32* | cegcc*)
8818     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8819     # When not using gcc, we currently assume that we are using
8820     # Microsoft Visual C++.
8821     if test "$GCC" != yes; then
8822       with_gnu_ld=no
8823     fi
8824     ;;
8825   interix*)
8826     # we just hope/assume this is gcc and not c89 (= MSVC++)
8827     with_gnu_ld=yes
8828     ;;
8829   openbsd*)
8830     with_gnu_ld=no
8831     ;;
8832   esac
8833
8834   ld_shlibs=yes
8835   if test "$with_gnu_ld" = yes; then
8836     # If archive_cmds runs LD, not CC, wlarc should be empty
8837     wlarc='${wl}'
8838
8839     # Set some defaults for GNU ld with shared library support. These
8840     # are reset later if shared libraries are not supported. Putting them
8841     # here allows them to be overridden if necessary.
8842     runpath_var=LD_RUN_PATH
8843     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8844     export_dynamic_flag_spec='${wl}--export-dynamic'
8845     # ancient GNU ld didn't support --whole-archive et. al.
8846     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8847       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8848     else
8849       whole_archive_flag_spec=
8850     fi
8851     supports_anon_versioning=no
8852     case `$LD -v 2>&1` in
8853       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8854       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8855       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8856       *\ 2.11.*) ;; # other 2.11 versions
8857       *) supports_anon_versioning=yes ;;
8858     esac
8859
8860     # See if GNU ld supports shared libraries.
8861     case $host_os in
8862     aix[3-9]*)
8863       # On AIX/PPC, the GNU linker is very broken
8864       if test "$host_cpu" != ia64; then
8865         ld_shlibs=no
8866         cat <<_LT_EOF 1>&2
8867
8868 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8869 *** to be unable to reliably create shared libraries on AIX.
8870 *** Therefore, libtool is disabling shared libraries support.  If you
8871 *** really care for shared libraries, you may want to modify your PATH
8872 *** so that a non-GNU linker is found, and then restart.
8873
8874 _LT_EOF
8875       fi
8876       ;;
8877
8878     amigaos*)
8879       case $host_cpu in
8880       powerpc)
8881             # see comment about AmigaOS4 .so support
8882             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8883             archive_expsym_cmds=''
8884         ;;
8885       m68k)
8886             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)'
8887             hardcode_libdir_flag_spec='-L$libdir'
8888             hardcode_minus_L=yes
8889         ;;
8890       esac
8891       ;;
8892
8893     beos*)
8894       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8895         allow_undefined_flag=unsupported
8896         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8897         # support --undefined.  This deserves some investigation.  FIXME
8898         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8899       else
8900         ld_shlibs=no
8901       fi
8902       ;;
8903
8904     cygwin* | mingw* | pw32* | cegcc*)
8905       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8906       # as there is no search path for DLLs.
8907       hardcode_libdir_flag_spec='-L$libdir'
8908       allow_undefined_flag=unsupported
8909       always_export_symbols=no
8910       enable_shared_with_static_runtimes=yes
8911       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8912
8913       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8914         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8915         # If the export-symbols file already is a .def file (1st line
8916         # is EXPORTS), use it as is; otherwise, prepend...
8917         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8918           cp $export_symbols $output_objdir/$soname.def;
8919         else
8920           echo EXPORTS > $output_objdir/$soname.def;
8921           cat $export_symbols >> $output_objdir/$soname.def;
8922         fi~
8923         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8924       else
8925         ld_shlibs=no
8926       fi
8927       ;;
8928
8929     interix[3-9]*)
8930       hardcode_direct=no
8931       hardcode_shlibpath_var=no
8932       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8933       export_dynamic_flag_spec='${wl}-E'
8934       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8935       # Instead, shared libraries are loaded at an image base (0x10000000 by
8936       # default) and relocated if they conflict, which is a slow very memory
8937       # consuming and fragmenting process.  To avoid this, we pick a random,
8938       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8939       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8940       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8941       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'
8942       ;;
8943
8944     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8945       tmp_diet=no
8946       if test "$host_os" = linux-dietlibc; then
8947         case $cc_basename in
8948           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8949         esac
8950       fi
8951       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8952          && test "$tmp_diet" = no
8953       then
8954         tmp_addflag=
8955         tmp_sharedflag='-shared'
8956         case $cc_basename,$host_cpu in
8957         pgcc*)                          # Portland Group C compiler
8958           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'
8959           tmp_addflag=' $pic_flag'
8960           ;;
8961         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8962           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'
8963           tmp_addflag=' $pic_flag -Mnomain' ;;
8964         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8965           tmp_addflag=' -i_dynamic' ;;
8966         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8967           tmp_addflag=' -i_dynamic -nofor_main' ;;
8968         ifc* | ifort*)                  # Intel Fortran compiler
8969           tmp_addflag=' -nofor_main' ;;
8970         lf95*)                          # Lahey Fortran 8.1
8971           whole_archive_flag_spec=
8972           tmp_sharedflag='--shared' ;;
8973         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8974           tmp_sharedflag='-qmkshrobj'
8975           tmp_addflag= ;;
8976         esac
8977         case `$CC -V 2>&1 | sed 5q` in
8978         *Sun\ C*)                       # Sun C 5.9
8979           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'
8980           compiler_needs_object=yes
8981           tmp_sharedflag='-G' ;;
8982         *Sun\ F*)                       # Sun Fortran 8.3
8983           tmp_sharedflag='-G' ;;
8984         esac
8985         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986
8987         if test "x$supports_anon_versioning" = xyes; then
8988           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8989             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8990             echo "local: *; };" >> $output_objdir/$libname.ver~
8991             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8992         fi
8993
8994         case $cc_basename in
8995         xlf*)
8996           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8997           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8998           hardcode_libdir_flag_spec=
8999           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9000           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9001           if test "x$supports_anon_versioning" = xyes; then
9002             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9003               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9004               echo "local: *; };" >> $output_objdir/$libname.ver~
9005               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9006           fi
9007           ;;
9008         esac
9009       else
9010         ld_shlibs=no
9011       fi
9012       ;;
9013
9014     netbsd*)
9015       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9016         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9017         wlarc=
9018       else
9019         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9020         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9021       fi
9022       ;;
9023
9024     solaris*)
9025       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9026         ld_shlibs=no
9027         cat <<_LT_EOF 1>&2
9028
9029 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9030 *** create shared libraries on Solaris systems.  Therefore, libtool
9031 *** is disabling shared libraries support.  We urge you to upgrade GNU
9032 *** binutils to release 2.9.1 or newer.  Another option is to modify
9033 *** your PATH or compiler configuration so that the native linker is
9034 *** used, and then restart.
9035
9036 _LT_EOF
9037       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9038         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9039         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9040       else
9041         ld_shlibs=no
9042       fi
9043       ;;
9044
9045     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9046       case `$LD -v 2>&1` in
9047         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9048         ld_shlibs=no
9049         cat <<_LT_EOF 1>&2
9050
9051 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9052 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9053 *** is disabling shared libraries support.  We urge you to upgrade GNU
9054 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9055 *** your PATH or compiler configuration so that the native linker is
9056 *** used, and then restart.
9057
9058 _LT_EOF
9059         ;;
9060         *)
9061           # For security reasons, it is highly recommended that you always
9062           # use absolute paths for naming shared libraries, and exclude the
9063           # DT_RUNPATH tag from executables and libraries.  But doing so
9064           # requires that you compile everything twice, which is a pain.
9065           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9066             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9067             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9068             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9069           else
9070             ld_shlibs=no
9071           fi
9072         ;;
9073       esac
9074       ;;
9075
9076     sunos4*)
9077       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9078       wlarc=
9079       hardcode_direct=yes
9080       hardcode_shlibpath_var=no
9081       ;;
9082
9083     *)
9084       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9085         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9086         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9087       else
9088         ld_shlibs=no
9089       fi
9090       ;;
9091     esac
9092
9093     if test "$ld_shlibs" = no; then
9094       runpath_var=
9095       hardcode_libdir_flag_spec=
9096       export_dynamic_flag_spec=
9097       whole_archive_flag_spec=
9098     fi
9099   else
9100     # PORTME fill in a description of your system's linker (not GNU ld)
9101     case $host_os in
9102     aix3*)
9103       allow_undefined_flag=unsupported
9104       always_export_symbols=yes
9105       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'
9106       # Note: this linker hardcodes the directories in LIBPATH if there
9107       # are no directories specified by -L.
9108       hardcode_minus_L=yes
9109       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9110         # Neither direct hardcoding nor static linking is supported with a
9111         # broken collect2.
9112         hardcode_direct=unsupported
9113       fi
9114       ;;
9115
9116     aix[4-9]*)
9117       if test "$host_cpu" = ia64; then
9118         # On IA64, the linker does run time linking by default, so we don't
9119         # have to do anything special.
9120         aix_use_runtimelinking=no
9121         exp_sym_flag='-Bexport'
9122         no_entry_flag=""
9123       else
9124         # If we're using GNU nm, then we don't want the "-C" option.
9125         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9126         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9127           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'
9128         else
9129           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'
9130         fi
9131         aix_use_runtimelinking=no
9132
9133         # Test if we are trying to use run time linking or normal
9134         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9135         # need to do runtime linking.
9136         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9137           for ld_flag in $LDFLAGS; do
9138           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9139             aix_use_runtimelinking=yes
9140             break
9141           fi
9142           done
9143           ;;
9144         esac
9145
9146         exp_sym_flag='-bexport'
9147         no_entry_flag='-bnoentry'
9148       fi
9149
9150       # When large executables or shared objects are built, AIX ld can
9151       # have problems creating the table of contents.  If linking a library
9152       # or program results in "error TOC overflow" add -mminimal-toc to
9153       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9154       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9155
9156       archive_cmds=''
9157       hardcode_direct=yes
9158       hardcode_direct_absolute=yes
9159       hardcode_libdir_separator=':'
9160       link_all_deplibs=yes
9161       file_list_spec='${wl}-f,'
9162
9163       if test "$GCC" = yes; then
9164         case $host_os in aix4.[012]|aix4.[012].*)
9165         # We only want to do this on AIX 4.2 and lower, the check
9166         # below for broken collect2 doesn't work under 4.3+
9167           collect2name=`${CC} -print-prog-name=collect2`
9168           if test -f "$collect2name" &&
9169            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9170           then
9171           # We have reworked collect2
9172           :
9173           else
9174           # We have old collect2
9175           hardcode_direct=unsupported
9176           # It fails to find uninstalled libraries when the uninstalled
9177           # path is not listed in the libpath.  Setting hardcode_minus_L
9178           # to unsupported forces relinking
9179           hardcode_minus_L=yes
9180           hardcode_libdir_flag_spec='-L$libdir'
9181           hardcode_libdir_separator=
9182           fi
9183           ;;
9184         esac
9185         shared_flag='-shared'
9186         if test "$aix_use_runtimelinking" = yes; then
9187           shared_flag="$shared_flag "'${wl}-G'
9188         fi
9189       else
9190         # not using gcc
9191         if test "$host_cpu" = ia64; then
9192         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9193         # chokes on -Wl,-G. The following line is correct:
9194           shared_flag='-G'
9195         else
9196           if test "$aix_use_runtimelinking" = yes; then
9197             shared_flag='${wl}-G'
9198           else
9199             shared_flag='${wl}-bM:SRE'
9200           fi
9201         fi
9202       fi
9203
9204       export_dynamic_flag_spec='${wl}-bexpall'
9205       # It seems that -bexpall does not export symbols beginning with
9206       # underscore (_), so it is better to generate a list of symbols to export.
9207       always_export_symbols=yes
9208       if test "$aix_use_runtimelinking" = yes; then
9209         # Warning - without using the other runtime loading flags (-brtl),
9210         # -berok will link without error, but may produce a broken library.
9211         allow_undefined_flag='-berok'
9212         # Determine the default libpath from the value encoded in an
9213         # empty executable.
9214         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h.  */
9216
9217 int
9218 main ()
9219 {
9220
9221   ;
9222   return 0;
9223 }
9224 _ACEOF
9225 if ac_fn_c_try_link "$LINENO"; then :
9226
9227 lt_aix_libpath_sed='
9228     /Import File Strings/,/^$/ {
9229         /^0/ {
9230             s/^0  *\(.*\)$/\1/
9231             p
9232         }
9233     }'
9234 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9235 # Check for a 64-bit object if we didn't find anything.
9236 if test -z "$aix_libpath"; then
9237   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9238 fi
9239 fi
9240 rm -f core conftest.err conftest.$ac_objext \
9241     conftest$ac_exeext conftest.$ac_ext
9242 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9243
9244         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9245         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"
9246       else
9247         if test "$host_cpu" = ia64; then
9248           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9249           allow_undefined_flag="-z nodefs"
9250           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"
9251         else
9252          # Determine the default libpath from the value encoded in an
9253          # empty executable.
9254          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h.  */
9256
9257 int
9258 main ()
9259 {
9260
9261   ;
9262   return 0;
9263 }
9264 _ACEOF
9265 if ac_fn_c_try_link "$LINENO"; then :
9266
9267 lt_aix_libpath_sed='
9268     /Import File Strings/,/^$/ {
9269         /^0/ {
9270             s/^0  *\(.*\)$/\1/
9271             p
9272         }
9273     }'
9274 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9275 # Check for a 64-bit object if we didn't find anything.
9276 if test -z "$aix_libpath"; then
9277   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9278 fi
9279 fi
9280 rm -f core conftest.err conftest.$ac_objext \
9281     conftest$ac_exeext conftest.$ac_ext
9282 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9283
9284          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9285           # Warning - without using the other run time loading flags,
9286           # -berok will link without error, but may produce a broken library.
9287           no_undefined_flag=' ${wl}-bernotok'
9288           allow_undefined_flag=' ${wl}-berok'
9289           # Exported symbols can be pulled into shared objects from archives
9290           whole_archive_flag_spec='$convenience'
9291           archive_cmds_need_lc=yes
9292           # This is similar to how AIX traditionally builds its shared libraries.
9293           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'
9294         fi
9295       fi
9296       ;;
9297
9298     amigaos*)
9299       case $host_cpu in
9300       powerpc)
9301             # see comment about AmigaOS4 .so support
9302             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9303             archive_expsym_cmds=''
9304         ;;
9305       m68k)
9306             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)'
9307             hardcode_libdir_flag_spec='-L$libdir'
9308             hardcode_minus_L=yes
9309         ;;
9310       esac
9311       ;;
9312
9313     bsdi[45]*)
9314       export_dynamic_flag_spec=-rdynamic
9315       ;;
9316
9317     cygwin* | mingw* | pw32* | cegcc*)
9318       # When not using gcc, we currently assume that we are using
9319       # Microsoft Visual C++.
9320       # hardcode_libdir_flag_spec is actually meaningless, as there is
9321       # no search path for DLLs.
9322       hardcode_libdir_flag_spec=' '
9323       allow_undefined_flag=unsupported
9324       # Tell ltmain to make .lib files, not .a files.
9325       libext=lib
9326       # Tell ltmain to make .dll files, not .so files.
9327       shrext_cmds=".dll"
9328       # FIXME: Setting linknames here is a bad hack.
9329       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9330       # The linker will automatically build a .lib file if we build a DLL.
9331       old_archive_from_new_cmds='true'
9332       # FIXME: Should let the user specify the lib program.
9333       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9334       fix_srcfile_path='`cygpath -w "$srcfile"`'
9335       enable_shared_with_static_runtimes=yes
9336       ;;
9337
9338     darwin* | rhapsody*)
9339
9340
9341   archive_cmds_need_lc=no
9342   hardcode_direct=no
9343   hardcode_automatic=yes
9344   hardcode_shlibpath_var=unsupported
9345   whole_archive_flag_spec=''
9346   link_all_deplibs=yes
9347   allow_undefined_flag="$_lt_dar_allow_undefined"
9348   case $cc_basename in
9349      ifort*) _lt_dar_can_shared=yes ;;
9350      *) _lt_dar_can_shared=$GCC ;;
9351   esac
9352   if test "$_lt_dar_can_shared" = "yes"; then
9353     output_verbose_link_cmd=echo
9354     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9355     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9356     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}"
9357     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}"
9358
9359   else
9360   ld_shlibs=no
9361   fi
9362
9363       ;;
9364
9365     dgux*)
9366       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9367       hardcode_libdir_flag_spec='-L$libdir'
9368       hardcode_shlibpath_var=no
9369       ;;
9370
9371     freebsd1*)
9372       ld_shlibs=no
9373       ;;
9374
9375     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9376     # support.  Future versions do this automatically, but an explicit c++rt0.o
9377     # does not break anything, and helps significantly (at the cost of a little
9378     # extra space).
9379     freebsd2.2*)
9380       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9381       hardcode_libdir_flag_spec='-R$libdir'
9382       hardcode_direct=yes
9383       hardcode_shlibpath_var=no
9384       ;;
9385
9386     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9387     freebsd2*)
9388       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9389       hardcode_direct=yes
9390       hardcode_minus_L=yes
9391       hardcode_shlibpath_var=no
9392       ;;
9393
9394     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9395     freebsd* | dragonfly*)
9396       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9397       hardcode_libdir_flag_spec='-R$libdir'
9398       hardcode_direct=yes
9399       hardcode_shlibpath_var=no
9400       ;;
9401
9402     hpux9*)
9403       if test "$GCC" = yes; then
9404         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'
9405       else
9406         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'
9407       fi
9408       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9409       hardcode_libdir_separator=:
9410       hardcode_direct=yes
9411
9412       # hardcode_minus_L: Not really in the search PATH,
9413       # but as the default location of the library.
9414       hardcode_minus_L=yes
9415       export_dynamic_flag_spec='${wl}-E'
9416       ;;
9417
9418     hpux10*)
9419       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9420         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9421       else
9422         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9423       fi
9424       if test "$with_gnu_ld" = no; then
9425         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9426         hardcode_libdir_flag_spec_ld='+b $libdir'
9427         hardcode_libdir_separator=:
9428         hardcode_direct=yes
9429         hardcode_direct_absolute=yes
9430         export_dynamic_flag_spec='${wl}-E'
9431         # hardcode_minus_L: Not really in the search PATH,
9432         # but as the default location of the library.
9433         hardcode_minus_L=yes
9434       fi
9435       ;;
9436
9437     hpux11*)
9438       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9439         case $host_cpu in
9440         hppa*64*)
9441           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9442           ;;
9443         ia64*)
9444           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9445           ;;
9446         *)
9447           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9448           ;;
9449         esac
9450       else
9451         case $host_cpu in
9452         hppa*64*)
9453           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9454           ;;
9455         ia64*)
9456           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9457           ;;
9458         *)
9459           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9460           ;;
9461         esac
9462       fi
9463       if test "$with_gnu_ld" = no; then
9464         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9465         hardcode_libdir_separator=:
9466
9467         case $host_cpu in
9468         hppa*64*|ia64*)
9469           hardcode_direct=no
9470           hardcode_shlibpath_var=no
9471           ;;
9472         *)
9473           hardcode_direct=yes
9474           hardcode_direct_absolute=yes
9475           export_dynamic_flag_spec='${wl}-E'
9476
9477           # hardcode_minus_L: Not really in the search PATH,
9478           # but as the default location of the library.
9479           hardcode_minus_L=yes
9480           ;;
9481         esac
9482       fi
9483       ;;
9484
9485     irix5* | irix6* | nonstopux*)
9486       if test "$GCC" = yes; then
9487         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'
9488         # Try to use the -exported_symbol ld option, if it does not
9489         # work, assume that -exports_file does not work either and
9490         # implicitly export all symbols.
9491         save_LDFLAGS="$LDFLAGS"
9492         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9493         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9494 /* end confdefs.h.  */
9495 int foo(void) {}
9496 _ACEOF
9497 if ac_fn_c_try_link "$LINENO"; then :
9498   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'
9499
9500 fi
9501 rm -f core conftest.err conftest.$ac_objext \
9502     conftest$ac_exeext conftest.$ac_ext
9503         LDFLAGS="$save_LDFLAGS"
9504       else
9505         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'
9506         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'
9507       fi
9508       archive_cmds_need_lc='no'
9509       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9510       hardcode_libdir_separator=:
9511       inherit_rpath=yes
9512       link_all_deplibs=yes
9513       ;;
9514
9515     netbsd*)
9516       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9517         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9518       else
9519         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9520       fi
9521       hardcode_libdir_flag_spec='-R$libdir'
9522       hardcode_direct=yes
9523       hardcode_shlibpath_var=no
9524       ;;
9525
9526     newsos6)
9527       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9528       hardcode_direct=yes
9529       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9530       hardcode_libdir_separator=:
9531       hardcode_shlibpath_var=no
9532       ;;
9533
9534     *nto* | *qnx*)
9535       ;;
9536
9537     openbsd*)
9538       if test -f /usr/libexec/ld.so; then
9539         hardcode_direct=yes
9540         hardcode_shlibpath_var=no
9541         hardcode_direct_absolute=yes
9542         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9543           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9544           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9545           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9546           export_dynamic_flag_spec='${wl}-E'
9547         else
9548           case $host_os in
9549            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9550              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9551              hardcode_libdir_flag_spec='-R$libdir'
9552              ;;
9553            *)
9554              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9555              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9556              ;;
9557           esac
9558         fi
9559       else
9560         ld_shlibs=no
9561       fi
9562       ;;
9563
9564     os2*)
9565       hardcode_libdir_flag_spec='-L$libdir'
9566       hardcode_minus_L=yes
9567       allow_undefined_flag=unsupported
9568       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'
9569       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9570       ;;
9571
9572     osf3*)
9573       if test "$GCC" = yes; then
9574         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9575         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'
9576       else
9577         allow_undefined_flag=' -expect_unresolved \*'
9578         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'
9579       fi
9580       archive_cmds_need_lc='no'
9581       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9582       hardcode_libdir_separator=:
9583       ;;
9584
9585     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9586       if test "$GCC" = yes; then
9587         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9588         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'
9589         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9590       else
9591         allow_undefined_flag=' -expect_unresolved \*'
9592         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'
9593         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~
9594         $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'
9595
9596         # Both c and cxx compiler support -rpath directly
9597         hardcode_libdir_flag_spec='-rpath $libdir'
9598       fi
9599       archive_cmds_need_lc='no'
9600       hardcode_libdir_separator=:
9601       ;;
9602
9603     solaris*)
9604       no_undefined_flag=' -z defs'
9605       if test "$GCC" = yes; then
9606         wlarc='${wl}'
9607         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9608         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9609           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9610       else
9611         case `$CC -V 2>&1` in
9612         *"Compilers 5.0"*)
9613           wlarc=''
9614           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9615           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9616           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9617           ;;
9618         *)
9619           wlarc='${wl}'
9620           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9621           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9622           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9623           ;;
9624         esac
9625       fi
9626       hardcode_libdir_flag_spec='-R$libdir'
9627       hardcode_shlibpath_var=no
9628       case $host_os in
9629       solaris2.[0-5] | solaris2.[0-5].*) ;;
9630       *)
9631         # The compiler driver will combine and reorder linker options,
9632         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9633         # but is careful enough not to reorder.
9634         # Supported since Solaris 2.6 (maybe 2.5.1?)
9635         if test "$GCC" = yes; then
9636           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9637         else
9638           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9639         fi
9640         ;;
9641       esac
9642       link_all_deplibs=yes
9643       ;;
9644
9645     sunos4*)
9646       if test "x$host_vendor" = xsequent; then
9647         # Use $CC to link under sequent, because it throws in some extra .o
9648         # files that make .init and .fini sections work.
9649         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9650       else
9651         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9652       fi
9653       hardcode_libdir_flag_spec='-L$libdir'
9654       hardcode_direct=yes
9655       hardcode_minus_L=yes
9656       hardcode_shlibpath_var=no
9657       ;;
9658
9659     sysv4)
9660       case $host_vendor in
9661         sni)
9662           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9663           hardcode_direct=yes # is this really true???
9664         ;;
9665         siemens)
9666           ## LD is ld it makes a PLAMLIB
9667           ## CC just makes a GrossModule.
9668           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9669           reload_cmds='$CC -r -o $output$reload_objs'
9670           hardcode_direct=no
9671         ;;
9672         motorola)
9673           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9675         ;;
9676       esac
9677       runpath_var='LD_RUN_PATH'
9678       hardcode_shlibpath_var=no
9679       ;;
9680
9681     sysv4.3*)
9682       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683       hardcode_shlibpath_var=no
9684       export_dynamic_flag_spec='-Bexport'
9685       ;;
9686
9687     sysv4*MP*)
9688       if test -d /usr/nec; then
9689         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9690         hardcode_shlibpath_var=no
9691         runpath_var=LD_RUN_PATH
9692         hardcode_runpath_var=yes
9693         ld_shlibs=yes
9694       fi
9695       ;;
9696
9697     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9698       no_undefined_flag='${wl}-z,text'
9699       archive_cmds_need_lc=no
9700       hardcode_shlibpath_var=no
9701       runpath_var='LD_RUN_PATH'
9702
9703       if test "$GCC" = yes; then
9704         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9705         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9706       else
9707         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9708         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9709       fi
9710       ;;
9711
9712     sysv5* | sco3.2v5* | sco5v6*)
9713       # Note: We can NOT use -z defs as we might desire, because we do not
9714       # link with -lc, and that would cause any symbols used from libc to
9715       # always be unresolved, which means just about no library would
9716       # ever link correctly.  If we're not using GNU ld we use -z text
9717       # though, which does catch some bad symbols but isn't as heavy-handed
9718       # as -z defs.
9719       no_undefined_flag='${wl}-z,text'
9720       allow_undefined_flag='${wl}-z,nodefs'
9721       archive_cmds_need_lc=no
9722       hardcode_shlibpath_var=no
9723       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9724       hardcode_libdir_separator=':'
9725       link_all_deplibs=yes
9726       export_dynamic_flag_spec='${wl}-Bexport'
9727       runpath_var='LD_RUN_PATH'
9728
9729       if test "$GCC" = yes; then
9730         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9731         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9732       else
9733         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9734         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735       fi
9736       ;;
9737
9738     uts4*)
9739       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9740       hardcode_libdir_flag_spec='-L$libdir'
9741       hardcode_shlibpath_var=no
9742       ;;
9743
9744     *)
9745       ld_shlibs=no
9746       ;;
9747     esac
9748
9749     if test x$host_vendor = xsni; then
9750       case $host in
9751       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9752         export_dynamic_flag_spec='${wl}-Blargedynsym'
9753         ;;
9754       esac
9755     fi
9756   fi
9757
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9759 $as_echo "$ld_shlibs" >&6; }
9760 test "$ld_shlibs" = no && can_build_shared=no
9761
9762 with_gnu_ld=$with_gnu_ld
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778 #
9779 # Do we need to explicitly link libc?
9780 #
9781 case "x$archive_cmds_need_lc" in
9782 x|xyes)
9783   # Assume -lc should be added
9784   archive_cmds_need_lc=yes
9785
9786   if test "$enable_shared" = yes && test "$GCC" = yes; then
9787     case $archive_cmds in
9788     *'~'*)
9789       # FIXME: we may have to deal with multi-command sequences.
9790       ;;
9791     '$CC '*)
9792       # Test whether the compiler implicitly links with -lc since on some
9793       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9794       # to ld, don't add -lc before -lgcc.
9795       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9796 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9797 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9798   $as_echo_n "(cached) " >&6
9799 else
9800   $RM conftest*
9801         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9802
9803         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9804   (eval $ac_compile) 2>&5
9805   ac_status=$?
9806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9807   test $ac_status = 0; } 2>conftest.err; then
9808           soname=conftest
9809           lib=conftest
9810           libobjs=conftest.$ac_objext
9811           deplibs=
9812           wl=$lt_prog_compiler_wl
9813           pic_flag=$lt_prog_compiler_pic
9814           compiler_flags=-v
9815           linker_flags=-v
9816           verstring=
9817           output_objdir=.
9818           libname=conftest
9819           lt_save_allow_undefined_flag=$allow_undefined_flag
9820           allow_undefined_flag=
9821           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9822   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9823   ac_status=$?
9824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9825   test $ac_status = 0; }
9826           then
9827             lt_cv_archive_cmds_need_lc=no
9828           else
9829             lt_cv_archive_cmds_need_lc=yes
9830           fi
9831           allow_undefined_flag=$lt_save_allow_undefined_flag
9832         else
9833           cat conftest.err 1>&5
9834         fi
9835         $RM conftest*
9836
9837 fi
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9839 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9840       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9841       ;;
9842     esac
9843   fi
9844   ;;
9845 esac
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10004 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10005
10006 if test "$GCC" = yes; then
10007   case $host_os in
10008     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10009     *) lt_awk_arg="/^libraries:/" ;;
10010   esac
10011   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10012   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10013     # if the path contains ";" then we assume it to be the separator
10014     # otherwise default to the standard path separator (i.e. ":") - it is
10015     # assumed that no part of a normal pathname contains ";" but that should
10016     # okay in the real world where ";" in dirpaths is itself problematic.
10017     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10018   else
10019     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10020   fi
10021   # Ok, now we have the path, separated by spaces, we can step through it
10022   # and add multilib dir if necessary.
10023   lt_tmp_lt_search_path_spec=
10024   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10025   for lt_sys_path in $lt_search_path_spec; do
10026     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10027       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10028     else
10029       test -d "$lt_sys_path" && \
10030         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10031     fi
10032   done
10033   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10034 BEGIN {RS=" "; FS="/|\n";} {
10035   lt_foo="";
10036   lt_count=0;
10037   for (lt_i = NF; lt_i > 0; lt_i--) {
10038     if ($lt_i != "" && $lt_i != ".") {
10039       if ($lt_i == "..") {
10040         lt_count++;
10041       } else {
10042         if (lt_count == 0) {
10043           lt_foo="/" $lt_i lt_foo;
10044         } else {
10045           lt_count--;
10046         }
10047       }
10048     }
10049   }
10050   if (lt_foo != "") { lt_freq[lt_foo]++; }
10051   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10052 }'`
10053   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10054 else
10055   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10056 fi
10057 library_names_spec=
10058 libname_spec='lib$name'
10059 soname_spec=
10060 shrext_cmds=".so"
10061 postinstall_cmds=
10062 postuninstall_cmds=
10063 finish_cmds=
10064 finish_eval=
10065 shlibpath_var=
10066 shlibpath_overrides_runpath=unknown
10067 version_type=none
10068 dynamic_linker="$host_os ld.so"
10069 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10070 need_lib_prefix=unknown
10071 hardcode_into_libs=no
10072
10073 # when you set need_version to no, make sure it does not cause -set_version
10074 # flags to be left without arguments
10075 need_version=unknown
10076
10077 case $host_os in
10078 aix3*)
10079   version_type=linux
10080   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10081   shlibpath_var=LIBPATH
10082
10083   # AIX 3 has no versioning support, so we append a major version to the name.
10084   soname_spec='${libname}${release}${shared_ext}$major'
10085   ;;
10086
10087 aix[4-9]*)
10088   version_type=linux
10089   need_lib_prefix=no
10090   need_version=no
10091   hardcode_into_libs=yes
10092   if test "$host_cpu" = ia64; then
10093     # AIX 5 supports IA64
10094     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10095     shlibpath_var=LD_LIBRARY_PATH
10096   else
10097     # With GCC up to 2.95.x, collect2 would create an import file
10098     # for dependence libraries.  The import file would start with
10099     # the line `#! .'.  This would cause the generated library to
10100     # depend on `.', always an invalid library.  This was fixed in
10101     # development snapshots of GCC prior to 3.0.
10102     case $host_os in
10103       aix4 | aix4.[01] | aix4.[01].*)
10104       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10105            echo ' yes '
10106            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10107         :
10108       else
10109         can_build_shared=no
10110       fi
10111       ;;
10112     esac
10113     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10114     # soname into executable. Probably we can add versioning support to
10115     # collect2, so additional links can be useful in future.
10116     if test "$aix_use_runtimelinking" = yes; then
10117       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10118       # instead of lib<name>.a to let people know that these are not
10119       # typical AIX shared libraries.
10120       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121     else
10122       # We preserve .a as extension for shared libraries through AIX4.2
10123       # and later when we are not doing run time linking.
10124       library_names_spec='${libname}${release}.a $libname.a'
10125       soname_spec='${libname}${release}${shared_ext}$major'
10126     fi
10127     shlibpath_var=LIBPATH
10128   fi
10129   ;;
10130
10131 amigaos*)
10132   case $host_cpu in
10133   powerpc)
10134     # Since July 2007 AmigaOS4 officially supports .so libraries.
10135     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10136     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137     ;;
10138   m68k)
10139     library_names_spec='$libname.ixlibrary $libname.a'
10140     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10141     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'
10142     ;;
10143   esac
10144   ;;
10145
10146 beos*)
10147   library_names_spec='${libname}${shared_ext}'
10148   dynamic_linker="$host_os ld.so"
10149   shlibpath_var=LIBRARY_PATH
10150   ;;
10151
10152 bsdi[45]*)
10153   version_type=linux
10154   need_version=no
10155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156   soname_spec='${libname}${release}${shared_ext}$major'
10157   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10158   shlibpath_var=LD_LIBRARY_PATH
10159   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10160   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10161   # the default ld.so.conf also contains /usr/contrib/lib and
10162   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10163   # libtool to hard-code these into programs
10164   ;;
10165
10166 cygwin* | mingw* | pw32* | cegcc*)
10167   version_type=windows
10168   shrext_cmds=".dll"
10169   need_version=no
10170   need_lib_prefix=no
10171
10172   case $GCC,$host_os in
10173   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10174     library_names_spec='$libname.dll.a'
10175     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10176     postinstall_cmds='base_file=`basename \${file}`~
10177       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10178       dldir=$destdir/`dirname \$dlpath`~
10179       test -d \$dldir || mkdir -p \$dldir~
10180       $install_prog $dir/$dlname \$dldir/$dlname~
10181       chmod a+x \$dldir/$dlname~
10182       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10183         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10184       fi'
10185     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10186       dlpath=$dir/\$dldll~
10187        $RM \$dlpath'
10188     shlibpath_overrides_runpath=yes
10189
10190     case $host_os in
10191     cygwin*)
10192       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10193       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10194       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10195       ;;
10196     mingw* | cegcc*)
10197       # MinGW DLLs use traditional 'lib' prefix
10198       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10199       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10200       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10201         # It is most probably a Windows format PATH printed by
10202         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10203         # path with ; separators, and with drive letters. We can handle the
10204         # drive letters (cygwin fileutils understands them), so leave them,
10205         # especially as we might pass files found there to a mingw objdump,
10206         # which wouldn't understand a cygwinified path. Ahh.
10207         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10208       else
10209         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10210       fi
10211       ;;
10212     pw32*)
10213       # pw32 DLLs use 'pw' prefix rather than 'lib'
10214       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10215       ;;
10216     esac
10217     ;;
10218
10219   *)
10220     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10221     ;;
10222   esac
10223   dynamic_linker='Win32 ld.exe'
10224   # FIXME: first we should search . and the directory the executable is in
10225   shlibpath_var=PATH
10226   ;;
10227
10228 darwin* | rhapsody*)
10229   dynamic_linker="$host_os dyld"
10230   version_type=darwin
10231   need_lib_prefix=no
10232   need_version=no
10233   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10234   soname_spec='${libname}${release}${major}$shared_ext'
10235   shlibpath_overrides_runpath=yes
10236   shlibpath_var=DYLD_LIBRARY_PATH
10237   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10238
10239   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10240   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10241   ;;
10242
10243 dgux*)
10244   version_type=linux
10245   need_lib_prefix=no
10246   need_version=no
10247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10248   soname_spec='${libname}${release}${shared_ext}$major'
10249   shlibpath_var=LD_LIBRARY_PATH
10250   ;;
10251
10252 freebsd1*)
10253   dynamic_linker=no
10254   ;;
10255
10256 freebsd* | dragonfly*)
10257   # DragonFly does not have aout.  When/if they implement a new
10258   # versioning mechanism, adjust this.
10259   if test -x /usr/bin/objformat; then
10260     objformat=`/usr/bin/objformat`
10261   else
10262     case $host_os in
10263     freebsd[123]*) objformat=aout ;;
10264     *) objformat=elf ;;
10265     esac
10266   fi
10267   version_type=freebsd-$objformat
10268   case $version_type in
10269     freebsd-elf*)
10270       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10271       need_version=no
10272       need_lib_prefix=no
10273       ;;
10274     freebsd-*)
10275       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10276       need_version=yes
10277       ;;
10278   esac
10279   shlibpath_var=LD_LIBRARY_PATH
10280   case $host_os in
10281   freebsd2*)
10282     shlibpath_overrides_runpath=yes
10283     ;;
10284   freebsd3.[01]* | freebsdelf3.[01]*)
10285     shlibpath_overrides_runpath=yes
10286     hardcode_into_libs=yes
10287     ;;
10288   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10289   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10290     shlibpath_overrides_runpath=no
10291     hardcode_into_libs=yes
10292     ;;
10293   *) # from 4.6 on, and DragonFly
10294     shlibpath_overrides_runpath=yes
10295     hardcode_into_libs=yes
10296     ;;
10297   esac
10298   ;;
10299
10300 gnu*)
10301   version_type=linux
10302   need_lib_prefix=no
10303   need_version=no
10304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10305   soname_spec='${libname}${release}${shared_ext}$major'
10306   shlibpath_var=LD_LIBRARY_PATH
10307   hardcode_into_libs=yes
10308   ;;
10309
10310 hpux9* | hpux10* | hpux11*)
10311   # Give a soname corresponding to the major version so that dld.sl refuses to
10312   # link against other versions.
10313   version_type=sunos
10314   need_lib_prefix=no
10315   need_version=no
10316   case $host_cpu in
10317   ia64*)
10318     shrext_cmds='.so'
10319     hardcode_into_libs=yes
10320     dynamic_linker="$host_os dld.so"
10321     shlibpath_var=LD_LIBRARY_PATH
10322     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10323     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324     soname_spec='${libname}${release}${shared_ext}$major'
10325     if test "X$HPUX_IA64_MODE" = X32; then
10326       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10327     else
10328       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10329     fi
10330     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10331     ;;
10332   hppa*64*)
10333     shrext_cmds='.sl'
10334     hardcode_into_libs=yes
10335     dynamic_linker="$host_os dld.sl"
10336     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10337     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10338     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339     soname_spec='${libname}${release}${shared_ext}$major'
10340     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10341     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10342     ;;
10343   *)
10344     shrext_cmds='.sl'
10345     dynamic_linker="$host_os dld.sl"
10346     shlibpath_var=SHLIB_PATH
10347     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10348     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349     soname_spec='${libname}${release}${shared_ext}$major'
10350     ;;
10351   esac
10352   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10353   postinstall_cmds='chmod 555 $lib'
10354   ;;
10355
10356 interix[3-9]*)
10357   version_type=linux
10358   need_lib_prefix=no
10359   need_version=no
10360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10361   soname_spec='${libname}${release}${shared_ext}$major'
10362   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10363   shlibpath_var=LD_LIBRARY_PATH
10364   shlibpath_overrides_runpath=no
10365   hardcode_into_libs=yes
10366   ;;
10367
10368 irix5* | irix6* | nonstopux*)
10369   case $host_os in
10370     nonstopux*) version_type=nonstopux ;;
10371     *)
10372         if test "$lt_cv_prog_gnu_ld" = yes; then
10373                 version_type=linux
10374         else
10375                 version_type=irix
10376         fi ;;
10377   esac
10378   need_lib_prefix=no
10379   need_version=no
10380   soname_spec='${libname}${release}${shared_ext}$major'
10381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10382   case $host_os in
10383   irix5* | nonstopux*)
10384     libsuff= shlibsuff=
10385     ;;
10386   *)
10387     case $LD in # libtool.m4 will add one of these switches to LD
10388     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10389       libsuff= shlibsuff= libmagic=32-bit;;
10390     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10391       libsuff=32 shlibsuff=N32 libmagic=N32;;
10392     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10393       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10394     *) libsuff= shlibsuff= libmagic=never-match;;
10395     esac
10396     ;;
10397   esac
10398   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10399   shlibpath_overrides_runpath=no
10400   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10401   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10402   hardcode_into_libs=yes
10403   ;;
10404
10405 # No shared lib support for Linux oldld, aout, or coff.
10406 linux*oldld* | linux*aout* | linux*coff*)
10407   dynamic_linker=no
10408   ;;
10409
10410 # This must be Linux ELF.
10411 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10412   version_type=linux
10413   need_lib_prefix=no
10414   need_version=no
10415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416   soname_spec='${libname}${release}${shared_ext}$major'
10417   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10418   shlibpath_var=LD_LIBRARY_PATH
10419   shlibpath_overrides_runpath=no
10420
10421   # Some binutils ld are patched to set DT_RUNPATH
10422   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10423   $as_echo_n "(cached) " >&6
10424 else
10425   lt_cv_shlibpath_overrides_runpath=no
10426     save_LDFLAGS=$LDFLAGS
10427     save_libdir=$libdir
10428     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10429          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10430     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10431 /* end confdefs.h.  */
10432
10433 int
10434 main ()
10435 {
10436
10437   ;
10438   return 0;
10439 }
10440 _ACEOF
10441 if ac_fn_c_try_link "$LINENO"; then :
10442   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10443   lt_cv_shlibpath_overrides_runpath=yes
10444 fi
10445 fi
10446 rm -f core conftest.err conftest.$ac_objext \
10447     conftest$ac_exeext conftest.$ac_ext
10448     LDFLAGS=$save_LDFLAGS
10449     libdir=$save_libdir
10450
10451 fi
10452
10453   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10454
10455   # This implies no fast_install, which is unacceptable.
10456   # Some rework will be needed to allow for fast_install
10457   # before this can be enabled.
10458   hardcode_into_libs=yes
10459
10460   # Append ld.so.conf contents to the search path
10461   if test -f /etc/ld.so.conf; then
10462     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' ' '`
10463     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10464   fi
10465
10466   # We used to test for /lib/ld.so.1 and disable shared libraries on
10467   # powerpc, because MkLinux only supported shared libraries with the
10468   # GNU dynamic linker.  Since this was broken with cross compilers,
10469   # most powerpc-linux boxes support dynamic linking these days and
10470   # people can always --disable-shared, the test was removed, and we
10471   # assume the GNU/Linux dynamic linker is in use.
10472   dynamic_linker='GNU/Linux ld.so'
10473   ;;
10474
10475 netbsd*)
10476   version_type=sunos
10477   need_lib_prefix=no
10478   need_version=no
10479   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10480     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10481     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10482     dynamic_linker='NetBSD (a.out) ld.so'
10483   else
10484     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10485     soname_spec='${libname}${release}${shared_ext}$major'
10486     dynamic_linker='NetBSD ld.elf_so'
10487   fi
10488   shlibpath_var=LD_LIBRARY_PATH
10489   shlibpath_overrides_runpath=yes
10490   hardcode_into_libs=yes
10491   ;;
10492
10493 newsos6)
10494   version_type=linux
10495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10496   shlibpath_var=LD_LIBRARY_PATH
10497   shlibpath_overrides_runpath=yes
10498   ;;
10499
10500 *nto* | *qnx*)
10501   version_type=qnx
10502   need_lib_prefix=no
10503   need_version=no
10504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10505   soname_spec='${libname}${release}${shared_ext}$major'
10506   shlibpath_var=LD_LIBRARY_PATH
10507   shlibpath_overrides_runpath=no
10508   hardcode_into_libs=yes
10509   dynamic_linker='ldqnx.so'
10510   ;;
10511
10512 openbsd*)
10513   version_type=sunos
10514   sys_lib_dlsearch_path_spec="/usr/lib"
10515   need_lib_prefix=no
10516   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10517   case $host_os in
10518     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10519     *)                          need_version=no  ;;
10520   esac
10521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10522   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10523   shlibpath_var=LD_LIBRARY_PATH
10524   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10525     case $host_os in
10526       openbsd2.[89] | openbsd2.[89].*)
10527         shlibpath_overrides_runpath=no
10528         ;;
10529       *)
10530         shlibpath_overrides_runpath=yes
10531         ;;
10532       esac
10533   else
10534     shlibpath_overrides_runpath=yes
10535   fi
10536   ;;
10537
10538 os2*)
10539   libname_spec='$name'
10540   shrext_cmds=".dll"
10541   need_lib_prefix=no
10542   library_names_spec='$libname${shared_ext} $libname.a'
10543   dynamic_linker='OS/2 ld.exe'
10544   shlibpath_var=LIBPATH
10545   ;;
10546
10547 osf3* | osf4* | osf5*)
10548   version_type=osf
10549   need_lib_prefix=no
10550   need_version=no
10551   soname_spec='${libname}${release}${shared_ext}$major'
10552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553   shlibpath_var=LD_LIBRARY_PATH
10554   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10555   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10556   ;;
10557
10558 rdos*)
10559   dynamic_linker=no
10560   ;;
10561
10562 solaris*)
10563   version_type=linux
10564   need_lib_prefix=no
10565   need_version=no
10566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567   soname_spec='${libname}${release}${shared_ext}$major'
10568   shlibpath_var=LD_LIBRARY_PATH
10569   shlibpath_overrides_runpath=yes
10570   hardcode_into_libs=yes
10571   # ldd complains unless libraries are executable
10572   postinstall_cmds='chmod +x $lib'
10573   ;;
10574
10575 sunos4*)
10576   version_type=sunos
10577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10578   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10579   shlibpath_var=LD_LIBRARY_PATH
10580   shlibpath_overrides_runpath=yes
10581   if test "$with_gnu_ld" = yes; then
10582     need_lib_prefix=no
10583   fi
10584   need_version=yes
10585   ;;
10586
10587 sysv4 | sysv4.3*)
10588   version_type=linux
10589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10590   soname_spec='${libname}${release}${shared_ext}$major'
10591   shlibpath_var=LD_LIBRARY_PATH
10592   case $host_vendor in
10593     sni)
10594       shlibpath_overrides_runpath=no
10595       need_lib_prefix=no
10596       runpath_var=LD_RUN_PATH
10597       ;;
10598     siemens)
10599       need_lib_prefix=no
10600       ;;
10601     motorola)
10602       need_lib_prefix=no
10603       need_version=no
10604       shlibpath_overrides_runpath=no
10605       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10606       ;;
10607   esac
10608   ;;
10609
10610 sysv4*MP*)
10611   if test -d /usr/nec ;then
10612     version_type=linux
10613     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10614     soname_spec='$libname${shared_ext}.$major'
10615     shlibpath_var=LD_LIBRARY_PATH
10616   fi
10617   ;;
10618
10619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10620   version_type=freebsd-elf
10621   need_lib_prefix=no
10622   need_version=no
10623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10624   soname_spec='${libname}${release}${shared_ext}$major'
10625   shlibpath_var=LD_LIBRARY_PATH
10626   shlibpath_overrides_runpath=yes
10627   hardcode_into_libs=yes
10628   if test "$with_gnu_ld" = yes; then
10629     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10630   else
10631     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10632     case $host_os in
10633       sco3.2v5*)
10634         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10635         ;;
10636     esac
10637   fi
10638   sys_lib_dlsearch_path_spec='/usr/lib'
10639   ;;
10640
10641 tpf*)
10642   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10643   version_type=linux
10644   need_lib_prefix=no
10645   need_version=no
10646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647   shlibpath_var=LD_LIBRARY_PATH
10648   shlibpath_overrides_runpath=no
10649   hardcode_into_libs=yes
10650   ;;
10651
10652 uts4*)
10653   version_type=linux
10654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655   soname_spec='${libname}${release}${shared_ext}$major'
10656   shlibpath_var=LD_LIBRARY_PATH
10657   ;;
10658
10659 *)
10660   dynamic_linker=no
10661   ;;
10662 esac
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10664 $as_echo "$dynamic_linker" >&6; }
10665 test "$dynamic_linker" = no && can_build_shared=no
10666
10667 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10668 if test "$GCC" = yes; then
10669   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10670 fi
10671
10672 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10673   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10674 fi
10675 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10676   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10677 fi
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
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10766 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10767 hardcode_action=
10768 if test -n "$hardcode_libdir_flag_spec" ||
10769    test -n "$runpath_var" ||
10770    test "X$hardcode_automatic" = "Xyes" ; then
10771
10772   # We can hardcode non-existent directories.
10773   if test "$hardcode_direct" != no &&
10774      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10775      # have to relink, otherwise we might link with an installed library
10776      # when we should be linking with a yet-to-be-installed one
10777      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10778      test "$hardcode_minus_L" != no; then
10779     # Linking always hardcodes the temporary library directory.
10780     hardcode_action=relink
10781   else
10782     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10783     hardcode_action=immediate
10784   fi
10785 else
10786   # We cannot hardcode anything, or else we can only hardcode existing
10787   # directories.
10788   hardcode_action=unsupported
10789 fi
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10791 $as_echo "$hardcode_action" >&6; }
10792
10793 if test "$hardcode_action" = relink ||
10794    test "$inherit_rpath" = yes; then
10795   # Fast installation is not supported
10796   enable_fast_install=no
10797 elif test "$shlibpath_overrides_runpath" = yes ||
10798      test "$enable_shared" = no; then
10799   # Fast installation is not necessary
10800   enable_fast_install=needless
10801 fi
10802
10803
10804
10805
10806
10807
10808   if test "x$enable_dlopen" != xyes; then
10809   enable_dlopen=unknown
10810   enable_dlopen_self=unknown
10811   enable_dlopen_self_static=unknown
10812 else
10813   lt_cv_dlopen=no
10814   lt_cv_dlopen_libs=
10815
10816   case $host_os in
10817   beos*)
10818     lt_cv_dlopen="load_add_on"
10819     lt_cv_dlopen_libs=
10820     lt_cv_dlopen_self=yes
10821     ;;
10822
10823   mingw* | pw32* | cegcc*)
10824     lt_cv_dlopen="LoadLibrary"
10825     lt_cv_dlopen_libs=
10826     ;;
10827
10828   cygwin*)
10829     lt_cv_dlopen="dlopen"
10830     lt_cv_dlopen_libs=
10831     ;;
10832
10833   darwin*)
10834   # if libdl is installed we need to link against it
10835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10836 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10837 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10838   $as_echo_n "(cached) " >&6
10839 else
10840   ac_check_lib_save_LIBS=$LIBS
10841 LIBS="-ldl  $LIBS"
10842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10843 /* end confdefs.h.  */
10844
10845 /* Override any GCC internal prototype to avoid an error.
10846    Use char because int might match the return type of a GCC
10847    builtin and then its argument prototype would still apply.  */
10848 #ifdef __cplusplus
10849 extern "C"
10850 #endif
10851 char dlopen ();
10852 int
10853 main ()
10854 {
10855 return dlopen ();
10856   ;
10857   return 0;
10858 }
10859 _ACEOF
10860 if ac_fn_c_try_link "$LINENO"; then :
10861   ac_cv_lib_dl_dlopen=yes
10862 else
10863   ac_cv_lib_dl_dlopen=no
10864 fi
10865 rm -f core conftest.err conftest.$ac_objext \
10866     conftest$ac_exeext conftest.$ac_ext
10867 LIBS=$ac_check_lib_save_LIBS
10868 fi
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10870 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10871 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10872   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10873 else
10874
10875     lt_cv_dlopen="dyld"
10876     lt_cv_dlopen_libs=
10877     lt_cv_dlopen_self=yes
10878
10879 fi
10880
10881     ;;
10882
10883   *)
10884     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10885 if test "x$ac_cv_func_shl_load" = x""yes; then :
10886   lt_cv_dlopen="shl_load"
10887 else
10888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10889 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10890 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10891   $as_echo_n "(cached) " >&6
10892 else
10893   ac_check_lib_save_LIBS=$LIBS
10894 LIBS="-ldld  $LIBS"
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h.  */
10897
10898 /* Override any GCC internal prototype to avoid an error.
10899    Use char because int might match the return type of a GCC
10900    builtin and then its argument prototype would still apply.  */
10901 #ifdef __cplusplus
10902 extern "C"
10903 #endif
10904 char shl_load ();
10905 int
10906 main ()
10907 {
10908 return shl_load ();
10909   ;
10910   return 0;
10911 }
10912 _ACEOF
10913 if ac_fn_c_try_link "$LINENO"; then :
10914   ac_cv_lib_dld_shl_load=yes
10915 else
10916   ac_cv_lib_dld_shl_load=no
10917 fi
10918 rm -f core conftest.err conftest.$ac_objext \
10919     conftest$ac_exeext conftest.$ac_ext
10920 LIBS=$ac_check_lib_save_LIBS
10921 fi
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10923 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10924 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10925   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10926 else
10927   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10928 if test "x$ac_cv_func_dlopen" = x""yes; then :
10929   lt_cv_dlopen="dlopen"
10930 else
10931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10932 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10933 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10934   $as_echo_n "(cached) " >&6
10935 else
10936   ac_check_lib_save_LIBS=$LIBS
10937 LIBS="-ldl  $LIBS"
10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h.  */
10940
10941 /* Override any GCC internal prototype to avoid an error.
10942    Use char because int might match the return type of a GCC
10943    builtin and then its argument prototype would still apply.  */
10944 #ifdef __cplusplus
10945 extern "C"
10946 #endif
10947 char dlopen ();
10948 int
10949 main ()
10950 {
10951 return dlopen ();
10952   ;
10953   return 0;
10954 }
10955 _ACEOF
10956 if ac_fn_c_try_link "$LINENO"; then :
10957   ac_cv_lib_dl_dlopen=yes
10958 else
10959   ac_cv_lib_dl_dlopen=no
10960 fi
10961 rm -f core conftest.err conftest.$ac_objext \
10962     conftest$ac_exeext conftest.$ac_ext
10963 LIBS=$ac_check_lib_save_LIBS
10964 fi
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10966 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10967 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10968   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10969 else
10970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10971 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10972 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10973   $as_echo_n "(cached) " >&6
10974 else
10975   ac_check_lib_save_LIBS=$LIBS
10976 LIBS="-lsvld  $LIBS"
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h.  */
10979
10980 /* Override any GCC internal prototype to avoid an error.
10981    Use char because int might match the return type of a GCC
10982    builtin and then its argument prototype would still apply.  */
10983 #ifdef __cplusplus
10984 extern "C"
10985 #endif
10986 char dlopen ();
10987 int
10988 main ()
10989 {
10990 return dlopen ();
10991   ;
10992   return 0;
10993 }
10994 _ACEOF
10995 if ac_fn_c_try_link "$LINENO"; then :
10996   ac_cv_lib_svld_dlopen=yes
10997 else
10998   ac_cv_lib_svld_dlopen=no
10999 fi
11000 rm -f core conftest.err conftest.$ac_objext \
11001     conftest$ac_exeext conftest.$ac_ext
11002 LIBS=$ac_check_lib_save_LIBS
11003 fi
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11005 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11006 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11007   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11008 else
11009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11010 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11011 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11012   $as_echo_n "(cached) " >&6
11013 else
11014   ac_check_lib_save_LIBS=$LIBS
11015 LIBS="-ldld  $LIBS"
11016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017 /* end confdefs.h.  */
11018
11019 /* Override any GCC internal prototype to avoid an error.
11020    Use char because int might match the return type of a GCC
11021    builtin and then its argument prototype would still apply.  */
11022 #ifdef __cplusplus
11023 extern "C"
11024 #endif
11025 char dld_link ();
11026 int
11027 main ()
11028 {
11029 return dld_link ();
11030   ;
11031   return 0;
11032 }
11033 _ACEOF
11034 if ac_fn_c_try_link "$LINENO"; then :
11035   ac_cv_lib_dld_dld_link=yes
11036 else
11037   ac_cv_lib_dld_dld_link=no
11038 fi
11039 rm -f core conftest.err conftest.$ac_objext \
11040     conftest$ac_exeext conftest.$ac_ext
11041 LIBS=$ac_check_lib_save_LIBS
11042 fi
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11044 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11045 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11046   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11047 fi
11048
11049
11050 fi
11051
11052
11053 fi
11054
11055
11056 fi
11057
11058
11059 fi
11060
11061
11062 fi
11063
11064     ;;
11065   esac
11066
11067   if test "x$lt_cv_dlopen" != xno; then
11068     enable_dlopen=yes
11069   else
11070     enable_dlopen=no
11071   fi
11072
11073   case $lt_cv_dlopen in
11074   dlopen)
11075     save_CPPFLAGS="$CPPFLAGS"
11076     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11077
11078     save_LDFLAGS="$LDFLAGS"
11079     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11080
11081     save_LIBS="$LIBS"
11082     LIBS="$lt_cv_dlopen_libs $LIBS"
11083
11084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11085 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11086 if test "${lt_cv_dlopen_self+set}" = set; then :
11087   $as_echo_n "(cached) " >&6
11088 else
11089           if test "$cross_compiling" = yes; then :
11090   lt_cv_dlopen_self=cross
11091 else
11092   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11093   lt_status=$lt_dlunknown
11094   cat > conftest.$ac_ext <<_LT_EOF
11095 #line 11095 "configure"
11096 #include "confdefs.h"
11097
11098 #if HAVE_DLFCN_H
11099 #include <dlfcn.h>
11100 #endif
11101
11102 #include <stdio.h>
11103
11104 #ifdef RTLD_GLOBAL
11105 #  define LT_DLGLOBAL           RTLD_GLOBAL
11106 #else
11107 #  ifdef DL_GLOBAL
11108 #    define LT_DLGLOBAL         DL_GLOBAL
11109 #  else
11110 #    define LT_DLGLOBAL         0
11111 #  endif
11112 #endif
11113
11114 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11115    find out it does not work in some platform. */
11116 #ifndef LT_DLLAZY_OR_NOW
11117 #  ifdef RTLD_LAZY
11118 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11119 #  else
11120 #    ifdef DL_LAZY
11121 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11122 #    else
11123 #      ifdef RTLD_NOW
11124 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11125 #      else
11126 #        ifdef DL_NOW
11127 #          define LT_DLLAZY_OR_NOW      DL_NOW
11128 #        else
11129 #          define LT_DLLAZY_OR_NOW      0
11130 #        endif
11131 #      endif
11132 #    endif
11133 #  endif
11134 #endif
11135
11136 void fnord() { int i=42;}
11137 int main ()
11138 {
11139   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11140   int status = $lt_dlunknown;
11141
11142   if (self)
11143     {
11144       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11145       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11146       /* dlclose (self); */
11147     }
11148   else
11149     puts (dlerror ());
11150
11151   return status;
11152 }
11153 _LT_EOF
11154   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11155   (eval $ac_link) 2>&5
11156   ac_status=$?
11157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11158   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11159     (./conftest; exit; ) >&5 2>/dev/null
11160     lt_status=$?
11161     case x$lt_status in
11162       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11163       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11164       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11165     esac
11166   else :
11167     # compilation failed
11168     lt_cv_dlopen_self=no
11169   fi
11170 fi
11171 rm -fr conftest*
11172
11173
11174 fi
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11176 $as_echo "$lt_cv_dlopen_self" >&6; }
11177
11178     if test "x$lt_cv_dlopen_self" = xyes; then
11179       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11180       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11181 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11182 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11183   $as_echo_n "(cached) " >&6
11184 else
11185           if test "$cross_compiling" = yes; then :
11186   lt_cv_dlopen_self_static=cross
11187 else
11188   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11189   lt_status=$lt_dlunknown
11190   cat > conftest.$ac_ext <<_LT_EOF
11191 #line 11191 "configure"
11192 #include "confdefs.h"
11193
11194 #if HAVE_DLFCN_H
11195 #include <dlfcn.h>
11196 #endif
11197
11198 #include <stdio.h>
11199
11200 #ifdef RTLD_GLOBAL
11201 #  define LT_DLGLOBAL           RTLD_GLOBAL
11202 #else
11203 #  ifdef DL_GLOBAL
11204 #    define LT_DLGLOBAL         DL_GLOBAL
11205 #  else
11206 #    define LT_DLGLOBAL         0
11207 #  endif
11208 #endif
11209
11210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11211    find out it does not work in some platform. */
11212 #ifndef LT_DLLAZY_OR_NOW
11213 #  ifdef RTLD_LAZY
11214 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11215 #  else
11216 #    ifdef DL_LAZY
11217 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11218 #    else
11219 #      ifdef RTLD_NOW
11220 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11221 #      else
11222 #        ifdef DL_NOW
11223 #          define LT_DLLAZY_OR_NOW      DL_NOW
11224 #        else
11225 #          define LT_DLLAZY_OR_NOW      0
11226 #        endif
11227 #      endif
11228 #    endif
11229 #  endif
11230 #endif
11231
11232 void fnord() { int i=42;}
11233 int main ()
11234 {
11235   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11236   int status = $lt_dlunknown;
11237
11238   if (self)
11239     {
11240       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11241       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11242       /* dlclose (self); */
11243     }
11244   else
11245     puts (dlerror ());
11246
11247   return status;
11248 }
11249 _LT_EOF
11250   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11251   (eval $ac_link) 2>&5
11252   ac_status=$?
11253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11254   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11255     (./conftest; exit; ) >&5 2>/dev/null
11256     lt_status=$?
11257     case x$lt_status in
11258       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11259       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11260       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11261     esac
11262   else :
11263     # compilation failed
11264     lt_cv_dlopen_self_static=no
11265   fi
11266 fi
11267 rm -fr conftest*
11268
11269
11270 fi
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11272 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11273     fi
11274
11275     CPPFLAGS="$save_CPPFLAGS"
11276     LDFLAGS="$save_LDFLAGS"
11277     LIBS="$save_LIBS"
11278     ;;
11279   esac
11280
11281   case $lt_cv_dlopen_self in
11282   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11283   *) enable_dlopen_self=unknown ;;
11284   esac
11285
11286   case $lt_cv_dlopen_self_static in
11287   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11288   *) enable_dlopen_self_static=unknown ;;
11289   esac
11290 fi
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308 striplib=
11309 old_striplib=
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11311 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11312 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11313   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11314   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11316 $as_echo "yes" >&6; }
11317 else
11318 # FIXME - insert some real tests, host_os isn't really good enough
11319   case $host_os in
11320   darwin*)
11321     if test -n "$STRIP" ; then
11322       striplib="$STRIP -x"
11323       old_striplib="$STRIP -S"
11324       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11325 $as_echo "yes" >&6; }
11326     else
11327       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11329     fi
11330     ;;
11331   *)
11332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333 $as_echo "no" >&6; }
11334     ;;
11335   esac
11336 fi
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349   # Report which library types will actually be built
11350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11351 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11353 $as_echo "$can_build_shared" >&6; }
11354
11355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11356 $as_echo_n "checking whether to build shared libraries... " >&6; }
11357   test "$can_build_shared" = "no" && enable_shared=no
11358
11359   # On AIX, shared libraries and static libraries use the same namespace, and
11360   # are all built from PIC.
11361   case $host_os in
11362   aix3*)
11363     test "$enable_shared" = yes && enable_static=no
11364     if test -n "$RANLIB"; then
11365       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11366       postinstall_cmds='$RANLIB $lib'
11367     fi
11368     ;;
11369
11370   aix[4-9]*)
11371     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11372       test "$enable_shared" = yes && enable_static=no
11373     fi
11374     ;;
11375   esac
11376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11377 $as_echo "$enable_shared" >&6; }
11378
11379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11380 $as_echo_n "checking whether to build static libraries... " >&6; }
11381   # Make sure either enable_shared or enable_static is yes.
11382   test "$enable_shared" = yes || enable_static=yes
11383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11384 $as_echo "$enable_static" >&6; }
11385
11386
11387
11388
11389 fi
11390 ac_ext=c
11391 ac_cpp='$CPP $CPPFLAGS'
11392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11395
11396 CC="$lt_save_CC"
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410         ac_config_commands="$ac_config_commands libtool"
11411
11412
11413
11414
11415 # Only expand once:
11416
11417
11418
11419 # Check whether --enable-targets was given.
11420 if test "${enable_targets+set}" = set; then :
11421   enableval=$enable_targets; case "${enableval}" in
11422   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11423             ;;
11424   no)       enable_targets= ;;
11425   *)        enable_targets=$enableval ;;
11426 esac
11427 fi
11428
11429 ac_checking=yes
11430 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11431   ac_checking=
11432 fi
11433 # Check whether --enable-checking was given.
11434 if test "${enable_checking+set}" = set; then :
11435   enableval=$enable_checking; case "${enableval}" in
11436   no|none)  ac_checking= ;;
11437   *)        ac_checking=yes ;;
11438 esac
11439 fi
11440 if test x$ac_checking != x ; then
11441
11442 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11443
11444 fi
11445
11446 using_cgen=no
11447
11448
11449 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow"
11450
11451 # Check whether --enable-werror was given.
11452 if test "${enable_werror+set}" = set; then :
11453   enableval=$enable_werror; case "${enableval}" in
11454      yes | y) ERROR_ON_WARNING="yes" ;;
11455      no | n)  ERROR_ON_WARNING="no" ;;
11456      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11457    esac
11458 fi
11459
11460
11461 # Enable -Wno-format by default when using gcc on mingw
11462 case "${host}" in
11463   *-*-mingw32*)
11464     if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11465       GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11466     fi
11467     ;;
11468   *) ;;
11469 esac
11470
11471 # Enable -Werror by default when using gcc
11472 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11473     ERROR_ON_WARNING=yes
11474 fi
11475
11476 NO_WERROR=
11477 if test "${ERROR_ON_WARNING}" = yes ; then
11478     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11479     NO_WERROR="-Wno-error"
11480 fi
11481
11482 if test "${GCC}" = yes ; then
11483   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11484 fi
11485
11486 # Check whether --enable-build-warnings was given.
11487 if test "${enable_build_warnings+set}" = set; then :
11488   enableval=$enable_build_warnings; case "${enableval}" in
11489   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11490   no)   if test "${GCC}" = yes ; then
11491           WARN_CFLAGS="-w"
11492         fi;;
11493   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
11494         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11495   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
11496         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11497   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11498 esac
11499 fi
11500
11501
11502 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11503   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11504 fi
11505
11506
11507
11508
11509
11510 # Generate a header file
11511 ac_config_headers="$ac_config_headers config.h:config.in"
11512
11513
11514 # If we are on a DOS filesystem, we must use gdb.ini rather than
11515 # .gdbinit.
11516 case "${host}" in
11517   *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11518     GDBINIT="gdb.ini"
11519     ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11520
11521     ;;
11522   *)
11523     GDBINIT=".gdbinit"
11524     ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11525
11526     ;;
11527 esac
11528
11529
11530 #We need this for the host.  BOUT header is in host order.
11531  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11532 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11533 if test "${ac_cv_c_bigendian+set}" = set; then :
11534   $as_echo_n "(cached) " >&6
11535 else
11536   ac_cv_c_bigendian=unknown
11537     # See if we're dealing with a universal compiler.
11538     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11539 /* end confdefs.h.  */
11540 #ifndef __APPLE_CC__
11541                not a universal capable compiler
11542              #endif
11543              typedef int dummy;
11544
11545 _ACEOF
11546 if ac_fn_c_try_compile "$LINENO"; then :
11547
11548         # Check for potential -arch flags.  It is not universal unless
11549         # there are at least two -arch flags with different values.
11550         ac_arch=
11551         ac_prev=
11552         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11553          if test -n "$ac_prev"; then
11554            case $ac_word in
11555              i?86 | x86_64 | ppc | ppc64)
11556                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11557                  ac_arch=$ac_word
11558                else
11559                  ac_cv_c_bigendian=universal
11560                  break
11561                fi
11562                ;;
11563            esac
11564            ac_prev=
11565          elif test "x$ac_word" = "x-arch"; then
11566            ac_prev=arch
11567          fi
11568        done
11569 fi
11570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11571     if test $ac_cv_c_bigendian = unknown; then
11572       # See if sys/param.h defines the BYTE_ORDER macro.
11573       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h.  */
11575 #include <sys/types.h>
11576              #include <sys/param.h>
11577
11578 int
11579 main ()
11580 {
11581 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11582                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11583                      && LITTLE_ENDIAN)
11584               bogus endian macros
11585              #endif
11586
11587   ;
11588   return 0;
11589 }
11590 _ACEOF
11591 if ac_fn_c_try_compile "$LINENO"; then :
11592   # It does; now see whether it defined to BIG_ENDIAN or not.
11593          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11594 /* end confdefs.h.  */
11595 #include <sys/types.h>
11596                 #include <sys/param.h>
11597
11598 int
11599 main ()
11600 {
11601 #if BYTE_ORDER != BIG_ENDIAN
11602                  not big endian
11603                 #endif
11604
11605   ;
11606   return 0;
11607 }
11608 _ACEOF
11609 if ac_fn_c_try_compile "$LINENO"; then :
11610   ac_cv_c_bigendian=yes
11611 else
11612   ac_cv_c_bigendian=no
11613 fi
11614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11615 fi
11616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11617     fi
11618     if test $ac_cv_c_bigendian = unknown; then
11619       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11620       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h.  */
11622 #include <limits.h>
11623
11624 int
11625 main ()
11626 {
11627 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11628               bogus endian macros
11629              #endif
11630
11631   ;
11632   return 0;
11633 }
11634 _ACEOF
11635 if ac_fn_c_try_compile "$LINENO"; then :
11636   # It does; now see whether it defined to _BIG_ENDIAN or not.
11637          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h.  */
11639 #include <limits.h>
11640
11641 int
11642 main ()
11643 {
11644 #ifndef _BIG_ENDIAN
11645                  not big endian
11646                 #endif
11647
11648   ;
11649   return 0;
11650 }
11651 _ACEOF
11652 if ac_fn_c_try_compile "$LINENO"; then :
11653   ac_cv_c_bigendian=yes
11654 else
11655   ac_cv_c_bigendian=no
11656 fi
11657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11658 fi
11659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11660     fi
11661     if test $ac_cv_c_bigendian = unknown; then
11662       # Compile a test program.
11663       if test "$cross_compiling" = yes; then :
11664   # Try to guess by grepping values from an object file.
11665          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666 /* end confdefs.h.  */
11667 short int ascii_mm[] =
11668                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11669                 short int ascii_ii[] =
11670                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11671                 int use_ascii (int i) {
11672                   return ascii_mm[i] + ascii_ii[i];
11673                 }
11674                 short int ebcdic_ii[] =
11675                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11676                 short int ebcdic_mm[] =
11677                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11678                 int use_ebcdic (int i) {
11679                   return ebcdic_mm[i] + ebcdic_ii[i];
11680                 }
11681                 extern int foo;
11682
11683 int
11684 main ()
11685 {
11686 return use_ascii (foo) == use_ebcdic (foo);
11687   ;
11688   return 0;
11689 }
11690 _ACEOF
11691 if ac_fn_c_try_compile "$LINENO"; then :
11692   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11693               ac_cv_c_bigendian=yes
11694             fi
11695             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11696               if test "$ac_cv_c_bigendian" = unknown; then
11697                 ac_cv_c_bigendian=no
11698               else
11699                 # finding both strings is unlikely to happen, but who knows?
11700                 ac_cv_c_bigendian=unknown
11701               fi
11702             fi
11703 fi
11704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11705 else
11706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h.  */
11708 $ac_includes_default
11709 int
11710 main ()
11711 {
11712
11713              /* Are we little or big endian?  From Harbison&Steele.  */
11714              union
11715              {
11716                long int l;
11717                char c[sizeof (long int)];
11718              } u;
11719              u.l = 1;
11720              return u.c[sizeof (long int) - 1] == 1;
11721
11722   ;
11723   return 0;
11724 }
11725 _ACEOF
11726 if ac_fn_c_try_run "$LINENO"; then :
11727   ac_cv_c_bigendian=no
11728 else
11729   ac_cv_c_bigendian=yes
11730 fi
11731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11732   conftest.$ac_objext conftest.beam conftest.$ac_ext
11733 fi
11734
11735     fi
11736 fi
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11738 $as_echo "$ac_cv_c_bigendian" >&6; }
11739  case $ac_cv_c_bigendian in #(
11740    yes)
11741      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11742 ;; #(
11743    no)
11744       ;; #(
11745    universal)
11746
11747 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11748
11749      ;; #(
11750    *)
11751      as_fn_error "unknown endianness
11752  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11753  esac
11754
11755
11756 te_file=generic
11757
11758 # Makefile target for installing gas in $(tooldir)/bin.
11759 install_tooldir=install-exec-tooldir
11760
11761 canon_targets=""
11762 all_targets=no
11763 if test -n "$enable_targets" ; then
11764   for t in `echo $enable_targets | sed 's/,/ /g'`; do
11765     if test $t = "all"; then
11766       all_targets=yes
11767       continue
11768     fi
11769     result=`$ac_config_sub $t 2>/dev/null`
11770     if test -n "$result" ; then
11771       canon_targets="$canon_targets $result"
11772 #    else
11773 #      # Permit "all", etc.  We don't support it yet though.
11774 #      canon_targets="$canon_targets $t"
11775     fi
11776   done
11777   _gas_uniq_list="$canon_targets"
11778 _gas_uniq_newlist=""
11779 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11780   case $_gas_uniq_i in
11781   _gas_uniq_dummy) ;;
11782   *) case " $_gas_uniq_newlist " in
11783        *" $_gas_uniq_i "*) ;;
11784        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11785      esac ;;
11786   esac
11787 done
11788 canon_targets=$_gas_uniq_newlist
11789
11790 fi
11791
11792 emulations=""
11793
11794 for this_target in $target $canon_targets ; do
11795
11796     targ=${this_target}
11797     . ${srcdir}/configure.tgt
11798
11799     case ${target_cpu} in
11800       crisv32)
11801
11802 cat >>confdefs.h <<_ACEOF
11803 #define DEFAULT_CRIS_ARCH $arch
11804 _ACEOF
11805
11806         ;;
11807     esac
11808
11809     if test ${this_target} = $target ; then
11810       target_cpu_type=${cpu_type}
11811     elif test ${target_cpu_type} != ${cpu_type} ; then
11812       continue
11813     fi
11814
11815     generic_target=${cpu_type}-${target_vendor}-${target_os}
11816     case ${generic_target} in
11817       i386-*-sco3.2v5*)
11818         if test ${this_target} = $target; then
11819
11820 $as_echo "#define SCO_ELF 1" >>confdefs.h
11821
11822         fi
11823         ;;
11824
11825       i386-*-msdosdjgpp* \
11826       | i386-*-go32* \
11827       | i386-go32-rtems*)
11828
11829 $as_echo "#define STRICTCOFF 1" >>confdefs.h
11830
11831         ;;
11832
11833       i860-*-*)
11834         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
11835 $as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
11836         ;;
11837
11838       microblaze*)
11839         ;;
11840
11841       mips-sony-bsd*)
11842         ;;
11843       mips-*-bsd*)
11844         as_fn_error "Unknown vendor for mips-bsd configuration." "$LINENO" 5
11845         ;;
11846
11847       ppc-*-aix[5-9].*)
11848
11849 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
11850
11851         ;;
11852       ppc-*-linux-*)
11853         case "$endian" in
11854           big)  ;;
11855           *)    as_fn_error "GNU/Linux must be configured big endian" "$LINENO" 5 ;;
11856         esac
11857         ;;
11858       ppc-*-solaris*)
11859         if test ${this_target} = $target; then
11860
11861 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
11862
11863         fi
11864         if test x${endian} = xbig; then
11865           as_fn_error "Solaris must be configured little endian" "$LINENO" 5
11866         fi
11867         ;;
11868
11869       sh*-*-symbianelf*)
11870
11871 $as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
11872
11873         ;;
11874     esac
11875
11876     if test ${this_target} = $target ; then
11877       endian_def=
11878       if test x${endian} = xbig; then
11879         endian_def=1
11880       elif test x${endian} = xlittle; then
11881         endian_def=0
11882       fi
11883       if test x${endian_def} != x; then
11884
11885 cat >>confdefs.h <<_ACEOF
11886 #define TARGET_BYTES_BIG_ENDIAN $endian_def
11887 _ACEOF
11888
11889       fi
11890     fi
11891
11892 # Other random stuff.
11893
11894     case ${cpu_type} in
11895       mips)
11896         # Set mips_cpu to the name of the default CPU.
11897         case ${target_cpu} in
11898           mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
11899             mips_cpu=from-abi
11900             ;;
11901           mipsisa32 | mipsisa32el)
11902             mips_cpu=mips32
11903             ;;
11904           mipsisa32r2 | mipsisa32r2el)
11905             mips_cpu=mips32r2
11906             ;;
11907           mipsisa64 | mipsisa64el)
11908             mips_cpu=mips64
11909             ;;
11910           mipsisa64r2 | mipsisa64r2el)
11911             mips_cpu=mips64r2
11912             ;;
11913           mipstx39 | mipstx39el)
11914             mips_cpu=r3900
11915             ;;
11916           mips64vr | mips64vrel)
11917             mips_cpu=vr4100
11918             ;;
11919           mipsisa32r2* | mipsisa64r2*)
11920             mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
11921             ;;
11922           mips64* | mipsisa64* | mipsisa32*)
11923             mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
11924             ;;
11925           *)
11926             as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
11927             ;;
11928         esac
11929         # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
11930         # binaries.  It's a GNU extension that some OSes don't understand.
11931         # The value only matters on ELF targets.
11932         case ${target} in
11933           *-*-irix*)
11934             use_e_mips_abi_o32=0
11935             ;;
11936           *)
11937             use_e_mips_abi_o32=1
11938             ;;
11939         esac
11940         # Decide whether to generate 32-bit or 64-bit code by default.
11941         # Used to resolve -march=from-abi when an embedded ABI is selected.
11942         case ${target} in
11943           mips64*-*-* | mipsisa64*-*-*)
11944             mips_default_64bit=1
11945             ;;
11946           *)
11947             mips_default_64bit=0
11948             ;;
11949         esac
11950         # Decide which ABI to target by default.
11951         case ${target} in
11952           mips64*-linux* | mips-sgi-irix6*)
11953             mips_default_abi=N32_ABI
11954             ;;
11955           mips*-linux*)
11956             mips_default_abi=O32_ABI
11957             ;;
11958           mips64*-openbsd*)
11959             mips_default_abi=N64_ABI
11960             ;;
11961           *)
11962             mips_default_abi=NO_ABI
11963             ;;
11964         esac
11965
11966 cat >>confdefs.h <<_ACEOF
11967 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
11968 _ACEOF
11969
11970
11971 cat >>confdefs.h <<_ACEOF
11972 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
11973 _ACEOF
11974
11975
11976 cat >>confdefs.h <<_ACEOF
11977 #define MIPS_DEFAULT_64BIT $mips_default_64bit
11978 _ACEOF
11979
11980
11981 cat >>confdefs.h <<_ACEOF
11982 #define MIPS_DEFAULT_ABI $mips_default_abi
11983 _ACEOF
11984
11985         ;;
11986     esac
11987
11988     # Do we need the opcodes library?
11989     case ${cpu_type} in
11990       vax | tic30)
11991         ;;
11992
11993       *)
11994         need_opcodes=yes
11995
11996         case "${enable_shared}" in
11997         yes) shared_opcodes=true ;;
11998         *opcodes*) shared_opcodes=true ;;
11999         *) shared_opcodes=false ;;
12000         esac
12001         ;;
12002     esac
12003
12004     # Any other special object files needed ?
12005     case ${cpu_type} in
12006
12007       bfin)
12008         echo ${extra_objects} | grep -s "bfin-parse.o"
12009         if test $? -ne 0 ; then
12010           extra_objects="$extra_objects bfin-parse.o"
12011         fi
12012
12013         echo ${extra_objects} | grep -s "bfin-lex.o"
12014         if test $? -ne 0 ; then
12015           extra_objects="$extra_objects bfin-lex.o"
12016         fi
12017         ;;
12018
12019       fr30 | ip2k | iq2000 | lm32 | m32r | openrisc)
12020         using_cgen=yes
12021         ;;
12022
12023       m32c)
12024         using_cgen=yes
12025         ;;
12026       frv)
12027         using_cgen=yes
12028         ;;
12029       m68k)
12030         case ${extra_objects} in
12031         *m68k-parse.o*) ;;
12032         *) extra_objects="$extra_objects m68k-parse.o" ;;
12033         esac
12034         ;;
12035
12036       mep)
12037         using_cgen=yes
12038         ;;
12039
12040       mips)
12041         echo ${extra_objects} | grep -s "itbl-parse.o"
12042         if test $? -ne 0 ; then
12043           extra_objects="$extra_objects itbl-parse.o"
12044         fi
12045
12046         echo ${extra_objects} | grep -s "itbl-lex.o"
12047         if test $? -ne 0 ; then
12048           extra_objects="$extra_objects itbl-lex.o"
12049         fi
12050
12051         echo ${extra_objects} | grep -s "itbl-ops.o"
12052         if test $? -ne 0 ; then
12053           extra_objects="$extra_objects itbl-ops.o"
12054         fi
12055         ;;
12056
12057       mt)
12058         using_cgen=yes
12059         ;;
12060
12061       i386 | s390 | sparc)
12062         if test $this_target = $target ; then
12063
12064 cat >>confdefs.h <<_ACEOF
12065 #define DEFAULT_ARCH "${arch}"
12066 _ACEOF
12067
12068         fi
12069         ;;
12070
12071       rx)
12072         echo ${extra_objects} | grep -s "rx-parse.o"
12073         if test $? -ne 0 ; then
12074           extra_objects="$extra_objects rx-parse.o"
12075         fi
12076         ;;
12077
12078       xstormy16)
12079         using_cgen=yes
12080         ;;
12081
12082       xc16x)
12083         using_cgen=yes
12084         ;;
12085
12086       xtensa)
12087         echo ${extra_objects} | grep -s "xtensa-relax.o"
12088         if test $? -ne 0 ; then
12089           extra_objects="$extra_objects xtensa-relax.o"
12090         fi
12091         ;;
12092
12093       *)
12094         ;;
12095     esac
12096
12097     if test $using_cgen = yes ; then
12098         case "x${extra_objects}" in
12099         *cgen.o*) ;;
12100         *) extra_objects="$extra_objects cgen.o" ;;
12101         esac
12102     fi
12103
12104 # See if we really can support this configuration with the emulation code.
12105
12106     if test $this_target = $target ; then
12107       obj_format=$fmt
12108       te_file=$em
12109     fi
12110
12111    case ${te_file} in
12112       vms) extra_objects="$extra_objects te-vms.o" ;;
12113    esac
12114
12115 # From target name and format, produce a list of supported emulations.
12116
12117     case ${generic_target}-${fmt} in
12118       mips-*-irix5*-*)  emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12119       mips*-*-linux*-*) case "$endian" in
12120                         big)    emulation="mipsbelf mipslelf mipself" ;;
12121                         *)      emulation="mipslelf mipsbelf mipself" ;;
12122                         esac ;;
12123       mips-*-lnews*-ecoff) ;;
12124       mips-*-*-ecoff)   case "$endian" in
12125                         big)    emulation="mipsbecoff mipslecoff mipsecoff" ;;
12126                         *)      emulation="mipslecoff mipsbecoff mipsecoff" ;;
12127                         esac ;;
12128       mips-*-*-elf)     case "$endian" in
12129                         big)    emulation="mipsbelf mipslelf mipself" ;;
12130                         *)      emulation="mipslelf mipsbelf mipself" ;;
12131                         esac ;;
12132       mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12133       # i386-pc-pe-coff != i386-pc-coff.
12134       i386-*-pe-coff)   ;;
12135       # Uncommenting the next line will turn on support for i386 AOUT
12136       # for the default linux configuration
12137       # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12138       #
12139       i386-*-aout)      emulation="i386aout" ;;
12140       i386-*-coff)      emulation="i386coff" ;;
12141       i386-*-elf)       emulation="i386elf" ;;
12142
12143       # Always all formats.  The first stated emulation becomes the default.
12144       cris-*-*aout*)    emulation="crisaout criself" ;;
12145       cris-*-*)         emulation="criself crisaout" ;;
12146     esac
12147
12148     emulations="$emulations $emulation"
12149
12150 done
12151
12152 # Turn on all targets if possible
12153 if test ${all_targets} = "yes"; then
12154   case ${target_cpu_type} in
12155   i386)
12156     case ${obj_format} in
12157     aout)
12158       emulations="$emulations i386coff i386elf"
12159       ;;
12160     coff)
12161       emulations="$emulations i386aout i386elf"
12162     ;;
12163     elf)
12164       emulations="$emulations i386aout i386coff"
12165       ;;
12166     esac
12167   ;;
12168   x86_64)
12169     case ${obj_format} in
12170     aout)
12171       emulations="$emulations i386coff i386elf"
12172       ;;
12173     coff)
12174       emulations="$emulations i386aout i386elf"
12175     ;;
12176     elf)
12177       emulations="$emulations i386aout i386coff"
12178       ;;
12179     esac
12180   ;;
12181   esac
12182 fi
12183
12184 # Assign floating point type.  Most processors with FP support
12185 # IEEE FP.  On those that don't support FP at all, usually IEEE
12186 # is emulated.
12187 case ${target_cpu} in
12188   vax | pdp11 ) atof=vax ;;
12189   *)            atof=ieee ;;
12190 esac
12191
12192 case "${obj_format}" in
12193   "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12194 esac
12195
12196 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12197 cgen_cpu_prefix=""
12198 if test $using_cgen = yes ; then
12199   case ${target_cpu} in
12200     *) cgen_cpu_prefix=${target_cpu} ;;
12201   esac
12202
12203
12204 $as_echo "#define USING_CGEN 1" >>confdefs.h
12205
12206 fi
12207
12208
12209 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12210   as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12211 fi
12212
12213 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12214   as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12215 fi
12216
12217 # Some COFF configurations want these random other flags set.
12218 case ${obj_format} in
12219   coff)
12220     case ${target_cpu_type} in
12221       i386)
12222 $as_echo "#define I386COFF 1" >>confdefs.h
12223  ;;
12224       m68k)
12225 $as_echo "#define M68KCOFF 1" >>confdefs.h
12226  ;;
12227       m88k)
12228 $as_echo "#define M88KCOFF 1" >>confdefs.h
12229  ;;
12230       x86_64)
12231 $as_echo "#define I386COFF 1" >>confdefs.h
12232  ;;
12233     esac
12234     ;;
12235 esac
12236
12237 # Getting this done right is going to be a bitch.  Each configuration specified
12238 # with --enable-targets=... should be checked for environment, format, cpu
12239 # setting.
12240 #
12241 # For each configuration, the necessary object file support code must be linked
12242 # in.  This might be only one, it might be up to four.  The necessary emulation
12243 # code needs to be provided, too.
12244 #
12245 # And then there's "--enable-targets=all"....
12246 #
12247 # For now, just always do it for MIPS ELF or ECOFF configurations.  Sigh.
12248
12249 formats="${obj_format}"
12250 emfiles=""
12251 EMULATIONS=""
12252 _gas_uniq_list="$emulations"
12253 _gas_uniq_newlist=""
12254 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12255   case $_gas_uniq_i in
12256   _gas_uniq_dummy) ;;
12257   *) case " $_gas_uniq_newlist " in
12258        *" $_gas_uniq_i "*) ;;
12259        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12260      esac ;;
12261   esac
12262 done
12263 emulations=$_gas_uniq_newlist
12264
12265 for em in . $emulations ; do
12266   case $em in
12267     .)  continue ;;
12268     mipsbelf | mipslelf | mipself)
12269         fmt=elf   file=mipself ;;
12270     mipsbecoff | mipslecoff | mipsecoff)
12271         fmt=ecoff file=mipsecoff ;;
12272     *coff)
12273         fmt=coff  file=$em ;;
12274     *aout)
12275         fmt=aout file=$em ;;
12276     *elf)
12277         fmt=elf file=$em ;;
12278   esac
12279   formats="$formats $fmt"
12280   emfiles="$emfiles e-$file.o"
12281   EMULATIONS="$EMULATIONS &$em,"
12282 done
12283 _gas_uniq_list="$formats"
12284 _gas_uniq_newlist=""
12285 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12286   case $_gas_uniq_i in
12287   _gas_uniq_dummy) ;;
12288   *) case " $_gas_uniq_newlist " in
12289        *" $_gas_uniq_i "*) ;;
12290        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12291      esac ;;
12292   esac
12293 done
12294 formats=$_gas_uniq_newlist
12295
12296 _gas_uniq_list="$emfiles"
12297 _gas_uniq_newlist=""
12298 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12299   case $_gas_uniq_i in
12300   _gas_uniq_dummy) ;;
12301   *) case " $_gas_uniq_newlist " in
12302        *" $_gas_uniq_i "*) ;;
12303        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12304      esac ;;
12305   esac
12306 done
12307 emfiles=$_gas_uniq_newlist
12308
12309 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12310   for fmt in $formats ; do
12311     case $fmt in
12312       aout)
12313 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12314    ;;
12315       bout)
12316 $as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
12317    ;;
12318       coff)
12319 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12320     ;;
12321       ecoff)
12322 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12323    ;;
12324       elf)
12325 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12326      ;;
12327       generic)
12328 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12329  ;;
12330       som)
12331 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12332      ;;
12333     esac
12334     extra_objects="$extra_objects obj-$fmt.o"
12335   done
12336   obj_format=multi
12337 fi
12338 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12339   DEFAULT_EMULATION=`set . $emulations ; echo $2`
12340   # e-mips* has more than one emulation per file, e-i386* has just one at the
12341   # moment.  If only one emulation is specified, then don't define
12342   # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12343   case "${obj_format}${emfiles}" in
12344     multi* | *mips*)
12345       extra_objects="$extra_objects $emfiles"
12346
12347 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12348  ;;
12349   esac
12350 fi
12351
12352
12353 cat >>confdefs.h <<_ACEOF
12354 #define EMULATIONS $EMULATIONS
12355 _ACEOF
12356
12357
12358 cat >>confdefs.h <<_ACEOF
12359 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12360 _ACEOF
12361
12362
12363 reject_dev_configs=yes
12364
12365 case ${reject_dev_configs}-${dev} in
12366   yes-yes) # Oops.
12367     as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
12368     ;;
12369 esac
12370
12371
12372
12373
12374
12375
12376
12377 # do we need the opcodes library?
12378 case "${need_opcodes}" in
12379 yes)
12380   OPCODES_LIB=../opcodes/libopcodes.la
12381   ;;
12382 esac
12383
12384
12385
12386
12387 cat >>confdefs.h <<_ACEOF
12388 #define TARGET_ALIAS "${target_alias}"
12389 _ACEOF
12390
12391
12392 cat >>confdefs.h <<_ACEOF
12393 #define TARGET_CANONICAL "${target}"
12394 _ACEOF
12395
12396
12397 cat >>confdefs.h <<_ACEOF
12398 #define TARGET_CPU "${target_cpu}"
12399 _ACEOF
12400
12401
12402 cat >>confdefs.h <<_ACEOF
12403 #define TARGET_VENDOR "${target_vendor}"
12404 _ACEOF
12405
12406
12407 cat >>confdefs.h <<_ACEOF
12408 #define TARGET_OS "${target_os}"
12409 _ACEOF
12410
12411
12412 for ac_prog in 'bison -y' byacc
12413 do
12414   # Extract the first word of "$ac_prog", so it can be a program name with args.
12415 set dummy $ac_prog; ac_word=$2
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12417 $as_echo_n "checking for $ac_word... " >&6; }
12418 if test "${ac_cv_prog_YACC+set}" = set; then :
12419   $as_echo_n "(cached) " >&6
12420 else
12421   if test -n "$YACC"; then
12422   ac_cv_prog_YACC="$YACC" # Let the user override the test.
12423 else
12424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12425 for as_dir in $PATH
12426 do
12427   IFS=$as_save_IFS
12428   test -z "$as_dir" && as_dir=.
12429     for ac_exec_ext in '' $ac_executable_extensions; do
12430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12431     ac_cv_prog_YACC="$ac_prog"
12432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12433     break 2
12434   fi
12435 done
12436   done
12437 IFS=$as_save_IFS
12438
12439 fi
12440 fi
12441 YACC=$ac_cv_prog_YACC
12442 if test -n "$YACC"; then
12443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12444 $as_echo "$YACC" >&6; }
12445 else
12446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447 $as_echo "no" >&6; }
12448 fi
12449
12450
12451   test -n "$YACC" && break
12452 done
12453 test -n "$YACC" || YACC="yacc"
12454
12455 for ac_prog in flex lex
12456 do
12457   # Extract the first word of "$ac_prog", so it can be a program name with args.
12458 set dummy $ac_prog; ac_word=$2
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12460 $as_echo_n "checking for $ac_word... " >&6; }
12461 if test "${ac_cv_prog_LEX+set}" = set; then :
12462   $as_echo_n "(cached) " >&6
12463 else
12464   if test -n "$LEX"; then
12465   ac_cv_prog_LEX="$LEX" # Let the user override the test.
12466 else
12467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12468 for as_dir in $PATH
12469 do
12470   IFS=$as_save_IFS
12471   test -z "$as_dir" && as_dir=.
12472     for ac_exec_ext in '' $ac_executable_extensions; do
12473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12474     ac_cv_prog_LEX="$ac_prog"
12475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12476     break 2
12477   fi
12478 done
12479   done
12480 IFS=$as_save_IFS
12481
12482 fi
12483 fi
12484 LEX=$ac_cv_prog_LEX
12485 if test -n "$LEX"; then
12486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12487 $as_echo "$LEX" >&6; }
12488 else
12489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12490 $as_echo "no" >&6; }
12491 fi
12492
12493
12494   test -n "$LEX" && break
12495 done
12496 test -n "$LEX" || LEX=":"
12497
12498 if test "x$LEX" != "x:"; then
12499   cat >conftest.l <<_ACEOF
12500 %%
12501 a { ECHO; }
12502 b { REJECT; }
12503 c { yymore (); }
12504 d { yyless (1); }
12505 e { yyless (input () != 0); }
12506 f { unput (yytext[0]); }
12507 . { BEGIN INITIAL; }
12508 %%
12509 #ifdef YYTEXT_POINTER
12510 extern char *yytext;
12511 #endif
12512 int
12513 main (void)
12514 {
12515   return ! yylex () + ! yywrap ();
12516 }
12517 _ACEOF
12518 { { ac_try="$LEX conftest.l"
12519 case "(($ac_try" in
12520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521   *) ac_try_echo=$ac_try;;
12522 esac
12523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12524 $as_echo "$ac_try_echo"; } >&5
12525   (eval "$LEX conftest.l") 2>&5
12526   ac_status=$?
12527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12528   test $ac_status = 0; }
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12530 $as_echo_n "checking lex output file root... " >&6; }
12531 if test "${ac_cv_prog_lex_root+set}" = set; then :
12532   $as_echo_n "(cached) " >&6
12533 else
12534
12535 if test -f lex.yy.c; then
12536   ac_cv_prog_lex_root=lex.yy
12537 elif test -f lexyy.c; then
12538   ac_cv_prog_lex_root=lexyy
12539 else
12540   as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12541 fi
12542 fi
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12544 $as_echo "$ac_cv_prog_lex_root" >&6; }
12545 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12546
12547 if test -z "${LEXLIB+set}"; then
12548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12549 $as_echo_n "checking lex library... " >&6; }
12550 if test "${ac_cv_lib_lex+set}" = set; then :
12551   $as_echo_n "(cached) " >&6
12552 else
12553
12554     ac_save_LIBS=$LIBS
12555     ac_cv_lib_lex='none needed'
12556     for ac_lib in '' -lfl -ll; do
12557       LIBS="$ac_lib $ac_save_LIBS"
12558       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h.  */
12560 `cat $LEX_OUTPUT_ROOT.c`
12561 _ACEOF
12562 if ac_fn_c_try_link "$LINENO"; then :
12563   ac_cv_lib_lex=$ac_lib
12564 fi
12565 rm -f core conftest.err conftest.$ac_objext \
12566     conftest$ac_exeext conftest.$ac_ext
12567       test "$ac_cv_lib_lex" != 'none needed' && break
12568     done
12569     LIBS=$ac_save_LIBS
12570
12571 fi
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12573 $as_echo "$ac_cv_lib_lex" >&6; }
12574   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12575 fi
12576
12577
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12579 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12580 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12581   $as_echo_n "(cached) " >&6
12582 else
12583   # POSIX says lex can declare yytext either as a pointer or an array; the
12584 # default is implementation-dependent.  Figure out which it is, since
12585 # not all implementations provide the %pointer and %array declarations.
12586 ac_cv_prog_lex_yytext_pointer=no
12587 ac_save_LIBS=$LIBS
12588 LIBS="$LEXLIB $ac_save_LIBS"
12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h.  */
12591 #define YYTEXT_POINTER 1
12592 `cat $LEX_OUTPUT_ROOT.c`
12593 _ACEOF
12594 if ac_fn_c_try_link "$LINENO"; then :
12595   ac_cv_prog_lex_yytext_pointer=yes
12596 fi
12597 rm -f core conftest.err conftest.$ac_objext \
12598     conftest$ac_exeext conftest.$ac_ext
12599 LIBS=$ac_save_LIBS
12600
12601 fi
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12603 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12604 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12605
12606 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12607
12608 fi
12609 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12610
12611 fi
12612 if test "$LEX" = :; then
12613   LEX=${am_missing_run}flex
12614 fi
12615
12616 ALL_LINGUAS="fr tr es rw id"
12617 # If we haven't got the data from the intl directory,
12618 # assume NLS is disabled.
12619 USE_NLS=no
12620 LIBINTL=
12621 LIBINTL_DEP=
12622 INCINTL=
12623 XGETTEXT=
12624 GMSGFMT=
12625 POSUB=
12626
12627 if test -f  ../intl/config.intl; then
12628   .  ../intl/config.intl
12629 fi
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12631 $as_echo_n "checking whether NLS is requested... " >&6; }
12632 if test x"$USE_NLS" != xyes; then
12633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12635 else
12636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12637 $as_echo "yes" >&6; }
12638
12639 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12640
12641
12642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12643 $as_echo_n "checking for catalogs to be installed... " >&6; }
12644   # Look for .po and .gmo files in the source directory.
12645   CATALOGS=
12646   XLINGUAS=
12647   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12648     # If there aren't any .gmo files the shell will give us the
12649     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12650     # weeded out.
12651     case "$cat" in *\**)
12652       continue;;
12653     esac
12654     # The quadruple backslash is collapsed to a double backslash
12655     # by the backticks, then collapsed again by the double quotes,
12656     # leaving us with one backslash in the sed expression (right
12657     # before the dot that mustn't act as a wildcard).
12658     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12659     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12660     # The user is allowed to set LINGUAS to a list of languages to
12661     # install catalogs for.  If it's empty that means "all of them."
12662     if test "x$LINGUAS" = x; then
12663       CATALOGS="$CATALOGS $cat"
12664       XLINGUAS="$XLINGUAS $lang"
12665     else
12666       case "$LINGUAS" in *$lang*)
12667         CATALOGS="$CATALOGS $cat"
12668         XLINGUAS="$XLINGUAS $lang"
12669         ;;
12670       esac
12671     fi
12672   done
12673   LINGUAS="$XLINGUAS"
12674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12675 $as_echo "$LINGUAS" >&6; }
12676
12677
12678     DATADIRNAME=share
12679
12680   INSTOBJEXT=.mo
12681
12682   GENCAT=gencat
12683
12684   CATOBJEXT=.gmo
12685
12686 fi
12687
12688         MKINSTALLDIRS=
12689   if test -n "$ac_aux_dir"; then
12690     case "$ac_aux_dir" in
12691       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12692       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12693     esac
12694   fi
12695   if test -z "$MKINSTALLDIRS"; then
12696     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12697   fi
12698
12699
12700
12701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12702 $as_echo_n "checking whether NLS is requested... " >&6; }
12703     # Check whether --enable-nls was given.
12704 if test "${enable_nls+set}" = set; then :
12705   enableval=$enable_nls; USE_NLS=$enableval
12706 else
12707   USE_NLS=yes
12708 fi
12709
12710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12711 $as_echo "$USE_NLS" >&6; }
12712
12713
12714
12715
12716
12717
12718 # Prepare PATH_SEPARATOR.
12719 # The user is always right.
12720 if test "${PATH_SEPARATOR+set}" != set; then
12721   echo "#! /bin/sh" >conf$$.sh
12722   echo  "exit 0"   >>conf$$.sh
12723   chmod +x conf$$.sh
12724   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12725     PATH_SEPARATOR=';'
12726   else
12727     PATH_SEPARATOR=:
12728   fi
12729   rm -f conf$$.sh
12730 fi
12731
12732 # Find out how to test for executable files. Don't use a zero-byte file,
12733 # as systems may use methods other than mode bits to determine executability.
12734 cat >conf$$.file <<_ASEOF
12735 #! /bin/sh
12736 exit 0
12737 _ASEOF
12738 chmod +x conf$$.file
12739 if test -x conf$$.file >/dev/null 2>&1; then
12740   ac_executable_p="test -x"
12741 else
12742   ac_executable_p="test -f"
12743 fi
12744 rm -f conf$$.file
12745
12746 # Extract the first word of "msgfmt", so it can be a program name with args.
12747 set dummy msgfmt; ac_word=$2
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12749 $as_echo_n "checking for $ac_word... " >&6; }
12750 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12751   $as_echo_n "(cached) " >&6
12752 else
12753   case "$MSGFMT" in
12754   [\\/]* | ?:[\\/]*)
12755     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12756     ;;
12757   *)
12758     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12759     for ac_dir in $PATH; do
12760       IFS="$ac_save_IFS"
12761       test -z "$ac_dir" && ac_dir=.
12762       for ac_exec_ext in '' $ac_executable_extensions; do
12763         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12764           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12765      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12766             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12767             break 2
12768           fi
12769         fi
12770       done
12771     done
12772     IFS="$ac_save_IFS"
12773   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12774     ;;
12775 esac
12776 fi
12777 MSGFMT="$ac_cv_path_MSGFMT"
12778 if test "$MSGFMT" != ":"; then
12779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12780 $as_echo "$MSGFMT" >&6; }
12781 else
12782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12783 $as_echo "no" >&6; }
12784 fi
12785
12786   # Extract the first word of "gmsgfmt", so it can be a program name with args.
12787 set dummy gmsgfmt; ac_word=$2
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12789 $as_echo_n "checking for $ac_word... " >&6; }
12790 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12791   $as_echo_n "(cached) " >&6
12792 else
12793   case $GMSGFMT in
12794   [\\/]* | ?:[\\/]*)
12795   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12796   ;;
12797   *)
12798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12799 for as_dir in $PATH
12800 do
12801   IFS=$as_save_IFS
12802   test -z "$as_dir" && as_dir=.
12803     for ac_exec_ext in '' $ac_executable_extensions; do
12804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12805     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12807     break 2
12808   fi
12809 done
12810   done
12811 IFS=$as_save_IFS
12812
12813   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12814   ;;
12815 esac
12816 fi
12817 GMSGFMT=$ac_cv_path_GMSGFMT
12818 if test -n "$GMSGFMT"; then
12819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12820 $as_echo "$GMSGFMT" >&6; }
12821 else
12822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823 $as_echo "no" >&6; }
12824 fi
12825
12826
12827
12828
12829 # Prepare PATH_SEPARATOR.
12830 # The user is always right.
12831 if test "${PATH_SEPARATOR+set}" != set; then
12832   echo "#! /bin/sh" >conf$$.sh
12833   echo  "exit 0"   >>conf$$.sh
12834   chmod +x conf$$.sh
12835   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12836     PATH_SEPARATOR=';'
12837   else
12838     PATH_SEPARATOR=:
12839   fi
12840   rm -f conf$$.sh
12841 fi
12842
12843 # Find out how to test for executable files. Don't use a zero-byte file,
12844 # as systems may use methods other than mode bits to determine executability.
12845 cat >conf$$.file <<_ASEOF
12846 #! /bin/sh
12847 exit 0
12848 _ASEOF
12849 chmod +x conf$$.file
12850 if test -x conf$$.file >/dev/null 2>&1; then
12851   ac_executable_p="test -x"
12852 else
12853   ac_executable_p="test -f"
12854 fi
12855 rm -f conf$$.file
12856
12857 # Extract the first word of "xgettext", so it can be a program name with args.
12858 set dummy xgettext; ac_word=$2
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860 $as_echo_n "checking for $ac_word... " >&6; }
12861 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12862   $as_echo_n "(cached) " >&6
12863 else
12864   case "$XGETTEXT" in
12865   [\\/]* | ?:[\\/]*)
12866     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12867     ;;
12868   *)
12869     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12870     for ac_dir in $PATH; do
12871       IFS="$ac_save_IFS"
12872       test -z "$ac_dir" && ac_dir=.
12873       for ac_exec_ext in '' $ac_executable_extensions; do
12874         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12875           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12876      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12877             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12878             break 2
12879           fi
12880         fi
12881       done
12882     done
12883     IFS="$ac_save_IFS"
12884   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12885     ;;
12886 esac
12887 fi
12888 XGETTEXT="$ac_cv_path_XGETTEXT"
12889 if test "$XGETTEXT" != ":"; then
12890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12891 $as_echo "$XGETTEXT" >&6; }
12892 else
12893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12894 $as_echo "no" >&6; }
12895 fi
12896
12897     rm -f messages.po
12898
12899
12900 # Prepare PATH_SEPARATOR.
12901 # The user is always right.
12902 if test "${PATH_SEPARATOR+set}" != set; then
12903   echo "#! /bin/sh" >conf$$.sh
12904   echo  "exit 0"   >>conf$$.sh
12905   chmod +x conf$$.sh
12906   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12907     PATH_SEPARATOR=';'
12908   else
12909     PATH_SEPARATOR=:
12910   fi
12911   rm -f conf$$.sh
12912 fi
12913
12914 # Find out how to test for executable files. Don't use a zero-byte file,
12915 # as systems may use methods other than mode bits to determine executability.
12916 cat >conf$$.file <<_ASEOF
12917 #! /bin/sh
12918 exit 0
12919 _ASEOF
12920 chmod +x conf$$.file
12921 if test -x conf$$.file >/dev/null 2>&1; then
12922   ac_executable_p="test -x"
12923 else
12924   ac_executable_p="test -f"
12925 fi
12926 rm -f conf$$.file
12927
12928 # Extract the first word of "msgmerge", so it can be a program name with args.
12929 set dummy msgmerge; ac_word=$2
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12931 $as_echo_n "checking for $ac_word... " >&6; }
12932 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12933   $as_echo_n "(cached) " >&6
12934 else
12935   case "$MSGMERGE" in
12936   [\\/]* | ?:[\\/]*)
12937     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12938     ;;
12939   *)
12940     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12941     for ac_dir in $PATH; do
12942       IFS="$ac_save_IFS"
12943       test -z "$ac_dir" && ac_dir=.
12944       for ac_exec_ext in '' $ac_executable_extensions; do
12945         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12946           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12947             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12948             break 2
12949           fi
12950         fi
12951       done
12952     done
12953     IFS="$ac_save_IFS"
12954   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12955     ;;
12956 esac
12957 fi
12958 MSGMERGE="$ac_cv_path_MSGMERGE"
12959 if test "$MSGMERGE" != ":"; then
12960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12961 $as_echo "$MSGMERGE" >&6; }
12962 else
12963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12964 $as_echo "no" >&6; }
12965 fi
12966
12967
12968       if test "$GMSGFMT" != ":"; then
12969             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12970        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12971       : ;
12972     else
12973       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12974       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12975 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12976       GMSGFMT=":"
12977     fi
12978   fi
12979
12980       if test "$XGETTEXT" != ":"; then
12981             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12982        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12983       : ;
12984     else
12985       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12986 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12987       XGETTEXT=":"
12988     fi
12989         rm -f messages.po
12990   fi
12991
12992   ac_config_commands="$ac_config_commands default-1"
12993
12994
12995
12996
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12998 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12999     # Check whether --enable-maintainer-mode was given.
13000 if test "${enable_maintainer_mode+set}" = set; then :
13001   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13002 else
13003   USE_MAINTAINER_MODE=no
13004 fi
13005
13006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13007 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13008    if test $USE_MAINTAINER_MODE = yes; then
13009   MAINTAINER_MODE_TRUE=
13010   MAINTAINER_MODE_FALSE='#'
13011 else
13012   MAINTAINER_MODE_TRUE='#'
13013   MAINTAINER_MODE_FALSE=
13014 fi
13015
13016   MAINT=$MAINTAINER_MODE_TRUE
13017
13018
13019  if false; then
13020   GENINSRC_NEVER_TRUE=
13021   GENINSRC_NEVER_FALSE='#'
13022 else
13023   GENINSRC_NEVER_TRUE='#'
13024   GENINSRC_NEVER_FALSE=
13025 fi
13026
13027
13028
13029 for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h time.h sys/stat.h
13030 do :
13031   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13032 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13033 eval as_val=\$$as_ac_Header
13034    if test "x$as_val" = x""yes; then :
13035   cat >>confdefs.h <<_ACEOF
13036 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13037 _ACEOF
13038
13039 fi
13040
13041 done
13042
13043
13044 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
13045 # people who are not cross-compiling but are compiling cross-assemblers.
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13047 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
13048 if test "${host}" = "${target}"; then
13049   cross_gas=no
13050 else
13051   cross_gas=yes
13052
13053 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
13054
13055 fi
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13057 $as_echo "$cross_gas" >&6; }
13058
13059 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13060 # for constant arguments.  Useless!
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13062 $as_echo_n "checking for working alloca.h... " >&6; }
13063 if test "${ac_cv_working_alloca_h+set}" = set; then :
13064   $as_echo_n "(cached) " >&6
13065 else
13066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h.  */
13068 #include <alloca.h>
13069 int
13070 main ()
13071 {
13072 char *p = (char *) alloca (2 * sizeof (int));
13073                           if (p) return 0;
13074   ;
13075   return 0;
13076 }
13077 _ACEOF
13078 if ac_fn_c_try_link "$LINENO"; then :
13079   ac_cv_working_alloca_h=yes
13080 else
13081   ac_cv_working_alloca_h=no
13082 fi
13083 rm -f core conftest.err conftest.$ac_objext \
13084     conftest$ac_exeext conftest.$ac_ext
13085 fi
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13087 $as_echo "$ac_cv_working_alloca_h" >&6; }
13088 if test $ac_cv_working_alloca_h = yes; then
13089
13090 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13091
13092 fi
13093
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13095 $as_echo_n "checking for alloca... " >&6; }
13096 if test "${ac_cv_func_alloca_works+set}" = set; then :
13097   $as_echo_n "(cached) " >&6
13098 else
13099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h.  */
13101 #ifdef __GNUC__
13102 # define alloca __builtin_alloca
13103 #else
13104 # ifdef _MSC_VER
13105 #  include <malloc.h>
13106 #  define alloca _alloca
13107 # else
13108 #  ifdef HAVE_ALLOCA_H
13109 #   include <alloca.h>
13110 #  else
13111 #   ifdef _AIX
13112  #pragma alloca
13113 #   else
13114 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13115 char *alloca ();
13116 #    endif
13117 #   endif
13118 #  endif
13119 # endif
13120 #endif
13121
13122 int
13123 main ()
13124 {
13125 char *p = (char *) alloca (1);
13126                                     if (p) return 0;
13127   ;
13128   return 0;
13129 }
13130 _ACEOF
13131 if ac_fn_c_try_link "$LINENO"; then :
13132   ac_cv_func_alloca_works=yes
13133 else
13134   ac_cv_func_alloca_works=no
13135 fi
13136 rm -f core conftest.err conftest.$ac_objext \
13137     conftest$ac_exeext conftest.$ac_ext
13138 fi
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13140 $as_echo "$ac_cv_func_alloca_works" >&6; }
13141
13142 if test $ac_cv_func_alloca_works = yes; then
13143
13144 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13145
13146 else
13147   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13148 # that cause trouble.  Some versions do not even contain alloca or
13149 # contain a buggy version.  If you still want to use their alloca,
13150 # use ar to extract alloca.o from them instead of compiling alloca.c.
13151
13152 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13153
13154 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13155
13156
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13158 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13159 if test "${ac_cv_os_cray+set}" = set; then :
13160   $as_echo_n "(cached) " >&6
13161 else
13162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h.  */
13164 #if defined CRAY && ! defined CRAY2
13165 webecray
13166 #else
13167 wenotbecray
13168 #endif
13169
13170 _ACEOF
13171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13172   $EGREP "webecray" >/dev/null 2>&1; then :
13173   ac_cv_os_cray=yes
13174 else
13175   ac_cv_os_cray=no
13176 fi
13177 rm -f conftest*
13178
13179 fi
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13181 $as_echo "$ac_cv_os_cray" >&6; }
13182 if test $ac_cv_os_cray = yes; then
13183   for ac_func in _getb67 GETB67 getb67; do
13184     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13185 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13186 eval as_val=\$$as_ac_var
13187    if test "x$as_val" = x""yes; then :
13188
13189 cat >>confdefs.h <<_ACEOF
13190 #define CRAY_STACKSEG_END $ac_func
13191 _ACEOF
13192
13193     break
13194 fi
13195
13196   done
13197 fi
13198
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13200 $as_echo_n "checking stack direction for C alloca... " >&6; }
13201 if test "${ac_cv_c_stack_direction+set}" = set; then :
13202   $as_echo_n "(cached) " >&6
13203 else
13204   if test "$cross_compiling" = yes; then :
13205   ac_cv_c_stack_direction=0
13206 else
13207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208 /* end confdefs.h.  */
13209 $ac_includes_default
13210 int
13211 find_stack_direction ()
13212 {
13213   static char *addr = 0;
13214   auto char dummy;
13215   if (addr == 0)
13216     {
13217       addr = &dummy;
13218       return find_stack_direction ();
13219     }
13220   else
13221     return (&dummy > addr) ? 1 : -1;
13222 }
13223
13224 int
13225 main ()
13226 {
13227   return find_stack_direction () < 0;
13228 }
13229 _ACEOF
13230 if ac_fn_c_try_run "$LINENO"; then :
13231   ac_cv_c_stack_direction=1
13232 else
13233   ac_cv_c_stack_direction=-1
13234 fi
13235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13236   conftest.$ac_objext conftest.beam conftest.$ac_ext
13237 fi
13238
13239 fi
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13241 $as_echo "$ac_cv_c_stack_direction" >&6; }
13242 cat >>confdefs.h <<_ACEOF
13243 #define STACK_DIRECTION $ac_cv_c_stack_direction
13244 _ACEOF
13245
13246
13247 fi
13248
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13250 $as_echo_n "checking for inline... " >&6; }
13251 if test "${ac_cv_c_inline+set}" = set; then :
13252   $as_echo_n "(cached) " >&6
13253 else
13254   ac_cv_c_inline=no
13255 for ac_kw in inline __inline__ __inline; do
13256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h.  */
13258 #ifndef __cplusplus
13259 typedef int foo_t;
13260 static $ac_kw foo_t static_foo () {return 0; }
13261 $ac_kw foo_t foo () {return 0; }
13262 #endif
13263
13264 _ACEOF
13265 if ac_fn_c_try_compile "$LINENO"; then :
13266   ac_cv_c_inline=$ac_kw
13267 fi
13268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13269   test "$ac_cv_c_inline" != no && break
13270 done
13271
13272 fi
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13274 $as_echo "$ac_cv_c_inline" >&6; }
13275
13276 case $ac_cv_c_inline in
13277   inline | yes) ;;
13278   *)
13279     case $ac_cv_c_inline in
13280       no) ac_val=;;
13281       *) ac_val=$ac_cv_c_inline;;
13282     esac
13283     cat >>confdefs.h <<_ACEOF
13284 #ifndef __cplusplus
13285 #define inline $ac_val
13286 #endif
13287 _ACEOF
13288     ;;
13289 esac
13290
13291
13292 # VMS doesn't have unlink.
13293 for ac_func in unlink remove
13294 do :
13295   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13296 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13297 eval as_val=\$$as_ac_var
13298    if test "x$as_val" = x""yes; then :
13299   cat >>confdefs.h <<_ACEOF
13300 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13301 _ACEOF
13302  break
13303 fi
13304 done
13305
13306
13307 # Some systems don't have sbrk().
13308 for ac_func in sbrk
13309 do :
13310   ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
13311 if test "x$ac_cv_func_sbrk" = x""yes; then :
13312   cat >>confdefs.h <<_ACEOF
13313 #define HAVE_SBRK 1
13314 _ACEOF
13315
13316 fi
13317 done
13318
13319
13320 # do we need the math library?
13321 case "${need_libm}" in
13322 yes)
13323   LIBM=
13324 case $host in
13325 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
13326   # These system don't have libm, or don't need it
13327   ;;
13328 *-ncr-sysv4.3*)
13329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13330 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13331 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13332   $as_echo_n "(cached) " >&6
13333 else
13334   ac_check_lib_save_LIBS=$LIBS
13335 LIBS="-lmw  $LIBS"
13336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337 /* end confdefs.h.  */
13338
13339 /* Override any GCC internal prototype to avoid an error.
13340    Use char because int might match the return type of a GCC
13341    builtin and then its argument prototype would still apply.  */
13342 #ifdef __cplusplus
13343 extern "C"
13344 #endif
13345 char _mwvalidcheckl ();
13346 int
13347 main ()
13348 {
13349 return _mwvalidcheckl ();
13350   ;
13351   return 0;
13352 }
13353 _ACEOF
13354 if ac_fn_c_try_link "$LINENO"; then :
13355   ac_cv_lib_mw__mwvalidcheckl=yes
13356 else
13357   ac_cv_lib_mw__mwvalidcheckl=no
13358 fi
13359 rm -f core conftest.err conftest.$ac_objext \
13360     conftest$ac_exeext conftest.$ac_ext
13361 LIBS=$ac_check_lib_save_LIBS
13362 fi
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13364 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13365 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
13366   LIBM="-lmw"
13367 fi
13368
13369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13370 $as_echo_n "checking for cos in -lm... " >&6; }
13371 if test "${ac_cv_lib_m_cos+set}" = set; then :
13372   $as_echo_n "(cached) " >&6
13373 else
13374   ac_check_lib_save_LIBS=$LIBS
13375 LIBS="-lm  $LIBS"
13376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377 /* end confdefs.h.  */
13378
13379 /* Override any GCC internal prototype to avoid an error.
13380    Use char because int might match the return type of a GCC
13381    builtin and then its argument prototype would still apply.  */
13382 #ifdef __cplusplus
13383 extern "C"
13384 #endif
13385 char cos ();
13386 int
13387 main ()
13388 {
13389 return cos ();
13390   ;
13391   return 0;
13392 }
13393 _ACEOF
13394 if ac_fn_c_try_link "$LINENO"; then :
13395   ac_cv_lib_m_cos=yes
13396 else
13397   ac_cv_lib_m_cos=no
13398 fi
13399 rm -f core conftest.err conftest.$ac_objext \
13400     conftest$ac_exeext conftest.$ac_ext
13401 LIBS=$ac_check_lib_save_LIBS
13402 fi
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13404 $as_echo "$ac_cv_lib_m_cos" >&6; }
13405 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13406   LIBM="$LIBM -lm"
13407 fi
13408
13409   ;;
13410 *)
13411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13412 $as_echo_n "checking for cos in -lm... " >&6; }
13413 if test "${ac_cv_lib_m_cos+set}" = set; then :
13414   $as_echo_n "(cached) " >&6
13415 else
13416   ac_check_lib_save_LIBS=$LIBS
13417 LIBS="-lm  $LIBS"
13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13419 /* end confdefs.h.  */
13420
13421 /* Override any GCC internal prototype to avoid an error.
13422    Use char because int might match the return type of a GCC
13423    builtin and then its argument prototype would still apply.  */
13424 #ifdef __cplusplus
13425 extern "C"
13426 #endif
13427 char cos ();
13428 int
13429 main ()
13430 {
13431 return cos ();
13432   ;
13433   return 0;
13434 }
13435 _ACEOF
13436 if ac_fn_c_try_link "$LINENO"; then :
13437   ac_cv_lib_m_cos=yes
13438 else
13439   ac_cv_lib_m_cos=no
13440 fi
13441 rm -f core conftest.err conftest.$ac_objext \
13442     conftest$ac_exeext conftest.$ac_ext
13443 LIBS=$ac_check_lib_save_LIBS
13444 fi
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13446 $as_echo "$ac_cv_lib_m_cos" >&6; }
13447 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13448   LIBM="-lm"
13449 fi
13450
13451   ;;
13452 esac
13453
13454
13455
13456   ;;
13457 esac
13458
13459 # Some non-ANSI preprocessors botch requoting inside strings.  That's bad
13460 # enough, but on some of those systems, the assert macro relies on requoting
13461 # working properly!
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13463 $as_echo_n "checking for working assert macro... " >&6; }
13464 if test "${gas_cv_assert_ok+set}" = set; then :
13465   $as_echo_n "(cached) " >&6
13466 else
13467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13468 /* end confdefs.h.  */
13469 #include <assert.h>
13470 #include <stdio.h>
13471 int
13472 main ()
13473 {
13474
13475 /* check for requoting problems */
13476 static int a, b, c, d;
13477 static char *s;
13478 assert (!strcmp(s, "foo bar baz quux"));
13479 /* check for newline handling */
13480 assert (a == b
13481         || c == d);
13482
13483   ;
13484   return 0;
13485 }
13486 _ACEOF
13487 if ac_fn_c_try_link "$LINENO"; then :
13488   gas_cv_assert_ok=yes
13489 else
13490   gas_cv_assert_ok=no
13491 fi
13492 rm -f core conftest.err conftest.$ac_objext \
13493     conftest$ac_exeext conftest.$ac_ext
13494 fi
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
13496 $as_echo "$gas_cv_assert_ok" >&6; }
13497 test $gas_cv_assert_ok = yes ||
13498 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
13499
13500
13501
13502 # On some systems, the system header files may not declare malloc, realloc,
13503 # and free.  There are places where gas needs these functions to have been
13504 # declared -- such as when taking their addresses.
13505 gas_test_headers="
13506 #ifdef HAVE_MEMORY_H
13507 #include <memory.h>
13508 #endif
13509 #ifdef HAVE_STRING_H
13510 #include <string.h>
13511 #else
13512 #ifdef HAVE_STRINGS_H
13513 #include <strings.h>
13514 #endif
13515 #endif
13516 #ifdef HAVE_STDLIB_H
13517 #include <stdlib.h>
13518 #endif
13519 #ifdef HAVE_UNISTD_H
13520 #include <unistd.h>
13521 #endif
13522 "
13523
13524 # Does errno.h declare errno, or do we have to add a separate declaration
13525 # for it?
13526
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
13528 $as_echo_n "checking whether declaration is required for errno... " >&6; }
13529 if test "${gas_cv_decl_needed_errno+set}" = set; then :
13530   $as_echo_n "(cached) " >&6
13531 else
13532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h.  */
13534
13535 #ifdef HAVE_ERRNO_H
13536 #include <errno.h>
13537 #endif
13538
13539 int
13540 main ()
13541 {
13542
13543 typedef int f;
13544 f x;
13545 x = (f) errno;
13546
13547   ;
13548   return 0;
13549 }
13550 _ACEOF
13551 if ac_fn_c_try_link "$LINENO"; then :
13552   gas_cv_decl_needed_errno=no
13553 else
13554   gas_cv_decl_needed_errno=yes
13555 fi
13556 rm -f core conftest.err conftest.$ac_objext \
13557     conftest$ac_exeext conftest.$ac_ext
13558 fi
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
13560 $as_echo "$gas_cv_decl_needed_errno" >&6; }
13561 if test $gas_cv_decl_needed_errno = yes; then
13562
13563 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
13564
13565 fi
13566
13567
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13569 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13570 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
13571   $as_echo_n "(cached) " >&6
13572 else
13573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574 /* end confdefs.h.  */
13575 #include <unistd.h>
13576 int
13577 main ()
13578 {
13579 extern int getopt (int, char *const*, const char *);
13580   ;
13581   return 0;
13582 }
13583 _ACEOF
13584 if ac_fn_c_try_compile "$LINENO"; then :
13585   gas_cv_decl_getopt_unistd_h=yes
13586 else
13587   gas_cv_decl_getopt_unistd_h=no
13588 fi
13589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13590 fi
13591
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
13593 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
13594 if test $gas_cv_decl_getopt_unistd_h = yes; then
13595
13596 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13597
13598 fi
13599
13600
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
13602 $as_echo_n "checking whether declaration is required for environ... " >&6; }
13603 if test "${gas_cv_decl_needed_environ+set}" = set; then :
13604   $as_echo_n "(cached) " >&6
13605 else
13606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607 /* end confdefs.h.  */
13608 $gas_test_headers
13609 int
13610 main ()
13611 {
13612
13613 typedef char **f;
13614 f x;
13615 x = (f) environ;
13616
13617   ;
13618   return 0;
13619 }
13620 _ACEOF
13621 if ac_fn_c_try_link "$LINENO"; then :
13622   gas_cv_decl_needed_environ=no
13623 else
13624   gas_cv_decl_needed_environ=yes
13625 fi
13626 rm -f core conftest.err conftest.$ac_objext \
13627     conftest$ac_exeext conftest.$ac_ext
13628 fi
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
13630 $as_echo "$gas_cv_decl_needed_environ" >&6; }
13631 if test $gas_cv_decl_needed_environ = yes; then
13632
13633 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
13634
13635 fi
13636
13637
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
13639 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
13640 if test "${gas_cv_decl_needed_ffs+set}" = set; then :
13641   $as_echo_n "(cached) " >&6
13642 else
13643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h.  */
13645 $gas_test_headers
13646 int
13647 main ()
13648 {
13649
13650 typedef int (*f)(int);
13651 f x;
13652 x = (f) ffs;
13653
13654   ;
13655   return 0;
13656 }
13657 _ACEOF
13658 if ac_fn_c_try_link "$LINENO"; then :
13659   gas_cv_decl_needed_ffs=no
13660 else
13661   gas_cv_decl_needed_ffs=yes
13662 fi
13663 rm -f core conftest.err conftest.$ac_objext \
13664     conftest$ac_exeext conftest.$ac_ext
13665 fi
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
13667 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
13668 if test $gas_cv_decl_needed_ffs = yes; then
13669
13670 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
13671
13672 fi
13673
13674
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
13676 $as_echo_n "checking whether declaration is required for free... " >&6; }
13677 if test "${gas_cv_decl_needed_free+set}" = set; then :
13678   $as_echo_n "(cached) " >&6
13679 else
13680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h.  */
13682 $gas_test_headers
13683 int
13684 main ()
13685 {
13686
13687 typedef void (*f)();
13688 f x;
13689 x = (f) free;
13690
13691   ;
13692   return 0;
13693 }
13694 _ACEOF
13695 if ac_fn_c_try_link "$LINENO"; then :
13696   gas_cv_decl_needed_free=no
13697 else
13698   gas_cv_decl_needed_free=yes
13699 fi
13700 rm -f core conftest.err conftest.$ac_objext \
13701     conftest$ac_exeext conftest.$ac_ext
13702 fi
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
13704 $as_echo "$gas_cv_decl_needed_free" >&6; }
13705 if test $gas_cv_decl_needed_free = yes; then
13706
13707 $as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
13708
13709 fi
13710
13711
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
13713 $as_echo_n "checking whether declaration is required for malloc... " >&6; }
13714 if test "${gas_cv_decl_needed_malloc+set}" = set; then :
13715   $as_echo_n "(cached) " >&6
13716 else
13717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h.  */
13719 $gas_test_headers
13720 int
13721 main ()
13722 {
13723
13724 typedef char *(*f)();
13725 f x;
13726 x = (f) malloc;
13727
13728   ;
13729   return 0;
13730 }
13731 _ACEOF
13732 if ac_fn_c_try_link "$LINENO"; then :
13733   gas_cv_decl_needed_malloc=no
13734 else
13735   gas_cv_decl_needed_malloc=yes
13736 fi
13737 rm -f core conftest.err conftest.$ac_objext \
13738     conftest$ac_exeext conftest.$ac_ext
13739 fi
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
13741 $as_echo "$gas_cv_decl_needed_malloc" >&6; }
13742 if test $gas_cv_decl_needed_malloc = yes; then
13743
13744 $as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
13745
13746 fi
13747
13748
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
13750 $as_echo_n "checking whether declaration is required for sbrk... " >&6; }
13751 if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
13752   $as_echo_n "(cached) " >&6
13753 else
13754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h.  */
13756 $gas_test_headers
13757 int
13758 main ()
13759 {
13760
13761 typedef char *(*f)();
13762 f x;
13763 x = (f) sbrk;
13764
13765   ;
13766   return 0;
13767 }
13768 _ACEOF
13769 if ac_fn_c_try_link "$LINENO"; then :
13770   gas_cv_decl_needed_sbrk=no
13771 else
13772   gas_cv_decl_needed_sbrk=yes
13773 fi
13774 rm -f core conftest.err conftest.$ac_objext \
13775     conftest$ac_exeext conftest.$ac_ext
13776 fi
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
13778 $as_echo "$gas_cv_decl_needed_sbrk" >&6; }
13779 if test $gas_cv_decl_needed_sbrk = yes; then
13780
13781 $as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
13782
13783 fi
13784
13785
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
13787 $as_echo_n "checking whether declaration is required for strstr... " >&6; }
13788 if test "${gas_cv_decl_needed_strstr+set}" = set; then :
13789   $as_echo_n "(cached) " >&6
13790 else
13791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h.  */
13793 $gas_test_headers
13794 int
13795 main ()
13796 {
13797
13798 typedef char *(*f)();
13799 f x;
13800 x = (f) strstr;
13801
13802   ;
13803   return 0;
13804 }
13805 _ACEOF
13806 if ac_fn_c_try_link "$LINENO"; then :
13807   gas_cv_decl_needed_strstr=no
13808 else
13809   gas_cv_decl_needed_strstr=yes
13810 fi
13811 rm -f core conftest.err conftest.$ac_objext \
13812     conftest$ac_exeext conftest.$ac_ext
13813 fi
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
13815 $as_echo "$gas_cv_decl_needed_strstr" >&6; }
13816 if test $gas_cv_decl_needed_strstr = yes; then
13817
13818 $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
13819
13820 fi
13821
13822
13823 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
13824 if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
13825   ac_have_decl=1
13826 else
13827   ac_have_decl=0
13828 fi
13829
13830 cat >>confdefs.h <<_ACEOF
13831 #define HAVE_DECL_MEMPCPY $ac_have_decl
13832 _ACEOF
13833
13834 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13835 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13836   ac_have_decl=1
13837 else
13838   ac_have_decl=0
13839 fi
13840
13841 cat >>confdefs.h <<_ACEOF
13842 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13843 _ACEOF
13844
13845
13846
13847 case "${host}" in
13848 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13849
13850 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13851  ;;
13852 esac
13853
13854 # Support for VMS timestamps via cross compile
13855
13856 if test "$ac_cv_header_time_h" = yes; then
13857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
13858 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
13859  if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
13860   $as_echo_n "(cached) " >&6
13861 else
13862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13863 /* end confdefs.h.  */
13864
13865 #define _BSD_SOURCE 1
13866 #include <time.h>
13867 int
13868 main ()
13869 {
13870 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
13871   ;
13872   return 0;
13873 }
13874 _ACEOF
13875 if ac_fn_c_try_compile "$LINENO"; then :
13876   gas_cv_have_time_type_member_tm_gmtoff=yes
13877 else
13878   gas_cv_have_time_type_member_tm_gmtoff=no
13879
13880 fi
13881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13882 fi
13883
13884  if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
13885
13886 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
13887
13888  fi
13889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
13890 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
13891
13892 fi
13893
13894 if test "$ac_cv_header_sys_stat_h" = yes; then
13895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
13896 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
13897  if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
13898   $as_echo_n "(cached) " >&6
13899 else
13900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h.  */
13902
13903 #define _BSD_SOURCE 1
13904 #include <sys/stat.h>
13905 int
13906 main ()
13907 {
13908 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
13909   ;
13910   return 0;
13911 }
13912 _ACEOF
13913 if ac_fn_c_try_compile "$LINENO"; then :
13914   gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
13915 else
13916   gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
13917
13918 fi
13919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13920 fi
13921
13922  if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
13923
13924 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
13925
13926  fi
13927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
13928 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
13929
13930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
13931 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
13932  if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
13933   $as_echo_n "(cached) " >&6
13934 else
13935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936 /* end confdefs.h.  */
13937
13938 #define _BSD_SOURCE 1
13939 #include <sys/stat.h>
13940 int
13941 main ()
13942 {
13943 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
13944   ;
13945   return 0;
13946 }
13947 _ACEOF
13948 if ac_fn_c_try_compile "$LINENO"; then :
13949   gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
13950 else
13951   gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
13952
13953 fi
13954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13955 fi
13956
13957  if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
13958
13959 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
13960
13961  fi
13962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
13963 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
13964
13965 fi
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13976
13977 ac_config_commands="$ac_config_commands default"
13978
13979
13980 cat >confcache <<\_ACEOF
13981 # This file is a shell script that caches the results of configure
13982 # tests run on this system so they can be shared between configure
13983 # scripts and configure runs, see configure's option --config-cache.
13984 # It is not useful on other systems.  If it contains results you don't
13985 # want to keep, you may remove or edit it.
13986 #
13987 # config.status only pays attention to the cache file if you give it
13988 # the --recheck option to rerun configure.
13989 #
13990 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13991 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13992 # following values.
13993
13994 _ACEOF
13995
13996 # The following way of writing the cache mishandles newlines in values,
13997 # but we know of no workaround that is simple, portable, and efficient.
13998 # So, we kill variables containing newlines.
13999 # Ultrix sh set writes to stderr and can't be redirected directly,
14000 # and sets the high bit in the cache file unless we assign to the vars.
14001 (
14002   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14003     eval ac_val=\$$ac_var
14004     case $ac_val in #(
14005     *${as_nl}*)
14006       case $ac_var in #(
14007       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14008 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14009       esac
14010       case $ac_var in #(
14011       _ | IFS | as_nl) ;; #(
14012       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14013       *) { eval $ac_var=; unset $ac_var;} ;;
14014       esac ;;
14015     esac
14016   done
14017
14018   (set) 2>&1 |
14019     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14020     *${as_nl}ac_space=\ *)
14021       # `set' does not quote correctly, so add quotes: double-quote
14022       # substitution turns \\\\ into \\, and sed turns \\ into \.
14023       sed -n \
14024         "s/'/'\\\\''/g;
14025           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14026       ;; #(
14027     *)
14028       # `set' quotes correctly as required by POSIX, so do not add quotes.
14029       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14030       ;;
14031     esac |
14032     sort
14033 ) |
14034   sed '
14035      /^ac_cv_env_/b end
14036      t clear
14037      :clear
14038      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14039      t end
14040      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14041      :end' >>confcache
14042 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14043   if test -w "$cache_file"; then
14044     test "x$cache_file" != "x/dev/null" &&
14045       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14046 $as_echo "$as_me: updating cache $cache_file" >&6;}
14047     cat confcache >$cache_file
14048   else
14049     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14050 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14051   fi
14052 fi
14053 rm -f confcache
14054
14055 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14056 # Let make expand exec_prefix.
14057 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14058
14059 DEFS=-DHAVE_CONFIG_H
14060
14061 ac_libobjs=
14062 ac_ltlibobjs=
14063 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14064   # 1. Remove the extension, and $U if already installed.
14065   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14066   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14067   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14068   #    will be set to the directory where LIBOBJS objects are built.
14069   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14070   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14071 done
14072 LIBOBJS=$ac_libobjs
14073
14074 LTLIBOBJS=$ac_ltlibobjs
14075
14076
14077 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14078   as_fn_error "conditional \"AMDEP\" was never defined.
14079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14080 fi
14081 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14082   as_fn_error "conditional \"am__fastdepCC\" was never defined.
14083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14084 fi
14085  if test -n "$EXEEXT"; then
14086   am__EXEEXT_TRUE=
14087   am__EXEEXT_FALSE='#'
14088 else
14089   am__EXEEXT_TRUE='#'
14090   am__EXEEXT_FALSE=
14091 fi
14092
14093
14094 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14095   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14097 fi
14098 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14099   as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14101 fi
14102
14103 : ${CONFIG_STATUS=./config.status}
14104 ac_write_fail=0
14105 ac_clean_files_save=$ac_clean_files
14106 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14108 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14109 as_write_fail=0
14110 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14111 #! $SHELL
14112 # Generated by $as_me.
14113 # Run this file to recreate the current configuration.
14114 # Compiler output produced by configure, useful for debugging
14115 # configure, is in config.log if it exists.
14116
14117 debug=false
14118 ac_cs_recheck=false
14119 ac_cs_silent=false
14120
14121 SHELL=\${CONFIG_SHELL-$SHELL}
14122 export SHELL
14123 _ASEOF
14124 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14125 ## -------------------- ##
14126 ## M4sh Initialization. ##
14127 ## -------------------- ##
14128
14129 # Be more Bourne compatible
14130 DUALCASE=1; export DUALCASE # for MKS sh
14131 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14132   emulate sh
14133   NULLCMD=:
14134   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14135   # is contrary to our usage.  Disable this feature.
14136   alias -g '${1+"$@"}'='"$@"'
14137   setopt NO_GLOB_SUBST
14138 else
14139   case `(set -o) 2>/dev/null` in #(
14140   *posix*) :
14141     set -o posix ;; #(
14142   *) :
14143      ;;
14144 esac
14145 fi
14146
14147
14148 as_nl='
14149 '
14150 export as_nl
14151 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14152 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14153 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14154 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14155 # Prefer a ksh shell builtin over an external printf program on Solaris,
14156 # but without wasting forks for bash or zsh.
14157 if test -z "$BASH_VERSION$ZSH_VERSION" \
14158     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14159   as_echo='print -r --'
14160   as_echo_n='print -rn --'
14161 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14162   as_echo='printf %s\n'
14163   as_echo_n='printf %s'
14164 else
14165   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14166     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14167     as_echo_n='/usr/ucb/echo -n'
14168   else
14169     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14170     as_echo_n_body='eval
14171       arg=$1;
14172       case $arg in #(
14173       *"$as_nl"*)
14174         expr "X$arg" : "X\\(.*\\)$as_nl";
14175         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14176       esac;
14177       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14178     '
14179     export as_echo_n_body
14180     as_echo_n='sh -c $as_echo_n_body as_echo'
14181   fi
14182   export as_echo_body
14183   as_echo='sh -c $as_echo_body as_echo'
14184 fi
14185
14186 # The user is always right.
14187 if test "${PATH_SEPARATOR+set}" != set; then
14188   PATH_SEPARATOR=:
14189   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14190     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14191       PATH_SEPARATOR=';'
14192   }
14193 fi
14194
14195
14196 # IFS
14197 # We need space, tab and new line, in precisely that order.  Quoting is
14198 # there to prevent editors from complaining about space-tab.
14199 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14200 # splitting by setting IFS to empty value.)
14201 IFS=" ""        $as_nl"
14202
14203 # Find who we are.  Look in the path if we contain no directory separator.
14204 case $0 in #((
14205   *[\\/]* ) as_myself=$0 ;;
14206   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14207 for as_dir in $PATH
14208 do
14209   IFS=$as_save_IFS
14210   test -z "$as_dir" && as_dir=.
14211     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14212   done
14213 IFS=$as_save_IFS
14214
14215      ;;
14216 esac
14217 # We did not find ourselves, most probably we were run as `sh COMMAND'
14218 # in which case we are not to be found in the path.
14219 if test "x$as_myself" = x; then
14220   as_myself=$0
14221 fi
14222 if test ! -f "$as_myself"; then
14223   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14224   exit 1
14225 fi
14226
14227 # Unset variables that we do not need and which cause bugs (e.g. in
14228 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14229 # suppresses any "Segmentation fault" message there.  '((' could
14230 # trigger a bug in pdksh 5.2.14.
14231 for as_var in BASH_ENV ENV MAIL MAILPATH
14232 do eval test x\${$as_var+set} = xset \
14233   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14234 done
14235 PS1='$ '
14236 PS2='> '
14237 PS4='+ '
14238
14239 # NLS nuisances.
14240 LC_ALL=C
14241 export LC_ALL
14242 LANGUAGE=C
14243 export LANGUAGE
14244
14245 # CDPATH.
14246 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14247
14248
14249 # as_fn_error ERROR [LINENO LOG_FD]
14250 # ---------------------------------
14251 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14252 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14253 # script with status $?, using 1 if that was 0.
14254 as_fn_error ()
14255 {
14256   as_status=$?; test $as_status -eq 0 && as_status=1
14257   if test "$3"; then
14258     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14259     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14260   fi
14261   $as_echo "$as_me: error: $1" >&2
14262   as_fn_exit $as_status
14263 } # as_fn_error
14264
14265
14266 # as_fn_set_status STATUS
14267 # -----------------------
14268 # Set $? to STATUS, without forking.
14269 as_fn_set_status ()
14270 {
14271   return $1
14272 } # as_fn_set_status
14273
14274 # as_fn_exit STATUS
14275 # -----------------
14276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14277 as_fn_exit ()
14278 {
14279   set +e
14280   as_fn_set_status $1
14281   exit $1
14282 } # as_fn_exit
14283
14284 # as_fn_unset VAR
14285 # ---------------
14286 # Portably unset VAR.
14287 as_fn_unset ()
14288 {
14289   { eval $1=; unset $1;}
14290 }
14291 as_unset=as_fn_unset
14292 # as_fn_append VAR VALUE
14293 # ----------------------
14294 # Append the text in VALUE to the end of the definition contained in VAR. Take
14295 # advantage of any shell optimizations that allow amortized linear growth over
14296 # repeated appends, instead of the typical quadratic growth present in naive
14297 # implementations.
14298 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14299   eval 'as_fn_append ()
14300   {
14301     eval $1+=\$2
14302   }'
14303 else
14304   as_fn_append ()
14305   {
14306     eval $1=\$$1\$2
14307   }
14308 fi # as_fn_append
14309
14310 # as_fn_arith ARG...
14311 # ------------------
14312 # Perform arithmetic evaluation on the ARGs, and store the result in the
14313 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14314 # must be portable across $(()) and expr.
14315 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14316   eval 'as_fn_arith ()
14317   {
14318     as_val=$(( $* ))
14319   }'
14320 else
14321   as_fn_arith ()
14322   {
14323     as_val=`expr "$@" || test $? -eq 1`
14324   }
14325 fi # as_fn_arith
14326
14327
14328 if expr a : '\(a\)' >/dev/null 2>&1 &&
14329    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14330   as_expr=expr
14331 else
14332   as_expr=false
14333 fi
14334
14335 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14336   as_basename=basename
14337 else
14338   as_basename=false
14339 fi
14340
14341 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14342   as_dirname=dirname
14343 else
14344   as_dirname=false
14345 fi
14346
14347 as_me=`$as_basename -- "$0" ||
14348 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14349          X"$0" : 'X\(//\)$' \| \
14350          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14351 $as_echo X/"$0" |
14352     sed '/^.*\/\([^/][^/]*\)\/*$/{
14353             s//\1/
14354             q
14355           }
14356           /^X\/\(\/\/\)$/{
14357             s//\1/
14358             q
14359           }
14360           /^X\/\(\/\).*/{
14361             s//\1/
14362             q
14363           }
14364           s/.*/./; q'`
14365
14366 # Avoid depending upon Character Ranges.
14367 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14368 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14369 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14370 as_cr_digits='0123456789'
14371 as_cr_alnum=$as_cr_Letters$as_cr_digits
14372
14373 ECHO_C= ECHO_N= ECHO_T=
14374 case `echo -n x` in #(((((
14375 -n*)
14376   case `echo 'xy\c'` in
14377   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14378   xy)  ECHO_C='\c';;
14379   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14380        ECHO_T=' ';;
14381   esac;;
14382 *)
14383   ECHO_N='-n';;
14384 esac
14385
14386 rm -f conf$$ conf$$.exe conf$$.file
14387 if test -d conf$$.dir; then
14388   rm -f conf$$.dir/conf$$.file
14389 else
14390   rm -f conf$$.dir
14391   mkdir conf$$.dir 2>/dev/null
14392 fi
14393 if (echo >conf$$.file) 2>/dev/null; then
14394   if ln -s conf$$.file conf$$ 2>/dev/null; then
14395     as_ln_s='ln -s'
14396     # ... but there are two gotchas:
14397     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14398     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14399     # In both cases, we have to default to `cp -p'.
14400     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14401       as_ln_s='cp -p'
14402   elif ln conf$$.file conf$$ 2>/dev/null; then
14403     as_ln_s=ln
14404   else
14405     as_ln_s='cp -p'
14406   fi
14407 else
14408   as_ln_s='cp -p'
14409 fi
14410 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14411 rmdir conf$$.dir 2>/dev/null
14412
14413
14414 # as_fn_mkdir_p
14415 # -------------
14416 # Create "$as_dir" as a directory, including parents if necessary.
14417 as_fn_mkdir_p ()
14418 {
14419
14420   case $as_dir in #(
14421   -*) as_dir=./$as_dir;;
14422   esac
14423   test -d "$as_dir" || eval $as_mkdir_p || {
14424     as_dirs=
14425     while :; do
14426       case $as_dir in #(
14427       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14428       *) as_qdir=$as_dir;;
14429       esac
14430       as_dirs="'$as_qdir' $as_dirs"
14431       as_dir=`$as_dirname -- "$as_dir" ||
14432 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14433          X"$as_dir" : 'X\(//\)[^/]' \| \
14434          X"$as_dir" : 'X\(//\)$' \| \
14435          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14436 $as_echo X"$as_dir" |
14437     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14438             s//\1/
14439             q
14440           }
14441           /^X\(\/\/\)[^/].*/{
14442             s//\1/
14443             q
14444           }
14445           /^X\(\/\/\)$/{
14446             s//\1/
14447             q
14448           }
14449           /^X\(\/\).*/{
14450             s//\1/
14451             q
14452           }
14453           s/.*/./; q'`
14454       test -d "$as_dir" && break
14455     done
14456     test -z "$as_dirs" || eval "mkdir $as_dirs"
14457   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14458
14459
14460 } # as_fn_mkdir_p
14461 if mkdir -p . 2>/dev/null; then
14462   as_mkdir_p='mkdir -p "$as_dir"'
14463 else
14464   test -d ./-p && rmdir ./-p
14465   as_mkdir_p=false
14466 fi
14467
14468 if test -x / >/dev/null 2>&1; then
14469   as_test_x='test -x'
14470 else
14471   if ls -dL / >/dev/null 2>&1; then
14472     as_ls_L_option=L
14473   else
14474     as_ls_L_option=
14475   fi
14476   as_test_x='
14477     eval sh -c '\''
14478       if test -d "$1"; then
14479         test -d "$1/.";
14480       else
14481         case $1 in #(
14482         -*)set "./$1";;
14483         esac;
14484         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14485         ???[sx]*):;;*)false;;esac;fi
14486     '\'' sh
14487   '
14488 fi
14489 as_executable_p=$as_test_x
14490
14491 # Sed expression to map a string onto a valid CPP name.
14492 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14493
14494 # Sed expression to map a string onto a valid variable name.
14495 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14496
14497
14498 exec 6>&1
14499 ## ----------------------------------- ##
14500 ## Main body of $CONFIG_STATUS script. ##
14501 ## ----------------------------------- ##
14502 _ASEOF
14503 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14504
14505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14506 # Save the log message, to keep $0 and so on meaningful, and to
14507 # report actual input values of CONFIG_FILES etc. instead of their
14508 # values after options handling.
14509 ac_log="
14510 This file was extended by $as_me, which was
14511 generated by GNU Autoconf 2.64.  Invocation command line was
14512
14513   CONFIG_FILES    = $CONFIG_FILES
14514   CONFIG_HEADERS  = $CONFIG_HEADERS
14515   CONFIG_LINKS    = $CONFIG_LINKS
14516   CONFIG_COMMANDS = $CONFIG_COMMANDS
14517   $ $0 $@
14518
14519 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14520 "
14521
14522 _ACEOF
14523
14524 case $ac_config_files in *"
14525 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14526 esac
14527
14528 case $ac_config_headers in *"
14529 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14530 esac
14531
14532
14533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14534 # Files that config.status was made for.
14535 config_files="$ac_config_files"
14536 config_headers="$ac_config_headers"
14537 config_commands="$ac_config_commands"
14538
14539 _ACEOF
14540
14541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14542 ac_cs_usage="\
14543 \`$as_me' instantiates files and other configuration actions
14544 from templates according to the current configuration.  Unless the files
14545 and actions are specified as TAGs, all are instantiated by default.
14546
14547 Usage: $0 [OPTION]... [TAG]...
14548
14549   -h, --help       print this help, then exit
14550   -V, --version    print version number and configuration settings, then exit
14551   -q, --quiet, --silent
14552                    do not print progress messages
14553   -d, --debug      don't remove temporary files
14554       --recheck    update $as_me by reconfiguring in the same conditions
14555       --file=FILE[:TEMPLATE]
14556                    instantiate the configuration file FILE
14557       --header=FILE[:TEMPLATE]
14558                    instantiate the configuration header FILE
14559
14560 Configuration files:
14561 $config_files
14562
14563 Configuration headers:
14564 $config_headers
14565
14566 Configuration commands:
14567 $config_commands
14568
14569 Report bugs to the package provider."
14570
14571 _ACEOF
14572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14573 ac_cs_version="\\
14574 config.status
14575 configured by $0, generated by GNU Autoconf 2.64,
14576   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14577
14578 Copyright (C) 2009 Free Software Foundation, Inc.
14579 This config.status script is free software; the Free Software Foundation
14580 gives unlimited permission to copy, distribute and modify it."
14581
14582 ac_pwd='$ac_pwd'
14583 srcdir='$srcdir'
14584 INSTALL='$INSTALL'
14585 MKDIR_P='$MKDIR_P'
14586 AWK='$AWK'
14587 test -n "\$AWK" || AWK=awk
14588 _ACEOF
14589
14590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14591 # The default lists apply if the user does not specify any file.
14592 ac_need_defaults=:
14593 while test $# != 0
14594 do
14595   case $1 in
14596   --*=*)
14597     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14598     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14599     ac_shift=:
14600     ;;
14601   *)
14602     ac_option=$1
14603     ac_optarg=$2
14604     ac_shift=shift
14605     ;;
14606   esac
14607
14608   case $ac_option in
14609   # Handling of the options.
14610   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14611     ac_cs_recheck=: ;;
14612   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14613     $as_echo "$ac_cs_version"; exit ;;
14614   --debug | --debu | --deb | --de | --d | -d )
14615     debug=: ;;
14616   --file | --fil | --fi | --f )
14617     $ac_shift
14618     case $ac_optarg in
14619     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14620     esac
14621     as_fn_append CONFIG_FILES " '$ac_optarg'"
14622     ac_need_defaults=false;;
14623   --header | --heade | --head | --hea )
14624     $ac_shift
14625     case $ac_optarg in
14626     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14627     esac
14628     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14629     ac_need_defaults=false;;
14630   --he | --h)
14631     # Conflict between --help and --header
14632     as_fn_error "ambiguous option: \`$1'
14633 Try \`$0 --help' for more information.";;
14634   --help | --hel | -h )
14635     $as_echo "$ac_cs_usage"; exit ;;
14636   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14637   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14638     ac_cs_silent=: ;;
14639
14640   # This is an error.
14641   -*) as_fn_error "unrecognized option: \`$1'
14642 Try \`$0 --help' for more information." ;;
14643
14644   *) as_fn_append ac_config_targets " $1"
14645      ac_need_defaults=false ;;
14646
14647   esac
14648   shift
14649 done
14650
14651 ac_configure_extra_args=
14652
14653 if $ac_cs_silent; then
14654   exec 6>/dev/null
14655   ac_configure_extra_args="$ac_configure_extra_args --silent"
14656 fi
14657
14658 _ACEOF
14659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14660 if \$ac_cs_recheck; then
14661   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14662   shift
14663   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14664   CONFIG_SHELL='$SHELL'
14665   export CONFIG_SHELL
14666   exec "\$@"
14667 fi
14668
14669 _ACEOF
14670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14671 exec 5>>config.log
14672 {
14673   echo
14674   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14675 ## Running $as_me. ##
14676 _ASBOX
14677   $as_echo "$ac_log"
14678 } >&5
14679
14680 _ACEOF
14681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14682 #
14683 # INIT-COMMANDS
14684 #
14685 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14686
14687
14688 # The HP-UX ksh and POSIX shell print the target directory to stdout
14689 # if CDPATH is set.
14690 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14691
14692 sed_quote_subst='$sed_quote_subst'
14693 double_quote_subst='$double_quote_subst'
14694 delay_variable_subst='$delay_variable_subst'
14695 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14696 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14697 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14698 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14699 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14700 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14701 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14702 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14703 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14704 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14705 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14706 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14707 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14708 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14709 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14710 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14711 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14712 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14713 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14714 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14715 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14716 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14717 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14718 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14719 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14720 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14721 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14722 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14723 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14724 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14725 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14726 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14727 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14728 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14729 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14730 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14731 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14732 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14733 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14734 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14735 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14736 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14737 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14738 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14739 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"`'
14740 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"`'
14741 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14742 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14743 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14744 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14745 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14746 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14747 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14748 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14749 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14750 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14751 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14752 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14753 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14754 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14755 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14756 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14757 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14758 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14759 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14760 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14761 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14762 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14763 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14764 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14765 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14766 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14767 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14768 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14769 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14770 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14771 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14772 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14773 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14774 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14775 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14776 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14777 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14778 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14779 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14780 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14781 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14782 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14783 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14784 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14785 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14786 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14787 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14788 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14789 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14790 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14791 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14792 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14793 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14794 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14795 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14796 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14797 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14798 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14799 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14800 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14801 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14802 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14803 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14804 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14805 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14806 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14807 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14808 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14809 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14810 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14811 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14812 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14813
14814 LTCC='$LTCC'
14815 LTCFLAGS='$LTCFLAGS'
14816 compiler='$compiler_DEFAULT'
14817
14818 # Quote evaled strings.
14819 for var in SED \
14820 GREP \
14821 EGREP \
14822 FGREP \
14823 LD \
14824 NM \
14825 LN_S \
14826 lt_SP2NL \
14827 lt_NL2SP \
14828 reload_flag \
14829 OBJDUMP \
14830 deplibs_check_method \
14831 file_magic_cmd \
14832 AR \
14833 AR_FLAGS \
14834 STRIP \
14835 RANLIB \
14836 CC \
14837 CFLAGS \
14838 compiler \
14839 lt_cv_sys_global_symbol_pipe \
14840 lt_cv_sys_global_symbol_to_cdecl \
14841 lt_cv_sys_global_symbol_to_c_name_address \
14842 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14843 SHELL \
14844 ECHO \
14845 lt_prog_compiler_no_builtin_flag \
14846 lt_prog_compiler_wl \
14847 lt_prog_compiler_pic \
14848 lt_prog_compiler_static \
14849 lt_cv_prog_compiler_c_o \
14850 need_locks \
14851 DSYMUTIL \
14852 NMEDIT \
14853 LIPO \
14854 OTOOL \
14855 OTOOL64 \
14856 shrext_cmds \
14857 export_dynamic_flag_spec \
14858 whole_archive_flag_spec \
14859 compiler_needs_object \
14860 with_gnu_ld \
14861 allow_undefined_flag \
14862 no_undefined_flag \
14863 hardcode_libdir_flag_spec \
14864 hardcode_libdir_flag_spec_ld \
14865 hardcode_libdir_separator \
14866 fix_srcfile_path \
14867 exclude_expsyms \
14868 include_expsyms \
14869 file_list_spec \
14870 variables_saved_for_relink \
14871 libname_spec \
14872 library_names_spec \
14873 soname_spec \
14874 finish_eval \
14875 old_striplib \
14876 striplib; do
14877     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14878     *[\\\\\\\`\\"\\\$]*)
14879       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14880       ;;
14881     *)
14882       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14883       ;;
14884     esac
14885 done
14886
14887 # Double-quote double-evaled strings.
14888 for var in reload_cmds \
14889 old_postinstall_cmds \
14890 old_postuninstall_cmds \
14891 old_archive_cmds \
14892 extract_expsyms_cmds \
14893 old_archive_from_new_cmds \
14894 old_archive_from_expsyms_cmds \
14895 archive_cmds \
14896 archive_expsym_cmds \
14897 module_cmds \
14898 module_expsym_cmds \
14899 export_symbols_cmds \
14900 prelink_cmds \
14901 postinstall_cmds \
14902 postuninstall_cmds \
14903 finish_cmds \
14904 sys_lib_search_path_spec \
14905 sys_lib_dlsearch_path_spec; do
14906     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14907     *[\\\\\\\`\\"\\\$]*)
14908       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14909       ;;
14910     *)
14911       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14912       ;;
14913     esac
14914 done
14915
14916 # Fix-up fallback echo if it was mangled by the above quoting rules.
14917 case \$lt_ECHO in
14918 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14919   ;;
14920 esac
14921
14922 ac_aux_dir='$ac_aux_dir'
14923 xsi_shell='$xsi_shell'
14924 lt_shell_append='$lt_shell_append'
14925
14926 # See if we are running on zsh, and set the options which allow our
14927 # commands through without removal of \ escapes INIT.
14928 if test -n "\${ZSH_VERSION+set}" ; then
14929    setopt NO_GLOB_SUBST
14930 fi
14931
14932
14933     PACKAGE='$PACKAGE'
14934     VERSION='$VERSION'
14935     TIMESTAMP='$TIMESTAMP'
14936     RM='$RM'
14937     ofile='$ofile'
14938
14939
14940
14941 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14942     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14943     # from automake.
14944     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14945     # Capture the value of LINGUAS because we need it to compute CATALOGS.
14946     LINGUAS="${LINGUAS-%UNSET%}"
14947
14948 target_cpu_type=${target_cpu_type}
14949  cgen_cpu_prefix=${cgen_cpu_prefix}
14950  obj_format=${obj_format}
14951  te_file=${te_file}
14952
14953 _ACEOF
14954
14955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14956
14957 # Handling of arguments.
14958 for ac_config_target in $ac_config_targets
14959 do
14960   case $ac_config_target in
14961     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14962     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14963     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14964     "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14965     ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14966     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14967     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14968     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14969     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14970     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14971
14972   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14973   esac
14974 done
14975
14976
14977 # If the user did not use the arguments to specify the items to instantiate,
14978 # then the envvar interface is used.  Set only those that are not.
14979 # We use the long form for the default assignment because of an extremely
14980 # bizarre bug on SunOS 4.1.3.
14981 if $ac_need_defaults; then
14982   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14983   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14984   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14985 fi
14986
14987 # Have a temporary directory for convenience.  Make it in the build tree
14988 # simply because there is no reason against having it here, and in addition,
14989 # creating and moving files from /tmp can sometimes cause problems.
14990 # Hook for its removal unless debugging.
14991 # Note that there is a small window in which the directory will not be cleaned:
14992 # after its creation but before its name has been assigned to `$tmp'.
14993 $debug ||
14994 {
14995   tmp=
14996   trap 'exit_status=$?
14997   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14998 ' 0
14999   trap 'as_fn_exit 1' 1 2 13 15
15000 }
15001 # Create a (secure) tmp directory for tmp files.
15002
15003 {
15004   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15005   test -n "$tmp" && test -d "$tmp"
15006 }  ||
15007 {
15008   tmp=./conf$$-$RANDOM
15009   (umask 077 && mkdir "$tmp")
15010 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15011
15012 # Set up the scripts for CONFIG_FILES section.
15013 # No need to generate them if there are no CONFIG_FILES.
15014 # This happens for instance with `./config.status config.h'.
15015 if test -n "$CONFIG_FILES"; then
15016
15017
15018 ac_cr=`echo X | tr X '\015'`
15019 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15020 # But we know of no other shell where ac_cr would be empty at this
15021 # point, so we can use a bashism as a fallback.
15022 if test "x$ac_cr" = x; then
15023   eval ac_cr=\$\'\\r\'
15024 fi
15025 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15026 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15027   ac_cs_awk_cr='\r'
15028 else
15029   ac_cs_awk_cr=$ac_cr
15030 fi
15031
15032 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15033 _ACEOF
15034
15035
15036 {
15037   echo "cat >conf$$subs.awk <<_ACEOF" &&
15038   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15039   echo "_ACEOF"
15040 } >conf$$subs.sh ||
15041   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15042 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15043 ac_delim='%!_!# '
15044 for ac_last_try in false false false false false :; do
15045   . ./conf$$subs.sh ||
15046     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15047
15048   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15049   if test $ac_delim_n = $ac_delim_num; then
15050     break
15051   elif $ac_last_try; then
15052     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15053   else
15054     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15055   fi
15056 done
15057 rm -f conf$$subs.sh
15058
15059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15060 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15061 _ACEOF
15062 sed -n '
15063 h
15064 s/^/S["/; s/!.*/"]=/
15065 p
15066 g
15067 s/^[^!]*!//
15068 :repl
15069 t repl
15070 s/'"$ac_delim"'$//
15071 t delim
15072 :nl
15073 h
15074 s/\(.\{148\}\).*/\1/
15075 t more1
15076 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15077 p
15078 n
15079 b repl
15080 :more1
15081 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15082 p
15083 g
15084 s/.\{148\}//
15085 t nl
15086 :delim
15087 h
15088 s/\(.\{148\}\).*/\1/
15089 t more2
15090 s/["\\]/\\&/g; s/^/"/; s/$/"/
15091 p
15092 b
15093 :more2
15094 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15095 p
15096 g
15097 s/.\{148\}//
15098 t delim
15099 ' <conf$$subs.awk | sed '
15100 /^[^""]/{
15101   N
15102   s/\n//
15103 }
15104 ' >>$CONFIG_STATUS || ac_write_fail=1
15105 rm -f conf$$subs.awk
15106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15107 _ACAWK
15108 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15109   for (key in S) S_is_set[key] = 1
15110   FS = "\a"
15111
15112 }
15113 {
15114   line = $ 0
15115   nfields = split(line, field, "@")
15116   substed = 0
15117   len = length(field[1])
15118   for (i = 2; i < nfields; i++) {
15119     key = field[i]
15120     keylen = length(key)
15121     if (S_is_set[key]) {
15122       value = S[key]
15123       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15124       len += length(value) + length(field[++i])
15125       substed = 1
15126     } else
15127       len += 1 + keylen
15128   }
15129
15130   print line
15131 }
15132
15133 _ACAWK
15134 _ACEOF
15135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15136 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15137   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15138 else
15139   cat
15140 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15141   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15142 _ACEOF
15143
15144 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15145 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15146 # trailing colons and then remove the whole line if VPATH becomes empty
15147 # (actually we leave an empty line to preserve line numbers).
15148 if test "x$srcdir" = x.; then
15149   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15150 s/:*\$(srcdir):*/:/
15151 s/:*\${srcdir}:*/:/
15152 s/:*@srcdir@:*/:/
15153 s/^\([^=]*=[     ]*\):*/\1/
15154 s/:*$//
15155 s/^[^=]*=[       ]*$//
15156 }'
15157 fi
15158
15159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15160 fi # test -n "$CONFIG_FILES"
15161
15162 # Set up the scripts for CONFIG_HEADERS section.
15163 # No need to generate them if there are no CONFIG_HEADERS.
15164 # This happens for instance with `./config.status Makefile'.
15165 if test -n "$CONFIG_HEADERS"; then
15166 cat >"$tmp/defines.awk" <<\_ACAWK ||
15167 BEGIN {
15168 _ACEOF
15169
15170 # Transform confdefs.h into an awk script `defines.awk', embedded as
15171 # here-document in config.status, that substitutes the proper values into
15172 # config.h.in to produce config.h.
15173
15174 # Create a delimiter string that does not exist in confdefs.h, to ease
15175 # handling of long lines.
15176 ac_delim='%!_!# '
15177 for ac_last_try in false false :; do
15178   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15179   if test -z "$ac_t"; then
15180     break
15181   elif $ac_last_try; then
15182     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15183   else
15184     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15185   fi
15186 done
15187
15188 # For the awk script, D is an array of macro values keyed by name,
15189 # likewise P contains macro parameters if any.  Preserve backslash
15190 # newline sequences.
15191
15192 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15193 sed -n '
15194 s/.\{148\}/&'"$ac_delim"'/g
15195 t rset
15196 :rset
15197 s/^[     ]*#[    ]*define[       ][      ]*/ /
15198 t def
15199 d
15200 :def
15201 s/\\$//
15202 t bsnl
15203 s/["\\]/\\&/g
15204 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15205 D["\1"]=" \3"/p
15206 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15207 d
15208 :bsnl
15209 s/["\\]/\\&/g
15210 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15211 D["\1"]=" \3\\\\\\n"\\/p
15212 t cont
15213 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15214 t cont
15215 d
15216 :cont
15217 n
15218 s/.\{148\}/&'"$ac_delim"'/g
15219 t clear
15220 :clear
15221 s/\\$//
15222 t bsnlc
15223 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15224 d
15225 :bsnlc
15226 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15227 b cont
15228 ' <confdefs.h | sed '
15229 s/'"$ac_delim"'/"\\\
15230 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15231
15232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15233   for (key in D) D_is_set[key] = 1
15234   FS = "\a"
15235 }
15236 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15237   line = \$ 0
15238   split(line, arg, " ")
15239   if (arg[1] == "#") {
15240     defundef = arg[2]
15241     mac1 = arg[3]
15242   } else {
15243     defundef = substr(arg[1], 2)
15244     mac1 = arg[2]
15245   }
15246   split(mac1, mac2, "(") #)
15247   macro = mac2[1]
15248   prefix = substr(line, 1, index(line, defundef) - 1)
15249   if (D_is_set[macro]) {
15250     # Preserve the white space surrounding the "#".
15251     print prefix "define", macro P[macro] D[macro]
15252     next
15253   } else {
15254     # Replace #undef with comments.  This is necessary, for example,
15255     # in the case of _POSIX_SOURCE, which is predefined and required
15256     # on some systems where configure will not decide to define it.
15257     if (defundef == "undef") {
15258       print "/*", prefix defundef, macro, "*/"
15259       next
15260     }
15261   }
15262 }
15263 { print }
15264 _ACAWK
15265 _ACEOF
15266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15267   as_fn_error "could not setup config headers machinery" "$LINENO" 5
15268 fi # test -n "$CONFIG_HEADERS"
15269
15270
15271 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15272 shift
15273 for ac_tag
15274 do
15275   case $ac_tag in
15276   :[FHLC]) ac_mode=$ac_tag; continue;;
15277   esac
15278   case $ac_mode$ac_tag in
15279   :[FHL]*:*);;
15280   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15281   :[FH]-) ac_tag=-:-;;
15282   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15283   esac
15284   ac_save_IFS=$IFS
15285   IFS=:
15286   set x $ac_tag
15287   IFS=$ac_save_IFS
15288   shift
15289   ac_file=$1
15290   shift
15291
15292   case $ac_mode in
15293   :L) ac_source=$1;;
15294   :[FH])
15295     ac_file_inputs=
15296     for ac_f
15297     do
15298       case $ac_f in
15299       -) ac_f="$tmp/stdin";;
15300       *) # Look for the file first in the build tree, then in the source tree
15301          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15302          # because $ac_f cannot contain `:'.
15303          test -f "$ac_f" ||
15304            case $ac_f in
15305            [\\/$]*) false;;
15306            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15307            esac ||
15308            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15309       esac
15310       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15311       as_fn_append ac_file_inputs " '$ac_f'"
15312     done
15313
15314     # Let's still pretend it is `configure' which instantiates (i.e., don't
15315     # use $as_me), people would be surprised to read:
15316     #    /* config.h.  Generated by config.status.  */
15317     configure_input='Generated from '`
15318           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15319         `' by configure.'
15320     if test x"$ac_file" != x-; then
15321       configure_input="$ac_file.  $configure_input"
15322       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15323 $as_echo "$as_me: creating $ac_file" >&6;}
15324     fi
15325     # Neutralize special characters interpreted by sed in replacement strings.
15326     case $configure_input in #(
15327     *\&* | *\|* | *\\* )
15328        ac_sed_conf_input=`$as_echo "$configure_input" |
15329        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15330     *) ac_sed_conf_input=$configure_input;;
15331     esac
15332
15333     case $ac_tag in
15334     *:-:* | *:-) cat >"$tmp/stdin" \
15335       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15336     esac
15337     ;;
15338   esac
15339
15340   ac_dir=`$as_dirname -- "$ac_file" ||
15341 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15342          X"$ac_file" : 'X\(//\)[^/]' \| \
15343          X"$ac_file" : 'X\(//\)$' \| \
15344          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15345 $as_echo X"$ac_file" |
15346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15347             s//\1/
15348             q
15349           }
15350           /^X\(\/\/\)[^/].*/{
15351             s//\1/
15352             q
15353           }
15354           /^X\(\/\/\)$/{
15355             s//\1/
15356             q
15357           }
15358           /^X\(\/\).*/{
15359             s//\1/
15360             q
15361           }
15362           s/.*/./; q'`
15363   as_dir="$ac_dir"; as_fn_mkdir_p
15364   ac_builddir=.
15365
15366 case "$ac_dir" in
15367 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15368 *)
15369   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15370   # A ".." for each directory in $ac_dir_suffix.
15371   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15372   case $ac_top_builddir_sub in
15373   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15374   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15375   esac ;;
15376 esac
15377 ac_abs_top_builddir=$ac_pwd
15378 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15379 # for backward compatibility:
15380 ac_top_builddir=$ac_top_build_prefix
15381
15382 case $srcdir in
15383   .)  # We are building in place.
15384     ac_srcdir=.
15385     ac_top_srcdir=$ac_top_builddir_sub
15386     ac_abs_top_srcdir=$ac_pwd ;;
15387   [\\/]* | ?:[\\/]* )  # Absolute name.
15388     ac_srcdir=$srcdir$ac_dir_suffix;
15389     ac_top_srcdir=$srcdir
15390     ac_abs_top_srcdir=$srcdir ;;
15391   *) # Relative name.
15392     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15393     ac_top_srcdir=$ac_top_build_prefix$srcdir
15394     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15395 esac
15396 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15397
15398
15399   case $ac_mode in
15400   :F)
15401   #
15402   # CONFIG_FILE
15403   #
15404
15405   case $INSTALL in
15406   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15407   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15408   esac
15409   ac_MKDIR_P=$MKDIR_P
15410   case $MKDIR_P in
15411   [\\/$]* | ?:[\\/]* ) ;;
15412   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15413   esac
15414 _ACEOF
15415
15416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15417 # If the template does not know about datarootdir, expand it.
15418 # FIXME: This hack should be removed a few years after 2.60.
15419 ac_datarootdir_hack=; ac_datarootdir_seen=
15420 ac_sed_dataroot='
15421 /datarootdir/ {
15422   p
15423   q
15424 }
15425 /@datadir@/p
15426 /@docdir@/p
15427 /@infodir@/p
15428 /@localedir@/p
15429 /@mandir@/p'
15430 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15431 *datarootdir*) ac_datarootdir_seen=yes;;
15432 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15433   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15434 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15435 _ACEOF
15436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15437   ac_datarootdir_hack='
15438   s&@datadir@&$datadir&g
15439   s&@docdir@&$docdir&g
15440   s&@infodir@&$infodir&g
15441   s&@localedir@&$localedir&g
15442   s&@mandir@&$mandir&g
15443   s&\\\${datarootdir}&$datarootdir&g' ;;
15444 esac
15445 _ACEOF
15446
15447 # Neutralize VPATH when `$srcdir' = `.'.
15448 # Shell code in configure.ac might set extrasub.
15449 # FIXME: do we really want to maintain this feature?
15450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15451 ac_sed_extra="$ac_vpsub
15452 $extrasub
15453 _ACEOF
15454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15455 :t
15456 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15457 s|@configure_input@|$ac_sed_conf_input|;t t
15458 s&@top_builddir@&$ac_top_builddir_sub&;t t
15459 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15460 s&@srcdir@&$ac_srcdir&;t t
15461 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15462 s&@top_srcdir@&$ac_top_srcdir&;t t
15463 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15464 s&@builddir@&$ac_builddir&;t t
15465 s&@abs_builddir@&$ac_abs_builddir&;t t
15466 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15467 s&@INSTALL@&$ac_INSTALL&;t t
15468 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15469 $ac_datarootdir_hack
15470 "
15471 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15472   || as_fn_error "could not create $ac_file" "$LINENO" 5
15473
15474 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15475   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15476   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15477   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15478 which seems to be undefined.  Please make sure it is defined." >&5
15479 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15480 which seems to be undefined.  Please make sure it is defined." >&2;}
15481
15482   rm -f "$tmp/stdin"
15483   case $ac_file in
15484   -) cat "$tmp/out" && rm -f "$tmp/out";;
15485   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15486   esac \
15487   || as_fn_error "could not create $ac_file" "$LINENO" 5
15488  ;;
15489   :H)
15490   #
15491   # CONFIG_HEADER
15492   #
15493   if test x"$ac_file" != x-; then
15494     {
15495       $as_echo "/* $configure_input  */" \
15496       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15497     } >"$tmp/config.h" \
15498       || as_fn_error "could not create $ac_file" "$LINENO" 5
15499     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15500       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15501 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15502     else
15503       rm -f "$ac_file"
15504       mv "$tmp/config.h" "$ac_file" \
15505         || as_fn_error "could not create $ac_file" "$LINENO" 5
15506     fi
15507   else
15508     $as_echo "/* $configure_input  */" \
15509       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15510       || as_fn_error "could not create -" "$LINENO" 5
15511   fi
15512 # Compute "$ac_file"'s index in $config_headers.
15513 _am_arg="$ac_file"
15514 _am_stamp_count=1
15515 for _am_header in $config_headers :; do
15516   case $_am_header in
15517     $_am_arg | $_am_arg:* )
15518       break ;;
15519     * )
15520       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15521   esac
15522 done
15523 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15524 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15525          X"$_am_arg" : 'X\(//\)[^/]' \| \
15526          X"$_am_arg" : 'X\(//\)$' \| \
15527          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15528 $as_echo X"$_am_arg" |
15529     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15530             s//\1/
15531             q
15532           }
15533           /^X\(\/\/\)[^/].*/{
15534             s//\1/
15535             q
15536           }
15537           /^X\(\/\/\)$/{
15538             s//\1/
15539             q
15540           }
15541           /^X\(\/\).*/{
15542             s//\1/
15543             q
15544           }
15545           s/.*/./; q'`/stamp-h$_am_stamp_count
15546  ;;
15547
15548   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15549 $as_echo "$as_me: executing $ac_file commands" >&6;}
15550  ;;
15551   esac
15552
15553
15554   case $ac_file$ac_mode in
15555     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15556   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15557   # are listed without --file.  Let's play safe and only enable the eval
15558   # if we detect the quoting.
15559   case $CONFIG_FILES in
15560   *\'*) eval set x "$CONFIG_FILES" ;;
15561   *)   set x $CONFIG_FILES ;;
15562   esac
15563   shift
15564   for mf
15565   do
15566     # Strip MF so we end up with the name of the file.
15567     mf=`echo "$mf" | sed -e 's/:.*$//'`
15568     # Check whether this is an Automake generated Makefile or not.
15569     # We used to match only the files named `Makefile.in', but
15570     # some people rename them; so instead we look at the file content.
15571     # Grep'ing the first line is not enough: some people post-process
15572     # each Makefile.in and add a new line on top of each file to say so.
15573     # Grep'ing the whole file is not good either: AIX grep has a line
15574     # limit of 2048, but all sed's we know have understand at least 4000.
15575     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15576       dirpart=`$as_dirname -- "$mf" ||
15577 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15578          X"$mf" : 'X\(//\)[^/]' \| \
15579          X"$mf" : 'X\(//\)$' \| \
15580          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15581 $as_echo X"$mf" |
15582     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15583             s//\1/
15584             q
15585           }
15586           /^X\(\/\/\)[^/].*/{
15587             s//\1/
15588             q
15589           }
15590           /^X\(\/\/\)$/{
15591             s//\1/
15592             q
15593           }
15594           /^X\(\/\).*/{
15595             s//\1/
15596             q
15597           }
15598           s/.*/./; q'`
15599     else
15600       continue
15601     fi
15602     # Extract the definition of DEPDIR, am__include, and am__quote
15603     # from the Makefile without running `make'.
15604     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15605     test -z "$DEPDIR" && continue
15606     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15607     test -z "am__include" && continue
15608     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15609     # When using ansi2knr, U may be empty or an underscore; expand it
15610     U=`sed -n 's/^U = //p' < "$mf"`
15611     # Find all dependency output files, they are included files with
15612     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15613     # simplest approach to changing $(DEPDIR) to its actual value in the
15614     # expansion.
15615     for file in `sed -n "
15616       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15617          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15618       # Make sure the directory exists.
15619       test -f "$dirpart/$file" && continue
15620       fdir=`$as_dirname -- "$file" ||
15621 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15622          X"$file" : 'X\(//\)[^/]' \| \
15623          X"$file" : 'X\(//\)$' \| \
15624          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15625 $as_echo X"$file" |
15626     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15627             s//\1/
15628             q
15629           }
15630           /^X\(\/\/\)[^/].*/{
15631             s//\1/
15632             q
15633           }
15634           /^X\(\/\/\)$/{
15635             s//\1/
15636             q
15637           }
15638           /^X\(\/\).*/{
15639             s//\1/
15640             q
15641           }
15642           s/.*/./; q'`
15643       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15644       # echo "creating $dirpart/$file"
15645       echo '# dummy' > "$dirpart/$file"
15646     done
15647   done
15648 }
15649  ;;
15650     "libtool":C)
15651
15652     # See if we are running on zsh, and set the options which allow our
15653     # commands through without removal of \ escapes.
15654     if test -n "${ZSH_VERSION+set}" ; then
15655       setopt NO_GLOB_SUBST
15656     fi
15657
15658     cfgfile="${ofile}T"
15659     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15660     $RM "$cfgfile"
15661
15662     cat <<_LT_EOF >> "$cfgfile"
15663 #! $SHELL
15664
15665 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15666 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15667 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15668 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15669 #
15670 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15671 #                 2006, 2007, 2008 Free Software Foundation, Inc.
15672 #   Written by Gordon Matzigkeit, 1996
15673 #
15674 #   This file is part of GNU Libtool.
15675 #
15676 # GNU Libtool is free software; you can redistribute it and/or
15677 # modify it under the terms of the GNU General Public License as
15678 # published by the Free Software Foundation; either version 2 of
15679 # the License, or (at your option) any later version.
15680 #
15681 # As a special exception to the GNU General Public License,
15682 # if you distribute this file as part of a program or library that
15683 # is built using GNU Libtool, you may include this file under the
15684 # same distribution terms that you use for the rest of that program.
15685 #
15686 # GNU Libtool is distributed in the hope that it will be useful,
15687 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15688 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15689 # GNU General Public License for more details.
15690 #
15691 # You should have received a copy of the GNU General Public License
15692 # along with GNU Libtool; see the file COPYING.  If not, a copy
15693 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15694 # obtained by writing to the Free Software Foundation, Inc.,
15695 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15696
15697
15698 # The names of the tagged configurations supported by this script.
15699 available_tags=""
15700
15701 # ### BEGIN LIBTOOL CONFIG
15702
15703 # Which release of libtool.m4 was used?
15704 macro_version=$macro_version
15705 macro_revision=$macro_revision
15706
15707 # Whether or not to build shared libraries.
15708 build_libtool_libs=$enable_shared
15709
15710 # Whether or not to build static libraries.
15711 build_old_libs=$enable_static
15712
15713 # What type of objects to build.
15714 pic_mode=$pic_mode
15715
15716 # Whether or not to optimize for fast installation.
15717 fast_install=$enable_fast_install
15718
15719 # The host system.
15720 host_alias=$host_alias
15721 host=$host
15722 host_os=$host_os
15723
15724 # The build system.
15725 build_alias=$build_alias
15726 build=$build
15727 build_os=$build_os
15728
15729 # A sed program that does not truncate output.
15730 SED=$lt_SED
15731
15732 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15733 Xsed="\$SED -e 1s/^X//"
15734
15735 # A grep program that handles long lines.
15736 GREP=$lt_GREP
15737
15738 # An ERE matcher.
15739 EGREP=$lt_EGREP
15740
15741 # A literal string matcher.
15742 FGREP=$lt_FGREP
15743
15744 # A BSD- or MS-compatible name lister.
15745 NM=$lt_NM
15746
15747 # Whether we need soft or hard links.
15748 LN_S=$lt_LN_S
15749
15750 # What is the maximum length of a command?
15751 max_cmd_len=$max_cmd_len
15752
15753 # Object file suffix (normally "o").
15754 objext=$ac_objext
15755
15756 # Executable file suffix (normally "").
15757 exeext=$exeext
15758
15759 # whether the shell understands "unset".
15760 lt_unset=$lt_unset
15761
15762 # turn spaces into newlines.
15763 SP2NL=$lt_lt_SP2NL
15764
15765 # turn newlines into spaces.
15766 NL2SP=$lt_lt_NL2SP
15767
15768 # How to create reloadable object files.
15769 reload_flag=$lt_reload_flag
15770 reload_cmds=$lt_reload_cmds
15771
15772 # An object symbol dumper.
15773 OBJDUMP=$lt_OBJDUMP
15774
15775 # Method to check whether dependent libraries are shared objects.
15776 deplibs_check_method=$lt_deplibs_check_method
15777
15778 # Command to use when deplibs_check_method == "file_magic".
15779 file_magic_cmd=$lt_file_magic_cmd
15780
15781 # The archiver.
15782 AR=$lt_AR
15783 AR_FLAGS=$lt_AR_FLAGS
15784
15785 # A symbol stripping program.
15786 STRIP=$lt_STRIP
15787
15788 # Commands used to install an old-style archive.
15789 RANLIB=$lt_RANLIB
15790 old_postinstall_cmds=$lt_old_postinstall_cmds
15791 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15792
15793 # A C compiler.
15794 LTCC=$lt_CC
15795
15796 # LTCC compiler flags.
15797 LTCFLAGS=$lt_CFLAGS
15798
15799 # Take the output of nm and produce a listing of raw symbols and C names.
15800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15801
15802 # Transform the output of nm in a proper C declaration.
15803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15804
15805 # Transform the output of nm in a C name address pair.
15806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15807
15808 # Transform the output of nm in a C name address pair when lib prefix is needed.
15809 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15810
15811 # The name of the directory that contains temporary libtool files.
15812 objdir=$objdir
15813
15814 # Shell to use when invoking shell scripts.
15815 SHELL=$lt_SHELL
15816
15817 # An echo program that does not interpret backslashes.
15818 ECHO=$lt_ECHO
15819
15820 # Used to examine libraries when file_magic_cmd begins with "file".
15821 MAGIC_CMD=$MAGIC_CMD
15822
15823 # Must we lock files when doing compilation?
15824 need_locks=$lt_need_locks
15825
15826 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15827 DSYMUTIL=$lt_DSYMUTIL
15828
15829 # Tool to change global to local symbols on Mac OS X.
15830 NMEDIT=$lt_NMEDIT
15831
15832 # Tool to manipulate fat objects and archives on Mac OS X.
15833 LIPO=$lt_LIPO
15834
15835 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15836 OTOOL=$lt_OTOOL
15837
15838 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15839 OTOOL64=$lt_OTOOL64
15840
15841 # Old archive suffix (normally "a").
15842 libext=$libext
15843
15844 # Shared library suffix (normally ".so").
15845 shrext_cmds=$lt_shrext_cmds
15846
15847 # The commands to extract the exported symbol list from a shared archive.
15848 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15849
15850 # Variables whose values should be saved in libtool wrapper scripts and
15851 # restored at link time.
15852 variables_saved_for_relink=$lt_variables_saved_for_relink
15853
15854 # Do we need the "lib" prefix for modules?
15855 need_lib_prefix=$need_lib_prefix
15856
15857 # Do we need a version for libraries?
15858 need_version=$need_version
15859
15860 # Library versioning type.
15861 version_type=$version_type
15862
15863 # Shared library runtime path variable.
15864 runpath_var=$runpath_var
15865
15866 # Shared library path variable.
15867 shlibpath_var=$shlibpath_var
15868
15869 # Is shlibpath searched before the hard-coded library search path?
15870 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15871
15872 # Format of library name prefix.
15873 libname_spec=$lt_libname_spec
15874
15875 # List of archive names.  First name is the real one, the rest are links.
15876 # The last name is the one that the linker finds with -lNAME
15877 library_names_spec=$lt_library_names_spec
15878
15879 # The coded name of the library, if different from the real name.
15880 soname_spec=$lt_soname_spec
15881
15882 # Command to use after installation of a shared archive.
15883 postinstall_cmds=$lt_postinstall_cmds
15884
15885 # Command to use after uninstallation of a shared archive.
15886 postuninstall_cmds=$lt_postuninstall_cmds
15887
15888 # Commands used to finish a libtool library installation in a directory.
15889 finish_cmds=$lt_finish_cmds
15890
15891 # As "finish_cmds", except a single script fragment to be evaled but
15892 # not shown.
15893 finish_eval=$lt_finish_eval
15894
15895 # Whether we should hardcode library paths into libraries.
15896 hardcode_into_libs=$hardcode_into_libs
15897
15898 # Compile-time system search path for libraries.
15899 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15900
15901 # Run-time system search path for libraries.
15902 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15903
15904 # Whether dlopen is supported.
15905 dlopen_support=$enable_dlopen
15906
15907 # Whether dlopen of programs is supported.
15908 dlopen_self=$enable_dlopen_self
15909
15910 # Whether dlopen of statically linked programs is supported.
15911 dlopen_self_static=$enable_dlopen_self_static
15912
15913 # Commands to strip libraries.
15914 old_striplib=$lt_old_striplib
15915 striplib=$lt_striplib
15916
15917
15918 # The linker used to build libraries.
15919 LD=$lt_LD
15920
15921 # Commands used to build an old-style archive.
15922 old_archive_cmds=$lt_old_archive_cmds
15923
15924 # A language specific compiler.
15925 CC=$lt_compiler
15926
15927 # Is the compiler the GNU compiler?
15928 with_gcc=$GCC
15929
15930 # Compiler flag to turn off builtin functions.
15931 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15932
15933 # How to pass a linker flag through the compiler.
15934 wl=$lt_lt_prog_compiler_wl
15935
15936 # Additional compiler flags for building library objects.
15937 pic_flag=$lt_lt_prog_compiler_pic
15938
15939 # Compiler flag to prevent dynamic linking.
15940 link_static_flag=$lt_lt_prog_compiler_static
15941
15942 # Does compiler simultaneously support -c and -o options?
15943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15944
15945 # Whether or not to add -lc for building shared libraries.
15946 build_libtool_need_lc=$archive_cmds_need_lc
15947
15948 # Whether or not to disallow shared libs when runtime libs are static.
15949 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15950
15951 # Compiler flag to allow reflexive dlopens.
15952 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15953
15954 # Compiler flag to generate shared objects directly from archives.
15955 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15956
15957 # Whether the compiler copes with passing no objects directly.
15958 compiler_needs_object=$lt_compiler_needs_object
15959
15960 # Create an old-style archive from a shared archive.
15961 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15962
15963 # Create a temporary old-style archive to link instead of a shared archive.
15964 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15965
15966 # Commands used to build a shared archive.
15967 archive_cmds=$lt_archive_cmds
15968 archive_expsym_cmds=$lt_archive_expsym_cmds
15969
15970 # Commands used to build a loadable module if different from building
15971 # a shared archive.
15972 module_cmds=$lt_module_cmds
15973 module_expsym_cmds=$lt_module_expsym_cmds
15974
15975 # Whether we are building with GNU ld or not.
15976 with_gnu_ld=$lt_with_gnu_ld
15977
15978 # Flag that allows shared libraries with undefined symbols to be built.
15979 allow_undefined_flag=$lt_allow_undefined_flag
15980
15981 # Flag that enforces no undefined symbols.
15982 no_undefined_flag=$lt_no_undefined_flag
15983
15984 # Flag to hardcode \$libdir into a binary during linking.
15985 # This must work even if \$libdir does not exist
15986 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15987
15988 # If ld is used when linking, flag to hardcode \$libdir into a binary
15989 # during linking.  This must work even if \$libdir does not exist.
15990 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15991
15992 # Whether we need a single "-rpath" flag with a separated argument.
15993 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15994
15995 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15996 # DIR into the resulting binary.
15997 hardcode_direct=$hardcode_direct
15998
15999 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16000 # DIR into the resulting binary and the resulting library dependency is
16001 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16002 # library is relocated.
16003 hardcode_direct_absolute=$hardcode_direct_absolute
16004
16005 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16006 # into the resulting binary.
16007 hardcode_minus_L=$hardcode_minus_L
16008
16009 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16010 # into the resulting binary.
16011 hardcode_shlibpath_var=$hardcode_shlibpath_var
16012
16013 # Set to "yes" if building a shared library automatically hardcodes DIR
16014 # into the library and all subsequent libraries and executables linked
16015 # against it.
16016 hardcode_automatic=$hardcode_automatic
16017
16018 # Set to yes if linker adds runtime paths of dependent libraries
16019 # to runtime path list.
16020 inherit_rpath=$inherit_rpath
16021
16022 # Whether libtool must link a program against all its dependency libraries.
16023 link_all_deplibs=$link_all_deplibs
16024
16025 # Fix the shell variable \$srcfile for the compiler.
16026 fix_srcfile_path=$lt_fix_srcfile_path
16027
16028 # Set to "yes" if exported symbols are required.
16029 always_export_symbols=$always_export_symbols
16030
16031 # The commands to list exported symbols.
16032 export_symbols_cmds=$lt_export_symbols_cmds
16033
16034 # Symbols that should not be listed in the preloaded symbols.
16035 exclude_expsyms=$lt_exclude_expsyms
16036
16037 # Symbols that must always be exported.
16038 include_expsyms=$lt_include_expsyms
16039
16040 # Commands necessary for linking programs (against libraries) with templates.
16041 prelink_cmds=$lt_prelink_cmds
16042
16043 # Specify filename containing input files.
16044 file_list_spec=$lt_file_list_spec
16045
16046 # How to hardcode a shared library path into an executable.
16047 hardcode_action=$hardcode_action
16048
16049 # ### END LIBTOOL CONFIG
16050
16051 _LT_EOF
16052
16053   case $host_os in
16054   aix3*)
16055     cat <<\_LT_EOF >> "$cfgfile"
16056 # AIX sometimes has problems with the GCC collect2 program.  For some
16057 # reason, if we set the COLLECT_NAMES environment variable, the problems
16058 # vanish in a puff of smoke.
16059 if test "X${COLLECT_NAMES+set}" != Xset; then
16060   COLLECT_NAMES=
16061   export COLLECT_NAMES
16062 fi
16063 _LT_EOF
16064     ;;
16065   esac
16066
16067
16068 ltmain="$ac_aux_dir/ltmain.sh"
16069
16070
16071   # We use sed instead of cat because bash on DJGPP gets confused if
16072   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16073   # text mode, it properly converts lines to CR/LF.  This bash problem
16074   # is reportedly fixed, but why not run on old versions too?
16075   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16076     || (rm -f "$cfgfile"; exit 1)
16077
16078   case $xsi_shell in
16079   yes)
16080     cat << \_LT_EOF >> "$cfgfile"
16081
16082 # func_dirname file append nondir_replacement
16083 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16084 # otherwise set result to NONDIR_REPLACEMENT.
16085 func_dirname ()
16086 {
16087   case ${1} in
16088     */*) func_dirname_result="${1%/*}${2}" ;;
16089     *  ) func_dirname_result="${3}" ;;
16090   esac
16091 }
16092
16093 # func_basename file
16094 func_basename ()
16095 {
16096   func_basename_result="${1##*/}"
16097 }
16098
16099 # func_dirname_and_basename file append nondir_replacement
16100 # perform func_basename and func_dirname in a single function
16101 # call:
16102 #   dirname:  Compute the dirname of FILE.  If nonempty,
16103 #             add APPEND to the result, otherwise set result
16104 #             to NONDIR_REPLACEMENT.
16105 #             value returned in "$func_dirname_result"
16106 #   basename: Compute filename of FILE.
16107 #             value retuned in "$func_basename_result"
16108 # Implementation must be kept synchronized with func_dirname
16109 # and func_basename. For efficiency, we do not delegate to
16110 # those functions but instead duplicate the functionality here.
16111 func_dirname_and_basename ()
16112 {
16113   case ${1} in
16114     */*) func_dirname_result="${1%/*}${2}" ;;
16115     *  ) func_dirname_result="${3}" ;;
16116   esac
16117   func_basename_result="${1##*/}"
16118 }
16119
16120 # func_stripname prefix suffix name
16121 # strip PREFIX and SUFFIX off of NAME.
16122 # PREFIX and SUFFIX must not contain globbing or regex special
16123 # characters, hashes, percent signs, but SUFFIX may contain a leading
16124 # dot (in which case that matches only a dot).
16125 func_stripname ()
16126 {
16127   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16128   # positional parameters, so assign one to ordinary parameter first.
16129   func_stripname_result=${3}
16130   func_stripname_result=${func_stripname_result#"${1}"}
16131   func_stripname_result=${func_stripname_result%"${2}"}
16132 }
16133
16134 # func_opt_split
16135 func_opt_split ()
16136 {
16137   func_opt_split_opt=${1%%=*}
16138   func_opt_split_arg=${1#*=}
16139 }
16140
16141 # func_lo2o object
16142 func_lo2o ()
16143 {
16144   case ${1} in
16145     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16146     *)    func_lo2o_result=${1} ;;
16147   esac
16148 }
16149
16150 # func_xform libobj-or-source
16151 func_xform ()
16152 {
16153   func_xform_result=${1%.*}.lo
16154 }
16155
16156 # func_arith arithmetic-term...
16157 func_arith ()
16158 {
16159   func_arith_result=$(( $* ))
16160 }
16161
16162 # func_len string
16163 # STRING may not start with a hyphen.
16164 func_len ()
16165 {
16166   func_len_result=${#1}
16167 }
16168
16169 _LT_EOF
16170     ;;
16171   *) # Bourne compatible functions.
16172     cat << \_LT_EOF >> "$cfgfile"
16173
16174 # func_dirname file append nondir_replacement
16175 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16176 # otherwise set result to NONDIR_REPLACEMENT.
16177 func_dirname ()
16178 {
16179   # Extract subdirectory from the argument.
16180   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16181   if test "X$func_dirname_result" = "X${1}"; then
16182     func_dirname_result="${3}"
16183   else
16184     func_dirname_result="$func_dirname_result${2}"
16185   fi
16186 }
16187
16188 # func_basename file
16189 func_basename ()
16190 {
16191   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16192 }
16193
16194
16195 # func_stripname prefix suffix name
16196 # strip PREFIX and SUFFIX off of NAME.
16197 # PREFIX and SUFFIX must not contain globbing or regex special
16198 # characters, hashes, percent signs, but SUFFIX may contain a leading
16199 # dot (in which case that matches only a dot).
16200 # func_strip_suffix prefix name
16201 func_stripname ()
16202 {
16203   case ${2} in
16204     .*) func_stripname_result=`$ECHO "X${3}" \
16205            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16206     *)  func_stripname_result=`$ECHO "X${3}" \
16207            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16208   esac
16209 }
16210
16211 # sed scripts:
16212 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16213 my_sed_long_arg='1s/^-[^=]*=//'
16214
16215 # func_opt_split
16216 func_opt_split ()
16217 {
16218   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16219   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16220 }
16221
16222 # func_lo2o object
16223 func_lo2o ()
16224 {
16225   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16226 }
16227
16228 # func_xform libobj-or-source
16229 func_xform ()
16230 {
16231   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16232 }
16233
16234 # func_arith arithmetic-term...
16235 func_arith ()
16236 {
16237   func_arith_result=`expr "$@"`
16238 }
16239
16240 # func_len string
16241 # STRING may not start with a hyphen.
16242 func_len ()
16243 {
16244   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16245 }
16246
16247 _LT_EOF
16248 esac
16249
16250 case $lt_shell_append in
16251   yes)
16252     cat << \_LT_EOF >> "$cfgfile"
16253
16254 # func_append var value
16255 # Append VALUE to the end of shell variable VAR.
16256 func_append ()
16257 {
16258   eval "$1+=\$2"
16259 }
16260 _LT_EOF
16261     ;;
16262   *)
16263     cat << \_LT_EOF >> "$cfgfile"
16264
16265 # func_append var value
16266 # Append VALUE to the end of shell variable VAR.
16267 func_append ()
16268 {
16269   eval "$1=\$$1\$2"
16270 }
16271
16272 _LT_EOF
16273     ;;
16274   esac
16275
16276
16277   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16278     || (rm -f "$cfgfile"; exit 1)
16279
16280   mv -f "$cfgfile" "$ofile" ||
16281     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16282   chmod +x "$ofile"
16283
16284  ;;
16285     "default-1":C)
16286     for ac_file in $CONFIG_FILES; do
16287       # Support "outfile[:infile[:infile...]]"
16288       case "$ac_file" in
16289         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16290       esac
16291       # PO directories have a Makefile.in generated from Makefile.in.in.
16292       case "$ac_file" in */Makefile.in)
16293         # Adjust a relative srcdir.
16294         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16295         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16296         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16297         # In autoconf-2.13 it is called $ac_given_srcdir.
16298         # In autoconf-2.50 it is called $srcdir.
16299         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16300         case "$ac_given_srcdir" in
16301           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16302           /*) top_srcdir="$ac_given_srcdir" ;;
16303           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16304         esac
16305         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16306           rm -f "$ac_dir/POTFILES"
16307           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16308           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16309           POMAKEFILEDEPS="POTFILES.in"
16310           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16311           # on $ac_dir but don't depend on user-specified configuration
16312           # parameters.
16313           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16314             # The LINGUAS file contains the set of available languages.
16315             if test -n "$OBSOLETE_ALL_LINGUAS"; then
16316               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16317             fi
16318             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16319             # Hide the ALL_LINGUAS assigment from automake.
16320             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16321             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16322           else
16323             # The set of available languages was given in configure.in.
16324             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16325           fi
16326           case "$ac_given_srcdir" in
16327             .) srcdirpre= ;;
16328             *) srcdirpre='$(srcdir)/' ;;
16329           esac
16330           POFILES=
16331           GMOFILES=
16332           UPDATEPOFILES=
16333           DUMMYPOFILES=
16334           for lang in $ALL_LINGUAS; do
16335             POFILES="$POFILES $srcdirpre$lang.po"
16336             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16337             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16338             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16339           done
16340           # CATALOGS depends on both $ac_dir and the user's LINGUAS
16341           # environment variable.
16342           INST_LINGUAS=
16343           if test -n "$ALL_LINGUAS"; then
16344             for presentlang in $ALL_LINGUAS; do
16345               useit=no
16346               if test "%UNSET%" != "$LINGUAS"; then
16347                 desiredlanguages="$LINGUAS"
16348               else
16349                 desiredlanguages="$ALL_LINGUAS"
16350               fi
16351               for desiredlang in $desiredlanguages; do
16352                 # Use the presentlang catalog if desiredlang is
16353                 #   a. equal to presentlang, or
16354                 #   b. a variant of presentlang (because in this case,
16355                 #      presentlang can be used as a fallback for messages
16356                 #      which are not translated in the desiredlang catalog).
16357                 case "$desiredlang" in
16358                   "$presentlang"*) useit=yes;;
16359                 esac
16360               done
16361               if test $useit = yes; then
16362                 INST_LINGUAS="$INST_LINGUAS $presentlang"
16363               fi
16364             done
16365           fi
16366           CATALOGS=
16367           if test -n "$INST_LINGUAS"; then
16368             for lang in $INST_LINGUAS; do
16369               CATALOGS="$CATALOGS $lang.gmo"
16370             done
16371           fi
16372           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16373           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16374           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16375             if test -f "$f"; then
16376               case "$f" in
16377                 *.orig | *.bak | *~) ;;
16378                 *) cat "$f" >> "$ac_dir/Makefile" ;;
16379               esac
16380             fi
16381           done
16382         fi
16383         ;;
16384       esac
16385     done ;;
16386     "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
16387  echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16388  echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16389  echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16390  echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16391  if test "x$cgen_cpu_prefix" != x ; then
16392    echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16393  fi ;;
16394
16395   esac
16396 done # for ac_tag
16397
16398
16399 as_fn_exit 0
16400 _ACEOF
16401 ac_clean_files=$ac_clean_files_save
16402
16403 test $ac_write_fail = 0 ||
16404   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16405
16406
16407 # configure is writing to config.log, and then calls config.status.
16408 # config.status does its own redirection, appending to config.log.
16409 # Unfortunately, on DOS this fails, as config.log is still kept open
16410 # by configure, so config.status won't be able to write to it; its
16411 # output is simply discarded.  So we exec the FD to /dev/null,
16412 # effectively closing config.log, so it can be properly (re)opened and
16413 # appended to by config.status.  When coming back to configure, we
16414 # need to make the FD available again.
16415 if test "$no_create" != yes; then
16416   ac_cs_success=:
16417   ac_config_status_args=
16418   test "$silent" = yes &&
16419     ac_config_status_args="$ac_config_status_args --quiet"
16420   exec 5>/dev/null
16421   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16422   exec 5>>config.log
16423   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16424   # would make configure fail if this is the last instruction.
16425   $ac_cs_success || as_fn_exit $?
16426 fi
16427 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16428   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16429 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16430 fi
16431