enable -Wwrite-strings for gas
[external/binutils.git] / opcodes / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for opcodes 2.26.51.
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
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='opcodes'
558 PACKAGE_TARNAME='opcodes'
559 PACKAGE_VERSION='2.26.51'
560 PACKAGE_STRING='opcodes 2.26.51'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="z8k-dis.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 BFD_MACHINES
606 archdefs
607 SHARED_DEPENDENCIES
608 SHARED_LIBADD
609 SHARED_LDFLAGS
610 BUILD_LIB_DEPS
611 BUILD_LIBS
612 LIBM
613 cgendir
614 CGEN_MAINT_FALSE
615 CGEN_MAINT_TRUE
616 HDEFINES
617 EXEEXT_FOR_BUILD
618 CC_FOR_BUILD
619 MSGMERGE
620 MSGFMT
621 MKINSTALLDIRS
622 CATOBJEXT
623 GENCAT
624 INSTOBJEXT
625 DATADIRNAME
626 CATALOGS
627 POSUB
628 GMSGFMT
629 XGETTEXT
630 INCINTL
631 LIBINTL_DEP
632 LIBINTL
633 USE_NLS
634 bfdincludedir
635 bfdlibdir
636 target_noncanonical
637 host_noncanonical
638 INSTALL_LIBBFD_FALSE
639 INSTALL_LIBBFD_TRUE
640 MAINT
641 MAINTAINER_MODE_FALSE
642 MAINTAINER_MODE_TRUE
643 NO_WMISSING_FIELD_INITIALIZERS
644 WARN_WRITE_STRINGS
645 NO_WERROR
646 WARN_CFLAGS
647 OTOOL64
648 OTOOL
649 LIPO
650 NMEDIT
651 DSYMUTIL
652 OBJDUMP
653 LN_S
654 NM
655 ac_ct_DUMPBIN
656 DUMPBIN
657 LD
658 FGREP
659 SED
660 LIBTOOL
661 RANLIB
662 AR
663 EGREP
664 GREP
665 CPP
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 AMDEPBACKSLASH
670 AMDEP_FALSE
671 AMDEP_TRUE
672 am__quote
673 am__include
674 DEPDIR
675 am__untar
676 am__tar
677 AMTAR
678 am__leading_dot
679 SET_MAKE
680 AWK
681 mkdir_p
682 MKDIR_P
683 INSTALL_STRIP_PROGRAM
684 STRIP
685 install_sh
686 MAKEINFO
687 AUTOHEADER
688 AUTOMAKE
689 AUTOCONF
690 ACLOCAL
691 VERSION
692 PACKAGE
693 CYGPATH_W
694 am__isrc
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
704 CC
705 target_os
706 target_vendor
707 target_cpu
708 target
709 host_os
710 host_vendor
711 host_cpu
712 host
713 build_os
714 build_vendor
715 build_cpu
716 build
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_dependency_tracking
759 enable_shared
760 enable_static
761 with_pic
762 enable_fast_install
763 with_gnu_ld
764 enable_libtool_lock
765 enable_targets
766 enable_werror
767 enable_build_warnings
768 enable_maintainer_mode
769 enable_install_libbfd
770 enable_nls
771 enable_cgen_maint
772 '
773       ac_precious_vars='build_alias
774 host_alias
775 target_alias
776 CC
777 CFLAGS
778 LDFLAGS
779 LIBS
780 CPPFLAGS
781 CPP'
782
783
784 # Initialize some variables set by options.
785 ac_init_help=
786 ac_init_version=false
787 ac_unrecognized_opts=
788 ac_unrecognized_sep=
789 # The variables have the same names as the options, with
790 # dashes changed to underlines.
791 cache_file=/dev/null
792 exec_prefix=NONE
793 no_create=
794 no_recursion=
795 prefix=NONE
796 program_prefix=NONE
797 program_suffix=NONE
798 program_transform_name=s,x,x,
799 silent=
800 site=
801 srcdir=
802 verbose=
803 x_includes=NONE
804 x_libraries=NONE
805
806 # Installation directory options.
807 # These are left unexpanded so users can "make install exec_prefix=/foo"
808 # and all the variables that are supposed to be based on exec_prefix
809 # by default will actually change.
810 # Use braces instead of parens because sh, perl, etc. also accept them.
811 # (The list follows the same order as the GNU Coding Standards.)
812 bindir='${exec_prefix}/bin'
813 sbindir='${exec_prefix}/sbin'
814 libexecdir='${exec_prefix}/libexec'
815 datarootdir='${prefix}/share'
816 datadir='${datarootdir}'
817 sysconfdir='${prefix}/etc'
818 sharedstatedir='${prefix}/com'
819 localstatedir='${prefix}/var'
820 includedir='${prefix}/include'
821 oldincludedir='/usr/include'
822 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
823 infodir='${datarootdir}/info'
824 htmldir='${docdir}'
825 dvidir='${docdir}'
826 pdfdir='${docdir}'
827 psdir='${docdir}'
828 libdir='${exec_prefix}/lib'
829 localedir='${datarootdir}/locale'
830 mandir='${datarootdir}/man'
831
832 ac_prev=
833 ac_dashdash=
834 for ac_option
835 do
836   # If the previous option needs an argument, assign it.
837   if test -n "$ac_prev"; then
838     eval $ac_prev=\$ac_option
839     ac_prev=
840     continue
841   fi
842
843   case $ac_option in
844   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845   *)    ac_optarg=yes ;;
846   esac
847
848   # Accept the important Cygnus configure options, so we can diagnose typos.
849
850   case $ac_dashdash$ac_option in
851   --)
852     ac_dashdash=yes ;;
853
854   -bindir | --bindir | --bindi | --bind | --bin | --bi)
855     ac_prev=bindir ;;
856   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857     bindir=$ac_optarg ;;
858
859   -build | --build | --buil | --bui | --bu)
860     ac_prev=build_alias ;;
861   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862     build_alias=$ac_optarg ;;
863
864   -cache-file | --cache-file | --cache-fil | --cache-fi \
865   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866     ac_prev=cache_file ;;
867   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869     cache_file=$ac_optarg ;;
870
871   --config-cache | -C)
872     cache_file=config.cache ;;
873
874   -datadir | --datadir | --datadi | --datad)
875     ac_prev=datadir ;;
876   -datadir=* | --datadir=* | --datadi=* | --datad=*)
877     datadir=$ac_optarg ;;
878
879   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880   | --dataroo | --dataro | --datar)
881     ac_prev=datarootdir ;;
882   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884     datarootdir=$ac_optarg ;;
885
886   -disable-* | --disable-*)
887     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888     # Reject names that are not valid shell variable names.
889     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890       as_fn_error "invalid feature name: $ac_useropt"
891     ac_useropt_orig=$ac_useropt
892     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893     case $ac_user_opts in
894       *"
895 "enable_$ac_useropt"
896 "*) ;;
897       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898          ac_unrecognized_sep=', ';;
899     esac
900     eval enable_$ac_useropt=no ;;
901
902   -docdir | --docdir | --docdi | --doc | --do)
903     ac_prev=docdir ;;
904   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905     docdir=$ac_optarg ;;
906
907   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908     ac_prev=dvidir ;;
909   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910     dvidir=$ac_optarg ;;
911
912   -enable-* | --enable-*)
913     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914     # Reject names that are not valid shell variable names.
915     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916       as_fn_error "invalid feature name: $ac_useropt"
917     ac_useropt_orig=$ac_useropt
918     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919     case $ac_user_opts in
920       *"
921 "enable_$ac_useropt"
922 "*) ;;
923       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924          ac_unrecognized_sep=', ';;
925     esac
926     eval enable_$ac_useropt=\$ac_optarg ;;
927
928   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930   | --exec | --exe | --ex)
931     ac_prev=exec_prefix ;;
932   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934   | --exec=* | --exe=* | --ex=*)
935     exec_prefix=$ac_optarg ;;
936
937   -gas | --gas | --ga | --g)
938     # Obsolete; use --with-gas.
939     with_gas=yes ;;
940
941   -help | --help | --hel | --he | -h)
942     ac_init_help=long ;;
943   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944     ac_init_help=recursive ;;
945   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946     ac_init_help=short ;;
947
948   -host | --host | --hos | --ho)
949     ac_prev=host_alias ;;
950   -host=* | --host=* | --hos=* | --ho=*)
951     host_alias=$ac_optarg ;;
952
953   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954     ac_prev=htmldir ;;
955   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956   | --ht=*)
957     htmldir=$ac_optarg ;;
958
959   -includedir | --includedir | --includedi | --included | --include \
960   | --includ | --inclu | --incl | --inc)
961     ac_prev=includedir ;;
962   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963   | --includ=* | --inclu=* | --incl=* | --inc=*)
964     includedir=$ac_optarg ;;
965
966   -infodir | --infodir | --infodi | --infod | --info | --inf)
967     ac_prev=infodir ;;
968   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969     infodir=$ac_optarg ;;
970
971   -libdir | --libdir | --libdi | --libd)
972     ac_prev=libdir ;;
973   -libdir=* | --libdir=* | --libdi=* | --libd=*)
974     libdir=$ac_optarg ;;
975
976   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977   | --libexe | --libex | --libe)
978     ac_prev=libexecdir ;;
979   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980   | --libexe=* | --libex=* | --libe=*)
981     libexecdir=$ac_optarg ;;
982
983   -localedir | --localedir | --localedi | --localed | --locale)
984     ac_prev=localedir ;;
985   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986     localedir=$ac_optarg ;;
987
988   -localstatedir | --localstatedir | --localstatedi | --localstated \
989   | --localstate | --localstat | --localsta | --localst | --locals)
990     ac_prev=localstatedir ;;
991   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993     localstatedir=$ac_optarg ;;
994
995   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996     ac_prev=mandir ;;
997   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998     mandir=$ac_optarg ;;
999
1000   -nfp | --nfp | --nf)
1001     # Obsolete; use --without-fp.
1002     with_fp=no ;;
1003
1004   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005   | --no-cr | --no-c | -n)
1006     no_create=yes ;;
1007
1008   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010     no_recursion=yes ;;
1011
1012   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014   | --oldin | --oldi | --old | --ol | --o)
1015     ac_prev=oldincludedir ;;
1016   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019     oldincludedir=$ac_optarg ;;
1020
1021   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022     ac_prev=prefix ;;
1023   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024     prefix=$ac_optarg ;;
1025
1026   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027   | --program-pre | --program-pr | --program-p)
1028     ac_prev=program_prefix ;;
1029   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031     program_prefix=$ac_optarg ;;
1032
1033   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034   | --program-suf | --program-su | --program-s)
1035     ac_prev=program_suffix ;;
1036   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038     program_suffix=$ac_optarg ;;
1039
1040   -program-transform-name | --program-transform-name \
1041   | --program-transform-nam | --program-transform-na \
1042   | --program-transform-n | --program-transform- \
1043   | --program-transform | --program-transfor \
1044   | --program-transfo | --program-transf \
1045   | --program-trans | --program-tran \
1046   | --progr-tra | --program-tr | --program-t)
1047     ac_prev=program_transform_name ;;
1048   -program-transform-name=* | --program-transform-name=* \
1049   | --program-transform-nam=* | --program-transform-na=* \
1050   | --program-transform-n=* | --program-transform-=* \
1051   | --program-transform=* | --program-transfor=* \
1052   | --program-transfo=* | --program-transf=* \
1053   | --program-trans=* | --program-tran=* \
1054   | --progr-tra=* | --program-tr=* | --program-t=*)
1055     program_transform_name=$ac_optarg ;;
1056
1057   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058     ac_prev=pdfdir ;;
1059   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060     pdfdir=$ac_optarg ;;
1061
1062   -psdir | --psdir | --psdi | --psd | --ps)
1063     ac_prev=psdir ;;
1064   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065     psdir=$ac_optarg ;;
1066
1067   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068   | -silent | --silent | --silen | --sile | --sil)
1069     silent=yes ;;
1070
1071   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072     ac_prev=sbindir ;;
1073   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074   | --sbi=* | --sb=*)
1075     sbindir=$ac_optarg ;;
1076
1077   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079   | --sharedst | --shareds | --shared | --share | --shar \
1080   | --sha | --sh)
1081     ac_prev=sharedstatedir ;;
1082   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085   | --sha=* | --sh=*)
1086     sharedstatedir=$ac_optarg ;;
1087
1088   -site | --site | --sit)
1089     ac_prev=site ;;
1090   -site=* | --site=* | --sit=*)
1091     site=$ac_optarg ;;
1092
1093   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094     ac_prev=srcdir ;;
1095   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096     srcdir=$ac_optarg ;;
1097
1098   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099   | --syscon | --sysco | --sysc | --sys | --sy)
1100     ac_prev=sysconfdir ;;
1101   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103     sysconfdir=$ac_optarg ;;
1104
1105   -target | --target | --targe | --targ | --tar | --ta | --t)
1106     ac_prev=target_alias ;;
1107   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108     target_alias=$ac_optarg ;;
1109
1110   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111     verbose=yes ;;
1112
1113   -version | --version | --versio | --versi | --vers | -V)
1114     ac_init_version=: ;;
1115
1116   -with-* | --with-*)
1117     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118     # Reject names that are not valid shell variable names.
1119     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120       as_fn_error "invalid package name: $ac_useropt"
1121     ac_useropt_orig=$ac_useropt
1122     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123     case $ac_user_opts in
1124       *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128          ac_unrecognized_sep=', ';;
1129     esac
1130     eval with_$ac_useropt=\$ac_optarg ;;
1131
1132   -without-* | --without-*)
1133     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134     # Reject names that are not valid shell variable names.
1135     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136       as_fn_error "invalid package name: $ac_useropt"
1137     ac_useropt_orig=$ac_useropt
1138     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139     case $ac_user_opts in
1140       *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144          ac_unrecognized_sep=', ';;
1145     esac
1146     eval with_$ac_useropt=no ;;
1147
1148   --x)
1149     # Obsolete; use --with-x.
1150     with_x=yes ;;
1151
1152   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153   | --x-incl | --x-inc | --x-in | --x-i)
1154     ac_prev=x_includes ;;
1155   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157     x_includes=$ac_optarg ;;
1158
1159   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161     ac_prev=x_libraries ;;
1162   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164     x_libraries=$ac_optarg ;;
1165
1166   -*) as_fn_error "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information."
1168     ;;
1169
1170   *=*)
1171     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172     # Reject names that are not valid shell variable names.
1173     case $ac_envvar in #(
1174       '' | [0-9]* | *[!_$as_cr_alnum]* )
1175       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1176     esac
1177     eval $ac_envvar=\$ac_optarg
1178     export $ac_envvar ;;
1179
1180   *)
1181     # FIXME: should be removed in autoconf 3.0.
1182     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1186     ;;
1187
1188   esac
1189 done
1190
1191 if test -n "$ac_prev"; then
1192   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193   as_fn_error "missing argument to $ac_option"
1194 fi
1195
1196 if test -n "$ac_unrecognized_opts"; then
1197   case $enable_option_checking in
1198     no) ;;
1199     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1200     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201   esac
1202 fi
1203
1204 # Check all directory arguments for consistency.
1205 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206                 datadir sysconfdir sharedstatedir localstatedir includedir \
1207                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208                 libdir localedir mandir
1209 do
1210   eval ac_val=\$$ac_var
1211   # Remove trailing slashes.
1212   case $ac_val in
1213     */ )
1214       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215       eval $ac_var=\$ac_val;;
1216   esac
1217   # Be sure to have absolute directory names.
1218   case $ac_val in
1219     [\\/$]* | ?:[\\/]* )  continue;;
1220     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221   esac
1222   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1223 done
1224
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1228 build=$build_alias
1229 host=$host_alias
1230 target=$target_alias
1231
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234   if test "x$build_alias" = x; then
1235     cross_compiling=maybe
1236     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1237     If a cross compiler is detected then cross compile mode will be used." >&2
1238   elif test "x$build_alias" != "x$host_alias"; then
1239     cross_compiling=yes
1240   fi
1241 fi
1242
1243 ac_tool_prefix=
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246 test "$silent" = yes && exec 6>/dev/null
1247
1248
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252   as_fn_error "working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254   as_fn_error "pwd does not report name of working directory"
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259   ac_srcdir_defaulted=yes
1260   # Try the directory containing this script, then the parent directory.
1261   ac_confdir=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263          X"$as_myself" : 'X\(//\)[^/]' \| \
1264          X"$as_myself" : 'X\(//\)$' \| \
1265          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)[^/].*/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)$/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\).*/{
1280             s//\1/
1281             q
1282           }
1283           s/.*/./; q'`
1284   srcdir=$ac_confdir
1285   if test ! -r "$srcdir/$ac_unique_file"; then
1286     srcdir=..
1287   fi
1288 else
1289   ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1294 fi
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1298         pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301   srcdir=.
1302 fi
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311   eval ac_env_${ac_var}_value=\$${ac_var}
1312   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1315
1316 #
1317 # Report the --help message.
1318 #
1319 if test "$ac_init_help" = "long"; then
1320   # Omit some internal or obsolete options to make the list less imposing.
1321   # This message is too long to be a string in the A/UX 3.1 sh.
1322   cat <<_ACEOF
1323 \`configure' configures opcodes 2.26.51 to adapt to many kinds of systems.
1324
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE.  See below for descriptions of some of the useful variables.
1329
1330 Defaults for the options are specified in brackets.
1331
1332 Configuration:
1333   -h, --help              display this help and exit
1334       --help=short        display options specific to this package
1335       --help=recursive    display the short help of all the included packages
1336   -V, --version           display version information and exit
1337   -q, --quiet, --silent   do not print \`checking...' messages
1338       --cache-file=FILE   cache test results in FILE [disabled]
1339   -C, --config-cache      alias for \`--cache-file=config.cache'
1340   -n, --no-create         do not create output files
1341       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1342
1343 Installation directories:
1344   --prefix=PREFIX         install architecture-independent files in PREFIX
1345                           [$ac_default_prefix]
1346   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1347                           [PREFIX]
1348
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1353
1354 For better control, use the options below.
1355
1356 Fine tuning of the installation directories:
1357   --bindir=DIR            user executables [EPREFIX/bin]
1358   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1359   --libexecdir=DIR        program executables [EPREFIX/libexec]
1360   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1361   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1362   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1363   --libdir=DIR            object code libraries [EPREFIX/lib]
1364   --includedir=DIR        C header files [PREFIX/include]
1365   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1366   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1367   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1368   --infodir=DIR           info documentation [DATAROOTDIR/info]
1369   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1370   --mandir=DIR            man documentation [DATAROOTDIR/man]
1371   --docdir=DIR            documentation root [DATAROOTDIR/doc/opcodes]
1372   --htmldir=DIR           html documentation [DOCDIR]
1373   --dvidir=DIR            dvi documentation [DOCDIR]
1374   --pdfdir=DIR            pdf documentation [DOCDIR]
1375   --psdir=DIR             ps documentation [DOCDIR]
1376 _ACEOF
1377
1378   cat <<\_ACEOF
1379
1380 Program names:
1381   --program-prefix=PREFIX            prepend PREFIX to installed program names
1382   --program-suffix=SUFFIX            append SUFFIX to installed program names
1383   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1384
1385 System types:
1386   --build=BUILD     configure for building on BUILD [guessed]
1387   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1388   --target=TARGET   configure for building compilers for TARGET [HOST]
1389 _ACEOF
1390 fi
1391
1392 if test -n "$ac_init_help"; then
1393   case $ac_init_help in
1394      short | recursive ) echo "Configuration of opcodes 2.26.51:";;
1395    esac
1396   cat <<\_ACEOF
1397
1398 Optional Features:
1399   --disable-option-checking  ignore unrecognized --enable/--with options
1400   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1401   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1402   --disable-dependency-tracking  speeds up one-time build
1403   --enable-dependency-tracking   do not reject slow dependency extractors
1404   --enable-shared[=PKGS]  build shared libraries [default=no]
1405   --enable-static[=PKGS]  build static libraries [default=yes]
1406   --enable-fast-install[=PKGS]
1407                           optimize for fast installation [default=yes]
1408   --disable-libtool-lock  avoid locking (might break parallel builds)
1409   --enable-targets        alternative target configurations
1410   --enable-werror         treat compile warnings as errors
1411   --enable-build-warnings enable build-time compiler warnings
1412   --enable-maintainer-mode  enable make rules and dependencies not useful
1413                           (and sometimes confusing) to the casual installer
1414   --enable-install-libbfd controls installation of libbfd and related headers
1415   --disable-nls           do not use Native Language Support
1416   --enable-cgen-maint=dir    build cgen generated files
1417
1418 Optional Packages:
1419   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1420   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1421   --with-pic              try to use only PIC/non-PIC objects [default=use
1422                           both]
1423   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1424
1425 Some influential environment variables:
1426   CC          C compiler command
1427   CFLAGS      C compiler flags
1428   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1429               nonstandard directory <lib dir>
1430   LIBS        libraries to pass to the linker, e.g. -l<library>
1431   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1432               you have headers in a nonstandard directory <include dir>
1433   CPP         C preprocessor
1434
1435 Use these variables to override the choices made by `configure' or to help
1436 it to find libraries and programs with nonstandard names/locations.
1437
1438 Report bugs to the package provider.
1439 _ACEOF
1440 ac_status=$?
1441 fi
1442
1443 if test "$ac_init_help" = "recursive"; then
1444   # If there are subdirs, report their specific --help.
1445   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446     test -d "$ac_dir" ||
1447       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448       continue
1449     ac_builddir=.
1450
1451 case "$ac_dir" in
1452 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *)
1454   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455   # A ".." for each directory in $ac_dir_suffix.
1456   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457   case $ac_top_builddir_sub in
1458   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460   esac ;;
1461 esac
1462 ac_abs_top_builddir=$ac_pwd
1463 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464 # for backward compatibility:
1465 ac_top_builddir=$ac_top_build_prefix
1466
1467 case $srcdir in
1468   .)  # We are building in place.
1469     ac_srcdir=.
1470     ac_top_srcdir=$ac_top_builddir_sub
1471     ac_abs_top_srcdir=$ac_pwd ;;
1472   [\\/]* | ?:[\\/]* )  # Absolute name.
1473     ac_srcdir=$srcdir$ac_dir_suffix;
1474     ac_top_srcdir=$srcdir
1475     ac_abs_top_srcdir=$srcdir ;;
1476   *) # Relative name.
1477     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478     ac_top_srcdir=$ac_top_build_prefix$srcdir
1479     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480 esac
1481 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482
1483     cd "$ac_dir" || { ac_status=$?; continue; }
1484     # Check for guested configure.
1485     if test -f "$ac_srcdir/configure.gnu"; then
1486       echo &&
1487       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488     elif test -f "$ac_srcdir/configure"; then
1489       echo &&
1490       $SHELL "$ac_srcdir/configure" --help=recursive
1491     else
1492       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493     fi || ac_status=$?
1494     cd "$ac_pwd" || { ac_status=$?; break; }
1495   done
1496 fi
1497
1498 test -n "$ac_init_help" && exit $ac_status
1499 if $ac_init_version; then
1500   cat <<\_ACEOF
1501 opcodes configure 2.26.51
1502 generated by GNU Autoconf 2.64
1503
1504 Copyright (C) 2009 Free Software Foundation, Inc.
1505 This configure script is free software; the Free Software Foundation
1506 gives unlimited permission to copy, distribute and modify it.
1507 _ACEOF
1508   exit
1509 fi
1510
1511 ## ------------------------ ##
1512 ## Autoconf initialization. ##
1513 ## ------------------------ ##
1514
1515 # ac_fn_c_try_compile LINENO
1516 # --------------------------
1517 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_compile ()
1519 {
1520   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521   rm -f conftest.$ac_objext
1522   if { { ac_try="$ac_compile"
1523 case "(($ac_try" in
1524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525   *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529   (eval "$ac_compile") 2>conftest.err
1530   ac_status=$?
1531   if test -s conftest.err; then
1532     grep -v '^ *+' conftest.err >conftest.er1
1533     cat conftest.er1 >&5
1534     mv -f conftest.er1 conftest.err
1535   fi
1536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537   test $ac_status = 0; } && {
1538          test -z "$ac_c_werror_flag" ||
1539          test ! -s conftest.err
1540        } && test -s conftest.$ac_objext; then :
1541   ac_retval=0
1542 else
1543   $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1545
1546         ac_retval=1
1547 fi
1548   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1549   return $ac_retval
1550
1551 } # ac_fn_c_try_compile
1552
1553 # ac_fn_c_try_link LINENO
1554 # -----------------------
1555 # Try to link conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_link ()
1557 {
1558   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559   rm -f conftest.$ac_objext conftest$ac_exeext
1560   if { { ac_try="$ac_link"
1561 case "(($ac_try" in
1562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563   *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567   (eval "$ac_link") 2>conftest.err
1568   ac_status=$?
1569   if test -s conftest.err; then
1570     grep -v '^ *+' conftest.err >conftest.er1
1571     cat conftest.er1 >&5
1572     mv -f conftest.er1 conftest.err
1573   fi
1574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575   test $ac_status = 0; } && {
1576          test -z "$ac_c_werror_flag" ||
1577          test ! -s conftest.err
1578        } && test -s conftest$ac_exeext && {
1579          test "$cross_compiling" = yes ||
1580          $as_test_x conftest$ac_exeext
1581        }; then :
1582   ac_retval=0
1583 else
1584   $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1586
1587         ac_retval=1
1588 fi
1589   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1590   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1591   # interfere with the next link command; also delete a directory that is
1592   # left behind by Apple's compiler.  We do this before executing the actions.
1593   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1594   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1595   return $ac_retval
1596
1597 } # ac_fn_c_try_link
1598
1599 # ac_fn_c_try_cpp LINENO
1600 # ----------------------
1601 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_c_try_cpp ()
1603 {
1604   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605   if { { ac_try="$ac_cpp conftest.$ac_ext"
1606 case "(($ac_try" in
1607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608   *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1613   ac_status=$?
1614   if test -s conftest.err; then
1615     grep -v '^ *+' conftest.err >conftest.er1
1616     cat conftest.er1 >&5
1617     mv -f conftest.er1 conftest.err
1618   fi
1619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620   test $ac_status = 0; } >/dev/null && {
1621          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1622          test ! -s conftest.err
1623        }; then :
1624   ac_retval=0
1625 else
1626   $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629     ac_retval=1
1630 fi
1631   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1632   return $ac_retval
1633
1634 } # ac_fn_c_try_cpp
1635
1636 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1637 # -------------------------------------------------------
1638 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1639 # the include files in INCLUDES and setting the cache variable VAR
1640 # accordingly.
1641 ac_fn_c_check_header_mongrel ()
1642 {
1643   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646 $as_echo_n "checking for $2... " >&6; }
1647 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1648   $as_echo_n "(cached) " >&6
1649 fi
1650 eval ac_res=\$$3
1651                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652 $as_echo "$ac_res" >&6; }
1653 else
1654   # Is the header compilable?
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1656 $as_echo_n "checking $2 usability... " >&6; }
1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658 /* end confdefs.h.  */
1659 $4
1660 #include <$2>
1661 _ACEOF
1662 if ac_fn_c_try_compile "$LINENO"; then :
1663   ac_header_compiler=yes
1664 else
1665   ac_header_compiler=no
1666 fi
1667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1669 $as_echo "$ac_header_compiler" >&6; }
1670
1671 # Is the header present?
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1673 $as_echo_n "checking $2 presence... " >&6; }
1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675 /* end confdefs.h.  */
1676 #include <$2>
1677 _ACEOF
1678 if ac_fn_c_try_cpp "$LINENO"; then :
1679   ac_header_preproc=yes
1680 else
1681   ac_header_preproc=no
1682 fi
1683 rm -f conftest.err conftest.$ac_ext
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1685 $as_echo "$ac_header_preproc" >&6; }
1686
1687 # So?  What about this header?
1688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1689   yes:no: )
1690     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1691 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1692     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1693 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1694     ;;
1695   no:yes:* )
1696     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1697 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1698     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1699 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1700     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1701 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1702     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1703 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1704     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1705 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1706     ;;
1707 esac
1708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1711   $as_echo_n "(cached) " >&6
1712 else
1713   eval "$3=\$ac_header_compiler"
1714 fi
1715 eval ac_res=\$$3
1716                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1718 fi
1719   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720
1721 } # ac_fn_c_check_header_mongrel
1722
1723 # ac_fn_c_try_run LINENO
1724 # ----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1726 # that executables *can* be run.
1727 ac_fn_c_try_run ()
1728 {
1729   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730   if { { ac_try="$ac_link"
1731 case "(($ac_try" in
1732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733   *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737   (eval "$ac_link") 2>&5
1738   ac_status=$?
1739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1741   { { case "(($ac_try" in
1742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743   *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747   (eval "$ac_try") 2>&5
1748   ac_status=$?
1749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750   test $ac_status = 0; }; }; then :
1751   ac_retval=0
1752 else
1753   $as_echo "$as_me: program exited with status $ac_status" >&5
1754        $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1756
1757        ac_retval=$ac_status
1758 fi
1759   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761   return $ac_retval
1762
1763 } # ac_fn_c_try_run
1764
1765 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1766 # -------------------------------------------------------
1767 # Tests whether HEADER exists and can be compiled using the include files in
1768 # INCLUDES, setting the cache variable VAR accordingly.
1769 ac_fn_c_check_header_compile ()
1770 {
1771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1775   $as_echo_n "(cached) " >&6
1776 else
1777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h.  */
1779 $4
1780 #include <$2>
1781 _ACEOF
1782 if ac_fn_c_try_compile "$LINENO"; then :
1783   eval "$3=yes"
1784 else
1785   eval "$3=no"
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 fi
1789 eval ac_res=\$$3
1790                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1792   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793
1794 } # ac_fn_c_check_header_compile
1795
1796 # ac_fn_c_check_func LINENO FUNC VAR
1797 # ----------------------------------
1798 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1799 ac_fn_c_check_func ()
1800 {
1801   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1805   $as_echo_n "(cached) " >&6
1806 else
1807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h.  */
1809 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1811 #define $2 innocuous_$2
1812
1813 /* System header to define __stub macros and hopefully few prototypes,
1814     which can conflict with char $2 (); below.
1815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1816     <limits.h> exists even on freestanding compilers.  */
1817
1818 #ifdef __STDC__
1819 # include <limits.h>
1820 #else
1821 # include <assert.h>
1822 #endif
1823
1824 #undef $2
1825
1826 /* Override any GCC internal prototype to avoid an error.
1827    Use char because int might match the return type of a GCC
1828    builtin and then its argument prototype would still apply.  */
1829 #ifdef __cplusplus
1830 extern "C"
1831 #endif
1832 char $2 ();
1833 /* The GNU C library defines this for functions which it implements
1834     to always fail with ENOSYS.  Some functions are actually named
1835     something starting with __ and the normal name is an alias.  */
1836 #if defined __stub_$2 || defined __stub___$2
1837 choke me
1838 #endif
1839
1840 int
1841 main ()
1842 {
1843 return $2 ();
1844   ;
1845   return 0;
1846 }
1847 _ACEOF
1848 if ac_fn_c_try_link "$LINENO"; then :
1849   eval "$3=yes"
1850 else
1851   eval "$3=no"
1852 fi
1853 rm -f core conftest.err conftest.$ac_objext \
1854     conftest$ac_exeext conftest.$ac_ext
1855 fi
1856 eval ac_res=\$$3
1857                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1860
1861 } # ac_fn_c_check_func
1862
1863 # ac_fn_c_check_decl LINENO SYMBOL VAR
1864 # ------------------------------------
1865 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1866 ac_fn_c_check_decl ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   as_decl_name=`echo $2|sed 's/ *(.*//'`
1870   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1872 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1873 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1874   $as_echo_n "(cached) " >&6
1875 else
1876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h.  */
1878 $4
1879 int
1880 main ()
1881 {
1882 #ifndef $as_decl_name
1883 #ifdef __cplusplus
1884   (void) $as_decl_use;
1885 #else
1886   (void) $as_decl_name;
1887 #endif
1888 #endif
1889
1890   ;
1891   return 0;
1892 }
1893 _ACEOF
1894 if ac_fn_c_try_compile "$LINENO"; then :
1895   eval "$3=yes"
1896 else
1897   eval "$3=no"
1898 fi
1899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900 fi
1901 eval ac_res=\$$3
1902                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905
1906 } # ac_fn_c_check_decl
1907 cat >config.log <<_ACEOF
1908 This file contains any messages produced by compilers while
1909 running configure, to aid debugging if configure makes a mistake.
1910
1911 It was created by opcodes $as_me 2.26.51, which was
1912 generated by GNU Autoconf 2.64.  Invocation command line was
1913
1914   $ $0 $@
1915
1916 _ACEOF
1917 exec 5>>config.log
1918 {
1919 cat <<_ASUNAME
1920 ## --------- ##
1921 ## Platform. ##
1922 ## --------- ##
1923
1924 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1925 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1926 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1927 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1928 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1929
1930 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1931 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1932
1933 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1934 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1935 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1936 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1937 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1938 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1939 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1940
1941 _ASUNAME
1942
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946   IFS=$as_save_IFS
1947   test -z "$as_dir" && as_dir=.
1948     $as_echo "PATH: $as_dir"
1949   done
1950 IFS=$as_save_IFS
1951
1952 } >&5
1953
1954 cat >&5 <<_ACEOF
1955
1956
1957 ## ----------- ##
1958 ## Core tests. ##
1959 ## ----------- ##
1960
1961 _ACEOF
1962
1963
1964 # Keep a trace of the command line.
1965 # Strip out --no-create and --no-recursion so they do not pile up.
1966 # Strip out --silent because we don't want to record it for future runs.
1967 # Also quote any args containing shell meta-characters.
1968 # Make two passes to allow for proper duplicate-argument suppression.
1969 ac_configure_args=
1970 ac_configure_args0=
1971 ac_configure_args1=
1972 ac_must_keep_next=false
1973 for ac_pass in 1 2
1974 do
1975   for ac_arg
1976   do
1977     case $ac_arg in
1978     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1979     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1980     | -silent | --silent | --silen | --sile | --sil)
1981       continue ;;
1982     *\'*)
1983       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1984     esac
1985     case $ac_pass in
1986     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1987     2)
1988       as_fn_append ac_configure_args1 " '$ac_arg'"
1989       if test $ac_must_keep_next = true; then
1990         ac_must_keep_next=false # Got value, back to normal.
1991       else
1992         case $ac_arg in
1993           *=* | --config-cache | -C | -disable-* | --disable-* \
1994           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1995           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1996           | -with-* | --with-* | -without-* | --without-* | --x)
1997             case "$ac_configure_args0 " in
1998               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1999             esac
2000             ;;
2001           -* ) ac_must_keep_next=true ;;
2002         esac
2003       fi
2004       as_fn_append ac_configure_args " '$ac_arg'"
2005       ;;
2006     esac
2007   done
2008 done
2009 { ac_configure_args0=; unset ac_configure_args0;}
2010 { ac_configure_args1=; unset ac_configure_args1;}
2011
2012 # When interrupted or exit'd, cleanup temporary files, and complete
2013 # config.log.  We remove comments because anyway the quotes in there
2014 # would cause problems or look ugly.
2015 # WARNING: Use '\'' to represent an apostrophe within the trap.
2016 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2017 trap 'exit_status=$?
2018   # Save into config.log some information that might help in debugging.
2019   {
2020     echo
2021
2022     cat <<\_ASBOX
2023 ## ---------------- ##
2024 ## Cache variables. ##
2025 ## ---------------- ##
2026 _ASBOX
2027     echo
2028     # The following way of writing the cache mishandles newlines in values,
2029 (
2030   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2031     eval ac_val=\$$ac_var
2032     case $ac_val in #(
2033     *${as_nl}*)
2034       case $ac_var in #(
2035       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2036 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2037       esac
2038       case $ac_var in #(
2039       _ | IFS | as_nl) ;; #(
2040       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2041       *) { eval $ac_var=; unset $ac_var;} ;;
2042       esac ;;
2043     esac
2044   done
2045   (set) 2>&1 |
2046     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2047     *${as_nl}ac_space=\ *)
2048       sed -n \
2049         "s/'\''/'\''\\\\'\'''\''/g;
2050           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2051       ;; #(
2052     *)
2053       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2054       ;;
2055     esac |
2056     sort
2057 )
2058     echo
2059
2060     cat <<\_ASBOX
2061 ## ----------------- ##
2062 ## Output variables. ##
2063 ## ----------------- ##
2064 _ASBOX
2065     echo
2066     for ac_var in $ac_subst_vars
2067     do
2068       eval ac_val=\$$ac_var
2069       case $ac_val in
2070       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2071       esac
2072       $as_echo "$ac_var='\''$ac_val'\''"
2073     done | sort
2074     echo
2075
2076     if test -n "$ac_subst_files"; then
2077       cat <<\_ASBOX
2078 ## ------------------- ##
2079 ## File substitutions. ##
2080 ## ------------------- ##
2081 _ASBOX
2082       echo
2083       for ac_var in $ac_subst_files
2084       do
2085         eval ac_val=\$$ac_var
2086         case $ac_val in
2087         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2088         esac
2089         $as_echo "$ac_var='\''$ac_val'\''"
2090       done | sort
2091       echo
2092     fi
2093
2094     if test -s confdefs.h; then
2095       cat <<\_ASBOX
2096 ## ----------- ##
2097 ## confdefs.h. ##
2098 ## ----------- ##
2099 _ASBOX
2100       echo
2101       cat confdefs.h
2102       echo
2103     fi
2104     test "$ac_signal" != 0 &&
2105       $as_echo "$as_me: caught signal $ac_signal"
2106     $as_echo "$as_me: exit $exit_status"
2107   } >&5
2108   rm -f core *.core core.conftest.* &&
2109     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2110     exit $exit_status
2111 ' 0
2112 for ac_signal in 1 2 13 15; do
2113   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2114 done
2115 ac_signal=0
2116
2117 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2118 rm -f -r conftest* confdefs.h
2119
2120 $as_echo "/* confdefs.h */" > confdefs.h
2121
2122 # Predefined preprocessor variables.
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_NAME "$PACKAGE_NAME"
2126 _ACEOF
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2130 _ACEOF
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2134 _ACEOF
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_STRING "$PACKAGE_STRING"
2138 _ACEOF
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2142 _ACEOF
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_URL "$PACKAGE_URL"
2146 _ACEOF
2147
2148
2149 # Let the site file select an alternate cache file if it wants to.
2150 # Prefer an explicitly selected file to automatically selected ones.
2151 ac_site_file1=NONE
2152 ac_site_file2=NONE
2153 if test -n "$CONFIG_SITE"; then
2154   ac_site_file1=$CONFIG_SITE
2155 elif test "x$prefix" != xNONE; then
2156   ac_site_file1=$prefix/share/config.site
2157   ac_site_file2=$prefix/etc/config.site
2158 else
2159   ac_site_file1=$ac_default_prefix/share/config.site
2160   ac_site_file2=$ac_default_prefix/etc/config.site
2161 fi
2162 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2163 do
2164   test "x$ac_site_file" = xNONE && continue
2165   if test -r "$ac_site_file"; then
2166     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2167 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2168     sed 's/^/| /' "$ac_site_file" >&5
2169     . "$ac_site_file"
2170   fi
2171 done
2172
2173 if test -r "$cache_file"; then
2174   # Some versions of bash will fail to source /dev/null (special
2175   # files actually), so we avoid doing that.
2176   if test -f "$cache_file"; then
2177     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2178 $as_echo "$as_me: loading cache $cache_file" >&6;}
2179     case $cache_file in
2180       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2181       *)                      . "./$cache_file";;
2182     esac
2183   fi
2184 else
2185   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2186 $as_echo "$as_me: creating cache $cache_file" >&6;}
2187   >$cache_file
2188 fi
2189
2190 # Check that the precious variables saved in the cache have kept the same
2191 # value.
2192 ac_cache_corrupted=false
2193 for ac_var in $ac_precious_vars; do
2194   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2195   eval ac_new_set=\$ac_env_${ac_var}_set
2196   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2197   eval ac_new_val=\$ac_env_${ac_var}_value
2198   case $ac_old_set,$ac_new_set in
2199     set,)
2200       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2201 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2202       ac_cache_corrupted=: ;;
2203     ,set)
2204       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2205 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2206       ac_cache_corrupted=: ;;
2207     ,);;
2208     *)
2209       if test "x$ac_old_val" != "x$ac_new_val"; then
2210         # differences in whitespace do not lead to failure.
2211         ac_old_val_w=`echo x $ac_old_val`
2212         ac_new_val_w=`echo x $ac_new_val`
2213         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2214           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2215 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2216           ac_cache_corrupted=:
2217         else
2218           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2219 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2220           eval $ac_var=\$ac_old_val
2221         fi
2222         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2223 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2224         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2225 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2226       fi;;
2227   esac
2228   # Pass precious variables to config.status.
2229   if test "$ac_new_set" = set; then
2230     case $ac_new_val in
2231     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2232     *) ac_arg=$ac_var=$ac_new_val ;;
2233     esac
2234     case " $ac_configure_args " in
2235       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2236       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2237     esac
2238   fi
2239 done
2240 if $ac_cache_corrupted; then
2241   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2243   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2244 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2245   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2246 fi
2247 ## -------------------- ##
2248 ## Main body of script. ##
2249 ## -------------------- ##
2250
2251 ac_ext=c
2252 ac_cpp='$CPP $CPPFLAGS'
2253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2256
2257
2258
2259
2260
2261
2262
2263 ac_aux_dir=
2264 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2265   for ac_t in install-sh install.sh shtool; do
2266     if test -f "$ac_dir/$ac_t"; then
2267       ac_aux_dir=$ac_dir
2268       ac_install_sh="$ac_aux_dir/$ac_t -c"
2269       break 2
2270     fi
2271   done
2272 done
2273 if test -z "$ac_aux_dir"; then
2274   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2275 fi
2276
2277 # These three variables are undocumented and unsupported,
2278 # and are intended to be withdrawn in a future Autoconf release.
2279 # They can cause serious problems if a builder's source tree is in a directory
2280 # whose full name contains unusual characters.
2281 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2282 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2283 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2284
2285
2286 # Make sure we can run config.sub.
2287 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2288   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2289
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2291 $as_echo_n "checking build system type... " >&6; }
2292 if test "${ac_cv_build+set}" = set; then :
2293   $as_echo_n "(cached) " >&6
2294 else
2295   ac_build_alias=$build_alias
2296 test "x$ac_build_alias" = x &&
2297   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2298 test "x$ac_build_alias" = x &&
2299   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2300 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2301   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2302
2303 fi
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2305 $as_echo "$ac_cv_build" >&6; }
2306 case $ac_cv_build in
2307 *-*-*) ;;
2308 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2309 esac
2310 build=$ac_cv_build
2311 ac_save_IFS=$IFS; IFS='-'
2312 set x $ac_cv_build
2313 shift
2314 build_cpu=$1
2315 build_vendor=$2
2316 shift; shift
2317 # Remember, the first character of IFS is used to create $*,
2318 # except with old shells:
2319 build_os=$*
2320 IFS=$ac_save_IFS
2321 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2322
2323
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2325 $as_echo_n "checking host system type... " >&6; }
2326 if test "${ac_cv_host+set}" = set; then :
2327   $as_echo_n "(cached) " >&6
2328 else
2329   if test "x$host_alias" = x; then
2330   ac_cv_host=$ac_cv_build
2331 else
2332   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2333     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2334 fi
2335
2336 fi
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2338 $as_echo "$ac_cv_host" >&6; }
2339 case $ac_cv_host in
2340 *-*-*) ;;
2341 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2342 esac
2343 host=$ac_cv_host
2344 ac_save_IFS=$IFS; IFS='-'
2345 set x $ac_cv_host
2346 shift
2347 host_cpu=$1
2348 host_vendor=$2
2349 shift; shift
2350 # Remember, the first character of IFS is used to create $*,
2351 # except with old shells:
2352 host_os=$*
2353 IFS=$ac_save_IFS
2354 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2355
2356
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2358 $as_echo_n "checking target system type... " >&6; }
2359 if test "${ac_cv_target+set}" = set; then :
2360   $as_echo_n "(cached) " >&6
2361 else
2362   if test "x$target_alias" = x; then
2363   ac_cv_target=$ac_cv_host
2364 else
2365   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2366     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2367 fi
2368
2369 fi
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2371 $as_echo "$ac_cv_target" >&6; }
2372 case $ac_cv_target in
2373 *-*-*) ;;
2374 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2375 esac
2376 target=$ac_cv_target
2377 ac_save_IFS=$IFS; IFS='-'
2378 set x $ac_cv_target
2379 shift
2380 target_cpu=$1
2381 target_vendor=$2
2382 shift; shift
2383 # Remember, the first character of IFS is used to create $*,
2384 # except with old shells:
2385 target_os=$*
2386 IFS=$ac_save_IFS
2387 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2388
2389
2390 # The aliases save the names the user supplied, while $host etc.
2391 # will get canonicalized.
2392 test -n "$target_alias" &&
2393   test "$program_prefix$program_suffix$program_transform_name" = \
2394     NONENONEs,x,x, &&
2395   program_prefix=${target_alias}-
2396 ac_ext=c
2397 ac_cpp='$CPP $CPPFLAGS'
2398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2401 if test -n "$ac_tool_prefix"; then
2402   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2403 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405 $as_echo_n "checking for $ac_word... " >&6; }
2406 if test "${ac_cv_prog_CC+set}" = set; then :
2407   $as_echo_n "(cached) " >&6
2408 else
2409   if test -n "$CC"; then
2410   ac_cv_prog_CC="$CC" # Let the user override the test.
2411 else
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH
2414 do
2415   IFS=$as_save_IFS
2416   test -z "$as_dir" && as_dir=.
2417     for ac_exec_ext in '' $ac_executable_extensions; do
2418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2419     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2421     break 2
2422   fi
2423 done
2424   done
2425 IFS=$as_save_IFS
2426
2427 fi
2428 fi
2429 CC=$ac_cv_prog_CC
2430 if test -n "$CC"; then
2431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2432 $as_echo "$CC" >&6; }
2433 else
2434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435 $as_echo "no" >&6; }
2436 fi
2437
2438
2439 fi
2440 if test -z "$ac_cv_prog_CC"; then
2441   ac_ct_CC=$CC
2442   # Extract the first word of "gcc", so it can be a program name with args.
2443 set dummy gcc; ac_word=$2
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445 $as_echo_n "checking for $ac_word... " >&6; }
2446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2447   $as_echo_n "(cached) " >&6
2448 else
2449   if test -n "$ac_ct_CC"; then
2450   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455   IFS=$as_save_IFS
2456   test -z "$as_dir" && as_dir=.
2457     for ac_exec_ext in '' $ac_executable_extensions; do
2458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459     ac_cv_prog_ac_ct_CC="gcc"
2460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2461     break 2
2462   fi
2463 done
2464   done
2465 IFS=$as_save_IFS
2466
2467 fi
2468 fi
2469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2470 if test -n "$ac_ct_CC"; then
2471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2472 $as_echo "$ac_ct_CC" >&6; }
2473 else
2474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2475 $as_echo "no" >&6; }
2476 fi
2477
2478   if test "x$ac_ct_CC" = x; then
2479     CC=""
2480   else
2481     case $cross_compiling:$ac_tool_warned in
2482 yes:)
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2485 ac_tool_warned=yes ;;
2486 esac
2487     CC=$ac_ct_CC
2488   fi
2489 else
2490   CC="$ac_cv_prog_CC"
2491 fi
2492
2493 if test -z "$CC"; then
2494           if test -n "$ac_tool_prefix"; then
2495     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2496 set dummy ${ac_tool_prefix}cc; ac_word=$2
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2498 $as_echo_n "checking for $ac_word... " >&6; }
2499 if test "${ac_cv_prog_CC+set}" = set; then :
2500   $as_echo_n "(cached) " >&6
2501 else
2502   if test -n "$CC"; then
2503   ac_cv_prog_CC="$CC" # Let the user override the test.
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2507 do
2508   IFS=$as_save_IFS
2509   test -z "$as_dir" && as_dir=.
2510     for ac_exec_ext in '' $ac_executable_extensions; do
2511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2512     ac_cv_prog_CC="${ac_tool_prefix}cc"
2513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2514     break 2
2515   fi
2516 done
2517   done
2518 IFS=$as_save_IFS
2519
2520 fi
2521 fi
2522 CC=$ac_cv_prog_CC
2523 if test -n "$CC"; then
2524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2525 $as_echo "$CC" >&6; }
2526 else
2527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2528 $as_echo "no" >&6; }
2529 fi
2530
2531
2532   fi
2533 fi
2534 if test -z "$CC"; then
2535   # Extract the first word of "cc", so it can be a program name with args.
2536 set dummy cc; ac_word=$2
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2538 $as_echo_n "checking for $ac_word... " >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then :
2540   $as_echo_n "(cached) " >&6
2541 else
2542   if test -n "$CC"; then
2543   ac_cv_prog_CC="$CC" # Let the user override the test.
2544 else
2545   ac_prog_rejected=no
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549   IFS=$as_save_IFS
2550   test -z "$as_dir" && as_dir=.
2551     for ac_exec_ext in '' $ac_executable_extensions; do
2552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2554        ac_prog_rejected=yes
2555        continue
2556      fi
2557     ac_cv_prog_CC="cc"
2558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2559     break 2
2560   fi
2561 done
2562   done
2563 IFS=$as_save_IFS
2564
2565 if test $ac_prog_rejected = yes; then
2566   # We found a bogon in the path, so make sure we never use it.
2567   set dummy $ac_cv_prog_CC
2568   shift
2569   if test $# != 0; then
2570     # We chose a different compiler from the bogus one.
2571     # However, it has the same basename, so the bogon will be chosen
2572     # first if we set CC to just the basename; use the full file name.
2573     shift
2574     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2575   fi
2576 fi
2577 fi
2578 fi
2579 CC=$ac_cv_prog_CC
2580 if test -n "$CC"; then
2581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2582 $as_echo "$CC" >&6; }
2583 else
2584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2586 fi
2587
2588
2589 fi
2590 if test -z "$CC"; then
2591   if test -n "$ac_tool_prefix"; then
2592   for ac_prog in cl.exe
2593   do
2594     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if test "${ac_cv_prog_CC+set}" = set; then :
2599   $as_echo_n "(cached) " >&6
2600 else
2601   if test -n "$CC"; then
2602   ac_cv_prog_CC="$CC" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607   IFS=$as_save_IFS
2608   test -z "$as_dir" && as_dir=.
2609     for ac_exec_ext in '' $ac_executable_extensions; do
2610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613     break 2
2614   fi
2615 done
2616   done
2617 IFS=$as_save_IFS
2618
2619 fi
2620 fi
2621 CC=$ac_cv_prog_CC
2622 if test -n "$CC"; then
2623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2624 $as_echo "$CC" >&6; }
2625 else
2626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2628 fi
2629
2630
2631     test -n "$CC" && break
2632   done
2633 fi
2634 if test -z "$CC"; then
2635   ac_ct_CC=$CC
2636   for ac_prog in cl.exe
2637 do
2638   # Extract the first word of "$ac_prog", so it can be a program name with args.
2639 set dummy $ac_prog; ac_word=$2
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2643   $as_echo_n "(cached) " >&6
2644 else
2645   if test -n "$ac_ct_CC"; then
2646   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651   IFS=$as_save_IFS
2652   test -z "$as_dir" && as_dir=.
2653     for ac_exec_ext in '' $ac_executable_extensions; do
2654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655     ac_cv_prog_ac_ct_CC="$ac_prog"
2656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657     break 2
2658   fi
2659 done
2660   done
2661 IFS=$as_save_IFS
2662
2663 fi
2664 fi
2665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666 if test -n "$ac_ct_CC"; then
2667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2668 $as_echo "$ac_ct_CC" >&6; }
2669 else
2670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2672 fi
2673
2674
2675   test -n "$ac_ct_CC" && break
2676 done
2677
2678   if test "x$ac_ct_CC" = x; then
2679     CC=""
2680   else
2681     case $cross_compiling:$ac_tool_warned in
2682 yes:)
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2685 ac_tool_warned=yes ;;
2686 esac
2687     CC=$ac_ct_CC
2688   fi
2689 fi
2690
2691 fi
2692
2693
2694 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696 as_fn_error "no acceptable C compiler found in \$PATH
2697 See \`config.log' for more details." "$LINENO" 5; }
2698
2699 # Provide some information about the compiler.
2700 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2701 set X $ac_compile
2702 ac_compiler=$2
2703 for ac_option in --version -v -V -qversion; do
2704   { { ac_try="$ac_compiler $ac_option >&5"
2705 case "(($ac_try" in
2706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707   *) ac_try_echo=$ac_try;;
2708 esac
2709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2710 $as_echo "$ac_try_echo"; } >&5
2711   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2712   ac_status=$?
2713   if test -s conftest.err; then
2714     sed '10a\
2715 ... rest of stderr output deleted ...
2716          10q' conftest.err >conftest.er1
2717     cat conftest.er1 >&5
2718     rm -f conftest.er1 conftest.err
2719   fi
2720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2721   test $ac_status = 0; }
2722 done
2723
2724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2725 /* end confdefs.h.  */
2726
2727 int
2728 main ()
2729 {
2730
2731   ;
2732   return 0;
2733 }
2734 _ACEOF
2735 ac_clean_files_save=$ac_clean_files
2736 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2737 # Try to create an executable without -o first, disregard a.out.
2738 # It will help us diagnose broken compilers, and finding out an intuition
2739 # of exeext.
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2741 $as_echo_n "checking for C compiler default output file name... " >&6; }
2742 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2743
2744 # The possible output files:
2745 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2746
2747 ac_rmfiles=
2748 for ac_file in $ac_files
2749 do
2750   case $ac_file in
2751     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2752     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2753   esac
2754 done
2755 rm -f $ac_rmfiles
2756
2757 if { { ac_try="$ac_link_default"
2758 case "(($ac_try" in
2759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760   *) ac_try_echo=$ac_try;;
2761 esac
2762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2763 $as_echo "$ac_try_echo"; } >&5
2764   (eval "$ac_link_default") 2>&5
2765   ac_status=$?
2766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2767   test $ac_status = 0; }; then :
2768   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2769 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2770 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2771 # so that the user can short-circuit this test for compilers unknown to
2772 # Autoconf.
2773 for ac_file in $ac_files ''
2774 do
2775   test -f "$ac_file" || continue
2776   case $ac_file in
2777     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2778         ;;
2779     [ab].out )
2780         # We found the default executable, but exeext='' is most
2781         # certainly right.
2782         break;;
2783     *.* )
2784         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2785         then :; else
2786            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2787         fi
2788         # We set ac_cv_exeext here because the later test for it is not
2789         # safe: cross compilers may not add the suffix if given an `-o'
2790         # argument, so we may need to know it at that point already.
2791         # Even if this section looks crufty: it has the advantage of
2792         # actually working.
2793         break;;
2794     * )
2795         break;;
2796   esac
2797 done
2798 test "$ac_cv_exeext" = no && ac_cv_exeext=
2799
2800 else
2801   ac_file=''
2802 fi
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2804 $as_echo "$ac_file" >&6; }
2805 if test -z "$ac_file"; then :
2806   $as_echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2808
2809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2811 { as_fn_set_status 77
2812 as_fn_error "C compiler cannot create executables
2813 See \`config.log' for more details." "$LINENO" 5; }; }
2814 fi
2815 ac_exeext=$ac_cv_exeext
2816
2817 # Check that the compiler produces executables we can run.  If not, either
2818 # the compiler is broken, or we cross compile.
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2820 $as_echo_n "checking whether the C compiler works... " >&6; }
2821 # If not cross compiling, check that we can run a simple program.
2822 if test "$cross_compiling" != yes; then
2823   if { ac_try='./$ac_file'
2824   { { case "(($ac_try" in
2825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826   *) ac_try_echo=$ac_try;;
2827 esac
2828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2829 $as_echo "$ac_try_echo"; } >&5
2830   (eval "$ac_try") 2>&5
2831   ac_status=$?
2832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2833   test $ac_status = 0; }; }; then
2834     cross_compiling=no
2835   else
2836     if test "$cross_compiling" = maybe; then
2837         cross_compiling=yes
2838     else
2839         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2841 as_fn_error "cannot run C compiled programs.
2842 If you meant to cross compile, use \`--host'.
2843 See \`config.log' for more details." "$LINENO" 5; }
2844     fi
2845   fi
2846 fi
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2848 $as_echo "yes" >&6; }
2849
2850 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2851 ac_clean_files=$ac_clean_files_save
2852 # Check that the compiler produces executables we can run.  If not, either
2853 # the compiler is broken, or we cross compile.
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2855 $as_echo_n "checking whether we are cross compiling... " >&6; }
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2857 $as_echo "$cross_compiling" >&6; }
2858
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2860 $as_echo_n "checking for suffix of executables... " >&6; }
2861 if { { ac_try="$ac_link"
2862 case "(($ac_try" in
2863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864   *) ac_try_echo=$ac_try;;
2865 esac
2866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2867 $as_echo "$ac_try_echo"; } >&5
2868   (eval "$ac_link") 2>&5
2869   ac_status=$?
2870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2871   test $ac_status = 0; }; then :
2872   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2873 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2874 # work properly (i.e., refer to `conftest.exe'), while it won't with
2875 # `rm'.
2876 for ac_file in conftest.exe conftest conftest.*; do
2877   test -f "$ac_file" || continue
2878   case $ac_file in
2879     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2880     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2881           break;;
2882     * ) break;;
2883   esac
2884 done
2885 else
2886   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2888 as_fn_error "cannot compute suffix of executables: cannot compile and link
2889 See \`config.log' for more details." "$LINENO" 5; }
2890 fi
2891 rm -f conftest$ac_cv_exeext
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2893 $as_echo "$ac_cv_exeext" >&6; }
2894
2895 rm -f conftest.$ac_ext
2896 EXEEXT=$ac_cv_exeext
2897 ac_exeext=$EXEEXT
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2899 $as_echo_n "checking for suffix of object files... " >&6; }
2900 if test "${ac_cv_objext+set}" = set; then :
2901   $as_echo_n "(cached) " >&6
2902 else
2903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904 /* end confdefs.h.  */
2905
2906 int
2907 main ()
2908 {
2909
2910   ;
2911   return 0;
2912 }
2913 _ACEOF
2914 rm -f conftest.o conftest.obj
2915 if { { ac_try="$ac_compile"
2916 case "(($ac_try" in
2917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918   *) ac_try_echo=$ac_try;;
2919 esac
2920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2921 $as_echo "$ac_try_echo"; } >&5
2922   (eval "$ac_compile") 2>&5
2923   ac_status=$?
2924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2925   test $ac_status = 0; }; then :
2926   for ac_file in conftest.o conftest.obj conftest.*; do
2927   test -f "$ac_file" || continue;
2928   case $ac_file in
2929     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2930     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2931        break;;
2932   esac
2933 done
2934 else
2935   $as_echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2937
2938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2940 as_fn_error "cannot compute suffix of object files: cannot compile
2941 See \`config.log' for more details." "$LINENO" 5; }
2942 fi
2943 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2944 fi
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2946 $as_echo "$ac_cv_objext" >&6; }
2947 OBJEXT=$ac_cv_objext
2948 ac_objext=$OBJEXT
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2950 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2951 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2952   $as_echo_n "(cached) " >&6
2953 else
2954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2955 /* end confdefs.h.  */
2956
2957 int
2958 main ()
2959 {
2960 #ifndef __GNUC__
2961        choke me
2962 #endif
2963
2964   ;
2965   return 0;
2966 }
2967 _ACEOF
2968 if ac_fn_c_try_compile "$LINENO"; then :
2969   ac_compiler_gnu=yes
2970 else
2971   ac_compiler_gnu=no
2972 fi
2973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2975
2976 fi
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2978 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2979 if test $ac_compiler_gnu = yes; then
2980   GCC=yes
2981 else
2982   GCC=
2983 fi
2984 ac_test_CFLAGS=${CFLAGS+set}
2985 ac_save_CFLAGS=$CFLAGS
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2987 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2988 if test "${ac_cv_prog_cc_g+set}" = set; then :
2989   $as_echo_n "(cached) " >&6
2990 else
2991   ac_save_c_werror_flag=$ac_c_werror_flag
2992    ac_c_werror_flag=yes
2993    ac_cv_prog_cc_g=no
2994    CFLAGS="-g"
2995    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2996 /* end confdefs.h.  */
2997
2998 int
2999 main ()
3000 {
3001
3002   ;
3003   return 0;
3004 }
3005 _ACEOF
3006 if ac_fn_c_try_compile "$LINENO"; then :
3007   ac_cv_prog_cc_g=yes
3008 else
3009   CFLAGS=""
3010       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h.  */
3012
3013 int
3014 main ()
3015 {
3016
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 if ac_fn_c_try_compile "$LINENO"; then :
3022
3023 else
3024   ac_c_werror_flag=$ac_save_c_werror_flag
3025          CFLAGS="-g"
3026          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3027 /* end confdefs.h.  */
3028
3029 int
3030 main ()
3031 {
3032
3033   ;
3034   return 0;
3035 }
3036 _ACEOF
3037 if ac_fn_c_try_compile "$LINENO"; then :
3038   ac_cv_prog_cc_g=yes
3039 fi
3040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3041 fi
3042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043 fi
3044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3045    ac_c_werror_flag=$ac_save_c_werror_flag
3046 fi
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3048 $as_echo "$ac_cv_prog_cc_g" >&6; }
3049 if test "$ac_test_CFLAGS" = set; then
3050   CFLAGS=$ac_save_CFLAGS
3051 elif test $ac_cv_prog_cc_g = yes; then
3052   if test "$GCC" = yes; then
3053     CFLAGS="-g -O2"
3054   else
3055     CFLAGS="-g"
3056   fi
3057 else
3058   if test "$GCC" = yes; then
3059     CFLAGS="-O2"
3060   else
3061     CFLAGS=
3062   fi
3063 fi
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3065 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3066 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3067   $as_echo_n "(cached) " >&6
3068 else
3069   ac_cv_prog_cc_c89=no
3070 ac_save_CC=$CC
3071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072 /* end confdefs.h.  */
3073 #include <stdarg.h>
3074 #include <stdio.h>
3075 #include <sys/types.h>
3076 #include <sys/stat.h>
3077 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3078 struct buf { int x; };
3079 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3080 static char *e (p, i)
3081      char **p;
3082      int i;
3083 {
3084   return p[i];
3085 }
3086 static char *f (char * (*g) (char **, int), char **p, ...)
3087 {
3088   char *s;
3089   va_list v;
3090   va_start (v,p);
3091   s = g (p, va_arg (v,int));
3092   va_end (v);
3093   return s;
3094 }
3095
3096 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3097    function prototypes and stuff, but not '\xHH' hex character constants.
3098    These don't provoke an error unfortunately, instead are silently treated
3099    as 'x'.  The following induces an error, until -std is added to get
3100    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3101    array size at least.  It's necessary to write '\x00'==0 to get something
3102    that's true only with -std.  */
3103 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3104
3105 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3106    inside strings and character constants.  */
3107 #define FOO(x) 'x'
3108 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3109
3110 int test (int i, double x);
3111 struct s1 {int (*f) (int a);};
3112 struct s2 {int (*f) (double a);};
3113 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3114 int argc;
3115 char **argv;
3116 int
3117 main ()
3118 {
3119 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3120   ;
3121   return 0;
3122 }
3123 _ACEOF
3124 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3125         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3126 do
3127   CC="$ac_save_CC $ac_arg"
3128   if ac_fn_c_try_compile "$LINENO"; then :
3129   ac_cv_prog_cc_c89=$ac_arg
3130 fi
3131 rm -f core conftest.err conftest.$ac_objext
3132   test "x$ac_cv_prog_cc_c89" != "xno" && break
3133 done
3134 rm -f conftest.$ac_ext
3135 CC=$ac_save_CC
3136
3137 fi
3138 # AC_CACHE_VAL
3139 case "x$ac_cv_prog_cc_c89" in
3140   x)
3141     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3142 $as_echo "none needed" >&6; } ;;
3143   xno)
3144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3145 $as_echo "unsupported" >&6; } ;;
3146   *)
3147     CC="$CC $ac_cv_prog_cc_c89"
3148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3149 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3150 esac
3151 if test "x$ac_cv_prog_cc_c89" != xno; then :
3152
3153 fi
3154
3155 ac_ext=c
3156 ac_cpp='$CPP $CPPFLAGS'
3157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3160
3161
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3163 $as_echo_n "checking for library containing strerror... " >&6; }
3164 if test "${ac_cv_search_strerror+set}" = set; then :
3165   $as_echo_n "(cached) " >&6
3166 else
3167   ac_func_search_save_LIBS=$LIBS
3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169 /* end confdefs.h.  */
3170
3171 /* Override any GCC internal prototype to avoid an error.
3172    Use char because int might match the return type of a GCC
3173    builtin and then its argument prototype would still apply.  */
3174 #ifdef __cplusplus
3175 extern "C"
3176 #endif
3177 char strerror ();
3178 int
3179 main ()
3180 {
3181 return strerror ();
3182   ;
3183   return 0;
3184 }
3185 _ACEOF
3186 for ac_lib in '' cposix; do
3187   if test -z "$ac_lib"; then
3188     ac_res="none required"
3189   else
3190     ac_res=-l$ac_lib
3191     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3192   fi
3193   if ac_fn_c_try_link "$LINENO"; then :
3194   ac_cv_search_strerror=$ac_res
3195 fi
3196 rm -f core conftest.err conftest.$ac_objext \
3197     conftest$ac_exeext
3198   if test "${ac_cv_search_strerror+set}" = set; then :
3199   break
3200 fi
3201 done
3202 if test "${ac_cv_search_strerror+set}" = set; then :
3203
3204 else
3205   ac_cv_search_strerror=no
3206 fi
3207 rm conftest.$ac_ext
3208 LIBS=$ac_func_search_save_LIBS
3209 fi
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3211 $as_echo "$ac_cv_search_strerror" >&6; }
3212 ac_res=$ac_cv_search_strerror
3213 if test "$ac_res" != no; then :
3214   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3215
3216 fi
3217
3218
3219 am__api_version='1.11'
3220
3221 # Find a good install program.  We prefer a C program (faster),
3222 # so one script is as good as another.  But avoid the broken or
3223 # incompatible versions:
3224 # SysV /etc/install, /usr/sbin/install
3225 # SunOS /usr/etc/install
3226 # IRIX /sbin/install
3227 # AIX /bin/install
3228 # AmigaOS /C/install, which installs bootblocks on floppy discs
3229 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3230 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3231 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3232 # OS/2's system install, which has a completely different semantic
3233 # ./install, which can be erroneously created by make from ./install.sh.
3234 # Reject install programs that cannot install multiple files.
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3236 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3237 if test -z "$INSTALL"; then
3238 if test "${ac_cv_path_install+set}" = set; then :
3239   $as_echo_n "(cached) " >&6
3240 else
3241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3243 do
3244   IFS=$as_save_IFS
3245   test -z "$as_dir" && as_dir=.
3246     # Account for people who put trailing slashes in PATH elements.
3247 case $as_dir/ in #((
3248   ./ | .// | /[cC]/* | \
3249   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3250   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3251   /usr/ucb/* ) ;;
3252   *)
3253     # OSF1 and SCO ODT 3.0 have their own names for install.
3254     # Don't use installbsd from OSF since it installs stuff as root
3255     # by default.
3256     for ac_prog in ginstall scoinst install; do
3257       for ac_exec_ext in '' $ac_executable_extensions; do
3258         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3259           if test $ac_prog = install &&
3260             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3261             # AIX install.  It has an incompatible calling convention.
3262             :
3263           elif test $ac_prog = install &&
3264             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3265             # program-specific install script used by HP pwplus--don't use.
3266             :
3267           else
3268             rm -rf conftest.one conftest.two conftest.dir
3269             echo one > conftest.one
3270             echo two > conftest.two
3271             mkdir conftest.dir
3272             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3273               test -s conftest.one && test -s conftest.two &&
3274               test -s conftest.dir/conftest.one &&
3275               test -s conftest.dir/conftest.two
3276             then
3277               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3278               break 3
3279             fi
3280           fi
3281         fi
3282       done
3283     done
3284     ;;
3285 esac
3286
3287   done
3288 IFS=$as_save_IFS
3289
3290 rm -rf conftest.one conftest.two conftest.dir
3291
3292 fi
3293   if test "${ac_cv_path_install+set}" = set; then
3294     INSTALL=$ac_cv_path_install
3295   else
3296     # As a last resort, use the slow shell script.  Don't cache a
3297     # value for INSTALL within a source directory, because that will
3298     # break other packages using the cache if that directory is
3299     # removed, or if the value is a relative name.
3300     INSTALL=$ac_install_sh
3301   fi
3302 fi
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3304 $as_echo "$INSTALL" >&6; }
3305
3306 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3307 # It thinks the first close brace ends the variable substitution.
3308 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3309
3310 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3311
3312 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3313
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3315 $as_echo_n "checking whether build environment is sane... " >&6; }
3316 # Just in case
3317 sleep 1
3318 echo timestamp > conftest.file
3319 # Reject unsafe characters in $srcdir or the absolute working directory
3320 # name.  Accept space and tab only in the latter.
3321 am_lf='
3322 '
3323 case `pwd` in
3324   *[\\\"\#\$\&\'\`$am_lf]*)
3325     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3326 esac
3327 case $srcdir in
3328   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3329     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3330 esac
3331
3332 # Do `set' in a subshell so we don't clobber the current shell's
3333 # arguments.  Must try -L first in case configure is actually a
3334 # symlink; some systems play weird games with the mod time of symlinks
3335 # (eg FreeBSD returns the mod time of the symlink's containing
3336 # directory).
3337 if (
3338    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3339    if test "$*" = "X"; then
3340       # -L didn't work.
3341       set X `ls -t "$srcdir/configure" conftest.file`
3342    fi
3343    rm -f conftest.file
3344    if test "$*" != "X $srcdir/configure conftest.file" \
3345       && test "$*" != "X conftest.file $srcdir/configure"; then
3346
3347       # If neither matched, then we have a broken ls.  This can happen
3348       # if, for instance, CONFIG_SHELL is bash and it inherits a
3349       # broken ls alias from the environment.  This has actually
3350       # happened.  Such a system could not be considered "sane".
3351       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3352 alias in your environment" "$LINENO" 5
3353    fi
3354
3355    test "$2" = conftest.file
3356    )
3357 then
3358    # Ok.
3359    :
3360 else
3361    as_fn_error "newly created file is older than distributed files!
3362 Check your system clock" "$LINENO" 5
3363 fi
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3365 $as_echo "yes" >&6; }
3366 test "$program_prefix" != NONE &&
3367   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3368 # Use a double $ so make ignores it.
3369 test "$program_suffix" != NONE &&
3370   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3371 # Double any \ or $.
3372 # By default was `s,x,x', remove it if useless.
3373 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3374 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3375
3376 # expand $ac_aux_dir to an absolute path
3377 am_aux_dir=`cd $ac_aux_dir && pwd`
3378
3379 if test x"${MISSING+set}" != xset; then
3380   case $am_aux_dir in
3381   *\ * | *\     *)
3382     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3383   *)
3384     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3385   esac
3386 fi
3387 # Use eval to expand $SHELL
3388 if eval "$MISSING --run true"; then
3389   am_missing_run="$MISSING --run "
3390 else
3391   am_missing_run=
3392   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3393 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3394 fi
3395
3396 if test x"${install_sh}" != xset; then
3397   case $am_aux_dir in
3398   *\ * | *\     *)
3399     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3400   *)
3401     install_sh="\${SHELL} $am_aux_dir/install-sh"
3402   esac
3403 fi
3404
3405 # Installed binaries are usually stripped using `strip' when the user
3406 # run `make install-strip'.  However `strip' might not be the right
3407 # tool to use in cross-compilation environments, therefore Automake
3408 # will honor the `STRIP' environment variable to overrule this program.
3409 if test "$cross_compiling" != no; then
3410   if test -n "$ac_tool_prefix"; then
3411   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3412 set dummy ${ac_tool_prefix}strip; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if test "${ac_cv_prog_STRIP+set}" = set; then :
3416   $as_echo_n "(cached) " >&6
3417 else
3418   if test -n "$STRIP"; then
3419   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3420 else
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3423 do
3424   IFS=$as_save_IFS
3425   test -z "$as_dir" && as_dir=.
3426     for ac_exec_ext in '' $ac_executable_extensions; do
3427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3428     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430     break 2
3431   fi
3432 done
3433   done
3434 IFS=$as_save_IFS
3435
3436 fi
3437 fi
3438 STRIP=$ac_cv_prog_STRIP
3439 if test -n "$STRIP"; then
3440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3441 $as_echo "$STRIP" >&6; }
3442 else
3443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3445 fi
3446
3447
3448 fi
3449 if test -z "$ac_cv_prog_STRIP"; then
3450   ac_ct_STRIP=$STRIP
3451   # Extract the first word of "strip", so it can be a program name with args.
3452 set dummy strip; ac_word=$2
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; }
3455 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3456   $as_echo_n "(cached) " >&6
3457 else
3458   if test -n "$ac_ct_STRIP"; then
3459   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3460 else
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3463 do
3464   IFS=$as_save_IFS
3465   test -z "$as_dir" && as_dir=.
3466     for ac_exec_ext in '' $ac_executable_extensions; do
3467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468     ac_cv_prog_ac_ct_STRIP="strip"
3469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470     break 2
3471   fi
3472 done
3473   done
3474 IFS=$as_save_IFS
3475
3476 fi
3477 fi
3478 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3479 if test -n "$ac_ct_STRIP"; then
3480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3481 $as_echo "$ac_ct_STRIP" >&6; }
3482 else
3483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3485 fi
3486
3487   if test "x$ac_ct_STRIP" = x; then
3488     STRIP=":"
3489   else
3490     case $cross_compiling:$ac_tool_warned in
3491 yes:)
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3494 ac_tool_warned=yes ;;
3495 esac
3496     STRIP=$ac_ct_STRIP
3497   fi
3498 else
3499   STRIP="$ac_cv_prog_STRIP"
3500 fi
3501
3502 fi
3503 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3504
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3506 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3507 if test -z "$MKDIR_P"; then
3508   if test "${ac_cv_path_mkdir+set}" = set; then :
3509   $as_echo_n "(cached) " >&6
3510 else
3511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3513 do
3514   IFS=$as_save_IFS
3515   test -z "$as_dir" && as_dir=.
3516     for ac_prog in mkdir gmkdir; do
3517          for ac_exec_ext in '' $ac_executable_extensions; do
3518            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3519            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3520              'mkdir (GNU coreutils) '* | \
3521              'mkdir (coreutils) '* | \
3522              'mkdir (fileutils) '4.1*)
3523                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3524                break 3;;
3525            esac
3526          done
3527        done
3528   done
3529 IFS=$as_save_IFS
3530
3531 fi
3532
3533   if test "${ac_cv_path_mkdir+set}" = set; then
3534     MKDIR_P="$ac_cv_path_mkdir -p"
3535   else
3536     # As a last resort, use the slow shell script.  Don't cache a
3537     # value for MKDIR_P within a source directory, because that will
3538     # break other packages using the cache if that directory is
3539     # removed, or if the value is a relative name.
3540     test -d ./--version && rmdir ./--version
3541     MKDIR_P="$ac_install_sh -d"
3542   fi
3543 fi
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3545 $as_echo "$MKDIR_P" >&6; }
3546
3547 mkdir_p="$MKDIR_P"
3548 case $mkdir_p in
3549   [\\/$]* | ?:[\\/]*) ;;
3550   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3551 esac
3552
3553 for ac_prog in gawk mawk nawk awk
3554 do
3555   # Extract the first word of "$ac_prog", so it can be a program name with args.
3556 set dummy $ac_prog; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if test "${ac_cv_prog_AWK+set}" = set; then :
3560   $as_echo_n "(cached) " >&6
3561 else
3562   if test -n "$AWK"; then
3563   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3567 do
3568   IFS=$as_save_IFS
3569   test -z "$as_dir" && as_dir=.
3570     for ac_exec_ext in '' $ac_executable_extensions; do
3571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572     ac_cv_prog_AWK="$ac_prog"
3573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574     break 2
3575   fi
3576 done
3577   done
3578 IFS=$as_save_IFS
3579
3580 fi
3581 fi
3582 AWK=$ac_cv_prog_AWK
3583 if test -n "$AWK"; then
3584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3585 $as_echo "$AWK" >&6; }
3586 else
3587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3589 fi
3590
3591
3592   test -n "$AWK" && break
3593 done
3594
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3596 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3597 set x ${MAKE-make}
3598 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3599 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3600   $as_echo_n "(cached) " >&6
3601 else
3602   cat >conftest.make <<\_ACEOF
3603 SHELL = /bin/sh
3604 all:
3605         @echo '@@@%%%=$(MAKE)=@@@%%%'
3606 _ACEOF
3607 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3608 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3609   *@@@%%%=?*=@@@%%%*)
3610     eval ac_cv_prog_make_${ac_make}_set=yes;;
3611   *)
3612     eval ac_cv_prog_make_${ac_make}_set=no;;
3613 esac
3614 rm -f conftest.make
3615 fi
3616 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3618 $as_echo "yes" >&6; }
3619   SET_MAKE=
3620 else
3621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3623   SET_MAKE="MAKE=${MAKE-make}"
3624 fi
3625
3626 rm -rf .tst 2>/dev/null
3627 mkdir .tst 2>/dev/null
3628 if test -d .tst; then
3629   am__leading_dot=.
3630 else
3631   am__leading_dot=_
3632 fi
3633 rmdir .tst 2>/dev/null
3634
3635 DEPDIR="${am__leading_dot}deps"
3636
3637 ac_config_commands="$ac_config_commands depfiles"
3638
3639
3640 am_make=${MAKE-make}
3641 cat > confinc << 'END'
3642 am__doit:
3643         @echo this is the am__doit target
3644 .PHONY: am__doit
3645 END
3646 # If we don't find an include directive, just comment out the code.
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3648 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3649 am__include="#"
3650 am__quote=
3651 _am_result=none
3652 # First try GNU make style include.
3653 echo "include confinc" > confmf
3654 # Ignore all kinds of additional output from `make'.
3655 case `$am_make -s -f confmf 2> /dev/null` in #(
3656 *the\ am__doit\ target*)
3657   am__include=include
3658   am__quote=
3659   _am_result=GNU
3660   ;;
3661 esac
3662 # Now try BSD make style include.
3663 if test "$am__include" = "#"; then
3664    echo '.include "confinc"' > confmf
3665    case `$am_make -s -f confmf 2> /dev/null` in #(
3666    *the\ am__doit\ target*)
3667      am__include=.include
3668      am__quote="\""
3669      _am_result=BSD
3670      ;;
3671    esac
3672 fi
3673
3674
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3676 $as_echo "$_am_result" >&6; }
3677 rm -f confinc confmf
3678
3679 # Check whether --enable-dependency-tracking was given.
3680 if test "${enable_dependency_tracking+set}" = set; then :
3681   enableval=$enable_dependency_tracking;
3682 fi
3683
3684 if test "x$enable_dependency_tracking" != xno; then
3685   am_depcomp="$ac_aux_dir/depcomp"
3686   AMDEPBACKSLASH='\'
3687 fi
3688  if test "x$enable_dependency_tracking" != xno; then
3689   AMDEP_TRUE=
3690   AMDEP_FALSE='#'
3691 else
3692   AMDEP_TRUE='#'
3693   AMDEP_FALSE=
3694 fi
3695
3696
3697 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3698   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3699   # is not polluted with repeated "-I."
3700   am__isrc=' -I$(srcdir)'
3701   # test to see if srcdir already configured
3702   if test -f $srcdir/config.status; then
3703     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3704   fi
3705 fi
3706
3707 # test whether we have cygpath
3708 if test -z "$CYGPATH_W"; then
3709   if (cygpath --version) >/dev/null 2>/dev/null; then
3710     CYGPATH_W='cygpath -w'
3711   else
3712     CYGPATH_W=echo
3713   fi
3714 fi
3715
3716
3717 # Define the identity of the package.
3718  PACKAGE='opcodes'
3719  VERSION='2.26.51'
3720
3721
3722 cat >>confdefs.h <<_ACEOF
3723 #define PACKAGE "$PACKAGE"
3724 _ACEOF
3725
3726
3727 cat >>confdefs.h <<_ACEOF
3728 #define VERSION "$VERSION"
3729 _ACEOF
3730
3731 # Some tools Automake needs.
3732
3733 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3734
3735
3736 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3737
3738
3739 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3740
3741
3742 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3743
3744
3745 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3746
3747 # We need awk for the "check" target.  The system "awk" is bad on
3748 # some platforms.
3749 # Always define AMTAR for backward compatibility.
3750
3751 AMTAR=${AMTAR-"${am_missing_run}tar"}
3752
3753 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3754
3755
3756
3757
3758 depcc="$CC"   am_compiler_list=
3759
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3761 $as_echo_n "checking dependency style of $depcc... " >&6; }
3762 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3763   $as_echo_n "(cached) " >&6
3764 else
3765   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3766   # We make a subdir and do the tests there.  Otherwise we can end up
3767   # making bogus files that we don't know about and never remove.  For
3768   # instance it was reported that on HP-UX the gcc test will end up
3769   # making a dummy file named `D' -- because `-MD' means `put the output
3770   # in D'.
3771   mkdir conftest.dir
3772   # Copy depcomp to subdir because otherwise we won't find it if we're
3773   # using a relative directory.
3774   cp "$am_depcomp" conftest.dir
3775   cd conftest.dir
3776   # We will build objects and dependencies in a subdirectory because
3777   # it helps to detect inapplicable dependency modes.  For instance
3778   # both Tru64's cc and ICC support -MD to output dependencies as a
3779   # side effect of compilation, but ICC will put the dependencies in
3780   # the current directory while Tru64 will put them in the object
3781   # directory.
3782   mkdir sub
3783
3784   am_cv_CC_dependencies_compiler_type=none
3785   if test "$am_compiler_list" = ""; then
3786      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3787   fi
3788   am__universal=false
3789   case " $depcc " in #(
3790      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3791      esac
3792
3793   for depmode in $am_compiler_list; do
3794     # Setup a source with many dependencies, because some compilers
3795     # like to wrap large dependency lists on column 80 (with \), and
3796     # we should not choose a depcomp mode which is confused by this.
3797     #
3798     # We need to recreate these files for each test, as the compiler may
3799     # overwrite some of them when testing with obscure command lines.
3800     # This happens at least with the AIX C compiler.
3801     : > sub/conftest.c
3802     for i in 1 2 3 4 5 6; do
3803       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3804       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3805       # Solaris 8's {/usr,}/bin/sh.
3806       touch sub/conftst$i.h
3807     done
3808     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3809
3810     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3811     # mode.  It turns out that the SunPro C++ compiler does not properly
3812     # handle `-M -o', and we need to detect this.  Also, some Intel
3813     # versions had trouble with output in subdirs
3814     am__obj=sub/conftest.${OBJEXT-o}
3815     am__minus_obj="-o $am__obj"
3816     case $depmode in
3817     gcc)
3818       # This depmode causes a compiler race in universal mode.
3819       test "$am__universal" = false || continue
3820       ;;
3821     nosideeffect)
3822       # after this tag, mechanisms are not by side-effect, so they'll
3823       # only be used when explicitly requested
3824       if test "x$enable_dependency_tracking" = xyes; then
3825         continue
3826       else
3827         break
3828       fi
3829       ;;
3830     msvisualcpp | msvcmsys)
3831       # This compiler won't grok `-c -o', but also, the minuso test has
3832       # not run yet.  These depmodes are late enough in the game, and
3833       # so weak that their functioning should not be impacted.
3834       am__obj=conftest.${OBJEXT-o}
3835       am__minus_obj=
3836       ;;
3837     none) break ;;
3838     esac
3839     if depmode=$depmode \
3840        source=sub/conftest.c object=$am__obj \
3841        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3842        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3843          >/dev/null 2>conftest.err &&
3844        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3845        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3846        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3847        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3848       # icc doesn't choke on unknown options, it will just issue warnings
3849       # or remarks (even with -Werror).  So we grep stderr for any message
3850       # that says an option was ignored or not supported.
3851       # When given -MP, icc 7.0 and 7.1 complain thusly:
3852       #   icc: Command line warning: ignoring option '-M'; no argument required
3853       # The diagnosis changed in icc 8.0:
3854       #   icc: Command line remark: option '-MP' not supported
3855       if (grep 'ignoring option' conftest.err ||
3856           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3857         am_cv_CC_dependencies_compiler_type=$depmode
3858         break
3859       fi
3860     fi
3861   done
3862
3863   cd ..
3864   rm -rf conftest.dir
3865 else
3866   am_cv_CC_dependencies_compiler_type=none
3867 fi
3868
3869 fi
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3871 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3872 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3873
3874  if
3875   test "x$enable_dependency_tracking" != xno \
3876   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3877   am__fastdepCC_TRUE=
3878   am__fastdepCC_FALSE='#'
3879 else
3880   am__fastdepCC_TRUE='#'
3881   am__fastdepCC_FALSE=
3882 fi
3883
3884
3885
3886
3887 ac_ext=c
3888 ac_cpp='$CPP $CPPFLAGS'
3889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892 if test -n "$ac_tool_prefix"; then
3893   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3894 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 $as_echo_n "checking for $ac_word... " >&6; }
3897 if test "${ac_cv_prog_CC+set}" = set; then :
3898   $as_echo_n "(cached) " >&6
3899 else
3900   if test -n "$CC"; then
3901   ac_cv_prog_CC="$CC" # Let the user override the test.
3902 else
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3905 do
3906   IFS=$as_save_IFS
3907   test -z "$as_dir" && as_dir=.
3908     for ac_exec_ext in '' $ac_executable_extensions; do
3909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3910     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912     break 2
3913   fi
3914 done
3915   done
3916 IFS=$as_save_IFS
3917
3918 fi
3919 fi
3920 CC=$ac_cv_prog_CC
3921 if test -n "$CC"; then
3922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923 $as_echo "$CC" >&6; }
3924 else
3925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3927 fi
3928
3929
3930 fi
3931 if test -z "$ac_cv_prog_CC"; then
3932   ac_ct_CC=$CC
3933   # Extract the first word of "gcc", so it can be a program name with args.
3934 set dummy gcc; ac_word=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3938   $as_echo_n "(cached) " >&6
3939 else
3940   if test -n "$ac_ct_CC"; then
3941   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3945 do
3946   IFS=$as_save_IFS
3947   test -z "$as_dir" && as_dir=.
3948     for ac_exec_ext in '' $ac_executable_extensions; do
3949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3950     ac_cv_prog_ac_ct_CC="gcc"
3951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952     break 2
3953   fi
3954 done
3955   done
3956 IFS=$as_save_IFS
3957
3958 fi
3959 fi
3960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3961 if test -n "$ac_ct_CC"; then
3962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3963 $as_echo "$ac_ct_CC" >&6; }
3964 else
3965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3967 fi
3968
3969   if test "x$ac_ct_CC" = x; then
3970     CC=""
3971   else
3972     case $cross_compiling:$ac_tool_warned in
3973 yes:)
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3976 ac_tool_warned=yes ;;
3977 esac
3978     CC=$ac_ct_CC
3979   fi
3980 else
3981   CC="$ac_cv_prog_CC"
3982 fi
3983
3984 if test -z "$CC"; then
3985           if test -n "$ac_tool_prefix"; then
3986     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3987 set dummy ${ac_tool_prefix}cc; ac_word=$2
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3989 $as_echo_n "checking for $ac_word... " >&6; }
3990 if test "${ac_cv_prog_CC+set}" = set; then :
3991   $as_echo_n "(cached) " >&6
3992 else
3993   if test -n "$CC"; then
3994   ac_cv_prog_CC="$CC" # Let the user override the test.
3995 else
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3998 do
3999   IFS=$as_save_IFS
4000   test -z "$as_dir" && as_dir=.
4001     for ac_exec_ext in '' $ac_executable_extensions; do
4002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4003     ac_cv_prog_CC="${ac_tool_prefix}cc"
4004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4005     break 2
4006   fi
4007 done
4008   done
4009 IFS=$as_save_IFS
4010
4011 fi
4012 fi
4013 CC=$ac_cv_prog_CC
4014 if test -n "$CC"; then
4015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4016 $as_echo "$CC" >&6; }
4017 else
4018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019 $as_echo "no" >&6; }
4020 fi
4021
4022
4023   fi
4024 fi
4025 if test -z "$CC"; then
4026   # Extract the first word of "cc", so it can be a program name with args.
4027 set dummy cc; ac_word=$2
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 $as_echo_n "checking for $ac_word... " >&6; }
4030 if test "${ac_cv_prog_CC+set}" = set; then :
4031   $as_echo_n "(cached) " >&6
4032 else
4033   if test -n "$CC"; then
4034   ac_cv_prog_CC="$CC" # Let the user override the test.
4035 else
4036   ac_prog_rejected=no
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH
4039 do
4040   IFS=$as_save_IFS
4041   test -z "$as_dir" && as_dir=.
4042     for ac_exec_ext in '' $ac_executable_extensions; do
4043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4044     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4045        ac_prog_rejected=yes
4046        continue
4047      fi
4048     ac_cv_prog_CC="cc"
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 if test $ac_prog_rejected = yes; then
4057   # We found a bogon in the path, so make sure we never use it.
4058   set dummy $ac_cv_prog_CC
4059   shift
4060   if test $# != 0; then
4061     # We chose a different compiler from the bogus one.
4062     # However, it has the same basename, so the bogon will be chosen
4063     # first if we set CC to just the basename; use the full file name.
4064     shift
4065     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4066   fi
4067 fi
4068 fi
4069 fi
4070 CC=$ac_cv_prog_CC
4071 if test -n "$CC"; then
4072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4073 $as_echo "$CC" >&6; }
4074 else
4075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076 $as_echo "no" >&6; }
4077 fi
4078
4079
4080 fi
4081 if test -z "$CC"; then
4082   if test -n "$ac_tool_prefix"; then
4083   for ac_prog in cl.exe
4084   do
4085     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088 $as_echo_n "checking for $ac_word... " >&6; }
4089 if test "${ac_cv_prog_CC+set}" = set; then :
4090   $as_echo_n "(cached) " >&6
4091 else
4092   if test -n "$CC"; then
4093   ac_cv_prog_CC="$CC" # Let the user override the test.
4094 else
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH
4097 do
4098   IFS=$as_save_IFS
4099   test -z "$as_dir" && as_dir=.
4100     for ac_exec_ext in '' $ac_executable_extensions; do
4101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4102     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4104     break 2
4105   fi
4106 done
4107   done
4108 IFS=$as_save_IFS
4109
4110 fi
4111 fi
4112 CC=$ac_cv_prog_CC
4113 if test -n "$CC"; then
4114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4115 $as_echo "$CC" >&6; }
4116 else
4117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118 $as_echo "no" >&6; }
4119 fi
4120
4121
4122     test -n "$CC" && break
4123   done
4124 fi
4125 if test -z "$CC"; then
4126   ac_ct_CC=$CC
4127   for ac_prog in cl.exe
4128 do
4129   # Extract the first word of "$ac_prog", so it can be a program name with args.
4130 set dummy $ac_prog; ac_word=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4134   $as_echo_n "(cached) " >&6
4135 else
4136   if test -n "$ac_ct_CC"; then
4137   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4141 do
4142   IFS=$as_save_IFS
4143   test -z "$as_dir" && as_dir=.
4144     for ac_exec_ext in '' $ac_executable_extensions; do
4145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4146     ac_cv_prog_ac_ct_CC="$ac_prog"
4147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148     break 2
4149   fi
4150 done
4151   done
4152 IFS=$as_save_IFS
4153
4154 fi
4155 fi
4156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4157 if test -n "$ac_ct_CC"; then
4158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4159 $as_echo "$ac_ct_CC" >&6; }
4160 else
4161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162 $as_echo "no" >&6; }
4163 fi
4164
4165
4166   test -n "$ac_ct_CC" && break
4167 done
4168
4169   if test "x$ac_ct_CC" = x; then
4170     CC=""
4171   else
4172     case $cross_compiling:$ac_tool_warned in
4173 yes:)
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4176 ac_tool_warned=yes ;;
4177 esac
4178     CC=$ac_ct_CC
4179   fi
4180 fi
4181
4182 fi
4183
4184
4185 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4187 as_fn_error "no acceptable C compiler found in \$PATH
4188 See \`config.log' for more details." "$LINENO" 5; }
4189
4190 # Provide some information about the compiler.
4191 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4192 set X $ac_compile
4193 ac_compiler=$2
4194 for ac_option in --version -v -V -qversion; do
4195   { { ac_try="$ac_compiler $ac_option >&5"
4196 case "(($ac_try" in
4197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198   *) ac_try_echo=$ac_try;;
4199 esac
4200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4201 $as_echo "$ac_try_echo"; } >&5
4202   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4203   ac_status=$?
4204   if test -s conftest.err; then
4205     sed '10a\
4206 ... rest of stderr output deleted ...
4207          10q' conftest.err >conftest.er1
4208     cat conftest.er1 >&5
4209     rm -f conftest.er1 conftest.err
4210   fi
4211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4212   test $ac_status = 0; }
4213 done
4214
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4216 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4217 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4218   $as_echo_n "(cached) " >&6
4219 else
4220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h.  */
4222
4223 int
4224 main ()
4225 {
4226 #ifndef __GNUC__
4227        choke me
4228 #endif
4229
4230   ;
4231   return 0;
4232 }
4233 _ACEOF
4234 if ac_fn_c_try_compile "$LINENO"; then :
4235   ac_compiler_gnu=yes
4236 else
4237   ac_compiler_gnu=no
4238 fi
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4241
4242 fi
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4244 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4245 if test $ac_compiler_gnu = yes; then
4246   GCC=yes
4247 else
4248   GCC=
4249 fi
4250 ac_test_CFLAGS=${CFLAGS+set}
4251 ac_save_CFLAGS=$CFLAGS
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4253 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4254 if test "${ac_cv_prog_cc_g+set}" = set; then :
4255   $as_echo_n "(cached) " >&6
4256 else
4257   ac_save_c_werror_flag=$ac_c_werror_flag
4258    ac_c_werror_flag=yes
4259    ac_cv_prog_cc_g=no
4260    CFLAGS="-g"
4261    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h.  */
4263
4264 int
4265 main ()
4266 {
4267
4268   ;
4269   return 0;
4270 }
4271 _ACEOF
4272 if ac_fn_c_try_compile "$LINENO"; then :
4273   ac_cv_prog_cc_g=yes
4274 else
4275   CFLAGS=""
4276       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h.  */
4278
4279 int
4280 main ()
4281 {
4282
4283   ;
4284   return 0;
4285 }
4286 _ACEOF
4287 if ac_fn_c_try_compile "$LINENO"; then :
4288
4289 else
4290   ac_c_werror_flag=$ac_save_c_werror_flag
4291          CFLAGS="-g"
4292          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h.  */
4294
4295 int
4296 main ()
4297 {
4298
4299   ;
4300   return 0;
4301 }
4302 _ACEOF
4303 if ac_fn_c_try_compile "$LINENO"; then :
4304   ac_cv_prog_cc_g=yes
4305 fi
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 fi
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 fi
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311    ac_c_werror_flag=$ac_save_c_werror_flag
4312 fi
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4314 $as_echo "$ac_cv_prog_cc_g" >&6; }
4315 if test "$ac_test_CFLAGS" = set; then
4316   CFLAGS=$ac_save_CFLAGS
4317 elif test $ac_cv_prog_cc_g = yes; then
4318   if test "$GCC" = yes; then
4319     CFLAGS="-g -O2"
4320   else
4321     CFLAGS="-g"
4322   fi
4323 else
4324   if test "$GCC" = yes; then
4325     CFLAGS="-O2"
4326   else
4327     CFLAGS=
4328   fi
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4331 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4332 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4333   $as_echo_n "(cached) " >&6
4334 else
4335   ac_cv_prog_cc_c89=no
4336 ac_save_CC=$CC
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h.  */
4339 #include <stdarg.h>
4340 #include <stdio.h>
4341 #include <sys/types.h>
4342 #include <sys/stat.h>
4343 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4344 struct buf { int x; };
4345 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4346 static char *e (p, i)
4347      char **p;
4348      int i;
4349 {
4350   return p[i];
4351 }
4352 static char *f (char * (*g) (char **, int), char **p, ...)
4353 {
4354   char *s;
4355   va_list v;
4356   va_start (v,p);
4357   s = g (p, va_arg (v,int));
4358   va_end (v);
4359   return s;
4360 }
4361
4362 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4363    function prototypes and stuff, but not '\xHH' hex character constants.
4364    These don't provoke an error unfortunately, instead are silently treated
4365    as 'x'.  The following induces an error, until -std is added to get
4366    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4367    array size at least.  It's necessary to write '\x00'==0 to get something
4368    that's true only with -std.  */
4369 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4370
4371 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4372    inside strings and character constants.  */
4373 #define FOO(x) 'x'
4374 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4375
4376 int test (int i, double x);
4377 struct s1 {int (*f) (int a);};
4378 struct s2 {int (*f) (double a);};
4379 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4380 int argc;
4381 char **argv;
4382 int
4383 main ()
4384 {
4385 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4386   ;
4387   return 0;
4388 }
4389 _ACEOF
4390 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4391         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4392 do
4393   CC="$ac_save_CC $ac_arg"
4394   if ac_fn_c_try_compile "$LINENO"; then :
4395   ac_cv_prog_cc_c89=$ac_arg
4396 fi
4397 rm -f core conftest.err conftest.$ac_objext
4398   test "x$ac_cv_prog_cc_c89" != "xno" && break
4399 done
4400 rm -f conftest.$ac_ext
4401 CC=$ac_save_CC
4402
4403 fi
4404 # AC_CACHE_VAL
4405 case "x$ac_cv_prog_cc_c89" in
4406   x)
4407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4408 $as_echo "none needed" >&6; } ;;
4409   xno)
4410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4411 $as_echo "unsupported" >&6; } ;;
4412   *)
4413     CC="$CC $ac_cv_prog_cc_c89"
4414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4415 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4416 esac
4417 if test "x$ac_cv_prog_cc_c89" != xno; then :
4418
4419 fi
4420
4421 ac_ext=c
4422 ac_cpp='$CPP $CPPFLAGS'
4423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426
4427 ac_ext=c
4428 ac_cpp='$CPP $CPPFLAGS'
4429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4433 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4434 # On Suns, sometimes $CPP names a directory.
4435 if test -n "$CPP" && test -d "$CPP"; then
4436   CPP=
4437 fi
4438 if test -z "$CPP"; then
4439   if test "${ac_cv_prog_CPP+set}" = set; then :
4440   $as_echo_n "(cached) " >&6
4441 else
4442       # Double quotes because CPP needs to be expanded
4443     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4444     do
4445       ac_preproc_ok=false
4446 for ac_c_preproc_warn_flag in '' yes
4447 do
4448   # Use a header file that comes with gcc, so configuring glibc
4449   # with a fresh cross-compiler works.
4450   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4451   # <limits.h> exists even on freestanding compilers.
4452   # On the NeXT, cc -E runs the code through the compiler's parser,
4453   # not just through cpp. "Syntax error" is here to catch this case.
4454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h.  */
4456 #ifdef __STDC__
4457 # include <limits.h>
4458 #else
4459 # include <assert.h>
4460 #endif
4461                      Syntax error
4462 _ACEOF
4463 if ac_fn_c_try_cpp "$LINENO"; then :
4464
4465 else
4466   # Broken: fails on valid input.
4467 continue
4468 fi
4469 rm -f conftest.err conftest.$ac_ext
4470
4471   # OK, works on sane cases.  Now check whether nonexistent headers
4472   # can be detected and how.
4473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h.  */
4475 #include <ac_nonexistent.h>
4476 _ACEOF
4477 if ac_fn_c_try_cpp "$LINENO"; then :
4478   # Broken: success on invalid input.
4479 continue
4480 else
4481   # Passes both tests.
4482 ac_preproc_ok=:
4483 break
4484 fi
4485 rm -f conftest.err conftest.$ac_ext
4486
4487 done
4488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4489 rm -f conftest.err conftest.$ac_ext
4490 if $ac_preproc_ok; then :
4491   break
4492 fi
4493
4494     done
4495     ac_cv_prog_CPP=$CPP
4496
4497 fi
4498   CPP=$ac_cv_prog_CPP
4499 else
4500   ac_cv_prog_CPP=$CPP
4501 fi
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4503 $as_echo "$CPP" >&6; }
4504 ac_preproc_ok=false
4505 for ac_c_preproc_warn_flag in '' yes
4506 do
4507   # Use a header file that comes with gcc, so configuring glibc
4508   # with a fresh cross-compiler works.
4509   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4510   # <limits.h> exists even on freestanding compilers.
4511   # On the NeXT, cc -E runs the code through the compiler's parser,
4512   # not just through cpp. "Syntax error" is here to catch this case.
4513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h.  */
4515 #ifdef __STDC__
4516 # include <limits.h>
4517 #else
4518 # include <assert.h>
4519 #endif
4520                      Syntax error
4521 _ACEOF
4522 if ac_fn_c_try_cpp "$LINENO"; then :
4523
4524 else
4525   # Broken: fails on valid input.
4526 continue
4527 fi
4528 rm -f conftest.err conftest.$ac_ext
4529
4530   # OK, works on sane cases.  Now check whether nonexistent headers
4531   # can be detected and how.
4532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h.  */
4534 #include <ac_nonexistent.h>
4535 _ACEOF
4536 if ac_fn_c_try_cpp "$LINENO"; then :
4537   # Broken: success on invalid input.
4538 continue
4539 else
4540   # Passes both tests.
4541 ac_preproc_ok=:
4542 break
4543 fi
4544 rm -f conftest.err conftest.$ac_ext
4545
4546 done
4547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4548 rm -f conftest.err conftest.$ac_ext
4549 if $ac_preproc_ok; then :
4550
4551 else
4552   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4554 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4555 See \`config.log' for more details." "$LINENO" 5; }
4556 fi
4557
4558 ac_ext=c
4559 ac_cpp='$CPP $CPPFLAGS'
4560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563
4564
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4566 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4567 if test "${ac_cv_path_GREP+set}" = set; then :
4568   $as_echo_n "(cached) " >&6
4569 else
4570   if test -z "$GREP"; then
4571   ac_path_GREP_found=false
4572   # Loop through the user's path and test for each of PROGNAME-LIST
4573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4575 do
4576   IFS=$as_save_IFS
4577   test -z "$as_dir" && as_dir=.
4578     for ac_prog in grep ggrep; do
4579     for ac_exec_ext in '' $ac_executable_extensions; do
4580       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4581       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4582 # Check for GNU ac_path_GREP and select it if it is found.
4583   # Check for GNU $ac_path_GREP
4584 case `"$ac_path_GREP" --version 2>&1` in
4585 *GNU*)
4586   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4587 *)
4588   ac_count=0
4589   $as_echo_n 0123456789 >"conftest.in"
4590   while :
4591   do
4592     cat "conftest.in" "conftest.in" >"conftest.tmp"
4593     mv "conftest.tmp" "conftest.in"
4594     cp "conftest.in" "conftest.nl"
4595     $as_echo 'GREP' >> "conftest.nl"
4596     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4597     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4598     as_fn_arith $ac_count + 1 && ac_count=$as_val
4599     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4600       # Best one so far, save it but keep looking for a better one
4601       ac_cv_path_GREP="$ac_path_GREP"
4602       ac_path_GREP_max=$ac_count
4603     fi
4604     # 10*(2^10) chars as input seems more than enough
4605     test $ac_count -gt 10 && break
4606   done
4607   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4608 esac
4609
4610       $ac_path_GREP_found && break 3
4611     done
4612   done
4613   done
4614 IFS=$as_save_IFS
4615   if test -z "$ac_cv_path_GREP"; then
4616     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4617   fi
4618 else
4619   ac_cv_path_GREP=$GREP
4620 fi
4621
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4624 $as_echo "$ac_cv_path_GREP" >&6; }
4625  GREP="$ac_cv_path_GREP"
4626
4627
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4629 $as_echo_n "checking for egrep... " >&6; }
4630 if test "${ac_cv_path_EGREP+set}" = set; then :
4631   $as_echo_n "(cached) " >&6
4632 else
4633   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4634    then ac_cv_path_EGREP="$GREP -E"
4635    else
4636      if test -z "$EGREP"; then
4637   ac_path_EGREP_found=false
4638   # Loop through the user's path and test for each of PROGNAME-LIST
4639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4641 do
4642   IFS=$as_save_IFS
4643   test -z "$as_dir" && as_dir=.
4644     for ac_prog in egrep; do
4645     for ac_exec_ext in '' $ac_executable_extensions; do
4646       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4647       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4648 # Check for GNU ac_path_EGREP and select it if it is found.
4649   # Check for GNU $ac_path_EGREP
4650 case `"$ac_path_EGREP" --version 2>&1` in
4651 *GNU*)
4652   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4653 *)
4654   ac_count=0
4655   $as_echo_n 0123456789 >"conftest.in"
4656   while :
4657   do
4658     cat "conftest.in" "conftest.in" >"conftest.tmp"
4659     mv "conftest.tmp" "conftest.in"
4660     cp "conftest.in" "conftest.nl"
4661     $as_echo 'EGREP' >> "conftest.nl"
4662     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4663     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4664     as_fn_arith $ac_count + 1 && ac_count=$as_val
4665     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4666       # Best one so far, save it but keep looking for a better one
4667       ac_cv_path_EGREP="$ac_path_EGREP"
4668       ac_path_EGREP_max=$ac_count
4669     fi
4670     # 10*(2^10) chars as input seems more than enough
4671     test $ac_count -gt 10 && break
4672   done
4673   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4674 esac
4675
4676       $ac_path_EGREP_found && break 3
4677     done
4678   done
4679   done
4680 IFS=$as_save_IFS
4681   if test -z "$ac_cv_path_EGREP"; then
4682     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4683   fi
4684 else
4685   ac_cv_path_EGREP=$EGREP
4686 fi
4687
4688    fi
4689 fi
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4691 $as_echo "$ac_cv_path_EGREP" >&6; }
4692  EGREP="$ac_cv_path_EGREP"
4693
4694
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4696 $as_echo_n "checking for ANSI C header files... " >&6; }
4697 if test "${ac_cv_header_stdc+set}" = set; then :
4698   $as_echo_n "(cached) " >&6
4699 else
4700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h.  */
4702 #include <stdlib.h>
4703 #include <stdarg.h>
4704 #include <string.h>
4705 #include <float.h>
4706
4707 int
4708 main ()
4709 {
4710
4711   ;
4712   return 0;
4713 }
4714 _ACEOF
4715 if ac_fn_c_try_compile "$LINENO"; then :
4716   ac_cv_header_stdc=yes
4717 else
4718   ac_cv_header_stdc=no
4719 fi
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721
4722 if test $ac_cv_header_stdc = yes; then
4723   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h.  */
4726 #include <string.h>
4727
4728 _ACEOF
4729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4730   $EGREP "memchr" >/dev/null 2>&1; then :
4731
4732 else
4733   ac_cv_header_stdc=no
4734 fi
4735 rm -f conftest*
4736
4737 fi
4738
4739 if test $ac_cv_header_stdc = yes; then
4740   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h.  */
4743 #include <stdlib.h>
4744
4745 _ACEOF
4746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4747   $EGREP "free" >/dev/null 2>&1; then :
4748
4749 else
4750   ac_cv_header_stdc=no
4751 fi
4752 rm -f conftest*
4753
4754 fi
4755
4756 if test $ac_cv_header_stdc = yes; then
4757   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4758   if test "$cross_compiling" = yes; then :
4759   :
4760 else
4761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h.  */
4763 #include <ctype.h>
4764 #include <stdlib.h>
4765 #if ((' ' & 0x0FF) == 0x020)
4766 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4767 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4768 #else
4769 # define ISLOWER(c) \
4770                    (('a' <= (c) && (c) <= 'i') \
4771                      || ('j' <= (c) && (c) <= 'r') \
4772                      || ('s' <= (c) && (c) <= 'z'))
4773 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4774 #endif
4775
4776 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4777 int
4778 main ()
4779 {
4780   int i;
4781   for (i = 0; i < 256; i++)
4782     if (XOR (islower (i), ISLOWER (i))
4783         || toupper (i) != TOUPPER (i))
4784       return 2;
4785   return 0;
4786 }
4787 _ACEOF
4788 if ac_fn_c_try_run "$LINENO"; then :
4789
4790 else
4791   ac_cv_header_stdc=no
4792 fi
4793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4794   conftest.$ac_objext conftest.beam conftest.$ac_ext
4795 fi
4796
4797 fi
4798 fi
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4800 $as_echo "$ac_cv_header_stdc" >&6; }
4801 if test $ac_cv_header_stdc = yes; then
4802
4803 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4804
4805 fi
4806
4807 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4808 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4809                   inttypes.h stdint.h unistd.h
4810 do :
4811   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4812 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4813 "
4814 eval as_val=\$$as_ac_Header
4815    if test "x$as_val" = x""yes; then :
4816   cat >>confdefs.h <<_ACEOF
4817 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4818 _ACEOF
4819
4820 fi
4821
4822 done
4823
4824
4825
4826   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4827 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4828   MINIX=yes
4829 else
4830   MINIX=
4831 fi
4832
4833
4834   if test "$MINIX" = yes; then
4835
4836 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4837
4838
4839 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4840
4841
4842 $as_echo "#define _MINIX 1" >>confdefs.h
4843
4844   fi
4845
4846
4847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4848 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4849 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4850   $as_echo_n "(cached) " >&6
4851 else
4852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h.  */
4854
4855 #         define __EXTENSIONS__ 1
4856           $ac_includes_default
4857 int
4858 main ()
4859 {
4860
4861   ;
4862   return 0;
4863 }
4864 _ACEOF
4865 if ac_fn_c_try_compile "$LINENO"; then :
4866   ac_cv_safe_to_define___extensions__=yes
4867 else
4868   ac_cv_safe_to_define___extensions__=no
4869 fi
4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871 fi
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4873 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4874   test $ac_cv_safe_to_define___extensions__ = yes &&
4875     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4876
4877   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4878
4879   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4880
4881   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4882
4883   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4884
4885
4886
4887
4888
4889 if test -n "$ac_tool_prefix"; then
4890   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4891 set dummy ${ac_tool_prefix}ar; ac_word=$2
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4894 if test "${ac_cv_prog_AR+set}" = set; then :
4895   $as_echo_n "(cached) " >&6
4896 else
4897   if test -n "$AR"; then
4898   ac_cv_prog_AR="$AR" # Let the user override the test.
4899 else
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905     for ac_exec_ext in '' $ac_executable_extensions; do
4906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4907     ac_cv_prog_AR="${ac_tool_prefix}ar"
4908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4909     break 2
4910   fi
4911 done
4912   done
4913 IFS=$as_save_IFS
4914
4915 fi
4916 fi
4917 AR=$ac_cv_prog_AR
4918 if test -n "$AR"; then
4919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4920 $as_echo "$AR" >&6; }
4921 else
4922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4924 fi
4925
4926
4927 fi
4928 if test -z "$ac_cv_prog_AR"; then
4929   ac_ct_AR=$AR
4930   # Extract the first word of "ar", so it can be a program name with args.
4931 set dummy ar; ac_word=$2
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933 $as_echo_n "checking for $ac_word... " >&6; }
4934 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4935   $as_echo_n "(cached) " >&6
4936 else
4937   if test -n "$ac_ct_AR"; then
4938   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4939 else
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4942 do
4943   IFS=$as_save_IFS
4944   test -z "$as_dir" && as_dir=.
4945     for ac_exec_ext in '' $ac_executable_extensions; do
4946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4947     ac_cv_prog_ac_ct_AR="ar"
4948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949     break 2
4950   fi
4951 done
4952   done
4953 IFS=$as_save_IFS
4954
4955 fi
4956 fi
4957 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4958 if test -n "$ac_ct_AR"; then
4959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4960 $as_echo "$ac_ct_AR" >&6; }
4961 else
4962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963 $as_echo "no" >&6; }
4964 fi
4965
4966   if test "x$ac_ct_AR" = x; then
4967     AR=""
4968   else
4969     case $cross_compiling:$ac_tool_warned in
4970 yes:)
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4973 ac_tool_warned=yes ;;
4974 esac
4975     AR=$ac_ct_AR
4976   fi
4977 else
4978   AR="$ac_cv_prog_AR"
4979 fi
4980
4981 if test -n "$ac_tool_prefix"; then
4982   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4983 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4987   $as_echo_n "(cached) " >&6
4988 else
4989   if test -n "$RANLIB"; then
4990   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4994 do
4995   IFS=$as_save_IFS
4996   test -z "$as_dir" && as_dir=.
4997     for ac_exec_ext in '' $ac_executable_extensions; do
4998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001     break 2
5002   fi
5003 done
5004   done
5005 IFS=$as_save_IFS
5006
5007 fi
5008 fi
5009 RANLIB=$ac_cv_prog_RANLIB
5010 if test -n "$RANLIB"; then
5011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5012 $as_echo "$RANLIB" >&6; }
5013 else
5014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5016 fi
5017
5018
5019 fi
5020 if test -z "$ac_cv_prog_RANLIB"; then
5021   ac_ct_RANLIB=$RANLIB
5022   # Extract the first word of "ranlib", so it can be a program name with args.
5023 set dummy ranlib; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5027   $as_echo_n "(cached) " >&6
5028 else
5029   if test -n "$ac_ct_RANLIB"; then
5030   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035   IFS=$as_save_IFS
5036   test -z "$as_dir" && as_dir=.
5037     for ac_exec_ext in '' $ac_executable_extensions; do
5038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039     ac_cv_prog_ac_ct_RANLIB="ranlib"
5040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041     break 2
5042   fi
5043 done
5044   done
5045 IFS=$as_save_IFS
5046
5047 fi
5048 fi
5049 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5050 if test -n "$ac_ct_RANLIB"; then
5051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5052 $as_echo "$ac_ct_RANLIB" >&6; }
5053 else
5054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5056 fi
5057
5058   if test "x$ac_ct_RANLIB" = x; then
5059     RANLIB=":"
5060   else
5061     case $cross_compiling:$ac_tool_warned in
5062 yes:)
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5065 ac_tool_warned=yes ;;
5066 esac
5067     RANLIB=$ac_ct_RANLIB
5068   fi
5069 else
5070   RANLIB="$ac_cv_prog_RANLIB"
5071 fi
5072
5073
5074 # Check whether --enable-shared was given.
5075 if test "${enable_shared+set}" = set; then :
5076   enableval=$enable_shared; p=${PACKAGE-default}
5077     case $enableval in
5078     yes) enable_shared=yes ;;
5079     no) enable_shared=no ;;
5080     *)
5081       enable_shared=no
5082       # Look at the argument we got.  We use all the common list separators.
5083       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5084       for pkg in $enableval; do
5085         IFS="$lt_save_ifs"
5086         if test "X$pkg" = "X$p"; then
5087           enable_shared=yes
5088         fi
5089       done
5090       IFS="$lt_save_ifs"
5091       ;;
5092     esac
5093 else
5094   enable_shared=no
5095 fi
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106 case `pwd` in
5107   *\ * | *\     *)
5108     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5109 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5110 esac
5111
5112
5113
5114 macro_version='2.2.7a'
5115 macro_revision='1.3134'
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129 ltmain="$ac_aux_dir/ltmain.sh"
5130
5131 # Backslashify metacharacters that are still active within
5132 # double-quoted strings.
5133 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5134
5135 # Same as above, but do not quote variable references.
5136 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5137
5138 # Sed substitution to delay expansion of an escaped shell variable in a
5139 # double_quote_subst'ed string.
5140 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5141
5142 # Sed substitution to delay expansion of an escaped single quote.
5143 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5144
5145 # Sed substitution to avoid accidental globbing in evaled expressions
5146 no_glob_subst='s/\*/\\\*/g'
5147
5148 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5149 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5150 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5151
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5153 $as_echo_n "checking how to print strings... " >&6; }
5154 # Test print first, because it will be a builtin if present.
5155 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5156    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5157   ECHO='print -r --'
5158 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5159   ECHO='printf %s\n'
5160 else
5161   # Use this function as a fallback that always works.
5162   func_fallback_echo ()
5163   {
5164     eval 'cat <<_LTECHO_EOF
5165 $1
5166 _LTECHO_EOF'
5167   }
5168   ECHO='func_fallback_echo'
5169 fi
5170
5171 # func_echo_all arg...
5172 # Invoke $ECHO with all args, space-separated.
5173 func_echo_all ()
5174 {
5175     $ECHO ""
5176 }
5177
5178 case "$ECHO" in
5179   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5180 $as_echo "printf" >&6; } ;;
5181   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5182 $as_echo "print -r" >&6; } ;;
5183   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5184 $as_echo "cat" >&6; } ;;
5185 esac
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5201 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5202 if test "${ac_cv_path_SED+set}" = set; then :
5203   $as_echo_n "(cached) " >&6
5204 else
5205             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5206      for ac_i in 1 2 3 4 5 6 7; do
5207        ac_script="$ac_script$as_nl$ac_script"
5208      done
5209      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5210      { ac_script=; unset ac_script;}
5211      if test -z "$SED"; then
5212   ac_path_SED_found=false
5213   # Loop through the user's path and test for each of PROGNAME-LIST
5214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5216 do
5217   IFS=$as_save_IFS
5218   test -z "$as_dir" && as_dir=.
5219     for ac_prog in sed gsed; do
5220     for ac_exec_ext in '' $ac_executable_extensions; do
5221       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5222       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5223 # Check for GNU ac_path_SED and select it if it is found.
5224   # Check for GNU $ac_path_SED
5225 case `"$ac_path_SED" --version 2>&1` in
5226 *GNU*)
5227   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5228 *)
5229   ac_count=0
5230   $as_echo_n 0123456789 >"conftest.in"
5231   while :
5232   do
5233     cat "conftest.in" "conftest.in" >"conftest.tmp"
5234     mv "conftest.tmp" "conftest.in"
5235     cp "conftest.in" "conftest.nl"
5236     $as_echo '' >> "conftest.nl"
5237     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5238     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5239     as_fn_arith $ac_count + 1 && ac_count=$as_val
5240     if test $ac_count -gt ${ac_path_SED_max-0}; then
5241       # Best one so far, save it but keep looking for a better one
5242       ac_cv_path_SED="$ac_path_SED"
5243       ac_path_SED_max=$ac_count
5244     fi
5245     # 10*(2^10) chars as input seems more than enough
5246     test $ac_count -gt 10 && break
5247   done
5248   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5249 esac
5250
5251       $ac_path_SED_found && break 3
5252     done
5253   done
5254   done
5255 IFS=$as_save_IFS
5256   if test -z "$ac_cv_path_SED"; then
5257     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5258   fi
5259 else
5260   ac_cv_path_SED=$SED
5261 fi
5262
5263 fi
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5265 $as_echo "$ac_cv_path_SED" >&6; }
5266  SED="$ac_cv_path_SED"
5267   rm -f conftest.sed
5268
5269 test -z "$SED" && SED=sed
5270 Xsed="$SED -e 1s/^X//"
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5283 $as_echo_n "checking for fgrep... " >&6; }
5284 if test "${ac_cv_path_FGREP+set}" = set; then :
5285   $as_echo_n "(cached) " >&6
5286 else
5287   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5288    then ac_cv_path_FGREP="$GREP -F"
5289    else
5290      if test -z "$FGREP"; then
5291   ac_path_FGREP_found=false
5292   # Loop through the user's path and test for each of PROGNAME-LIST
5293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5295 do
5296   IFS=$as_save_IFS
5297   test -z "$as_dir" && as_dir=.
5298     for ac_prog in fgrep; do
5299     for ac_exec_ext in '' $ac_executable_extensions; do
5300       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5301       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5302 # Check for GNU ac_path_FGREP and select it if it is found.
5303   # Check for GNU $ac_path_FGREP
5304 case `"$ac_path_FGREP" --version 2>&1` in
5305 *GNU*)
5306   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5307 *)
5308   ac_count=0
5309   $as_echo_n 0123456789 >"conftest.in"
5310   while :
5311   do
5312     cat "conftest.in" "conftest.in" >"conftest.tmp"
5313     mv "conftest.tmp" "conftest.in"
5314     cp "conftest.in" "conftest.nl"
5315     $as_echo 'FGREP' >> "conftest.nl"
5316     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5317     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5318     as_fn_arith $ac_count + 1 && ac_count=$as_val
5319     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5320       # Best one so far, save it but keep looking for a better one
5321       ac_cv_path_FGREP="$ac_path_FGREP"
5322       ac_path_FGREP_max=$ac_count
5323     fi
5324     # 10*(2^10) chars as input seems more than enough
5325     test $ac_count -gt 10 && break
5326   done
5327   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5328 esac
5329
5330       $ac_path_FGREP_found && break 3
5331     done
5332   done
5333   done
5334 IFS=$as_save_IFS
5335   if test -z "$ac_cv_path_FGREP"; then
5336     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5337   fi
5338 else
5339   ac_cv_path_FGREP=$FGREP
5340 fi
5341
5342    fi
5343 fi
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5345 $as_echo "$ac_cv_path_FGREP" >&6; }
5346  FGREP="$ac_cv_path_FGREP"
5347
5348
5349 test -z "$GREP" && GREP=grep
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369 # Check whether --with-gnu-ld was given.
5370 if test "${with_gnu_ld+set}" = set; then :
5371   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5372 else
5373   with_gnu_ld=no
5374 fi
5375
5376 ac_prog=ld
5377 if test "$GCC" = yes; then
5378   # Check if gcc -print-prog-name=ld gives a path.
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5380 $as_echo_n "checking for ld used by $CC... " >&6; }
5381   case $host in
5382   *-*-mingw*)
5383     # gcc leaves a trailing carriage return which upsets mingw
5384     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5385   *)
5386     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5387   esac
5388   case $ac_prog in
5389     # Accept absolute paths.
5390     [\\/]* | ?:[\\/]*)
5391       re_direlt='/[^/][^/]*/\.\./'
5392       # Canonicalize the pathname of ld
5393       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5394       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5395         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5396       done
5397       test -z "$LD" && LD="$ac_prog"
5398       ;;
5399   "")
5400     # If it fails, then pretend we aren't using GCC.
5401     ac_prog=ld
5402     ;;
5403   *)
5404     # If it is relative, then search for the first ld in PATH.
5405     with_gnu_ld=unknown
5406     ;;
5407   esac
5408 elif test "$with_gnu_ld" = yes; then
5409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5410 $as_echo_n "checking for GNU ld... " >&6; }
5411 else
5412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5413 $as_echo_n "checking for non-GNU ld... " >&6; }
5414 fi
5415 if test "${lt_cv_path_LD+set}" = set; then :
5416   $as_echo_n "(cached) " >&6
5417 else
5418   if test -z "$LD"; then
5419   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5420   for ac_dir in $PATH; do
5421     IFS="$lt_save_ifs"
5422     test -z "$ac_dir" && ac_dir=.
5423     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5424       lt_cv_path_LD="$ac_dir/$ac_prog"
5425       # Check to see if the program is GNU ld.  I'd rather use --version,
5426       # but apparently some variants of GNU ld only accept -v.
5427       # Break only if it was the GNU/non-GNU ld that we prefer.
5428       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5429       *GNU* | *'with BFD'*)
5430         test "$with_gnu_ld" != no && break
5431         ;;
5432       *)
5433         test "$with_gnu_ld" != yes && break
5434         ;;
5435       esac
5436     fi
5437   done
5438   IFS="$lt_save_ifs"
5439 else
5440   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5441 fi
5442 fi
5443
5444 LD="$lt_cv_path_LD"
5445 if test -n "$LD"; then
5446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5447 $as_echo "$LD" >&6; }
5448 else
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5451 fi
5452 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5454 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5455 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5456   $as_echo_n "(cached) " >&6
5457 else
5458   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5459 case `$LD -v 2>&1 </dev/null` in
5460 *GNU* | *'with BFD'*)
5461   lt_cv_prog_gnu_ld=yes
5462   ;;
5463 *)
5464   lt_cv_prog_gnu_ld=no
5465   ;;
5466 esac
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5469 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5470 with_gnu_ld=$lt_cv_prog_gnu_ld
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5481 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5482 if test "${lt_cv_path_NM+set}" = set; then :
5483   $as_echo_n "(cached) " >&6
5484 else
5485   if test -n "$NM"; then
5486   # Let the user override the test.
5487   lt_cv_path_NM="$NM"
5488 else
5489   lt_nm_to_check="${ac_tool_prefix}nm"
5490   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5491     lt_nm_to_check="$lt_nm_to_check nm"
5492   fi
5493   for lt_tmp_nm in $lt_nm_to_check; do
5494     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5495     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5496       IFS="$lt_save_ifs"
5497       test -z "$ac_dir" && ac_dir=.
5498       tmp_nm="$ac_dir/$lt_tmp_nm"
5499       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5500         # Check to see if the nm accepts a BSD-compat flag.
5501         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5502         #   nm: unknown option "B" ignored
5503         # Tru64's nm complains that /dev/null is an invalid object file
5504         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5505         */dev/null* | *'Invalid file or object type'*)
5506           lt_cv_path_NM="$tmp_nm -B"
5507           break
5508           ;;
5509         *)
5510           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5511           */dev/null*)
5512             lt_cv_path_NM="$tmp_nm -p"
5513             break
5514             ;;
5515           *)
5516             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5517             continue # so that we can try to find one that supports BSD flags
5518             ;;
5519           esac
5520           ;;
5521         esac
5522       fi
5523     done
5524     IFS="$lt_save_ifs"
5525   done
5526   : ${lt_cv_path_NM=no}
5527 fi
5528 fi
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5530 $as_echo "$lt_cv_path_NM" >&6; }
5531 if test "$lt_cv_path_NM" != "no"; then
5532   NM="$lt_cv_path_NM"
5533 else
5534   # Didn't find any BSD compatible name lister, look for dumpbin.
5535   if test -n "$DUMPBIN"; then :
5536     # Let the user override the test.
5537   else
5538     if test -n "$ac_tool_prefix"; then
5539   for ac_prog in dumpbin "link -dump"
5540   do
5541     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5546   $as_echo_n "(cached) " >&6
5547 else
5548   if test -n "$DUMPBIN"; then
5549   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5550 else
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5553 do
5554   IFS=$as_save_IFS
5555   test -z "$as_dir" && as_dir=.
5556     for ac_exec_ext in '' $ac_executable_extensions; do
5557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5558     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560     break 2
5561   fi
5562 done
5563   done
5564 IFS=$as_save_IFS
5565
5566 fi
5567 fi
5568 DUMPBIN=$ac_cv_prog_DUMPBIN
5569 if test -n "$DUMPBIN"; then
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5571 $as_echo "$DUMPBIN" >&6; }
5572 else
5573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5575 fi
5576
5577
5578     test -n "$DUMPBIN" && break
5579   done
5580 fi
5581 if test -z "$DUMPBIN"; then
5582   ac_ct_DUMPBIN=$DUMPBIN
5583   for ac_prog in dumpbin "link -dump"
5584 do
5585   # Extract the first word of "$ac_prog", so it can be a program name with args.
5586 set dummy $ac_prog; ac_word=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 $as_echo_n "checking for $ac_word... " >&6; }
5589 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5590   $as_echo_n "(cached) " >&6
5591 else
5592   if test -n "$ac_ct_DUMPBIN"; then
5593   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5594 else
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5597 do
5598   IFS=$as_save_IFS
5599   test -z "$as_dir" && as_dir=.
5600     for ac_exec_ext in '' $ac_executable_extensions; do
5601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5602     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604     break 2
5605   fi
5606 done
5607   done
5608 IFS=$as_save_IFS
5609
5610 fi
5611 fi
5612 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5613 if test -n "$ac_ct_DUMPBIN"; then
5614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5615 $as_echo "$ac_ct_DUMPBIN" >&6; }
5616 else
5617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5619 fi
5620
5621
5622   test -n "$ac_ct_DUMPBIN" && break
5623 done
5624
5625   if test "x$ac_ct_DUMPBIN" = x; then
5626     DUMPBIN=":"
5627   else
5628     case $cross_compiling:$ac_tool_warned in
5629 yes:)
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5632 ac_tool_warned=yes ;;
5633 esac
5634     DUMPBIN=$ac_ct_DUMPBIN
5635   fi
5636 fi
5637
5638     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5639     *COFF*)
5640       DUMPBIN="$DUMPBIN -symbols"
5641       ;;
5642     *)
5643       DUMPBIN=:
5644       ;;
5645     esac
5646   fi
5647
5648   if test "$DUMPBIN" != ":"; then
5649     NM="$DUMPBIN"
5650   fi
5651 fi
5652 test -z "$NM" && NM=nm
5653
5654
5655
5656
5657
5658
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5660 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5661 if test "${lt_cv_nm_interface+set}" = set; then :
5662   $as_echo_n "(cached) " >&6
5663 else
5664   lt_cv_nm_interface="BSD nm"
5665   echo "int some_variable = 0;" > conftest.$ac_ext
5666   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5667   (eval "$ac_compile" 2>conftest.err)
5668   cat conftest.err >&5
5669   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5670   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5671   cat conftest.err >&5
5672   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5673   cat conftest.out >&5
5674   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5675     lt_cv_nm_interface="MS dumpbin"
5676   fi
5677   rm -f conftest*
5678 fi
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5680 $as_echo "$lt_cv_nm_interface" >&6; }
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5683 $as_echo_n "checking whether ln -s works... " >&6; }
5684 LN_S=$as_ln_s
5685 if test "$LN_S" = "ln -s"; then
5686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5687 $as_echo "yes" >&6; }
5688 else
5689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5690 $as_echo "no, using $LN_S" >&6; }
5691 fi
5692
5693 # find the maximum length of command line arguments
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5695 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5696 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5697   $as_echo_n "(cached) " >&6
5698 else
5699     i=0
5700   teststring="ABCD"
5701
5702   case $build_os in
5703   msdosdjgpp*)
5704     # On DJGPP, this test can blow up pretty badly due to problems in libc
5705     # (any single argument exceeding 2000 bytes causes a buffer overrun
5706     # during glob expansion).  Even if it were fixed, the result of this
5707     # check would be larger than it should be.
5708     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5709     ;;
5710
5711   gnu*)
5712     # Under GNU Hurd, this test is not required because there is
5713     # no limit to the length of command line arguments.
5714     # Libtool will interpret -1 as no limit whatsoever
5715     lt_cv_sys_max_cmd_len=-1;
5716     ;;
5717
5718   cygwin* | mingw* | cegcc*)
5719     # On Win9x/ME, this test blows up -- it succeeds, but takes
5720     # about 5 minutes as the teststring grows exponentially.
5721     # Worse, since 9x/ME are not pre-emptively multitasking,
5722     # you end up with a "frozen" computer, even though with patience
5723     # the test eventually succeeds (with a max line length of 256k).
5724     # Instead, let's just punt: use the minimum linelength reported by
5725     # all of the supported platforms: 8192 (on NT/2K/XP).
5726     lt_cv_sys_max_cmd_len=8192;
5727     ;;
5728
5729   mint*)
5730     # On MiNT this can take a long time and run out of memory.
5731     lt_cv_sys_max_cmd_len=8192;
5732     ;;
5733
5734   amigaos*)
5735     # On AmigaOS with pdksh, this test takes hours, literally.
5736     # So we just punt and use a minimum line length of 8192.
5737     lt_cv_sys_max_cmd_len=8192;
5738     ;;
5739
5740   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5741     # This has been around since 386BSD, at least.  Likely further.
5742     if test -x /sbin/sysctl; then
5743       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5744     elif test -x /usr/sbin/sysctl; then
5745       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5746     else
5747       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5748     fi
5749     # And add a safety zone
5750     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5751     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5752     ;;
5753
5754   interix*)
5755     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5756     lt_cv_sys_max_cmd_len=196608
5757     ;;
5758
5759   osf*)
5760     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5761     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5762     # nice to cause kernel panics so lets avoid the loop below.
5763     # First set a reasonable default.
5764     lt_cv_sys_max_cmd_len=16384
5765     #
5766     if test -x /sbin/sysconfig; then
5767       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5768         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5769       esac
5770     fi
5771     ;;
5772   sco3.2v5*)
5773     lt_cv_sys_max_cmd_len=102400
5774     ;;
5775   sysv5* | sco5v6* | sysv4.2uw2*)
5776     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5777     if test -n "$kargmax"; then
5778       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5779     else
5780       lt_cv_sys_max_cmd_len=32768
5781     fi
5782     ;;
5783   *)
5784     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5785     if test -n "$lt_cv_sys_max_cmd_len"; then
5786       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5787       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5788     else
5789       # Make teststring a little bigger before we do anything with it.
5790       # a 1K string should be a reasonable start.
5791       for i in 1 2 3 4 5 6 7 8 ; do
5792         teststring=$teststring$teststring
5793       done
5794       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5795       # If test is not a shell built-in, we'll probably end up computing a
5796       # maximum length that is only half of the actual maximum length, but
5797       # we can't tell.
5798       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5799                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5800               test $i != 17 # 1/2 MB should be enough
5801       do
5802         i=`expr $i + 1`
5803         teststring=$teststring$teststring
5804       done
5805       # Only check the string length outside the loop.
5806       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5807       teststring=
5808       # Add a significant safety factor because C++ compilers can tack on
5809       # massive amounts of additional arguments before passing them to the
5810       # linker.  It appears as though 1/2 is a usable value.
5811       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5812     fi
5813     ;;
5814   esac
5815
5816 fi
5817
5818 if test -n $lt_cv_sys_max_cmd_len ; then
5819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5820 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5821 else
5822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5823 $as_echo "none" >&6; }
5824 fi
5825 max_cmd_len=$lt_cv_sys_max_cmd_len
5826
5827
5828
5829
5830
5831
5832 : ${CP="cp -f"}
5833 : ${MV="mv -f"}
5834 : ${RM="rm -f"}
5835
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5837 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5838 # Try some XSI features
5839 xsi_shell=no
5840 ( _lt_dummy="a/b/c"
5841   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5842       = c,a/b,, \
5843     && eval 'test $(( 1 + 1 )) -eq 2 \
5844     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5845   && xsi_shell=yes
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5847 $as_echo "$xsi_shell" >&6; }
5848
5849
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5851 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5852 lt_shell_append=no
5853 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5854     >/dev/null 2>&1 \
5855   && lt_shell_append=yes
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5857 $as_echo "$lt_shell_append" >&6; }
5858
5859
5860 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5861   lt_unset=unset
5862 else
5863   lt_unset=false
5864 fi
5865
5866
5867
5868
5869
5870 # test EBCDIC or ASCII
5871 case `echo X|tr X '\101'` in
5872  A) # ASCII based system
5873     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5874   lt_SP2NL='tr \040 \012'
5875   lt_NL2SP='tr \015\012 \040\040'
5876   ;;
5877  *) # EBCDIC based system
5878   lt_SP2NL='tr \100 \n'
5879   lt_NL2SP='tr \r\n \100\100'
5880   ;;
5881 esac
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5892 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5893 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5894   $as_echo_n "(cached) " >&6
5895 else
5896   lt_cv_ld_reload_flag='-r'
5897 fi
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5899 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5900 reload_flag=$lt_cv_ld_reload_flag
5901 case $reload_flag in
5902 "" | " "*) ;;
5903 *) reload_flag=" $reload_flag" ;;
5904 esac
5905 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5906 case $host_os in
5907   darwin*)
5908     if test "$GCC" = yes; then
5909       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5910     else
5911       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5912     fi
5913     ;;
5914 esac
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924 if test -n "$ac_tool_prefix"; then
5925   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5926 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5930   $as_echo_n "(cached) " >&6
5931 else
5932   if test -n "$OBJDUMP"; then
5933   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938   IFS=$as_save_IFS
5939   test -z "$as_dir" && as_dir=.
5940     for ac_exec_ext in '' $ac_executable_extensions; do
5941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944     break 2
5945   fi
5946 done
5947   done
5948 IFS=$as_save_IFS
5949
5950 fi
5951 fi
5952 OBJDUMP=$ac_cv_prog_OBJDUMP
5953 if test -n "$OBJDUMP"; then
5954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5955 $as_echo "$OBJDUMP" >&6; }
5956 else
5957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960
5961
5962 fi
5963 if test -z "$ac_cv_prog_OBJDUMP"; then
5964   ac_ct_OBJDUMP=$OBJDUMP
5965   # Extract the first word of "objdump", so it can be a program name with args.
5966 set dummy objdump; ac_word=$2
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968 $as_echo_n "checking for $ac_word... " >&6; }
5969 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5970   $as_echo_n "(cached) " >&6
5971 else
5972   if test -n "$ac_ct_OBJDUMP"; then
5973   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5974 else
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978   IFS=$as_save_IFS
5979   test -z "$as_dir" && as_dir=.
5980     for ac_exec_ext in '' $ac_executable_extensions; do
5981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5982     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984     break 2
5985   fi
5986 done
5987   done
5988 IFS=$as_save_IFS
5989
5990 fi
5991 fi
5992 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5993 if test -n "$ac_ct_OBJDUMP"; then
5994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5995 $as_echo "$ac_ct_OBJDUMP" >&6; }
5996 else
5997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998 $as_echo "no" >&6; }
5999 fi
6000
6001   if test "x$ac_ct_OBJDUMP" = x; then
6002     OBJDUMP="false"
6003   else
6004     case $cross_compiling:$ac_tool_warned in
6005 yes:)
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6008 ac_tool_warned=yes ;;
6009 esac
6010     OBJDUMP=$ac_ct_OBJDUMP
6011   fi
6012 else
6013   OBJDUMP="$ac_cv_prog_OBJDUMP"
6014 fi
6015
6016 test -z "$OBJDUMP" && OBJDUMP=objdump
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6027 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6028 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6029   $as_echo_n "(cached) " >&6
6030 else
6031   lt_cv_file_magic_cmd='$MAGIC_CMD'
6032 lt_cv_file_magic_test_file=
6033 lt_cv_deplibs_check_method='unknown'
6034 # Need to set the preceding variable on all platforms that support
6035 # interlibrary dependencies.
6036 # 'none' -- dependencies not supported.
6037 # `unknown' -- same as none, but documents that we really don't know.
6038 # 'pass_all' -- all dependencies passed with no checks.
6039 # 'test_compile' -- check by making test program.
6040 # 'file_magic [[regex]]' -- check by looking for files in library path
6041 # which responds to the $file_magic_cmd with a given extended regex.
6042 # If you have `file' or equivalent on your system and you're not sure
6043 # whether `pass_all' will *always* work, you probably want this one.
6044
6045 case $host_os in
6046 aix[4-9]*)
6047   lt_cv_deplibs_check_method=pass_all
6048   ;;
6049
6050 beos*)
6051   lt_cv_deplibs_check_method=pass_all
6052   ;;
6053
6054 bsdi[45]*)
6055   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6056   lt_cv_file_magic_cmd='/usr/bin/file -L'
6057   lt_cv_file_magic_test_file=/shlib/libc.so
6058   ;;
6059
6060 cygwin*)
6061   # func_win32_libid is a shell function defined in ltmain.sh
6062   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6063   lt_cv_file_magic_cmd='func_win32_libid'
6064   ;;
6065
6066 mingw* | pw32*)
6067   # Base MSYS/MinGW do not provide the 'file' command needed by
6068   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6069   # unless we find 'file', for example because we are cross-compiling.
6070   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6071   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6072     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6073     lt_cv_file_magic_cmd='func_win32_libid'
6074   else
6075     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6076     lt_cv_file_magic_cmd='$OBJDUMP -f'
6077   fi
6078   ;;
6079
6080 cegcc*)
6081   # use the weaker test based on 'objdump'. See mingw*.
6082   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6083   lt_cv_file_magic_cmd='$OBJDUMP -f'
6084   ;;
6085
6086 darwin* | rhapsody*)
6087   lt_cv_deplibs_check_method=pass_all
6088   ;;
6089
6090 freebsd* | dragonfly*)
6091   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6092     case $host_cpu in
6093     i*86 )
6094       # Not sure whether the presence of OpenBSD here was a mistake.
6095       # Let's accept both of them until this is cleared up.
6096       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6097       lt_cv_file_magic_cmd=/usr/bin/file
6098       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6099       ;;
6100     esac
6101   else
6102     lt_cv_deplibs_check_method=pass_all
6103   fi
6104   ;;
6105
6106 gnu*)
6107   lt_cv_deplibs_check_method=pass_all
6108   ;;
6109
6110 haiku*)
6111   lt_cv_deplibs_check_method=pass_all
6112   ;;
6113
6114 hpux10.20* | hpux11*)
6115   lt_cv_file_magic_cmd=/usr/bin/file
6116   case $host_cpu in
6117   ia64*)
6118     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6119     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6120     ;;
6121   hppa*64*)
6122     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6123     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6124     ;;
6125   *)
6126     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6127     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6128     ;;
6129   esac
6130   ;;
6131
6132 interix[3-9]*)
6133   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6134   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6135   ;;
6136
6137 irix5* | irix6* | nonstopux*)
6138   case $LD in
6139   *-32|*"-32 ") libmagic=32-bit;;
6140   *-n32|*"-n32 ") libmagic=N32;;
6141   *-64|*"-64 ") libmagic=64-bit;;
6142   *) libmagic=never-match;;
6143   esac
6144   lt_cv_deplibs_check_method=pass_all
6145   ;;
6146
6147 # This must be Linux ELF.
6148 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6149   lt_cv_deplibs_check_method=pass_all
6150   ;;
6151
6152 netbsd*)
6153   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6154     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6155   else
6156     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6157   fi
6158   ;;
6159
6160 newos6*)
6161   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6162   lt_cv_file_magic_cmd=/usr/bin/file
6163   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6164   ;;
6165
6166 *nto* | *qnx*)
6167   lt_cv_deplibs_check_method=pass_all
6168   ;;
6169
6170 openbsd*)
6171   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6172     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6173   else
6174     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6175   fi
6176   ;;
6177
6178 osf3* | osf4* | osf5*)
6179   lt_cv_deplibs_check_method=pass_all
6180   ;;
6181
6182 rdos*)
6183   lt_cv_deplibs_check_method=pass_all
6184   ;;
6185
6186 solaris*)
6187   lt_cv_deplibs_check_method=pass_all
6188   ;;
6189
6190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6191   lt_cv_deplibs_check_method=pass_all
6192   ;;
6193
6194 sysv4 | sysv4.3*)
6195   case $host_vendor in
6196   motorola)
6197     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]'
6198     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6199     ;;
6200   ncr)
6201     lt_cv_deplibs_check_method=pass_all
6202     ;;
6203   sequent)
6204     lt_cv_file_magic_cmd='/bin/file'
6205     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6206     ;;
6207   sni)
6208     lt_cv_file_magic_cmd='/bin/file'
6209     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6210     lt_cv_file_magic_test_file=/lib/libc.so
6211     ;;
6212   siemens)
6213     lt_cv_deplibs_check_method=pass_all
6214     ;;
6215   pc)
6216     lt_cv_deplibs_check_method=pass_all
6217     ;;
6218   esac
6219   ;;
6220
6221 tpf*)
6222   lt_cv_deplibs_check_method=pass_all
6223   ;;
6224 esac
6225
6226 fi
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6228 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6229 file_magic_cmd=$lt_cv_file_magic_cmd
6230 deplibs_check_method=$lt_cv_deplibs_check_method
6231 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244 if test -n "$ac_tool_prefix"; then
6245   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6246 set dummy ${ac_tool_prefix}ar; ac_word=$2
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248 $as_echo_n "checking for $ac_word... " >&6; }
6249 if test "${ac_cv_prog_AR+set}" = set; then :
6250   $as_echo_n "(cached) " >&6
6251 else
6252   if test -n "$AR"; then
6253   ac_cv_prog_AR="$AR" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258   IFS=$as_save_IFS
6259   test -z "$as_dir" && as_dir=.
6260     for ac_exec_ext in '' $ac_executable_extensions; do
6261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262     ac_cv_prog_AR="${ac_tool_prefix}ar"
6263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264     break 2
6265   fi
6266 done
6267   done
6268 IFS=$as_save_IFS
6269
6270 fi
6271 fi
6272 AR=$ac_cv_prog_AR
6273 if test -n "$AR"; then
6274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6275 $as_echo "$AR" >&6; }
6276 else
6277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 $as_echo "no" >&6; }
6279 fi
6280
6281
6282 fi
6283 if test -z "$ac_cv_prog_AR"; then
6284   ac_ct_AR=$AR
6285   # Extract the first word of "ar", so it can be a program name with args.
6286 set dummy ar; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6290   $as_echo_n "(cached) " >&6
6291 else
6292   if test -n "$ac_ct_AR"; then
6293   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298   IFS=$as_save_IFS
6299   test -z "$as_dir" && as_dir=.
6300     for ac_exec_ext in '' $ac_executable_extensions; do
6301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302     ac_cv_prog_ac_ct_AR="ar"
6303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304     break 2
6305   fi
6306 done
6307   done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6313 if test -n "$ac_ct_AR"; then
6314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6315 $as_echo "$ac_ct_AR" >&6; }
6316 else
6317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320
6321   if test "x$ac_ct_AR" = x; then
6322     AR="false"
6323   else
6324     case $cross_compiling:$ac_tool_warned in
6325 yes:)
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328 ac_tool_warned=yes ;;
6329 esac
6330     AR=$ac_ct_AR
6331   fi
6332 else
6333   AR="$ac_cv_prog_AR"
6334 fi
6335
6336 test -z "$AR" && AR=ar
6337 test -z "$AR_FLAGS" && AR_FLAGS=cru
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349 if test -n "$ac_tool_prefix"; then
6350   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}strip; 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_STRIP+set}" = set; then :
6355   $as_echo_n "(cached) " >&6
6356 else
6357   if test -n "$STRIP"; then
6358   ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
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 STRIP=$ac_cv_prog_STRIP
6378 if test -n "$STRIP"; then
6379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6380 $as_echo "$STRIP" >&6; }
6381 else
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6384 fi
6385
6386
6387 fi
6388 if test -z "$ac_cv_prog_STRIP"; then
6389   ac_ct_STRIP=$STRIP
6390   # Extract the first word of "strip", so it can be a program name with args.
6391 set dummy strip; ac_word=$2
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6395   $as_echo_n "(cached) " >&6
6396 else
6397   if test -n "$ac_ct_STRIP"; then
6398   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6399 else
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6402 do
6403   IFS=$as_save_IFS
6404   test -z "$as_dir" && as_dir=.
6405     for ac_exec_ext in '' $ac_executable_extensions; do
6406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6407     ac_cv_prog_ac_ct_STRIP="strip"
6408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409     break 2
6410   fi
6411 done
6412   done
6413 IFS=$as_save_IFS
6414
6415 fi
6416 fi
6417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6418 if test -n "$ac_ct_STRIP"; then
6419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6420 $as_echo "$ac_ct_STRIP" >&6; }
6421 else
6422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }
6424 fi
6425
6426   if test "x$ac_ct_STRIP" = x; then
6427     STRIP=":"
6428   else
6429     case $cross_compiling:$ac_tool_warned in
6430 yes:)
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433 ac_tool_warned=yes ;;
6434 esac
6435     STRIP=$ac_ct_STRIP
6436   fi
6437 else
6438   STRIP="$ac_cv_prog_STRIP"
6439 fi
6440
6441 test -z "$STRIP" && STRIP=:
6442
6443
6444
6445
6446
6447
6448 if test -n "$ac_tool_prefix"; then
6449   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6450 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6454   $as_echo_n "(cached) " >&6
6455 else
6456   if test -n "$RANLIB"; then
6457   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6458 else
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6461 do
6462   IFS=$as_save_IFS
6463   test -z "$as_dir" && as_dir=.
6464     for ac_exec_ext in '' $ac_executable_extensions; do
6465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6466     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468     break 2
6469   fi
6470 done
6471   done
6472 IFS=$as_save_IFS
6473
6474 fi
6475 fi
6476 RANLIB=$ac_cv_prog_RANLIB
6477 if test -n "$RANLIB"; then
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6479 $as_echo "$RANLIB" >&6; }
6480 else
6481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6483 fi
6484
6485
6486 fi
6487 if test -z "$ac_cv_prog_RANLIB"; then
6488   ac_ct_RANLIB=$RANLIB
6489   # Extract the first word of "ranlib", so it can be a program name with args.
6490 set dummy ranlib; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6494   $as_echo_n "(cached) " >&6
6495 else
6496   if test -n "$ac_ct_RANLIB"; then
6497   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6498 else
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 for as_dir in $PATH
6501 do
6502   IFS=$as_save_IFS
6503   test -z "$as_dir" && as_dir=.
6504     for ac_exec_ext in '' $ac_executable_extensions; do
6505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6506     ac_cv_prog_ac_ct_RANLIB="ranlib"
6507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508     break 2
6509   fi
6510 done
6511   done
6512 IFS=$as_save_IFS
6513
6514 fi
6515 fi
6516 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6517 if test -n "$ac_ct_RANLIB"; then
6518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6519 $as_echo "$ac_ct_RANLIB" >&6; }
6520 else
6521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6523 fi
6524
6525   if test "x$ac_ct_RANLIB" = x; then
6526     RANLIB=":"
6527   else
6528     case $cross_compiling:$ac_tool_warned in
6529 yes:)
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532 ac_tool_warned=yes ;;
6533 esac
6534     RANLIB=$ac_ct_RANLIB
6535   fi
6536 else
6537   RANLIB="$ac_cv_prog_RANLIB"
6538 fi
6539
6540 test -z "$RANLIB" && RANLIB=:
6541
6542
6543
6544
6545
6546
6547 # Determine commands to create old-style static archives.
6548 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6549 old_postinstall_cmds='chmod 644 $oldlib'
6550 old_postuninstall_cmds=
6551
6552 if test -n "$RANLIB"; then
6553   case $host_os in
6554   openbsd*)
6555     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6556     ;;
6557   *)
6558     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6559     ;;
6560   esac
6561   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6562 fi
6563
6564 case $host_os in
6565   darwin*)
6566     lock_old_archive_extraction=yes ;;
6567   *)
6568     lock_old_archive_extraction=no ;;
6569 esac
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609 # If no C compiler was specified, use CC.
6610 LTCC=${LTCC-"$CC"}
6611
6612 # If no C compiler flags were specified, use CFLAGS.
6613 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6614
6615 # Allow CC to be a program name with arguments.
6616 compiler=$CC
6617
6618
6619 # Check for command to grab the raw symbol name followed by C symbol from nm.
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6621 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6622 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6623   $as_echo_n "(cached) " >&6
6624 else
6625
6626 # These are sane defaults that work on at least a few old systems.
6627 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6628
6629 # Character class describing NM global symbol codes.
6630 symcode='[BCDEGRST]'
6631
6632 # Regexp to match symbols that can be accessed directly from C.
6633 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6634
6635 # Define system-specific variables.
6636 case $host_os in
6637 aix*)
6638   symcode='[BCDT]'
6639   ;;
6640 cygwin* | mingw* | pw32* | cegcc*)
6641   symcode='[ABCDGISTW]'
6642   ;;
6643 hpux*)
6644   if test "$host_cpu" = ia64; then
6645     symcode='[ABCDEGRST]'
6646   fi
6647   ;;
6648 irix* | nonstopux*)
6649   symcode='[BCDEGRST]'
6650   ;;
6651 osf*)
6652   symcode='[BCDEGQRST]'
6653   ;;
6654 solaris*)
6655   symcode='[BDRT]'
6656   ;;
6657 sco3.2v5*)
6658   symcode='[DT]'
6659   ;;
6660 sysv4.2uw2*)
6661   symcode='[DT]'
6662   ;;
6663 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6664   symcode='[ABDT]'
6665   ;;
6666 sysv4)
6667   symcode='[DFNSTU]'
6668   ;;
6669 esac
6670
6671 # If we're using GNU nm, then use its standard symbol codes.
6672 case `$NM -V 2>&1` in
6673 *GNU* | *'with BFD'*)
6674   symcode='[ABCDGIRSTW]' ;;
6675 esac
6676
6677 # Transform an extracted symbol line into a proper C declaration.
6678 # Some systems (esp. on ia64) link data and code symbols differently,
6679 # so use this general approach.
6680 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6681
6682 # Transform an extracted symbol line into symbol name and symbol address
6683 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6684 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'"
6685
6686 # Handle CRLF in mingw tool chain
6687 opt_cr=
6688 case $build_os in
6689 mingw*)
6690   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6691   ;;
6692 esac
6693
6694 # Try without a prefix underscore, then with it.
6695 for ac_symprfx in "" "_"; do
6696
6697   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6698   symxfrm="\\1 $ac_symprfx\\2 \\2"
6699
6700   # Write the raw and C identifiers.
6701   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6702     # Fake it for dumpbin and say T for any non-static function
6703     # and D for any global variable.
6704     # Also find C++ and __fastcall symbols from MSVC++,
6705     # which start with @ or ?.
6706     lt_cv_sys_global_symbol_pipe="$AWK '"\
6707 "     {last_section=section; section=\$ 3};"\
6708 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6709 "     \$ 0!~/External *\|/{next};"\
6710 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6711 "     {if(hide[section]) next};"\
6712 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6713 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6714 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6715 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6716 "     ' prfx=^$ac_symprfx"
6717   else
6718     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6719   fi
6720
6721   # Check to see that the pipe works correctly.
6722   pipe_works=no
6723
6724   rm -f conftest*
6725   cat > conftest.$ac_ext <<_LT_EOF
6726 #ifdef __cplusplus
6727 extern "C" {
6728 #endif
6729 char nm_test_var;
6730 void nm_test_func(void);
6731 void nm_test_func(void){}
6732 #ifdef __cplusplus
6733 }
6734 #endif
6735 int main(){nm_test_var='a';nm_test_func();return(0);}
6736 _LT_EOF
6737
6738   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6739   (eval $ac_compile) 2>&5
6740   ac_status=$?
6741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6742   test $ac_status = 0; }; then
6743     # Now try to grab the symbols.
6744     nlist=conftest.nm
6745     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6746   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6747   ac_status=$?
6748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749   test $ac_status = 0; } && test -s "$nlist"; then
6750       # Try sorting and uniquifying the output.
6751       if sort "$nlist" | uniq > "$nlist"T; then
6752         mv -f "$nlist"T "$nlist"
6753       else
6754         rm -f "$nlist"T
6755       fi
6756
6757       # Make sure that we snagged all the symbols we need.
6758       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6759         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6760           cat <<_LT_EOF > conftest.$ac_ext
6761 #ifdef __cplusplus
6762 extern "C" {
6763 #endif
6764
6765 _LT_EOF
6766           # Now generate the symbol file.
6767           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6768
6769           cat <<_LT_EOF >> conftest.$ac_ext
6770
6771 /* The mapping between symbol names and symbols.  */
6772 const struct {
6773   const char *name;
6774   void       *address;
6775 }
6776 lt__PROGRAM__LTX_preloaded_symbols[] =
6777 {
6778   { "@PROGRAM@", (void *) 0 },
6779 _LT_EOF
6780           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6781           cat <<\_LT_EOF >> conftest.$ac_ext
6782   {0, (void *) 0}
6783 };
6784
6785 /* This works around a problem in FreeBSD linker */
6786 #ifdef FREEBSD_WORKAROUND
6787 static const void *lt_preloaded_setup() {
6788   return lt__PROGRAM__LTX_preloaded_symbols;
6789 }
6790 #endif
6791
6792 #ifdef __cplusplus
6793 }
6794 #endif
6795 _LT_EOF
6796           # Now try linking the two files.
6797           mv conftest.$ac_objext conftstm.$ac_objext
6798           lt_save_LIBS="$LIBS"
6799           lt_save_CFLAGS="$CFLAGS"
6800           LIBS="conftstm.$ac_objext"
6801           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6802           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6803   (eval $ac_link) 2>&5
6804   ac_status=$?
6805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6806   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6807             pipe_works=yes
6808           fi
6809           LIBS="$lt_save_LIBS"
6810           CFLAGS="$lt_save_CFLAGS"
6811         else
6812           echo "cannot find nm_test_func in $nlist" >&5
6813         fi
6814       else
6815         echo "cannot find nm_test_var in $nlist" >&5
6816       fi
6817     else
6818       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6819     fi
6820   else
6821     echo "$progname: failed program was:" >&5
6822     cat conftest.$ac_ext >&5
6823   fi
6824   rm -rf conftest* conftst*
6825
6826   # Do not use the global_symbol_pipe unless it works.
6827   if test "$pipe_works" = yes; then
6828     break
6829   else
6830     lt_cv_sys_global_symbol_pipe=
6831   fi
6832 done
6833
6834 fi
6835
6836 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6837   lt_cv_sys_global_symbol_to_cdecl=
6838 fi
6839 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6841 $as_echo "failed" >&6; }
6842 else
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6844 $as_echo "ok" >&6; }
6845 fi
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868 # Check whether --enable-libtool-lock was given.
6869 if test "${enable_libtool_lock+set}" = set; then :
6870   enableval=$enable_libtool_lock;
6871 fi
6872
6873 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6874
6875 # Some flags need to be propagated to the compiler or linker for good
6876 # libtool support.
6877 case $host in
6878 ia64-*-hpux*)
6879   # Find out which ABI we are using.
6880   echo 'int i;' > conftest.$ac_ext
6881   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6882   (eval $ac_compile) 2>&5
6883   ac_status=$?
6884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6885   test $ac_status = 0; }; then
6886     case `/usr/bin/file conftest.$ac_objext` in
6887       *ELF-32*)
6888         HPUX_IA64_MODE="32"
6889         ;;
6890       *ELF-64*)
6891         HPUX_IA64_MODE="64"
6892         ;;
6893     esac
6894   fi
6895   rm -rf conftest*
6896   ;;
6897 *-*-irix6*)
6898   # Find out which ABI we are using.
6899   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6900   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6901   (eval $ac_compile) 2>&5
6902   ac_status=$?
6903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6904   test $ac_status = 0; }; then
6905     if test "$lt_cv_prog_gnu_ld" = yes; then
6906       case `/usr/bin/file conftest.$ac_objext` in
6907         *32-bit*)
6908           LD="${LD-ld} -melf32bsmip"
6909           ;;
6910         *N32*)
6911           LD="${LD-ld} -melf32bmipn32"
6912           ;;
6913         *64-bit*)
6914           LD="${LD-ld} -melf64bmip"
6915         ;;
6916       esac
6917     else
6918       case `/usr/bin/file conftest.$ac_objext` in
6919         *32-bit*)
6920           LD="${LD-ld} -32"
6921           ;;
6922         *N32*)
6923           LD="${LD-ld} -n32"
6924           ;;
6925         *64-bit*)
6926           LD="${LD-ld} -64"
6927           ;;
6928       esac
6929     fi
6930   fi
6931   rm -rf conftest*
6932   ;;
6933
6934 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6935 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6936   # Find out which ABI we are using.
6937   echo 'int i;' > conftest.$ac_ext
6938   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6939   (eval $ac_compile) 2>&5
6940   ac_status=$?
6941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6942   test $ac_status = 0; }; then
6943     case `/usr/bin/file conftest.o` in
6944       *32-bit*)
6945         case $host in
6946           x86_64-*kfreebsd*-gnu)
6947             LD="${LD-ld} -m elf_i386_fbsd"
6948             ;;
6949           x86_64-*linux*)
6950             case `/usr/bin/file conftest.o` in
6951               *x86-64*)
6952                 LD="${LD-ld} -m elf32_x86_64"
6953                 ;;
6954               *)
6955                 LD="${LD-ld} -m elf_i386"
6956                 ;;
6957             esac
6958             ;;
6959           powerpc64le-*linux*)
6960             LD="${LD-ld} -m elf32lppclinux"
6961             ;;
6962           powerpc64-*linux*)
6963             LD="${LD-ld} -m elf32ppclinux"
6964             ;;
6965           s390x-*linux*)
6966             LD="${LD-ld} -m elf_s390"
6967             ;;
6968           sparc64-*linux*)
6969             LD="${LD-ld} -m elf32_sparc"
6970             ;;
6971         esac
6972         ;;
6973       *64-bit*)
6974         case $host in
6975           x86_64-*kfreebsd*-gnu)
6976             LD="${LD-ld} -m elf_x86_64_fbsd"
6977             ;;
6978           x86_64-*linux*)
6979             LD="${LD-ld} -m elf_x86_64"
6980             ;;
6981           powerpcle-*linux*)
6982             LD="${LD-ld} -m elf64lppc"
6983             ;;
6984           powerpc-*linux*)
6985             LD="${LD-ld} -m elf64ppc"
6986             ;;
6987           s390*-*linux*|s390*-*tpf*)
6988             LD="${LD-ld} -m elf64_s390"
6989             ;;
6990           sparc*-*linux*)
6991             LD="${LD-ld} -m elf64_sparc"
6992             ;;
6993         esac
6994         ;;
6995     esac
6996   fi
6997   rm -rf conftest*
6998   ;;
6999
7000 *-*-sco3.2v5*)
7001   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7002   SAVE_CFLAGS="$CFLAGS"
7003   CFLAGS="$CFLAGS -belf"
7004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7005 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7006 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7007   $as_echo_n "(cached) " >&6
7008 else
7009   ac_ext=c
7010 ac_cpp='$CPP $CPPFLAGS'
7011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7014
7015      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h.  */
7017
7018 int
7019 main ()
7020 {
7021
7022   ;
7023   return 0;
7024 }
7025 _ACEOF
7026 if ac_fn_c_try_link "$LINENO"; then :
7027   lt_cv_cc_needs_belf=yes
7028 else
7029   lt_cv_cc_needs_belf=no
7030 fi
7031 rm -f core conftest.err conftest.$ac_objext \
7032     conftest$ac_exeext conftest.$ac_ext
7033      ac_ext=c
7034 ac_cpp='$CPP $CPPFLAGS'
7035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7038
7039 fi
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7041 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7042   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7043     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7044     CFLAGS="$SAVE_CFLAGS"
7045   fi
7046   ;;
7047 sparc*-*solaris*)
7048   # Find out which ABI we are using.
7049   echo 'int i;' > conftest.$ac_ext
7050   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7051   (eval $ac_compile) 2>&5
7052   ac_status=$?
7053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054   test $ac_status = 0; }; then
7055     case `/usr/bin/file conftest.o` in
7056     *64-bit*)
7057       case $lt_cv_prog_gnu_ld in
7058       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7059       *)
7060         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7061           LD="${LD-ld} -64"
7062         fi
7063         ;;
7064       esac
7065       ;;
7066     esac
7067   fi
7068   rm -rf conftest*
7069   ;;
7070 esac
7071
7072 need_locks="$enable_libtool_lock"
7073
7074
7075   case $host_os in
7076     rhapsody* | darwin*)
7077     if test -n "$ac_tool_prefix"; then
7078   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7079 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 $as_echo_n "checking for $ac_word... " >&6; }
7082 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7083   $as_echo_n "(cached) " >&6
7084 else
7085   if test -n "$DSYMUTIL"; then
7086   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7087 else
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7090 do
7091   IFS=$as_save_IFS
7092   test -z "$as_dir" && as_dir=.
7093     for ac_exec_ext in '' $ac_executable_extensions; do
7094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7095     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097     break 2
7098   fi
7099 done
7100   done
7101 IFS=$as_save_IFS
7102
7103 fi
7104 fi
7105 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7106 if test -n "$DSYMUTIL"; then
7107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7108 $as_echo "$DSYMUTIL" >&6; }
7109 else
7110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7112 fi
7113
7114
7115 fi
7116 if test -z "$ac_cv_prog_DSYMUTIL"; then
7117   ac_ct_DSYMUTIL=$DSYMUTIL
7118   # Extract the first word of "dsymutil", so it can be a program name with args.
7119 set dummy 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_ac_ct_DSYMUTIL+set}" = set; then :
7123   $as_echo_n "(cached) " >&6
7124 else
7125   if test -n "$ac_ct_DSYMUTIL"; then
7126   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_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_ac_ct_DSYMUTIL="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 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7146 if test -n "$ac_ct_DSYMUTIL"; then
7147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7148 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7149 else
7150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7152 fi
7153
7154   if test "x$ac_ct_DSYMUTIL" = x; then
7155     DSYMUTIL=":"
7156   else
7157     case $cross_compiling:$ac_tool_warned in
7158 yes:)
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7161 ac_tool_warned=yes ;;
7162 esac
7163     DSYMUTIL=$ac_ct_DSYMUTIL
7164   fi
7165 else
7166   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7167 fi
7168
7169     if test -n "$ac_tool_prefix"; then
7170   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7171 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173 $as_echo_n "checking for $ac_word... " >&6; }
7174 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7175   $as_echo_n "(cached) " >&6
7176 else
7177   if test -n "$NMEDIT"; then
7178   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7179 else
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7182 do
7183   IFS=$as_save_IFS
7184   test -z "$as_dir" && as_dir=.
7185     for ac_exec_ext in '' $ac_executable_extensions; do
7186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7187     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189     break 2
7190   fi
7191 done
7192   done
7193 IFS=$as_save_IFS
7194
7195 fi
7196 fi
7197 NMEDIT=$ac_cv_prog_NMEDIT
7198 if test -n "$NMEDIT"; then
7199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7200 $as_echo "$NMEDIT" >&6; }
7201 else
7202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 $as_echo "no" >&6; }
7204 fi
7205
7206
7207 fi
7208 if test -z "$ac_cv_prog_NMEDIT"; then
7209   ac_ct_NMEDIT=$NMEDIT
7210   # Extract the first word of "nmedit", so it can be a program name with args.
7211 set dummy 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_ac_ct_NMEDIT+set}" = set; then :
7215   $as_echo_n "(cached) " >&6
7216 else
7217   if test -n "$ac_ct_NMEDIT"; then
7218   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_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_ac_ct_NMEDIT="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 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7238 if test -n "$ac_ct_NMEDIT"; then
7239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7240 $as_echo "$ac_ct_NMEDIT" >&6; }
7241 else
7242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243 $as_echo "no" >&6; }
7244 fi
7245
7246   if test "x$ac_ct_NMEDIT" = x; then
7247     NMEDIT=":"
7248   else
7249     case $cross_compiling:$ac_tool_warned in
7250 yes:)
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7253 ac_tool_warned=yes ;;
7254 esac
7255     NMEDIT=$ac_ct_NMEDIT
7256   fi
7257 else
7258   NMEDIT="$ac_cv_prog_NMEDIT"
7259 fi
7260
7261     if test -n "$ac_tool_prefix"; then
7262   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7263 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if test "${ac_cv_prog_LIPO+set}" = set; then :
7267   $as_echo_n "(cached) " >&6
7268 else
7269   if test -n "$LIPO"; then
7270   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275   IFS=$as_save_IFS
7276   test -z "$as_dir" && as_dir=.
7277     for ac_exec_ext in '' $ac_executable_extensions; do
7278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7279     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281     break 2
7282   fi
7283 done
7284   done
7285 IFS=$as_save_IFS
7286
7287 fi
7288 fi
7289 LIPO=$ac_cv_prog_LIPO
7290 if test -n "$LIPO"; then
7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7292 $as_echo "$LIPO" >&6; }
7293 else
7294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7296 fi
7297
7298
7299 fi
7300 if test -z "$ac_cv_prog_LIPO"; then
7301   ac_ct_LIPO=$LIPO
7302   # Extract the first word of "lipo", so it can be a program name with args.
7303 set dummy 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_ac_ct_LIPO+set}" = set; then :
7307   $as_echo_n "(cached) " >&6
7308 else
7309   if test -n "$ac_ct_LIPO"; then
7310   ac_cv_prog_ac_ct_LIPO="$ac_ct_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_ac_ct_LIPO="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 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7330 if test -n "$ac_ct_LIPO"; then
7331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7332 $as_echo "$ac_ct_LIPO" >&6; }
7333 else
7334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7336 fi
7337
7338   if test "x$ac_ct_LIPO" = x; then
7339     LIPO=":"
7340   else
7341     case $cross_compiling:$ac_tool_warned in
7342 yes:)
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7345 ac_tool_warned=yes ;;
7346 esac
7347     LIPO=$ac_ct_LIPO
7348   fi
7349 else
7350   LIPO="$ac_cv_prog_LIPO"
7351 fi
7352
7353     if test -n "$ac_tool_prefix"; then
7354   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7355 set dummy ${ac_tool_prefix}otool; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7359   $as_echo_n "(cached) " >&6
7360 else
7361   if test -n "$OTOOL"; then
7362   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7363 else
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367   IFS=$as_save_IFS
7368   test -z "$as_dir" && as_dir=.
7369     for ac_exec_ext in '' $ac_executable_extensions; do
7370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373     break 2
7374   fi
7375 done
7376   done
7377 IFS=$as_save_IFS
7378
7379 fi
7380 fi
7381 OTOOL=$ac_cv_prog_OTOOL
7382 if test -n "$OTOOL"; then
7383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7384 $as_echo "$OTOOL" >&6; }
7385 else
7386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7388 fi
7389
7390
7391 fi
7392 if test -z "$ac_cv_prog_OTOOL"; then
7393   ac_ct_OTOOL=$OTOOL
7394   # Extract the first word of "otool", so it can be a program name with args.
7395 set dummy 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_ac_ct_OTOOL+set}" = set; then :
7399   $as_echo_n "(cached) " >&6
7400 else
7401   if test -n "$ac_ct_OTOOL"; then
7402   ac_cv_prog_ac_ct_OTOOL="$ac_ct_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_ac_ct_OTOOL="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 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7422 if test -n "$ac_ct_OTOOL"; then
7423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7424 $as_echo "$ac_ct_OTOOL" >&6; }
7425 else
7426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7428 fi
7429
7430   if test "x$ac_ct_OTOOL" = x; then
7431     OTOOL=":"
7432   else
7433     case $cross_compiling:$ac_tool_warned in
7434 yes:)
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7437 ac_tool_warned=yes ;;
7438 esac
7439     OTOOL=$ac_ct_OTOOL
7440   fi
7441 else
7442   OTOOL="$ac_cv_prog_OTOOL"
7443 fi
7444
7445     if test -n "$ac_tool_prefix"; then
7446   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7447 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7451   $as_echo_n "(cached) " >&6
7452 else
7453   if test -n "$OTOOL64"; then
7454   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7455 else
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7458 do
7459   IFS=$as_save_IFS
7460   test -z "$as_dir" && as_dir=.
7461     for ac_exec_ext in '' $ac_executable_extensions; do
7462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7463     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465     break 2
7466   fi
7467 done
7468   done
7469 IFS=$as_save_IFS
7470
7471 fi
7472 fi
7473 OTOOL64=$ac_cv_prog_OTOOL64
7474 if test -n "$OTOOL64"; then
7475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7476 $as_echo "$OTOOL64" >&6; }
7477 else
7478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7480 fi
7481
7482
7483 fi
7484 if test -z "$ac_cv_prog_OTOOL64"; then
7485   ac_ct_OTOOL64=$OTOOL64
7486   # Extract the first word of "otool64", so it can be a program name with args.
7487 set dummy 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_ac_ct_OTOOL64+set}" = set; then :
7491   $as_echo_n "(cached) " >&6
7492 else
7493   if test -n "$ac_ct_OTOOL64"; then
7494   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_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_ac_ct_OTOOL64="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 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7514 if test -n "$ac_ct_OTOOL64"; then
7515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7516 $as_echo "$ac_ct_OTOOL64" >&6; }
7517 else
7518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519 $as_echo "no" >&6; }
7520 fi
7521
7522   if test "x$ac_ct_OTOOL64" = x; then
7523     OTOOL64=":"
7524   else
7525     case $cross_compiling:$ac_tool_warned in
7526 yes:)
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7529 ac_tool_warned=yes ;;
7530 esac
7531     OTOOL64=$ac_ct_OTOOL64
7532   fi
7533 else
7534   OTOOL64="$ac_cv_prog_OTOOL64"
7535 fi
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7564 $as_echo_n "checking for -single_module linker flag... " >&6; }
7565 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7566   $as_echo_n "(cached) " >&6
7567 else
7568   lt_cv_apple_cc_single_mod=no
7569       if test -z "${LT_MULTI_MODULE}"; then
7570         # By default we will add the -single_module flag. You can override
7571         # by either setting the environment variable LT_MULTI_MODULE
7572         # non-empty at configure time, or by adding -multi_module to the
7573         # link flags.
7574         rm -rf libconftest.dylib*
7575         echo "int foo(void){return 1;}" > conftest.c
7576         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7577 -dynamiclib -Wl,-single_module conftest.c" >&5
7578         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7579           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7580         _lt_result=$?
7581         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7582           lt_cv_apple_cc_single_mod=yes
7583         else
7584           cat conftest.err >&5
7585         fi
7586         rm -rf libconftest.dylib*
7587         rm -f conftest.*
7588       fi
7589 fi
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7591 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7593 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7594 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7595   $as_echo_n "(cached) " >&6
7596 else
7597   lt_cv_ld_exported_symbols_list=no
7598       save_LDFLAGS=$LDFLAGS
7599       echo "_main" > conftest.sym
7600       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7601       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h.  */
7603
7604 int
7605 main ()
7606 {
7607
7608   ;
7609   return 0;
7610 }
7611 _ACEOF
7612 if ac_fn_c_try_link "$LINENO"; then :
7613   lt_cv_ld_exported_symbols_list=yes
7614 else
7615   lt_cv_ld_exported_symbols_list=no
7616 fi
7617 rm -f core conftest.err conftest.$ac_objext \
7618     conftest$ac_exeext conftest.$ac_ext
7619         LDFLAGS="$save_LDFLAGS"
7620
7621 fi
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7623 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7625 $as_echo_n "checking for -force_load linker flag... " >&6; }
7626 if test "${lt_cv_ld_force_load+set}" = set; then :
7627   $as_echo_n "(cached) " >&6
7628 else
7629   lt_cv_ld_force_load=no
7630       cat > conftest.c << _LT_EOF
7631 int forced_loaded() { return 2;}
7632 _LT_EOF
7633       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7634       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7635       echo "$AR cru libconftest.a conftest.o" >&5
7636       $AR cru libconftest.a conftest.o 2>&5
7637       cat > conftest.c << _LT_EOF
7638 int main() { return 0;}
7639 _LT_EOF
7640       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7641       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7642       _lt_result=$?
7643       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7644         lt_cv_ld_force_load=yes
7645       else
7646         cat conftest.err >&5
7647       fi
7648         rm -f conftest.err libconftest.a conftest conftest.c
7649         rm -rf conftest.dSYM
7650
7651 fi
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7653 $as_echo "$lt_cv_ld_force_load" >&6; }
7654     case $host_os in
7655     rhapsody* | darwin1.[012])
7656       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7657     darwin1.*)
7658       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7659     darwin*) # darwin 5.x on
7660       # if running on 10.5 or later, the deployment target defaults
7661       # to the OS version, if on x86, and 10.4, the deployment
7662       # target defaults to 10.4. Don't you love it?
7663       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7664         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7665           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7666         10.[012][,.]*)
7667           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7668         10.*)
7669           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7670       esac
7671     ;;
7672   esac
7673     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7674       _lt_dar_single_mod='$single_module'
7675     fi
7676     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7677       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7678     else
7679       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7680     fi
7681     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7682       _lt_dsymutil='~$DSYMUTIL $lib || :'
7683     else
7684       _lt_dsymutil=
7685     fi
7686     ;;
7687   esac
7688
7689 for ac_header in dlfcn.h
7690 do :
7691   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7692 "
7693 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7694   cat >>confdefs.h <<_ACEOF
7695 #define HAVE_DLFCN_H 1
7696 _ACEOF
7697
7698 fi
7699
7700 done
7701
7702
7703
7704
7705
7706 # Set options
7707
7708
7709
7710         enable_dlopen=no
7711
7712
7713   enable_win32_dll=no
7714
7715
7716
7717   # Check whether --enable-static was given.
7718 if test "${enable_static+set}" = set; then :
7719   enableval=$enable_static; p=${PACKAGE-default}
7720     case $enableval in
7721     yes) enable_static=yes ;;
7722     no) enable_static=no ;;
7723     *)
7724      enable_static=no
7725       # Look at the argument we got.  We use all the common list separators.
7726       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7727       for pkg in $enableval; do
7728         IFS="$lt_save_ifs"
7729         if test "X$pkg" = "X$p"; then
7730           enable_static=yes
7731         fi
7732       done
7733       IFS="$lt_save_ifs"
7734       ;;
7735     esac
7736 else
7737   enable_static=yes
7738 fi
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749 # Check whether --with-pic was given.
7750 if test "${with_pic+set}" = set; then :
7751   withval=$with_pic; pic_mode="$withval"
7752 else
7753   pic_mode=default
7754 fi
7755
7756
7757 test -z "$pic_mode" && pic_mode=default
7758
7759
7760
7761
7762
7763
7764
7765   # Check whether --enable-fast-install was given.
7766 if test "${enable_fast_install+set}" = set; then :
7767   enableval=$enable_fast_install; p=${PACKAGE-default}
7768     case $enableval in
7769     yes) enable_fast_install=yes ;;
7770     no) enable_fast_install=no ;;
7771     *)
7772       enable_fast_install=no
7773       # Look at the argument we got.  We use all the common list separators.
7774       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7775       for pkg in $enableval; do
7776         IFS="$lt_save_ifs"
7777         if test "X$pkg" = "X$p"; then
7778           enable_fast_install=yes
7779         fi
7780       done
7781       IFS="$lt_save_ifs"
7782       ;;
7783     esac
7784 else
7785   enable_fast_install=yes
7786 fi
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798 # This can be used to rebuild libtool when needed
7799 LIBTOOL_DEPS="$ltmain"
7800
7801 # Always use our own libtool.
7802 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829 test -z "$LN_S" && LN_S="ln -s"
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844 if test -n "${ZSH_VERSION+set}" ; then
7845    setopt NO_GLOB_SUBST
7846 fi
7847
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7849 $as_echo_n "checking for objdir... " >&6; }
7850 if test "${lt_cv_objdir+set}" = set; then :
7851   $as_echo_n "(cached) " >&6
7852 else
7853   rm -f .libs 2>/dev/null
7854 mkdir .libs 2>/dev/null
7855 if test -d .libs; then
7856   lt_cv_objdir=.libs
7857 else
7858   # MS-DOS does not allow filenames that begin with a dot.
7859   lt_cv_objdir=_libs
7860 fi
7861 rmdir .libs 2>/dev/null
7862 fi
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7864 $as_echo "$lt_cv_objdir" >&6; }
7865 objdir=$lt_cv_objdir
7866
7867
7868
7869
7870
7871 cat >>confdefs.h <<_ACEOF
7872 #define LT_OBJDIR "$lt_cv_objdir/"
7873 _ACEOF
7874
7875
7876
7877
7878 case $host_os in
7879 aix3*)
7880   # AIX sometimes has problems with the GCC collect2 program.  For some
7881   # reason, if we set the COLLECT_NAMES environment variable, the problems
7882   # vanish in a puff of smoke.
7883   if test "X${COLLECT_NAMES+set}" != Xset; then
7884     COLLECT_NAMES=
7885     export COLLECT_NAMES
7886   fi
7887   ;;
7888 esac
7889
7890 # Global variables:
7891 ofile=libtool
7892 can_build_shared=yes
7893
7894 # All known linkers require a `.a' archive for static linking (except MSVC,
7895 # which needs '.lib').
7896 libext=a
7897
7898 with_gnu_ld="$lt_cv_prog_gnu_ld"
7899
7900 old_CC="$CC"
7901 old_CFLAGS="$CFLAGS"
7902
7903 # Set sane defaults for various variables
7904 test -z "$CC" && CC=cc
7905 test -z "$LTCC" && LTCC=$CC
7906 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7907 test -z "$LD" && LD=ld
7908 test -z "$ac_objext" && ac_objext=o
7909
7910 for cc_temp in $compiler""; do
7911   case $cc_temp in
7912     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7913     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7914     \-*) ;;
7915     *) break;;
7916   esac
7917 done
7918 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7919
7920
7921 # Only perform the check for file, if the check method requires it
7922 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7923 case $deplibs_check_method in
7924 file_magic*)
7925   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7927 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7928 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7929   $as_echo_n "(cached) " >&6
7930 else
7931   case $MAGIC_CMD in
7932 [\\/*] |  ?:[\\/]*)
7933   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7934   ;;
7935 *)
7936   lt_save_MAGIC_CMD="$MAGIC_CMD"
7937   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7938   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7939   for ac_dir in $ac_dummy; do
7940     IFS="$lt_save_ifs"
7941     test -z "$ac_dir" && ac_dir=.
7942     if test -f $ac_dir/${ac_tool_prefix}file; then
7943       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7944       if test -n "$file_magic_test_file"; then
7945         case $deplibs_check_method in
7946         "file_magic "*)
7947           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7948           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7949           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7950             $EGREP "$file_magic_regex" > /dev/null; then
7951             :
7952           else
7953             cat <<_LT_EOF 1>&2
7954
7955 *** Warning: the command libtool uses to detect shared libraries,
7956 *** $file_magic_cmd, produces output that libtool cannot recognize.
7957 *** The result is that libtool may fail to recognize shared libraries
7958 *** as such.  This will affect the creation of libtool libraries that
7959 *** depend on shared libraries, but programs linked with such libtool
7960 *** libraries will work regardless of this problem.  Nevertheless, you
7961 *** may want to report the problem to your system manager and/or to
7962 *** bug-libtool@gnu.org
7963
7964 _LT_EOF
7965           fi ;;
7966         esac
7967       fi
7968       break
7969     fi
7970   done
7971   IFS="$lt_save_ifs"
7972   MAGIC_CMD="$lt_save_MAGIC_CMD"
7973   ;;
7974 esac
7975 fi
7976
7977 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7978 if test -n "$MAGIC_CMD"; then
7979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7980 $as_echo "$MAGIC_CMD" >&6; }
7981 else
7982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 $as_echo "no" >&6; }
7984 fi
7985
7986
7987
7988
7989
7990 if test -z "$lt_cv_path_MAGIC_CMD"; then
7991   if test -n "$ac_tool_prefix"; then
7992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7993 $as_echo_n "checking for file... " >&6; }
7994 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7995   $as_echo_n "(cached) " >&6
7996 else
7997   case $MAGIC_CMD in
7998 [\\/*] |  ?:[\\/]*)
7999   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8000   ;;
8001 *)
8002   lt_save_MAGIC_CMD="$MAGIC_CMD"
8003   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8004   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8005   for ac_dir in $ac_dummy; do
8006     IFS="$lt_save_ifs"
8007     test -z "$ac_dir" && ac_dir=.
8008     if test -f $ac_dir/file; then
8009       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8010       if test -n "$file_magic_test_file"; then
8011         case $deplibs_check_method in
8012         "file_magic "*)
8013           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8014           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8015           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8016             $EGREP "$file_magic_regex" > /dev/null; then
8017             :
8018           else
8019             cat <<_LT_EOF 1>&2
8020
8021 *** Warning: the command libtool uses to detect shared libraries,
8022 *** $file_magic_cmd, produces output that libtool cannot recognize.
8023 *** The result is that libtool may fail to recognize shared libraries
8024 *** as such.  This will affect the creation of libtool libraries that
8025 *** depend on shared libraries, but programs linked with such libtool
8026 *** libraries will work regardless of this problem.  Nevertheless, you
8027 *** may want to report the problem to your system manager and/or to
8028 *** bug-libtool@gnu.org
8029
8030 _LT_EOF
8031           fi ;;
8032         esac
8033       fi
8034       break
8035     fi
8036   done
8037   IFS="$lt_save_ifs"
8038   MAGIC_CMD="$lt_save_MAGIC_CMD"
8039   ;;
8040 esac
8041 fi
8042
8043 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8044 if test -n "$MAGIC_CMD"; then
8045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8046 $as_echo "$MAGIC_CMD" >&6; }
8047 else
8048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8050 fi
8051
8052
8053   else
8054     MAGIC_CMD=:
8055   fi
8056 fi
8057
8058   fi
8059   ;;
8060 esac
8061
8062 # Use C for the default configuration in the libtool script
8063
8064 lt_save_CC="$CC"
8065 ac_ext=c
8066 ac_cpp='$CPP $CPPFLAGS'
8067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8070
8071
8072 # Source file extension for C test sources.
8073 ac_ext=c
8074
8075 # Object file extension for compiled C test sources.
8076 objext=o
8077 objext=$objext
8078
8079 # Code to be used in simple compile tests
8080 lt_simple_compile_test_code="int some_variable = 0;"
8081
8082 # Code to be used in simple link tests
8083 lt_simple_link_test_code='int main(){return(0);}'
8084
8085
8086
8087
8088
8089
8090
8091 # If no C compiler was specified, use CC.
8092 LTCC=${LTCC-"$CC"}
8093
8094 # If no C compiler flags were specified, use CFLAGS.
8095 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8096
8097 # Allow CC to be a program name with arguments.
8098 compiler=$CC
8099
8100 # Save the default compiler, since it gets overwritten when the other
8101 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8102 compiler_DEFAULT=$CC
8103
8104 # save warnings/boilerplate of simple test code
8105 ac_outfile=conftest.$ac_objext
8106 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8107 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8108 _lt_compiler_boilerplate=`cat conftest.err`
8109 $RM conftest*
8110
8111 ac_outfile=conftest.$ac_objext
8112 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8113 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8114 _lt_linker_boilerplate=`cat conftest.err`
8115 $RM -r conftest*
8116
8117
8118 ## CAVEAT EMPTOR:
8119 ## There is no encapsulation within the following macros, do not change
8120 ## the running order or otherwise move them around unless you know exactly
8121 ## what you are doing...
8122 if test -n "$compiler"; then
8123
8124 lt_prog_compiler_no_builtin_flag=
8125
8126 if test "$GCC" = yes; then
8127   case $cc_basename in
8128   nvcc*)
8129     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8130   *)
8131     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8132   esac
8133
8134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8135 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8136 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8137   $as_echo_n "(cached) " >&6
8138 else
8139   lt_cv_prog_compiler_rtti_exceptions=no
8140    ac_outfile=conftest.$ac_objext
8141    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8142    lt_compiler_flag="-fno-rtti -fno-exceptions"
8143    # Insert the option either (1) after the last *FLAGS variable, or
8144    # (2) before a word containing "conftest.", or (3) at the end.
8145    # Note that $ac_compile itself does not contain backslashes and begins
8146    # with a dollar sign (not a hyphen), so the echo should work correctly.
8147    # The option is referenced via a variable to avoid confusing sed.
8148    lt_compile=`echo "$ac_compile" | $SED \
8149    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8150    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8151    -e 's:$: $lt_compiler_flag:'`
8152    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8153    (eval "$lt_compile" 2>conftest.err)
8154    ac_status=$?
8155    cat conftest.err >&5
8156    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157    if (exit $ac_status) && test -s "$ac_outfile"; then
8158      # The compiler can only warn and ignore the option if not recognized
8159      # So say no if there are warnings other than the usual output.
8160      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8161      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8162      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8163        lt_cv_prog_compiler_rtti_exceptions=yes
8164      fi
8165    fi
8166    $RM conftest*
8167
8168 fi
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8170 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8171
8172 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8173     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8174 else
8175     :
8176 fi
8177
8178 fi
8179
8180
8181
8182
8183
8184
8185   lt_prog_compiler_wl=
8186 lt_prog_compiler_pic=
8187 lt_prog_compiler_static=
8188
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8190 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8191
8192   if test "$GCC" = yes; then
8193     lt_prog_compiler_wl='-Wl,'
8194     lt_prog_compiler_static='-static'
8195
8196     case $host_os in
8197       aix*)
8198       # All AIX code is PIC.
8199       if test "$host_cpu" = ia64; then
8200         # AIX 5 now supports IA64 processor
8201         lt_prog_compiler_static='-Bstatic'
8202       fi
8203       lt_prog_compiler_pic='-fPIC'
8204       ;;
8205
8206     amigaos*)
8207       case $host_cpu in
8208       powerpc)
8209             # see comment about AmigaOS4 .so support
8210             lt_prog_compiler_pic='-fPIC'
8211         ;;
8212       m68k)
8213             # FIXME: we need at least 68020 code to build shared libraries, but
8214             # adding the `-m68020' flag to GCC prevents building anything better,
8215             # like `-m68040'.
8216             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8217         ;;
8218       esac
8219       ;;
8220
8221     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8222       # PIC is the default for these OSes.
8223       ;;
8224
8225     mingw* | cygwin* | pw32* | os2* | cegcc*)
8226       # This hack is so that the source file can tell whether it is being
8227       # built for inclusion in a dll (and should export symbols for example).
8228       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8229       # (--disable-auto-import) libraries
8230       lt_prog_compiler_pic='-DDLL_EXPORT'
8231       ;;
8232
8233     darwin* | rhapsody*)
8234       # PIC is the default on this platform
8235       # Common symbols not allowed in MH_DYLIB files
8236       lt_prog_compiler_pic='-fno-common'
8237       ;;
8238
8239     haiku*)
8240       # PIC is the default for Haiku.
8241       # The "-static" flag exists, but is broken.
8242       lt_prog_compiler_static=
8243       ;;
8244
8245     hpux*)
8246       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8247       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8248       # sets the default TLS model and affects inlining.
8249       case $host_cpu in
8250       hppa*64*)
8251         # +Z the default
8252         ;;
8253       *)
8254         lt_prog_compiler_pic='-fPIC'
8255         ;;
8256       esac
8257       ;;
8258
8259     interix[3-9]*)
8260       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8261       # Instead, we relocate shared libraries at runtime.
8262       ;;
8263
8264     msdosdjgpp*)
8265       # Just because we use GCC doesn't mean we suddenly get shared libraries
8266       # on systems that don't support them.
8267       lt_prog_compiler_can_build_shared=no
8268       enable_shared=no
8269       ;;
8270
8271     *nto* | *qnx*)
8272       # QNX uses GNU C++, but need to define -shared option too, otherwise
8273       # it will coredump.
8274       lt_prog_compiler_pic='-fPIC -shared'
8275       ;;
8276
8277     sysv4*MP*)
8278       if test -d /usr/nec; then
8279         lt_prog_compiler_pic=-Kconform_pic
8280       fi
8281       ;;
8282
8283     *)
8284       lt_prog_compiler_pic='-fPIC'
8285       ;;
8286     esac
8287
8288     case $cc_basename in
8289     nvcc*) # Cuda Compiler Driver 2.2
8290       lt_prog_compiler_wl='-Xlinker '
8291       lt_prog_compiler_pic='-Xcompiler -fPIC'
8292       ;;
8293     esac
8294   else
8295     # PORTME Check for flag to pass linker flags through the system compiler.
8296     case $host_os in
8297     aix*)
8298       lt_prog_compiler_wl='-Wl,'
8299       if test "$host_cpu" = ia64; then
8300         # AIX 5 now supports IA64 processor
8301         lt_prog_compiler_static='-Bstatic'
8302       else
8303         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8304       fi
8305       ;;
8306
8307     mingw* | cygwin* | pw32* | os2* | cegcc*)
8308       # This hack is so that the source file can tell whether it is being
8309       # built for inclusion in a dll (and should export symbols for example).
8310       lt_prog_compiler_pic='-DDLL_EXPORT'
8311       ;;
8312
8313     hpux9* | hpux10* | hpux11*)
8314       lt_prog_compiler_wl='-Wl,'
8315       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8316       # not for PA HP-UX.
8317       case $host_cpu in
8318       hppa*64*|ia64*)
8319         # +Z the default
8320         ;;
8321       *)
8322         lt_prog_compiler_pic='+Z'
8323         ;;
8324       esac
8325       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8326       lt_prog_compiler_static='${wl}-a ${wl}archive'
8327       ;;
8328
8329     irix5* | irix6* | nonstopux*)
8330       lt_prog_compiler_wl='-Wl,'
8331       # PIC (with -KPIC) is the default.
8332       lt_prog_compiler_static='-non_shared'
8333       ;;
8334
8335     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8336       case $cc_basename in
8337       # old Intel for x86_64 which still supported -KPIC.
8338       ecc*)
8339         lt_prog_compiler_wl='-Wl,'
8340         lt_prog_compiler_pic='-KPIC'
8341         lt_prog_compiler_static='-static'
8342         ;;
8343       # icc used to be incompatible with GCC.
8344       # ICC 10 doesn't accept -KPIC any more.
8345       icc* | ifort*)
8346         lt_prog_compiler_wl='-Wl,'
8347         lt_prog_compiler_pic='-fPIC'
8348         lt_prog_compiler_static='-static'
8349         ;;
8350       # Lahey Fortran 8.1.
8351       lf95*)
8352         lt_prog_compiler_wl='-Wl,'
8353         lt_prog_compiler_pic='--shared'
8354         lt_prog_compiler_static='--static'
8355         ;;
8356       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8357         # Portland Group compilers (*not* the Pentium gcc compiler,
8358         # which looks to be a dead project)
8359         lt_prog_compiler_wl='-Wl,'
8360         lt_prog_compiler_pic='-fpic'
8361         lt_prog_compiler_static='-Bstatic'
8362         ;;
8363       ccc*)
8364         lt_prog_compiler_wl='-Wl,'
8365         # All Alpha code is PIC.
8366         lt_prog_compiler_static='-non_shared'
8367         ;;
8368       xl* | bgxl* | bgf* | mpixl*)
8369         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8370         lt_prog_compiler_wl='-Wl,'
8371         lt_prog_compiler_pic='-qpic'
8372         lt_prog_compiler_static='-qstaticlink'
8373         ;;
8374       *)
8375         case `$CC -V 2>&1 | sed 5q` in
8376         *Sun\ F* | *Sun*Fortran*)
8377           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8378           lt_prog_compiler_pic='-KPIC'
8379           lt_prog_compiler_static='-Bstatic'
8380           lt_prog_compiler_wl=''
8381           ;;
8382         *Sun\ C*)
8383           # Sun C 5.9
8384           lt_prog_compiler_pic='-KPIC'
8385           lt_prog_compiler_static='-Bstatic'
8386           lt_prog_compiler_wl='-Wl,'
8387           ;;
8388         esac
8389         ;;
8390       esac
8391       ;;
8392
8393     newsos6)
8394       lt_prog_compiler_pic='-KPIC'
8395       lt_prog_compiler_static='-Bstatic'
8396       ;;
8397
8398     *nto* | *qnx*)
8399       # QNX uses GNU C++, but need to define -shared option too, otherwise
8400       # it will coredump.
8401       lt_prog_compiler_pic='-fPIC -shared'
8402       ;;
8403
8404     osf3* | osf4* | osf5*)
8405       lt_prog_compiler_wl='-Wl,'
8406       # All OSF/1 code is PIC.
8407       lt_prog_compiler_static='-non_shared'
8408       ;;
8409
8410     rdos*)
8411       lt_prog_compiler_static='-non_shared'
8412       ;;
8413
8414     solaris*)
8415       lt_prog_compiler_pic='-KPIC'
8416       lt_prog_compiler_static='-Bstatic'
8417       case $cc_basename in
8418       f77* | f90* | f95*)
8419         lt_prog_compiler_wl='-Qoption ld ';;
8420       *)
8421         lt_prog_compiler_wl='-Wl,';;
8422       esac
8423       ;;
8424
8425     sunos4*)
8426       lt_prog_compiler_wl='-Qoption ld '
8427       lt_prog_compiler_pic='-PIC'
8428       lt_prog_compiler_static='-Bstatic'
8429       ;;
8430
8431     sysv4 | sysv4.2uw2* | sysv4.3*)
8432       lt_prog_compiler_wl='-Wl,'
8433       lt_prog_compiler_pic='-KPIC'
8434       lt_prog_compiler_static='-Bstatic'
8435       ;;
8436
8437     sysv4*MP*)
8438       if test -d /usr/nec ;then
8439         lt_prog_compiler_pic='-Kconform_pic'
8440         lt_prog_compiler_static='-Bstatic'
8441       fi
8442       ;;
8443
8444     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8445       lt_prog_compiler_wl='-Wl,'
8446       lt_prog_compiler_pic='-KPIC'
8447       lt_prog_compiler_static='-Bstatic'
8448       ;;
8449
8450     unicos*)
8451       lt_prog_compiler_wl='-Wl,'
8452       lt_prog_compiler_can_build_shared=no
8453       ;;
8454
8455     uts4*)
8456       lt_prog_compiler_pic='-pic'
8457       lt_prog_compiler_static='-Bstatic'
8458       ;;
8459
8460     *)
8461       lt_prog_compiler_can_build_shared=no
8462       ;;
8463     esac
8464   fi
8465
8466 case $host_os in
8467   # For platforms which do not support PIC, -DPIC is meaningless:
8468   *djgpp*)
8469     lt_prog_compiler_pic=
8470     ;;
8471   *)
8472     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8473     ;;
8474 esac
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8476 $as_echo "$lt_prog_compiler_pic" >&6; }
8477
8478
8479
8480
8481
8482
8483 #
8484 # Check to make sure the PIC flag actually works.
8485 #
8486 if test -n "$lt_prog_compiler_pic"; then
8487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8488 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8489 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8490   $as_echo_n "(cached) " >&6
8491 else
8492   lt_cv_prog_compiler_pic_works=no
8493    ac_outfile=conftest.$ac_objext
8494    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8495    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8496    # Insert the option either (1) after the last *FLAGS variable, or
8497    # (2) before a word containing "conftest.", or (3) at the end.
8498    # Note that $ac_compile itself does not contain backslashes and begins
8499    # with a dollar sign (not a hyphen), so the echo should work correctly.
8500    # The option is referenced via a variable to avoid confusing sed.
8501    lt_compile=`echo "$ac_compile" | $SED \
8502    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8503    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8504    -e 's:$: $lt_compiler_flag:'`
8505    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8506    (eval "$lt_compile" 2>conftest.err)
8507    ac_status=$?
8508    cat conftest.err >&5
8509    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510    if (exit $ac_status) && test -s "$ac_outfile"; then
8511      # The compiler can only warn and ignore the option if not recognized
8512      # So say no if there are warnings other than the usual output.
8513      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8514      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8515      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8516        lt_cv_prog_compiler_pic_works=yes
8517      fi
8518    fi
8519    $RM conftest*
8520
8521 fi
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8523 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8524
8525 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8526     case $lt_prog_compiler_pic in
8527      "" | " "*) ;;
8528      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8529      esac
8530 else
8531     lt_prog_compiler_pic=
8532      lt_prog_compiler_can_build_shared=no
8533 fi
8534
8535 fi
8536
8537
8538
8539
8540
8541
8542 #
8543 # Check to make sure the static flag actually works.
8544 #
8545 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8547 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8548 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8549   $as_echo_n "(cached) " >&6
8550 else
8551   lt_cv_prog_compiler_static_works=no
8552    save_LDFLAGS="$LDFLAGS"
8553    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8554    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8555    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8556      # The linker can only warn and ignore the option if not recognized
8557      # So say no if there are warnings
8558      if test -s conftest.err; then
8559        # Append any errors to the config.log.
8560        cat conftest.err 1>&5
8561        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8562        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8563        if diff conftest.exp conftest.er2 >/dev/null; then
8564          lt_cv_prog_compiler_static_works=yes
8565        fi
8566      else
8567        lt_cv_prog_compiler_static_works=yes
8568      fi
8569    fi
8570    $RM -r conftest*
8571    LDFLAGS="$save_LDFLAGS"
8572
8573 fi
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8575 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8576
8577 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8578     :
8579 else
8580     lt_prog_compiler_static=
8581 fi
8582
8583
8584
8585
8586
8587
8588
8589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8590 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8591 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8592   $as_echo_n "(cached) " >&6
8593 else
8594   lt_cv_prog_compiler_c_o=no
8595    $RM -r conftest 2>/dev/null
8596    mkdir conftest
8597    cd conftest
8598    mkdir out
8599    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8600
8601    lt_compiler_flag="-o out/conftest2.$ac_objext"
8602    # Insert the option either (1) after the last *FLAGS variable, or
8603    # (2) before a word containing "conftest.", or (3) at the end.
8604    # Note that $ac_compile itself does not contain backslashes and begins
8605    # with a dollar sign (not a hyphen), so the echo should work correctly.
8606    lt_compile=`echo "$ac_compile" | $SED \
8607    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8608    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8609    -e 's:$: $lt_compiler_flag:'`
8610    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8611    (eval "$lt_compile" 2>out/conftest.err)
8612    ac_status=$?
8613    cat out/conftest.err >&5
8614    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8616    then
8617      # The compiler can only warn and ignore the option if not recognized
8618      # So say no if there are warnings
8619      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8620      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8621      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8622        lt_cv_prog_compiler_c_o=yes
8623      fi
8624    fi
8625    chmod u+w . 2>&5
8626    $RM conftest*
8627    # SGI C++ compiler will create directory out/ii_files/ for
8628    # template instantiation
8629    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8630    $RM out/* && rmdir out
8631    cd ..
8632    $RM -r conftest
8633    $RM conftest*
8634
8635 fi
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8637 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8638
8639
8640
8641
8642
8643
8644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8645 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8646 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8647   $as_echo_n "(cached) " >&6
8648 else
8649   lt_cv_prog_compiler_c_o=no
8650    $RM -r conftest 2>/dev/null
8651    mkdir conftest
8652    cd conftest
8653    mkdir out
8654    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8655
8656    lt_compiler_flag="-o out/conftest2.$ac_objext"
8657    # Insert the option either (1) after the last *FLAGS variable, or
8658    # (2) before a word containing "conftest.", or (3) at the end.
8659    # Note that $ac_compile itself does not contain backslashes and begins
8660    # with a dollar sign (not a hyphen), so the echo should work correctly.
8661    lt_compile=`echo "$ac_compile" | $SED \
8662    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8663    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8664    -e 's:$: $lt_compiler_flag:'`
8665    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8666    (eval "$lt_compile" 2>out/conftest.err)
8667    ac_status=$?
8668    cat out/conftest.err >&5
8669    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8671    then
8672      # The compiler can only warn and ignore the option if not recognized
8673      # So say no if there are warnings
8674      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8675      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8676      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8677        lt_cv_prog_compiler_c_o=yes
8678      fi
8679    fi
8680    chmod u+w . 2>&5
8681    $RM conftest*
8682    # SGI C++ compiler will create directory out/ii_files/ for
8683    # template instantiation
8684    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8685    $RM out/* && rmdir out
8686    cd ..
8687    $RM -r conftest
8688    $RM conftest*
8689
8690 fi
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8692 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8693
8694
8695
8696
8697 hard_links="nottested"
8698 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8699   # do not overwrite the value of need_locks provided by the user
8700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8701 $as_echo_n "checking if we can lock with hard links... " >&6; }
8702   hard_links=yes
8703   $RM conftest*
8704   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8705   touch conftest.a
8706   ln conftest.a conftest.b 2>&5 || hard_links=no
8707   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8709 $as_echo "$hard_links" >&6; }
8710   if test "$hard_links" = no; then
8711     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8712 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8713     need_locks=warn
8714   fi
8715 else
8716   need_locks=no
8717 fi
8718
8719
8720
8721
8722
8723
8724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8725 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8726
8727   runpath_var=
8728   allow_undefined_flag=
8729   always_export_symbols=no
8730   archive_cmds=
8731   archive_expsym_cmds=
8732   compiler_needs_object=no
8733   enable_shared_with_static_runtimes=no
8734   export_dynamic_flag_spec=
8735   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8736   hardcode_automatic=no
8737   hardcode_direct=no
8738   hardcode_direct_absolute=no
8739   hardcode_libdir_flag_spec=
8740   hardcode_libdir_flag_spec_ld=
8741   hardcode_libdir_separator=
8742   hardcode_minus_L=no
8743   hardcode_shlibpath_var=unsupported
8744   inherit_rpath=no
8745   link_all_deplibs=unknown
8746   module_cmds=
8747   module_expsym_cmds=
8748   old_archive_from_new_cmds=
8749   old_archive_from_expsyms_cmds=
8750   thread_safe_flag_spec=
8751   whole_archive_flag_spec=
8752   # include_expsyms should be a list of space-separated symbols to be *always*
8753   # included in the symbol list
8754   include_expsyms=
8755   # exclude_expsyms can be an extended regexp of symbols to exclude
8756   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8757   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8758   # as well as any symbol that contains `d'.
8759   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8760   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8761   # platforms (ab)use it in PIC code, but their linkers get confused if
8762   # the symbol is explicitly referenced.  Since portable code cannot
8763   # rely on this symbol name, it's probably fine to never include it in
8764   # preloaded symbol tables.
8765   # Exclude shared library initialization/finalization symbols.
8766   extract_expsyms_cmds=
8767
8768   case $host_os in
8769   cygwin* | mingw* | pw32* | cegcc*)
8770     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8771     # When not using gcc, we currently assume that we are using
8772     # Microsoft Visual C++.
8773     if test "$GCC" != yes; then
8774       with_gnu_ld=no
8775     fi
8776     ;;
8777   interix*)
8778     # we just hope/assume this is gcc and not c89 (= MSVC++)
8779     with_gnu_ld=yes
8780     ;;
8781   openbsd*)
8782     with_gnu_ld=no
8783     ;;
8784   esac
8785
8786   ld_shlibs=yes
8787
8788   # On some targets, GNU ld is compatible enough with the native linker
8789   # that we're better off using the native interface for both.
8790   lt_use_gnu_ld_interface=no
8791   if test "$with_gnu_ld" = yes; then
8792     case $host_os in
8793       aix*)
8794         # The AIX port of GNU ld has always aspired to compatibility
8795         # with the native linker.  However, as the warning in the GNU ld
8796         # block says, versions before 2.19.5* couldn't really create working
8797         # shared libraries, regardless of the interface used.
8798         case `$LD -v 2>&1` in
8799           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8800           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8801           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8802           *)
8803             lt_use_gnu_ld_interface=yes
8804             ;;
8805         esac
8806         ;;
8807       *)
8808         lt_use_gnu_ld_interface=yes
8809         ;;
8810     esac
8811   fi
8812
8813   if test "$lt_use_gnu_ld_interface" = yes; then
8814     # If archive_cmds runs LD, not CC, wlarc should be empty
8815     wlarc='${wl}'
8816
8817     # Set some defaults for GNU ld with shared library support. These
8818     # are reset later if shared libraries are not supported. Putting them
8819     # here allows them to be overridden if necessary.
8820     runpath_var=LD_RUN_PATH
8821     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8822     export_dynamic_flag_spec='${wl}--export-dynamic'
8823     # ancient GNU ld didn't support --whole-archive et. al.
8824     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8825       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8826     else
8827       whole_archive_flag_spec=
8828     fi
8829     supports_anon_versioning=no
8830     case `$LD -v 2>&1` in
8831       *GNU\ gold*) supports_anon_versioning=yes ;;
8832       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8833       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8834       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8835       *\ 2.11.*) ;; # other 2.11 versions
8836       *) supports_anon_versioning=yes ;;
8837     esac
8838
8839     # See if GNU ld supports shared libraries.
8840     case $host_os in
8841     aix[3-9]*)
8842       # On AIX/PPC, the GNU linker is very broken
8843       if test "$host_cpu" != ia64; then
8844         ld_shlibs=no
8845         cat <<_LT_EOF 1>&2
8846
8847 *** Warning: the GNU linker, at least up to release 2.19, is reported
8848 *** to be unable to reliably create shared libraries on AIX.
8849 *** Therefore, libtool is disabling shared libraries support.  If you
8850 *** really care for shared libraries, you may want to install binutils
8851 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8852 *** You will then need to restart the configuration process.
8853
8854 _LT_EOF
8855       fi
8856       ;;
8857
8858     amigaos*)
8859       case $host_cpu in
8860       powerpc)
8861             # see comment about AmigaOS4 .so support
8862             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8863             archive_expsym_cmds=''
8864         ;;
8865       m68k)
8866             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)'
8867             hardcode_libdir_flag_spec='-L$libdir'
8868             hardcode_minus_L=yes
8869         ;;
8870       esac
8871       ;;
8872
8873     beos*)
8874       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8875         allow_undefined_flag=unsupported
8876         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8877         # support --undefined.  This deserves some investigation.  FIXME
8878         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8879       else
8880         ld_shlibs=no
8881       fi
8882       ;;
8883
8884     cygwin* | mingw* | pw32* | cegcc*)
8885       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8886       # as there is no search path for DLLs.
8887       hardcode_libdir_flag_spec='-L$libdir'
8888       export_dynamic_flag_spec='${wl}--export-all-symbols'
8889       allow_undefined_flag=unsupported
8890       always_export_symbols=no
8891       enable_shared_with_static_runtimes=yes
8892       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8893
8894       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8895         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8896         # If the export-symbols file already is a .def file (1st line
8897         # is EXPORTS), use it as is; otherwise, prepend...
8898         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8899           cp $export_symbols $output_objdir/$soname.def;
8900         else
8901           echo EXPORTS > $output_objdir/$soname.def;
8902           cat $export_symbols >> $output_objdir/$soname.def;
8903         fi~
8904         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8905       else
8906         ld_shlibs=no
8907       fi
8908       ;;
8909
8910     haiku*)
8911       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8912       link_all_deplibs=yes
8913       ;;
8914
8915     interix[3-9]*)
8916       hardcode_direct=no
8917       hardcode_shlibpath_var=no
8918       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8919       export_dynamic_flag_spec='${wl}-E'
8920       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8921       # Instead, shared libraries are loaded at an image base (0x10000000 by
8922       # default) and relocated if they conflict, which is a slow very memory
8923       # consuming and fragmenting process.  To avoid this, we pick a random,
8924       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8925       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8926       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8927       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'
8928       ;;
8929
8930     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8931       tmp_diet=no
8932       if test "$host_os" = linux-dietlibc; then
8933         case $cc_basename in
8934           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8935         esac
8936       fi
8937       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8938          && test "$tmp_diet" = no
8939       then
8940         tmp_addflag=' $pic_flag'
8941         tmp_sharedflag='-shared'
8942         case $cc_basename,$host_cpu in
8943         pgcc*)                          # Portland Group C compiler
8944           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8945           tmp_addflag=' $pic_flag'
8946           ;;
8947         pgf77* | pgf90* | pgf95* | pgfortran*)
8948                                         # Portland Group f77 and f90 compilers
8949           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8950           tmp_addflag=' $pic_flag -Mnomain' ;;
8951         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8952           tmp_addflag=' -i_dynamic' ;;
8953         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8954           tmp_addflag=' -i_dynamic -nofor_main' ;;
8955         ifc* | ifort*)                  # Intel Fortran compiler
8956           tmp_addflag=' -nofor_main' ;;
8957         lf95*)                          # Lahey Fortran 8.1
8958           whole_archive_flag_spec=
8959           tmp_sharedflag='--shared' ;;
8960         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8961           tmp_sharedflag='-qmkshrobj'
8962           tmp_addflag= ;;
8963         nvcc*)  # Cuda Compiler Driver 2.2
8964           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8965           compiler_needs_object=yes
8966           ;;
8967         esac
8968         case `$CC -V 2>&1 | sed 5q` in
8969         *Sun\ C*)                       # Sun C 5.9
8970           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8971           compiler_needs_object=yes
8972           tmp_sharedflag='-G' ;;
8973         *Sun\ F*)                       # Sun Fortran 8.3
8974           tmp_sharedflag='-G' ;;
8975         esac
8976         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8977
8978         if test "x$supports_anon_versioning" = xyes; then
8979           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8980             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8981             echo "local: *; };" >> $output_objdir/$libname.ver~
8982             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8983         fi
8984
8985         case $cc_basename in
8986         xlf* | bgf* | bgxlf* | mpixlf*)
8987           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8988           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8989           hardcode_libdir_flag_spec=
8990           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8991           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8992           if test "x$supports_anon_versioning" = xyes; then
8993             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8994               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8995               echo "local: *; };" >> $output_objdir/$libname.ver~
8996               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8997           fi
8998           ;;
8999         esac
9000       else
9001         ld_shlibs=no
9002       fi
9003       ;;
9004
9005     netbsd*)
9006       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9007         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9008         wlarc=
9009       else
9010         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9011         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9012       fi
9013       ;;
9014
9015     solaris*)
9016       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9017         ld_shlibs=no
9018         cat <<_LT_EOF 1>&2
9019
9020 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9021 *** create shared libraries on Solaris systems.  Therefore, libtool
9022 *** is disabling shared libraries support.  We urge you to upgrade GNU
9023 *** binutils to release 2.9.1 or newer.  Another option is to modify
9024 *** your PATH or compiler configuration so that the native linker is
9025 *** used, and then restart.
9026
9027 _LT_EOF
9028       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9029         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9030         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9031       else
9032         ld_shlibs=no
9033       fi
9034       ;;
9035
9036     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9037       case `$LD -v 2>&1` in
9038         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9039         ld_shlibs=no
9040         cat <<_LT_EOF 1>&2
9041
9042 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9043 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9044 *** is disabling shared libraries support.  We urge you to upgrade GNU
9045 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9046 *** your PATH or compiler configuration so that the native linker is
9047 *** used, and then restart.
9048
9049 _LT_EOF
9050         ;;
9051         *)
9052           # For security reasons, it is highly recommended that you always
9053           # use absolute paths for naming shared libraries, and exclude the
9054           # DT_RUNPATH tag from executables and libraries.  But doing so
9055           # requires that you compile everything twice, which is a pain.
9056           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9057             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9058             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9059             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9060           else
9061             ld_shlibs=no
9062           fi
9063         ;;
9064       esac
9065       ;;
9066
9067     sunos4*)
9068       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9069       wlarc=
9070       hardcode_direct=yes
9071       hardcode_shlibpath_var=no
9072       ;;
9073
9074     *)
9075       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9076         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9077         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9078       else
9079         ld_shlibs=no
9080       fi
9081       ;;
9082     esac
9083
9084     if test "$ld_shlibs" = no; then
9085       runpath_var=
9086       hardcode_libdir_flag_spec=
9087       export_dynamic_flag_spec=
9088       whole_archive_flag_spec=
9089     fi
9090   else
9091     # PORTME fill in a description of your system's linker (not GNU ld)
9092     case $host_os in
9093     aix3*)
9094       allow_undefined_flag=unsupported
9095       always_export_symbols=yes
9096       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'
9097       # Note: this linker hardcodes the directories in LIBPATH if there
9098       # are no directories specified by -L.
9099       hardcode_minus_L=yes
9100       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9101         # Neither direct hardcoding nor static linking is supported with a
9102         # broken collect2.
9103         hardcode_direct=unsupported
9104       fi
9105       ;;
9106
9107     aix[4-9]*)
9108       if test "$host_cpu" = ia64; then
9109         # On IA64, the linker does run time linking by default, so we don't
9110         # have to do anything special.
9111         aix_use_runtimelinking=no
9112         exp_sym_flag='-Bexport'
9113         no_entry_flag=""
9114       else
9115         # If we're using GNU nm, then we don't want the "-C" option.
9116         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9117         # Also, AIX nm treats weak defined symbols like other global
9118         # defined symbols, whereas GNU nm marks them as "W".
9119         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9120           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9121         else
9122           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9123         fi
9124         aix_use_runtimelinking=no
9125
9126         # Test if we are trying to use run time linking or normal
9127         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9128         # need to do runtime linking.
9129         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9130           for ld_flag in $LDFLAGS; do
9131           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9132             aix_use_runtimelinking=yes
9133             break
9134           fi
9135           done
9136           ;;
9137         esac
9138
9139         exp_sym_flag='-bexport'
9140         no_entry_flag='-bnoentry'
9141       fi
9142
9143       # When large executables or shared objects are built, AIX ld can
9144       # have problems creating the table of contents.  If linking a library
9145       # or program results in "error TOC overflow" add -mminimal-toc to
9146       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9147       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9148
9149       archive_cmds=''
9150       hardcode_direct=yes
9151       hardcode_direct_absolute=yes
9152       hardcode_libdir_separator=':'
9153       link_all_deplibs=yes
9154       file_list_spec='${wl}-f,'
9155
9156       if test "$GCC" = yes; then
9157         case $host_os in aix4.[012]|aix4.[012].*)
9158         # We only want to do this on AIX 4.2 and lower, the check
9159         # below for broken collect2 doesn't work under 4.3+
9160           collect2name=`${CC} -print-prog-name=collect2`
9161           if test -f "$collect2name" &&
9162            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9163           then
9164           # We have reworked collect2
9165           :
9166           else
9167           # We have old collect2
9168           hardcode_direct=unsupported
9169           # It fails to find uninstalled libraries when the uninstalled
9170           # path is not listed in the libpath.  Setting hardcode_minus_L
9171           # to unsupported forces relinking
9172           hardcode_minus_L=yes
9173           hardcode_libdir_flag_spec='-L$libdir'
9174           hardcode_libdir_separator=
9175           fi
9176           ;;
9177         esac
9178         shared_flag='-shared'
9179         if test "$aix_use_runtimelinking" = yes; then
9180           shared_flag="$shared_flag "'${wl}-G'
9181         fi
9182       else
9183         # not using gcc
9184         if test "$host_cpu" = ia64; then
9185         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9186         # chokes on -Wl,-G. The following line is correct:
9187           shared_flag='-G'
9188         else
9189           if test "$aix_use_runtimelinking" = yes; then
9190             shared_flag='${wl}-G'
9191           else
9192             shared_flag='${wl}-bM:SRE'
9193           fi
9194         fi
9195       fi
9196
9197       export_dynamic_flag_spec='${wl}-bexpall'
9198       # It seems that -bexpall does not export symbols beginning with
9199       # underscore (_), so it is better to generate a list of symbols to export.
9200       always_export_symbols=yes
9201       if test "$aix_use_runtimelinking" = yes; then
9202         # Warning - without using the other runtime loading flags (-brtl),
9203         # -berok will link without error, but may produce a broken library.
9204         allow_undefined_flag='-berok'
9205         # Determine the default libpath from the value encoded in an
9206         # empty executable.
9207         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h.  */
9209
9210 int
9211 main ()
9212 {
9213
9214   ;
9215   return 0;
9216 }
9217 _ACEOF
9218 if ac_fn_c_try_link "$LINENO"; then :
9219
9220 lt_aix_libpath_sed='
9221     /Import File Strings/,/^$/ {
9222         /^0/ {
9223             s/^0  *\(.*\)$/\1/
9224             p
9225         }
9226     }'
9227 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9228 # Check for a 64-bit object if we didn't find anything.
9229 if test -z "$aix_libpath"; then
9230   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9231 fi
9232 fi
9233 rm -f core conftest.err conftest.$ac_objext \
9234     conftest$ac_exeext conftest.$ac_ext
9235 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9236
9237         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9238         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9239       else
9240         if test "$host_cpu" = ia64; then
9241           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9242           allow_undefined_flag="-z nodefs"
9243           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"
9244         else
9245          # Determine the default libpath from the value encoded in an
9246          # empty executable.
9247          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h.  */
9249
9250 int
9251 main ()
9252 {
9253
9254   ;
9255   return 0;
9256 }
9257 _ACEOF
9258 if ac_fn_c_try_link "$LINENO"; then :
9259
9260 lt_aix_libpath_sed='
9261     /Import File Strings/,/^$/ {
9262         /^0/ {
9263             s/^0  *\(.*\)$/\1/
9264             p
9265         }
9266     }'
9267 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9268 # Check for a 64-bit object if we didn't find anything.
9269 if test -z "$aix_libpath"; then
9270   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9271 fi
9272 fi
9273 rm -f core conftest.err conftest.$ac_objext \
9274     conftest$ac_exeext conftest.$ac_ext
9275 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9276
9277          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9278           # Warning - without using the other run time loading flags,
9279           # -berok will link without error, but may produce a broken library.
9280           no_undefined_flag=' ${wl}-bernotok'
9281           allow_undefined_flag=' ${wl}-berok'
9282           if test "$with_gnu_ld" = yes; then
9283             # We only use this code for GNU lds that support --whole-archive.
9284             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9285           else
9286             # Exported symbols can be pulled into shared objects from archives
9287             whole_archive_flag_spec='$convenience'
9288           fi
9289           archive_cmds_need_lc=yes
9290           # This is similar to how AIX traditionally builds its shared libraries.
9291           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'
9292         fi
9293       fi
9294       ;;
9295
9296     amigaos*)
9297       case $host_cpu in
9298       powerpc)
9299             # see comment about AmigaOS4 .so support
9300             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9301             archive_expsym_cmds=''
9302         ;;
9303       m68k)
9304             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)'
9305             hardcode_libdir_flag_spec='-L$libdir'
9306             hardcode_minus_L=yes
9307         ;;
9308       esac
9309       ;;
9310
9311     bsdi[45]*)
9312       export_dynamic_flag_spec=-rdynamic
9313       ;;
9314
9315     cygwin* | mingw* | pw32* | cegcc*)
9316       # When not using gcc, we currently assume that we are using
9317       # Microsoft Visual C++.
9318       # hardcode_libdir_flag_spec is actually meaningless, as there is
9319       # no search path for DLLs.
9320       hardcode_libdir_flag_spec=' '
9321       allow_undefined_flag=unsupported
9322       # Tell ltmain to make .lib files, not .a files.
9323       libext=lib
9324       # Tell ltmain to make .dll files, not .so files.
9325       shrext_cmds=".dll"
9326       # FIXME: Setting linknames here is a bad hack.
9327       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9328       # The linker will automatically build a .lib file if we build a DLL.
9329       old_archive_from_new_cmds='true'
9330       # FIXME: Should let the user specify the lib program.
9331       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9332       fix_srcfile_path='`cygpath -w "$srcfile"`'
9333       enable_shared_with_static_runtimes=yes
9334       ;;
9335
9336     darwin* | rhapsody*)
9337
9338
9339   archive_cmds_need_lc=no
9340   hardcode_direct=no
9341   hardcode_automatic=yes
9342   hardcode_shlibpath_var=unsupported
9343   if test "$lt_cv_ld_force_load" = "yes"; then
9344     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9345   else
9346     whole_archive_flag_spec=''
9347   fi
9348   link_all_deplibs=yes
9349   allow_undefined_flag="$_lt_dar_allow_undefined"
9350   case $cc_basename in
9351      ifort*) _lt_dar_can_shared=yes ;;
9352      *) _lt_dar_can_shared=$GCC ;;
9353   esac
9354   if test "$_lt_dar_can_shared" = "yes"; then
9355     output_verbose_link_cmd=func_echo_all
9356     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9357     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9358     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}"
9359     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}"
9360
9361   else
9362   ld_shlibs=no
9363   fi
9364
9365       ;;
9366
9367     dgux*)
9368       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9369       hardcode_libdir_flag_spec='-L$libdir'
9370       hardcode_shlibpath_var=no
9371       ;;
9372
9373     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9374     # support.  Future versions do this automatically, but an explicit c++rt0.o
9375     # does not break anything, and helps significantly (at the cost of a little
9376     # extra space).
9377     freebsd2.2*)
9378       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9379       hardcode_libdir_flag_spec='-R$libdir'
9380       hardcode_direct=yes
9381       hardcode_shlibpath_var=no
9382       ;;
9383
9384     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9385     freebsd2.*)
9386       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9387       hardcode_direct=yes
9388       hardcode_minus_L=yes
9389       hardcode_shlibpath_var=no
9390       ;;
9391
9392     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9393     freebsd* | dragonfly*)
9394       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9395       hardcode_libdir_flag_spec='-R$libdir'
9396       hardcode_direct=yes
9397       hardcode_shlibpath_var=no
9398       ;;
9399
9400     hpux9*)
9401       if test "$GCC" = yes; then
9402         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'
9403       else
9404         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'
9405       fi
9406       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9407       hardcode_libdir_separator=:
9408       hardcode_direct=yes
9409
9410       # hardcode_minus_L: Not really in the search PATH,
9411       # but as the default location of the library.
9412       hardcode_minus_L=yes
9413       export_dynamic_flag_spec='${wl}-E'
9414       ;;
9415
9416     hpux10*)
9417       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9418         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9419       else
9420         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9421       fi
9422       if test "$with_gnu_ld" = no; then
9423         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9424         hardcode_libdir_flag_spec_ld='+b $libdir'
9425         hardcode_libdir_separator=:
9426         hardcode_direct=yes
9427         hardcode_direct_absolute=yes
9428         export_dynamic_flag_spec='${wl}-E'
9429         # hardcode_minus_L: Not really in the search PATH,
9430         # but as the default location of the library.
9431         hardcode_minus_L=yes
9432       fi
9433       ;;
9434
9435     hpux11*)
9436       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9437         case $host_cpu in
9438         hppa*64*)
9439           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9440           ;;
9441         ia64*)
9442           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9443           ;;
9444         *)
9445           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9446           ;;
9447         esac
9448       else
9449         case $host_cpu in
9450         hppa*64*)
9451           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9452           ;;
9453         ia64*)
9454           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9455           ;;
9456         *)
9457
9458           # Older versions of the 11.00 compiler do not understand -b yet
9459           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9460           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9461 $as_echo_n "checking if $CC understands -b... " >&6; }
9462 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9463   $as_echo_n "(cached) " >&6
9464 else
9465   lt_cv_prog_compiler__b=no
9466    save_LDFLAGS="$LDFLAGS"
9467    LDFLAGS="$LDFLAGS -b"
9468    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9469    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9470      # The linker can only warn and ignore the option if not recognized
9471      # So say no if there are warnings
9472      if test -s conftest.err; then
9473        # Append any errors to the config.log.
9474        cat conftest.err 1>&5
9475        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9476        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9477        if diff conftest.exp conftest.er2 >/dev/null; then
9478          lt_cv_prog_compiler__b=yes
9479        fi
9480      else
9481        lt_cv_prog_compiler__b=yes
9482      fi
9483    fi
9484    $RM -r conftest*
9485    LDFLAGS="$save_LDFLAGS"
9486
9487 fi
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9489 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9490
9491 if test x"$lt_cv_prog_compiler__b" = xyes; then
9492     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9493 else
9494     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9495 fi
9496
9497           ;;
9498         esac
9499       fi
9500       if test "$with_gnu_ld" = no; then
9501         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9502         hardcode_libdir_separator=:
9503
9504         case $host_cpu in
9505         hppa*64*|ia64*)
9506           hardcode_direct=no
9507           hardcode_shlibpath_var=no
9508           ;;
9509         *)
9510           hardcode_direct=yes
9511           hardcode_direct_absolute=yes
9512           export_dynamic_flag_spec='${wl}-E'
9513
9514           # hardcode_minus_L: Not really in the search PATH,
9515           # but as the default location of the library.
9516           hardcode_minus_L=yes
9517           ;;
9518         esac
9519       fi
9520       ;;
9521
9522     irix5* | irix6* | nonstopux*)
9523       if test "$GCC" = yes; then
9524         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9525         # Try to use the -exported_symbol ld option, if it does not
9526         # work, assume that -exports_file does not work either and
9527         # implicitly export all symbols.
9528         save_LDFLAGS="$LDFLAGS"
9529         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9530         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h.  */
9532 int foo(void) {}
9533 _ACEOF
9534 if ac_fn_c_try_link "$LINENO"; then :
9535   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9536
9537 fi
9538 rm -f core conftest.err conftest.$ac_objext \
9539     conftest$ac_exeext conftest.$ac_ext
9540         LDFLAGS="$save_LDFLAGS"
9541       else
9542         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9543         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9544       fi
9545       archive_cmds_need_lc='no'
9546       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9547       hardcode_libdir_separator=:
9548       inherit_rpath=yes
9549       link_all_deplibs=yes
9550       ;;
9551
9552     netbsd*)
9553       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9554         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9555       else
9556         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9557       fi
9558       hardcode_libdir_flag_spec='-R$libdir'
9559       hardcode_direct=yes
9560       hardcode_shlibpath_var=no
9561       ;;
9562
9563     newsos6)
9564       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9565       hardcode_direct=yes
9566       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9567       hardcode_libdir_separator=:
9568       hardcode_shlibpath_var=no
9569       ;;
9570
9571     *nto* | *qnx*)
9572       ;;
9573
9574     openbsd*)
9575       if test -f /usr/libexec/ld.so; then
9576         hardcode_direct=yes
9577         hardcode_shlibpath_var=no
9578         hardcode_direct_absolute=yes
9579         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9580           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9581           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9582           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9583           export_dynamic_flag_spec='${wl}-E'
9584         else
9585           case $host_os in
9586            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9587              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9588              hardcode_libdir_flag_spec='-R$libdir'
9589              ;;
9590            *)
9591              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9592              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9593              ;;
9594           esac
9595         fi
9596       else
9597         ld_shlibs=no
9598       fi
9599       ;;
9600
9601     os2*)
9602       hardcode_libdir_flag_spec='-L$libdir'
9603       hardcode_minus_L=yes
9604       allow_undefined_flag=unsupported
9605       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'
9606       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9607       ;;
9608
9609     osf3*)
9610       if test "$GCC" = yes; then
9611         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9612         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9613       else
9614         allow_undefined_flag=' -expect_unresolved \*'
9615         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9616       fi
9617       archive_cmds_need_lc='no'
9618       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9619       hardcode_libdir_separator=:
9620       ;;
9621
9622     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9623       if test "$GCC" = yes; then
9624         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9625         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9626         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9627       else
9628         allow_undefined_flag=' -expect_unresolved \*'
9629         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9630         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~
9631         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9632
9633         # Both c and cxx compiler support -rpath directly
9634         hardcode_libdir_flag_spec='-rpath $libdir'
9635       fi
9636       archive_cmds_need_lc='no'
9637       hardcode_libdir_separator=:
9638       ;;
9639
9640     solaris*)
9641       no_undefined_flag=' -z defs'
9642       if test "$GCC" = yes; then
9643         wlarc='${wl}'
9644         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9645         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9646           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9647       else
9648         case `$CC -V 2>&1` in
9649         *"Compilers 5.0"*)
9650           wlarc=''
9651           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9652           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9653           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9654           ;;
9655         *)
9656           wlarc='${wl}'
9657           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9658           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9659           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9660           ;;
9661         esac
9662       fi
9663       hardcode_libdir_flag_spec='-R$libdir'
9664       hardcode_shlibpath_var=no
9665       case $host_os in
9666       solaris2.[0-5] | solaris2.[0-5].*) ;;
9667       *)
9668         # The compiler driver will combine and reorder linker options,
9669         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9670         # but is careful enough not to reorder.
9671         # Supported since Solaris 2.6 (maybe 2.5.1?)
9672         if test "$GCC" = yes; then
9673           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9674         else
9675           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9676         fi
9677         ;;
9678       esac
9679       link_all_deplibs=yes
9680       ;;
9681
9682     sunos4*)
9683       if test "x$host_vendor" = xsequent; then
9684         # Use $CC to link under sequent, because it throws in some extra .o
9685         # files that make .init and .fini sections work.
9686         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9687       else
9688         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9689       fi
9690       hardcode_libdir_flag_spec='-L$libdir'
9691       hardcode_direct=yes
9692       hardcode_minus_L=yes
9693       hardcode_shlibpath_var=no
9694       ;;
9695
9696     sysv4)
9697       case $host_vendor in
9698         sni)
9699           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9700           hardcode_direct=yes # is this really true???
9701         ;;
9702         siemens)
9703           ## LD is ld it makes a PLAMLIB
9704           ## CC just makes a GrossModule.
9705           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9706           reload_cmds='$CC -r -o $output$reload_objs'
9707           hardcode_direct=no
9708         ;;
9709         motorola)
9710           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9711           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9712         ;;
9713       esac
9714       runpath_var='LD_RUN_PATH'
9715       hardcode_shlibpath_var=no
9716       ;;
9717
9718     sysv4.3*)
9719       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9720       hardcode_shlibpath_var=no
9721       export_dynamic_flag_spec='-Bexport'
9722       ;;
9723
9724     sysv4*MP*)
9725       if test -d /usr/nec; then
9726         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9727         hardcode_shlibpath_var=no
9728         runpath_var=LD_RUN_PATH
9729         hardcode_runpath_var=yes
9730         ld_shlibs=yes
9731       fi
9732       ;;
9733
9734     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9735       no_undefined_flag='${wl}-z,text'
9736       archive_cmds_need_lc=no
9737       hardcode_shlibpath_var=no
9738       runpath_var='LD_RUN_PATH'
9739
9740       if test "$GCC" = yes; then
9741         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743       else
9744         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9745         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746       fi
9747       ;;
9748
9749     sysv5* | sco3.2v5* | sco5v6*)
9750       # Note: We can NOT use -z defs as we might desire, because we do not
9751       # link with -lc, and that would cause any symbols used from libc to
9752       # always be unresolved, which means just about no library would
9753       # ever link correctly.  If we're not using GNU ld we use -z text
9754       # though, which does catch some bad symbols but isn't as heavy-handed
9755       # as -z defs.
9756       no_undefined_flag='${wl}-z,text'
9757       allow_undefined_flag='${wl}-z,nodefs'
9758       archive_cmds_need_lc=no
9759       hardcode_shlibpath_var=no
9760       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9761       hardcode_libdir_separator=':'
9762       link_all_deplibs=yes
9763       export_dynamic_flag_spec='${wl}-Bexport'
9764       runpath_var='LD_RUN_PATH'
9765
9766       if test "$GCC" = yes; then
9767         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9768         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769       else
9770         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9771         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9772       fi
9773       ;;
9774
9775     uts4*)
9776       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9777       hardcode_libdir_flag_spec='-L$libdir'
9778       hardcode_shlibpath_var=no
9779       ;;
9780
9781     *)
9782       ld_shlibs=no
9783       ;;
9784     esac
9785
9786     if test x$host_vendor = xsni; then
9787       case $host in
9788       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9789         export_dynamic_flag_spec='${wl}-Blargedynsym'
9790         ;;
9791       esac
9792     fi
9793   fi
9794
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9796 $as_echo "$ld_shlibs" >&6; }
9797 test "$ld_shlibs" = no && can_build_shared=no
9798
9799 with_gnu_ld=$with_gnu_ld
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815 #
9816 # Do we need to explicitly link libc?
9817 #
9818 case "x$archive_cmds_need_lc" in
9819 x|xyes)
9820   # Assume -lc should be added
9821   archive_cmds_need_lc=yes
9822
9823   if test "$enable_shared" = yes && test "$GCC" = yes; then
9824     case $archive_cmds in
9825     *'~'*)
9826       # FIXME: we may have to deal with multi-command sequences.
9827       ;;
9828     '$CC '*)
9829       # Test whether the compiler implicitly links with -lc since on some
9830       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9831       # to ld, don't add -lc before -lgcc.
9832       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9833 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9834 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9835   $as_echo_n "(cached) " >&6
9836 else
9837   $RM conftest*
9838         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9839
9840         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9841   (eval $ac_compile) 2>&5
9842   ac_status=$?
9843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9844   test $ac_status = 0; } 2>conftest.err; then
9845           soname=conftest
9846           lib=conftest
9847           libobjs=conftest.$ac_objext
9848           deplibs=
9849           wl=$lt_prog_compiler_wl
9850           pic_flag=$lt_prog_compiler_pic
9851           compiler_flags=-v
9852           linker_flags=-v
9853           verstring=
9854           output_objdir=.
9855           libname=conftest
9856           lt_save_allow_undefined_flag=$allow_undefined_flag
9857           allow_undefined_flag=
9858           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9859   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9860   ac_status=$?
9861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9862   test $ac_status = 0; }
9863           then
9864             lt_cv_archive_cmds_need_lc=no
9865           else
9866             lt_cv_archive_cmds_need_lc=yes
9867           fi
9868           allow_undefined_flag=$lt_save_allow_undefined_flag
9869         else
9870           cat conftest.err 1>&5
9871         fi
9872         $RM conftest*
9873
9874 fi
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9876 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9877       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9878       ;;
9879     esac
9880   fi
9881   ;;
9882 esac
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
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10041 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10042
10043 if test "$GCC" = yes; then
10044   case $host_os in
10045     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10046     *) lt_awk_arg="/^libraries:/" ;;
10047   esac
10048   case $host_os in
10049     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10050     *) lt_sed_strip_eq="s,=/,/,g" ;;
10051   esac
10052   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10053   case $lt_search_path_spec in
10054   *\;*)
10055     # if the path contains ";" then we assume it to be the separator
10056     # otherwise default to the standard path separator (i.e. ":") - it is
10057     # assumed that no part of a normal pathname contains ";" but that should
10058     # okay in the real world where ";" in dirpaths is itself problematic.
10059     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10060     ;;
10061   *)
10062     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10063     ;;
10064   esac
10065   # Ok, now we have the path, separated by spaces, we can step through it
10066   # and add multilib dir if necessary.
10067   lt_tmp_lt_search_path_spec=
10068   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10069   for lt_sys_path in $lt_search_path_spec; do
10070     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10071       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10072     else
10073       test -d "$lt_sys_path" && \
10074         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10075     fi
10076   done
10077   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10078 BEGIN {RS=" "; FS="/|\n";} {
10079   lt_foo="";
10080   lt_count=0;
10081   for (lt_i = NF; lt_i > 0; lt_i--) {
10082     if ($lt_i != "" && $lt_i != ".") {
10083       if ($lt_i == "..") {
10084         lt_count++;
10085       } else {
10086         if (lt_count == 0) {
10087           lt_foo="/" $lt_i lt_foo;
10088         } else {
10089           lt_count--;
10090         }
10091       }
10092     }
10093   }
10094   if (lt_foo != "") { lt_freq[lt_foo]++; }
10095   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10096 }'`
10097   # AWK program above erroneously prepends '/' to C:/dos/paths
10098   # for these hosts.
10099   case $host_os in
10100     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10101       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10102   esac
10103   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10104 else
10105   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10106 fi
10107 library_names_spec=
10108 libname_spec='lib$name'
10109 soname_spec=
10110 shrext_cmds=".so"
10111 postinstall_cmds=
10112 postuninstall_cmds=
10113 finish_cmds=
10114 finish_eval=
10115 shlibpath_var=
10116 shlibpath_overrides_runpath=unknown
10117 version_type=none
10118 dynamic_linker="$host_os ld.so"
10119 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10120 need_lib_prefix=unknown
10121 hardcode_into_libs=no
10122
10123 # when you set need_version to no, make sure it does not cause -set_version
10124 # flags to be left without arguments
10125 need_version=unknown
10126
10127 case $host_os in
10128 aix3*)
10129   version_type=linux
10130   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10131   shlibpath_var=LIBPATH
10132
10133   # AIX 3 has no versioning support, so we append a major version to the name.
10134   soname_spec='${libname}${release}${shared_ext}$major'
10135   ;;
10136
10137 aix[4-9]*)
10138   version_type=linux
10139   need_lib_prefix=no
10140   need_version=no
10141   hardcode_into_libs=yes
10142   if test "$host_cpu" = ia64; then
10143     # AIX 5 supports IA64
10144     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10145     shlibpath_var=LD_LIBRARY_PATH
10146   else
10147     # With GCC up to 2.95.x, collect2 would create an import file
10148     # for dependence libraries.  The import file would start with
10149     # the line `#! .'.  This would cause the generated library to
10150     # depend on `.', always an invalid library.  This was fixed in
10151     # development snapshots of GCC prior to 3.0.
10152     case $host_os in
10153       aix4 | aix4.[01] | aix4.[01].*)
10154       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10155            echo ' yes '
10156            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10157         :
10158       else
10159         can_build_shared=no
10160       fi
10161       ;;
10162     esac
10163     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10164     # soname into executable. Probably we can add versioning support to
10165     # collect2, so additional links can be useful in future.
10166     if test "$aix_use_runtimelinking" = yes; then
10167       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10168       # instead of lib<name>.a to let people know that these are not
10169       # typical AIX shared libraries.
10170       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171     else
10172       # We preserve .a as extension for shared libraries through AIX4.2
10173       # and later when we are not doing run time linking.
10174       library_names_spec='${libname}${release}.a $libname.a'
10175       soname_spec='${libname}${release}${shared_ext}$major'
10176     fi
10177     shlibpath_var=LIBPATH
10178   fi
10179   ;;
10180
10181 amigaos*)
10182   case $host_cpu in
10183   powerpc)
10184     # Since July 2007 AmigaOS4 officially supports .so libraries.
10185     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10186     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187     ;;
10188   m68k)
10189     library_names_spec='$libname.ixlibrary $libname.a'
10190     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10191     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10192     ;;
10193   esac
10194   ;;
10195
10196 beos*)
10197   library_names_spec='${libname}${shared_ext}'
10198   dynamic_linker="$host_os ld.so"
10199   shlibpath_var=LIBRARY_PATH
10200   ;;
10201
10202 bsdi[45]*)
10203   version_type=linux
10204   need_version=no
10205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206   soname_spec='${libname}${release}${shared_ext}$major'
10207   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10208   shlibpath_var=LD_LIBRARY_PATH
10209   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10210   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10211   # the default ld.so.conf also contains /usr/contrib/lib and
10212   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10213   # libtool to hard-code these into programs
10214   ;;
10215
10216 cygwin* | mingw* | pw32* | cegcc*)
10217   version_type=windows
10218   shrext_cmds=".dll"
10219   need_version=no
10220   need_lib_prefix=no
10221
10222   case $GCC,$host_os in
10223   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10224     library_names_spec='$libname.dll.a'
10225     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10226     postinstall_cmds='base_file=`basename \${file}`~
10227       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10228       dldir=$destdir/`dirname \$dlpath`~
10229       test -d \$dldir || mkdir -p \$dldir~
10230       $install_prog $dir/$dlname \$dldir/$dlname~
10231       chmod a+x \$dldir/$dlname~
10232       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10233         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10234       fi'
10235     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10236       dlpath=$dir/\$dldll~
10237        $RM \$dlpath'
10238     shlibpath_overrides_runpath=yes
10239
10240     case $host_os in
10241     cygwin*)
10242       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10243       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10244
10245       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10246       ;;
10247     mingw* | cegcc*)
10248       # MinGW DLLs use traditional 'lib' prefix
10249       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10250       ;;
10251     pw32*)
10252       # pw32 DLLs use 'pw' prefix rather than 'lib'
10253       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10254       ;;
10255     esac
10256     ;;
10257
10258   *)
10259     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10260     ;;
10261   esac
10262   dynamic_linker='Win32 ld.exe'
10263   # FIXME: first we should search . and the directory the executable is in
10264   shlibpath_var=PATH
10265   ;;
10266
10267 darwin* | rhapsody*)
10268   dynamic_linker="$host_os dyld"
10269   version_type=darwin
10270   need_lib_prefix=no
10271   need_version=no
10272   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10273   soname_spec='${libname}${release}${major}$shared_ext'
10274   shlibpath_overrides_runpath=yes
10275   shlibpath_var=DYLD_LIBRARY_PATH
10276   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10277
10278   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10279   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10280   ;;
10281
10282 dgux*)
10283   version_type=linux
10284   need_lib_prefix=no
10285   need_version=no
10286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10287   soname_spec='${libname}${release}${shared_ext}$major'
10288   shlibpath_var=LD_LIBRARY_PATH
10289   ;;
10290
10291 freebsd* | dragonfly*)
10292   # DragonFly does not have aout.  When/if they implement a new
10293   # versioning mechanism, adjust this.
10294   if test -x /usr/bin/objformat; then
10295     objformat=`/usr/bin/objformat`
10296   else
10297     case $host_os in
10298     freebsd[23].*) objformat=aout ;;
10299     *) objformat=elf ;;
10300     esac
10301   fi
10302   version_type=freebsd-$objformat
10303   case $version_type in
10304     freebsd-elf*)
10305       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10306       need_version=no
10307       need_lib_prefix=no
10308       ;;
10309     freebsd-*)
10310       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10311       need_version=yes
10312       ;;
10313   esac
10314   shlibpath_var=LD_LIBRARY_PATH
10315   case $host_os in
10316   freebsd2.*)
10317     shlibpath_overrides_runpath=yes
10318     ;;
10319   freebsd3.[01]* | freebsdelf3.[01]*)
10320     shlibpath_overrides_runpath=yes
10321     hardcode_into_libs=yes
10322     ;;
10323   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10324   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10325     shlibpath_overrides_runpath=no
10326     hardcode_into_libs=yes
10327     ;;
10328   *) # from 4.6 on, and DragonFly
10329     shlibpath_overrides_runpath=yes
10330     hardcode_into_libs=yes
10331     ;;
10332   esac
10333   ;;
10334
10335 gnu*)
10336   version_type=linux
10337   need_lib_prefix=no
10338   need_version=no
10339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10340   soname_spec='${libname}${release}${shared_ext}$major'
10341   shlibpath_var=LD_LIBRARY_PATH
10342   hardcode_into_libs=yes
10343   ;;
10344
10345 haiku*)
10346   version_type=linux
10347   need_lib_prefix=no
10348   need_version=no
10349   dynamic_linker="$host_os runtime_loader"
10350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10351   soname_spec='${libname}${release}${shared_ext}$major'
10352   shlibpath_var=LIBRARY_PATH
10353   shlibpath_overrides_runpath=yes
10354   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10355   hardcode_into_libs=yes
10356   ;;
10357
10358 hpux9* | hpux10* | hpux11*)
10359   # Give a soname corresponding to the major version so that dld.sl refuses to
10360   # link against other versions.
10361   version_type=sunos
10362   need_lib_prefix=no
10363   need_version=no
10364   case $host_cpu in
10365   ia64*)
10366     shrext_cmds='.so'
10367     hardcode_into_libs=yes
10368     dynamic_linker="$host_os dld.so"
10369     shlibpath_var=LD_LIBRARY_PATH
10370     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10371     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372     soname_spec='${libname}${release}${shared_ext}$major'
10373     if test "X$HPUX_IA64_MODE" = X32; then
10374       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10375     else
10376       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10377     fi
10378     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10379     ;;
10380   hppa*64*)
10381     shrext_cmds='.sl'
10382     hardcode_into_libs=yes
10383     dynamic_linker="$host_os dld.sl"
10384     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10385     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10386     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387     soname_spec='${libname}${release}${shared_ext}$major'
10388     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10389     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10390     ;;
10391   *)
10392     shrext_cmds='.sl'
10393     dynamic_linker="$host_os dld.sl"
10394     shlibpath_var=SHLIB_PATH
10395     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10396     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10397     soname_spec='${libname}${release}${shared_ext}$major'
10398     ;;
10399   esac
10400   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10401   postinstall_cmds='chmod 555 $lib'
10402   # or fails outright, so override atomically:
10403   install_override_mode=555
10404   ;;
10405
10406 interix[3-9]*)
10407   version_type=linux
10408   need_lib_prefix=no
10409   need_version=no
10410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10411   soname_spec='${libname}${release}${shared_ext}$major'
10412   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10413   shlibpath_var=LD_LIBRARY_PATH
10414   shlibpath_overrides_runpath=no
10415   hardcode_into_libs=yes
10416   ;;
10417
10418 irix5* | irix6* | nonstopux*)
10419   case $host_os in
10420     nonstopux*) version_type=nonstopux ;;
10421     *)
10422         if test "$lt_cv_prog_gnu_ld" = yes; then
10423                 version_type=linux
10424         else
10425                 version_type=irix
10426         fi ;;
10427   esac
10428   need_lib_prefix=no
10429   need_version=no
10430   soname_spec='${libname}${release}${shared_ext}$major'
10431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10432   case $host_os in
10433   irix5* | nonstopux*)
10434     libsuff= shlibsuff=
10435     ;;
10436   *)
10437     case $LD in # libtool.m4 will add one of these switches to LD
10438     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10439       libsuff= shlibsuff= libmagic=32-bit;;
10440     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10441       libsuff=32 shlibsuff=N32 libmagic=N32;;
10442     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10443       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10444     *) libsuff= shlibsuff= libmagic=never-match;;
10445     esac
10446     ;;
10447   esac
10448   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10449   shlibpath_overrides_runpath=no
10450   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10451   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10452   hardcode_into_libs=yes
10453   ;;
10454
10455 # No shared lib support for Linux oldld, aout, or coff.
10456 linux*oldld* | linux*aout* | linux*coff*)
10457   dynamic_linker=no
10458   ;;
10459
10460 # This must be Linux ELF.
10461 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10462   version_type=linux
10463   need_lib_prefix=no
10464   need_version=no
10465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466   soname_spec='${libname}${release}${shared_ext}$major'
10467   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10468   shlibpath_var=LD_LIBRARY_PATH
10469   shlibpath_overrides_runpath=no
10470
10471   # Some binutils ld are patched to set DT_RUNPATH
10472   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10473   $as_echo_n "(cached) " >&6
10474 else
10475   lt_cv_shlibpath_overrides_runpath=no
10476     save_LDFLAGS=$LDFLAGS
10477     save_libdir=$libdir
10478     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10479          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10480     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h.  */
10482
10483 int
10484 main ()
10485 {
10486
10487   ;
10488   return 0;
10489 }
10490 _ACEOF
10491 if ac_fn_c_try_link "$LINENO"; then :
10492   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10493   lt_cv_shlibpath_overrides_runpath=yes
10494 fi
10495 fi
10496 rm -f core conftest.err conftest.$ac_objext \
10497     conftest$ac_exeext conftest.$ac_ext
10498     LDFLAGS=$save_LDFLAGS
10499     libdir=$save_libdir
10500
10501 fi
10502
10503   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10504
10505   # This implies no fast_install, which is unacceptable.
10506   # Some rework will be needed to allow for fast_install
10507   # before this can be enabled.
10508   hardcode_into_libs=yes
10509
10510   # Append ld.so.conf contents to the search path
10511   if test -f /etc/ld.so.conf; then
10512     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10513     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10514   fi
10515
10516   # We used to test for /lib/ld.so.1 and disable shared libraries on
10517   # powerpc, because MkLinux only supported shared libraries with the
10518   # GNU dynamic linker.  Since this was broken with cross compilers,
10519   # most powerpc-linux boxes support dynamic linking these days and
10520   # people can always --disable-shared, the test was removed, and we
10521   # assume the GNU/Linux dynamic linker is in use.
10522   dynamic_linker='GNU/Linux ld.so'
10523   ;;
10524
10525 netbsd*)
10526   version_type=sunos
10527   need_lib_prefix=no
10528   need_version=no
10529   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10530     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10531     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10532     dynamic_linker='NetBSD (a.out) ld.so'
10533   else
10534     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10535     soname_spec='${libname}${release}${shared_ext}$major'
10536     dynamic_linker='NetBSD ld.elf_so'
10537   fi
10538   shlibpath_var=LD_LIBRARY_PATH
10539   shlibpath_overrides_runpath=yes
10540   hardcode_into_libs=yes
10541   ;;
10542
10543 newsos6)
10544   version_type=linux
10545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546   shlibpath_var=LD_LIBRARY_PATH
10547   shlibpath_overrides_runpath=yes
10548   ;;
10549
10550 *nto* | *qnx*)
10551   version_type=qnx
10552   need_lib_prefix=no
10553   need_version=no
10554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555   soname_spec='${libname}${release}${shared_ext}$major'
10556   shlibpath_var=LD_LIBRARY_PATH
10557   shlibpath_overrides_runpath=no
10558   hardcode_into_libs=yes
10559   dynamic_linker='ldqnx.so'
10560   ;;
10561
10562 openbsd*)
10563   version_type=sunos
10564   sys_lib_dlsearch_path_spec="/usr/lib"
10565   need_lib_prefix=no
10566   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10567   case $host_os in
10568     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10569     *)                          need_version=no  ;;
10570   esac
10571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10572   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10573   shlibpath_var=LD_LIBRARY_PATH
10574   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10575     case $host_os in
10576       openbsd2.[89] | openbsd2.[89].*)
10577         shlibpath_overrides_runpath=no
10578         ;;
10579       *)
10580         shlibpath_overrides_runpath=yes
10581         ;;
10582       esac
10583   else
10584     shlibpath_overrides_runpath=yes
10585   fi
10586   ;;
10587
10588 os2*)
10589   libname_spec='$name'
10590   shrext_cmds=".dll"
10591   need_lib_prefix=no
10592   library_names_spec='$libname${shared_ext} $libname.a'
10593   dynamic_linker='OS/2 ld.exe'
10594   shlibpath_var=LIBPATH
10595   ;;
10596
10597 osf3* | osf4* | osf5*)
10598   version_type=osf
10599   need_lib_prefix=no
10600   need_version=no
10601   soname_spec='${libname}${release}${shared_ext}$major'
10602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10603   shlibpath_var=LD_LIBRARY_PATH
10604   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10605   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10606   ;;
10607
10608 rdos*)
10609   dynamic_linker=no
10610   ;;
10611
10612 solaris*)
10613   version_type=linux
10614   need_lib_prefix=no
10615   need_version=no
10616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617   soname_spec='${libname}${release}${shared_ext}$major'
10618   shlibpath_var=LD_LIBRARY_PATH
10619   shlibpath_overrides_runpath=yes
10620   hardcode_into_libs=yes
10621   # ldd complains unless libraries are executable
10622   postinstall_cmds='chmod +x $lib'
10623   ;;
10624
10625 sunos4*)
10626   version_type=sunos
10627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10628   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10629   shlibpath_var=LD_LIBRARY_PATH
10630   shlibpath_overrides_runpath=yes
10631   if test "$with_gnu_ld" = yes; then
10632     need_lib_prefix=no
10633   fi
10634   need_version=yes
10635   ;;
10636
10637 sysv4 | sysv4.3*)
10638   version_type=linux
10639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640   soname_spec='${libname}${release}${shared_ext}$major'
10641   shlibpath_var=LD_LIBRARY_PATH
10642   case $host_vendor in
10643     sni)
10644       shlibpath_overrides_runpath=no
10645       need_lib_prefix=no
10646       runpath_var=LD_RUN_PATH
10647       ;;
10648     siemens)
10649       need_lib_prefix=no
10650       ;;
10651     motorola)
10652       need_lib_prefix=no
10653       need_version=no
10654       shlibpath_overrides_runpath=no
10655       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10656       ;;
10657   esac
10658   ;;
10659
10660 sysv4*MP*)
10661   if test -d /usr/nec ;then
10662     version_type=linux
10663     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10664     soname_spec='$libname${shared_ext}.$major'
10665     shlibpath_var=LD_LIBRARY_PATH
10666   fi
10667   ;;
10668
10669 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10670   version_type=freebsd-elf
10671   need_lib_prefix=no
10672   need_version=no
10673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10674   soname_spec='${libname}${release}${shared_ext}$major'
10675   shlibpath_var=LD_LIBRARY_PATH
10676   shlibpath_overrides_runpath=yes
10677   hardcode_into_libs=yes
10678   if test "$with_gnu_ld" = yes; then
10679     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10680   else
10681     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10682     case $host_os in
10683       sco3.2v5*)
10684         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10685         ;;
10686     esac
10687   fi
10688   sys_lib_dlsearch_path_spec='/usr/lib'
10689   ;;
10690
10691 tpf*)
10692   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10693   version_type=linux
10694   need_lib_prefix=no
10695   need_version=no
10696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697   shlibpath_var=LD_LIBRARY_PATH
10698   shlibpath_overrides_runpath=no
10699   hardcode_into_libs=yes
10700   ;;
10701
10702 uts4*)
10703   version_type=linux
10704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10705   soname_spec='${libname}${release}${shared_ext}$major'
10706   shlibpath_var=LD_LIBRARY_PATH
10707   ;;
10708
10709 *)
10710   dynamic_linker=no
10711   ;;
10712 esac
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10714 $as_echo "$dynamic_linker" >&6; }
10715 test "$dynamic_linker" = no && can_build_shared=no
10716
10717 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10718 if test "$GCC" = yes; then
10719   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10720 fi
10721
10722 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10723   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10724 fi
10725 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10726   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10727 fi
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
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10821 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10822 hardcode_action=
10823 if test -n "$hardcode_libdir_flag_spec" ||
10824    test -n "$runpath_var" ||
10825    test "X$hardcode_automatic" = "Xyes" ; then
10826
10827   # We can hardcode non-existent directories.
10828   if test "$hardcode_direct" != no &&
10829      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10830      # have to relink, otherwise we might link with an installed library
10831      # when we should be linking with a yet-to-be-installed one
10832      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10833      test "$hardcode_minus_L" != no; then
10834     # Linking always hardcodes the temporary library directory.
10835     hardcode_action=relink
10836   else
10837     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10838     hardcode_action=immediate
10839   fi
10840 else
10841   # We cannot hardcode anything, or else we can only hardcode existing
10842   # directories.
10843   hardcode_action=unsupported
10844 fi
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10846 $as_echo "$hardcode_action" >&6; }
10847
10848 if test "$hardcode_action" = relink ||
10849    test "$inherit_rpath" = yes; then
10850   # Fast installation is not supported
10851   enable_fast_install=no
10852 elif test "$shlibpath_overrides_runpath" = yes ||
10853      test "$enable_shared" = no; then
10854   # Fast installation is not necessary
10855   enable_fast_install=needless
10856 fi
10857
10858
10859
10860
10861
10862
10863   if test "x$enable_dlopen" != xyes; then
10864   enable_dlopen=unknown
10865   enable_dlopen_self=unknown
10866   enable_dlopen_self_static=unknown
10867 else
10868   lt_cv_dlopen=no
10869   lt_cv_dlopen_libs=
10870
10871   case $host_os in
10872   beos*)
10873     lt_cv_dlopen="load_add_on"
10874     lt_cv_dlopen_libs=
10875     lt_cv_dlopen_self=yes
10876     ;;
10877
10878   mingw* | pw32* | cegcc*)
10879     lt_cv_dlopen="LoadLibrary"
10880     lt_cv_dlopen_libs=
10881     ;;
10882
10883   cygwin*)
10884     lt_cv_dlopen="dlopen"
10885     lt_cv_dlopen_libs=
10886     ;;
10887
10888   darwin*)
10889   # if libdl is installed we need to link against it
10890     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10891 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10892 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10893   $as_echo_n "(cached) " >&6
10894 else
10895   ac_check_lib_save_LIBS=$LIBS
10896 LIBS="-ldl  $LIBS"
10897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h.  */
10899
10900 /* Override any GCC internal prototype to avoid an error.
10901    Use char because int might match the return type of a GCC
10902    builtin and then its argument prototype would still apply.  */
10903 #ifdef __cplusplus
10904 extern "C"
10905 #endif
10906 char dlopen ();
10907 int
10908 main ()
10909 {
10910 return dlopen ();
10911   ;
10912   return 0;
10913 }
10914 _ACEOF
10915 if ac_fn_c_try_link "$LINENO"; then :
10916   ac_cv_lib_dl_dlopen=yes
10917 else
10918   ac_cv_lib_dl_dlopen=no
10919 fi
10920 rm -f core conftest.err conftest.$ac_objext \
10921     conftest$ac_exeext conftest.$ac_ext
10922 LIBS=$ac_check_lib_save_LIBS
10923 fi
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10925 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10926 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10927   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10928 else
10929
10930     lt_cv_dlopen="dyld"
10931     lt_cv_dlopen_libs=
10932     lt_cv_dlopen_self=yes
10933
10934 fi
10935
10936     ;;
10937
10938   *)
10939     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10940 if test "x$ac_cv_func_shl_load" = x""yes; then :
10941   lt_cv_dlopen="shl_load"
10942 else
10943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10944 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10945 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10946   $as_echo_n "(cached) " >&6
10947 else
10948   ac_check_lib_save_LIBS=$LIBS
10949 LIBS="-ldld  $LIBS"
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h.  */
10952
10953 /* Override any GCC internal prototype to avoid an error.
10954    Use char because int might match the return type of a GCC
10955    builtin and then its argument prototype would still apply.  */
10956 #ifdef __cplusplus
10957 extern "C"
10958 #endif
10959 char shl_load ();
10960 int
10961 main ()
10962 {
10963 return shl_load ();
10964   ;
10965   return 0;
10966 }
10967 _ACEOF
10968 if ac_fn_c_try_link "$LINENO"; then :
10969   ac_cv_lib_dld_shl_load=yes
10970 else
10971   ac_cv_lib_dld_shl_load=no
10972 fi
10973 rm -f core conftest.err conftest.$ac_objext \
10974     conftest$ac_exeext conftest.$ac_ext
10975 LIBS=$ac_check_lib_save_LIBS
10976 fi
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10978 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10979 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10980   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10981 else
10982   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10983 if test "x$ac_cv_func_dlopen" = x""yes; then :
10984   lt_cv_dlopen="dlopen"
10985 else
10986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10987 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10988 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10989   $as_echo_n "(cached) " >&6
10990 else
10991   ac_check_lib_save_LIBS=$LIBS
10992 LIBS="-ldl  $LIBS"
10993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h.  */
10995
10996 /* Override any GCC internal prototype to avoid an error.
10997    Use char because int might match the return type of a GCC
10998    builtin and then its argument prototype would still apply.  */
10999 #ifdef __cplusplus
11000 extern "C"
11001 #endif
11002 char dlopen ();
11003 int
11004 main ()
11005 {
11006 return dlopen ();
11007   ;
11008   return 0;
11009 }
11010 _ACEOF
11011 if ac_fn_c_try_link "$LINENO"; then :
11012   ac_cv_lib_dl_dlopen=yes
11013 else
11014   ac_cv_lib_dl_dlopen=no
11015 fi
11016 rm -f core conftest.err conftest.$ac_objext \
11017     conftest$ac_exeext conftest.$ac_ext
11018 LIBS=$ac_check_lib_save_LIBS
11019 fi
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11021 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11022 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11023   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11024 else
11025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11026 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11027 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11028   $as_echo_n "(cached) " >&6
11029 else
11030   ac_check_lib_save_LIBS=$LIBS
11031 LIBS="-lsvld  $LIBS"
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h.  */
11034
11035 /* Override any GCC internal prototype to avoid an error.
11036    Use char because int might match the return type of a GCC
11037    builtin and then its argument prototype would still apply.  */
11038 #ifdef __cplusplus
11039 extern "C"
11040 #endif
11041 char dlopen ();
11042 int
11043 main ()
11044 {
11045 return dlopen ();
11046   ;
11047   return 0;
11048 }
11049 _ACEOF
11050 if ac_fn_c_try_link "$LINENO"; then :
11051   ac_cv_lib_svld_dlopen=yes
11052 else
11053   ac_cv_lib_svld_dlopen=no
11054 fi
11055 rm -f core conftest.err conftest.$ac_objext \
11056     conftest$ac_exeext conftest.$ac_ext
11057 LIBS=$ac_check_lib_save_LIBS
11058 fi
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11060 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11061 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11062   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11063 else
11064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11065 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11066 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11067   $as_echo_n "(cached) " >&6
11068 else
11069   ac_check_lib_save_LIBS=$LIBS
11070 LIBS="-ldld  $LIBS"
11071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072 /* end confdefs.h.  */
11073
11074 /* Override any GCC internal prototype to avoid an error.
11075    Use char because int might match the return type of a GCC
11076    builtin and then its argument prototype would still apply.  */
11077 #ifdef __cplusplus
11078 extern "C"
11079 #endif
11080 char dld_link ();
11081 int
11082 main ()
11083 {
11084 return dld_link ();
11085   ;
11086   return 0;
11087 }
11088 _ACEOF
11089 if ac_fn_c_try_link "$LINENO"; then :
11090   ac_cv_lib_dld_dld_link=yes
11091 else
11092   ac_cv_lib_dld_dld_link=no
11093 fi
11094 rm -f core conftest.err conftest.$ac_objext \
11095     conftest$ac_exeext conftest.$ac_ext
11096 LIBS=$ac_check_lib_save_LIBS
11097 fi
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11099 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11100 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11101   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11102 fi
11103
11104
11105 fi
11106
11107
11108 fi
11109
11110
11111 fi
11112
11113
11114 fi
11115
11116
11117 fi
11118
11119     ;;
11120   esac
11121
11122   if test "x$lt_cv_dlopen" != xno; then
11123     enable_dlopen=yes
11124   else
11125     enable_dlopen=no
11126   fi
11127
11128   case $lt_cv_dlopen in
11129   dlopen)
11130     save_CPPFLAGS="$CPPFLAGS"
11131     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11132
11133     save_LDFLAGS="$LDFLAGS"
11134     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11135
11136     save_LIBS="$LIBS"
11137     LIBS="$lt_cv_dlopen_libs $LIBS"
11138
11139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11140 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11141 if test "${lt_cv_dlopen_self+set}" = set; then :
11142   $as_echo_n "(cached) " >&6
11143 else
11144           if test "$cross_compiling" = yes; then :
11145   lt_cv_dlopen_self=cross
11146 else
11147   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11148   lt_status=$lt_dlunknown
11149   cat > conftest.$ac_ext <<_LT_EOF
11150 #line 11150 "configure"
11151 #include "confdefs.h"
11152
11153 #if HAVE_DLFCN_H
11154 #include <dlfcn.h>
11155 #endif
11156
11157 #include <stdio.h>
11158
11159 #ifdef RTLD_GLOBAL
11160 #  define LT_DLGLOBAL           RTLD_GLOBAL
11161 #else
11162 #  ifdef DL_GLOBAL
11163 #    define LT_DLGLOBAL         DL_GLOBAL
11164 #  else
11165 #    define LT_DLGLOBAL         0
11166 #  endif
11167 #endif
11168
11169 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11170    find out it does not work in some platform. */
11171 #ifndef LT_DLLAZY_OR_NOW
11172 #  ifdef RTLD_LAZY
11173 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11174 #  else
11175 #    ifdef DL_LAZY
11176 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11177 #    else
11178 #      ifdef RTLD_NOW
11179 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11180 #      else
11181 #        ifdef DL_NOW
11182 #          define LT_DLLAZY_OR_NOW      DL_NOW
11183 #        else
11184 #          define LT_DLLAZY_OR_NOW      0
11185 #        endif
11186 #      endif
11187 #    endif
11188 #  endif
11189 #endif
11190
11191 /* When -fvisbility=hidden is used, assume the code has been annotated
11192    correspondingly for the symbols needed.  */
11193 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11194 void fnord () __attribute__((visibility("default")));
11195 #endif
11196
11197 void fnord () { int i=42; }
11198 int main ()
11199 {
11200   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11201   int status = $lt_dlunknown;
11202
11203   if (self)
11204     {
11205       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11206       else
11207         {
11208           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11209           else puts (dlerror ());
11210         }
11211       /* dlclose (self); */
11212     }
11213   else
11214     puts (dlerror ());
11215
11216   return status;
11217 }
11218 _LT_EOF
11219   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11220   (eval $ac_link) 2>&5
11221   ac_status=$?
11222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11223   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11224     (./conftest; exit; ) >&5 2>/dev/null
11225     lt_status=$?
11226     case x$lt_status in
11227       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11228       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11229       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11230     esac
11231   else :
11232     # compilation failed
11233     lt_cv_dlopen_self=no
11234   fi
11235 fi
11236 rm -fr conftest*
11237
11238
11239 fi
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11241 $as_echo "$lt_cv_dlopen_self" >&6; }
11242
11243     if test "x$lt_cv_dlopen_self" = xyes; then
11244       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11245       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11246 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11247 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11248   $as_echo_n "(cached) " >&6
11249 else
11250           if test "$cross_compiling" = yes; then :
11251   lt_cv_dlopen_self_static=cross
11252 else
11253   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11254   lt_status=$lt_dlunknown
11255   cat > conftest.$ac_ext <<_LT_EOF
11256 #line 11256 "configure"
11257 #include "confdefs.h"
11258
11259 #if HAVE_DLFCN_H
11260 #include <dlfcn.h>
11261 #endif
11262
11263 #include <stdio.h>
11264
11265 #ifdef RTLD_GLOBAL
11266 #  define LT_DLGLOBAL           RTLD_GLOBAL
11267 #else
11268 #  ifdef DL_GLOBAL
11269 #    define LT_DLGLOBAL         DL_GLOBAL
11270 #  else
11271 #    define LT_DLGLOBAL         0
11272 #  endif
11273 #endif
11274
11275 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11276    find out it does not work in some platform. */
11277 #ifndef LT_DLLAZY_OR_NOW
11278 #  ifdef RTLD_LAZY
11279 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11280 #  else
11281 #    ifdef DL_LAZY
11282 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11283 #    else
11284 #      ifdef RTLD_NOW
11285 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11286 #      else
11287 #        ifdef DL_NOW
11288 #          define LT_DLLAZY_OR_NOW      DL_NOW
11289 #        else
11290 #          define LT_DLLAZY_OR_NOW      0
11291 #        endif
11292 #      endif
11293 #    endif
11294 #  endif
11295 #endif
11296
11297 /* When -fvisbility=hidden is used, assume the code has been annotated
11298    correspondingly for the symbols needed.  */
11299 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11300 void fnord () __attribute__((visibility("default")));
11301 #endif
11302
11303 void fnord () { int i=42; }
11304 int main ()
11305 {
11306   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11307   int status = $lt_dlunknown;
11308
11309   if (self)
11310     {
11311       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11312       else
11313         {
11314           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11315           else puts (dlerror ());
11316         }
11317       /* dlclose (self); */
11318     }
11319   else
11320     puts (dlerror ());
11321
11322   return status;
11323 }
11324 _LT_EOF
11325   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11326   (eval $ac_link) 2>&5
11327   ac_status=$?
11328   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11329   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11330     (./conftest; exit; ) >&5 2>/dev/null
11331     lt_status=$?
11332     case x$lt_status in
11333       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11334       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11335       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11336     esac
11337   else :
11338     # compilation failed
11339     lt_cv_dlopen_self_static=no
11340   fi
11341 fi
11342 rm -fr conftest*
11343
11344
11345 fi
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11347 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11348     fi
11349
11350     CPPFLAGS="$save_CPPFLAGS"
11351     LDFLAGS="$save_LDFLAGS"
11352     LIBS="$save_LIBS"
11353     ;;
11354   esac
11355
11356   case $lt_cv_dlopen_self in
11357   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11358   *) enable_dlopen_self=unknown ;;
11359   esac
11360
11361   case $lt_cv_dlopen_self_static in
11362   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11363   *) enable_dlopen_self_static=unknown ;;
11364   esac
11365 fi
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383 striplib=
11384 old_striplib=
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11386 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11387 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11388   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11389   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11391 $as_echo "yes" >&6; }
11392 else
11393 # FIXME - insert some real tests, host_os isn't really good enough
11394   case $host_os in
11395   darwin*)
11396     if test -n "$STRIP" ; then
11397       striplib="$STRIP -x"
11398       old_striplib="$STRIP -S"
11399       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11400 $as_echo "yes" >&6; }
11401     else
11402       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11403 $as_echo "no" >&6; }
11404     fi
11405     ;;
11406   *)
11407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11409     ;;
11410   esac
11411 fi
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424   # Report which library types will actually be built
11425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11426 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11428 $as_echo "$can_build_shared" >&6; }
11429
11430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11431 $as_echo_n "checking whether to build shared libraries... " >&6; }
11432   test "$can_build_shared" = "no" && enable_shared=no
11433
11434   # On AIX, shared libraries and static libraries use the same namespace, and
11435   # are all built from PIC.
11436   case $host_os in
11437   aix3*)
11438     test "$enable_shared" = yes && enable_static=no
11439     if test -n "$RANLIB"; then
11440       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11441       postinstall_cmds='$RANLIB $lib'
11442     fi
11443     ;;
11444
11445   aix[4-9]*)
11446     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11447       test "$enable_shared" = yes && enable_static=no
11448     fi
11449     ;;
11450   esac
11451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11452 $as_echo "$enable_shared" >&6; }
11453
11454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11455 $as_echo_n "checking whether to build static libraries... " >&6; }
11456   # Make sure either enable_shared or enable_static is yes.
11457   test "$enable_shared" = yes || enable_static=yes
11458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11459 $as_echo "$enable_static" >&6; }
11460
11461
11462
11463
11464 fi
11465 ac_ext=c
11466 ac_cpp='$CPP $CPPFLAGS'
11467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11470
11471 CC="$lt_save_CC"
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485         ac_config_commands="$ac_config_commands libtool"
11486
11487
11488
11489
11490 # Only expand once:
11491
11492
11493
11494 # Check whether --enable-targets was given.
11495 if test "${enable_targets+set}" = set; then :
11496   enableval=$enable_targets; case "${enableval}" in
11497   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11498             ;;
11499   no)       enable_targets= ;;
11500   *)        enable_targets=$enableval ;;
11501 esac
11502 fi
11503
11504
11505 # Set the 'development' global.
11506 . $srcdir/../bfd/development.sh
11507
11508 # Default set of GCC warnings to enable.
11509 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11510
11511 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513 /* end confdefs.h.  */
11514 __GNUC__
11515 _ACEOF
11516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11517   $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11518
11519 else
11520   GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11521 fi
11522 rm -f conftest*
11523
11524
11525 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h.  */
11528 __GNUC__
11529 _ACEOF
11530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11531   $EGREP "^[0-4]$" >/dev/null 2>&1; then :
11532
11533 else
11534   GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11535 fi
11536 rm -f conftest*
11537
11538
11539 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11540 WARN_WRITE_STRINGS=""
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h.  */
11543 __GNUC__
11544 _ACEOF
11545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11546   $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11547
11548 else
11549   WARN_WRITE_STRINGS="-Wwrite-strings"
11550 fi
11551 rm -f conftest*
11552
11553
11554 # Check whether --enable-werror was given.
11555 if test "${enable_werror+set}" = set; then :
11556   enableval=$enable_werror; case "${enableval}" in
11557      yes | y) ERROR_ON_WARNING="yes" ;;
11558      no | n)  ERROR_ON_WARNING="no" ;;
11559      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11560    esac
11561 fi
11562
11563
11564 # Disable -Wformat by default when using gcc on mingw
11565 case "${host}" in
11566   *-*-mingw32*)
11567     if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11568       GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11569     fi
11570     ;;
11571   *) ;;
11572 esac
11573
11574 # Enable -Werror by default when using gcc.  Turn it off for releases.
11575 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
11576     ERROR_ON_WARNING=yes
11577 fi
11578
11579 NO_WERROR=
11580 if test "${ERROR_ON_WARNING}" = yes ; then
11581     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11582     NO_WERROR="-Wno-error"
11583 fi
11584
11585 if test "${GCC}" = yes ; then
11586   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11587 fi
11588
11589 # Check whether --enable-build-warnings was given.
11590 if test "${enable_build_warnings+set}" = set; then :
11591   enableval=$enable_build_warnings; case "${enableval}" in
11592   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11593   no)   if test "${GCC}" = yes ; then
11594           WARN_CFLAGS="-w"
11595         fi;;
11596   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
11597         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11598   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
11599         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11600   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11601 esac
11602 fi
11603
11604
11605 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11606   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11607 fi
11608
11609
11610
11611
11612
11613 ac_ext=c
11614 ac_cpp='$CPP $CPPFLAGS'
11615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11618
11619 NO_WMISSING_FIELD_INITIALIZERS=
11620 save_CFLAGS="$CFLAGS"
11621 for real_option in -Wno-missing-field-initializers; do
11622   # Do the check with the no- prefix removed since gcc silently
11623   # accepts any -Wno-* option on purpose
11624   case $real_option in
11625     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
11626     *) option=$real_option ;;
11627   esac
11628   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
11629
11630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
11631 $as_echo_n "checking whether $CC supports $option... " >&6; }
11632 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
11633   $as_echo_n "(cached) " >&6
11634 else
11635   CFLAGS="$option"
11636     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h.  */
11638
11639 int
11640 main ()
11641 {
11642
11643   ;
11644   return 0;
11645 }
11646 _ACEOF
11647 if ac_fn_c_try_compile "$LINENO"; then :
11648   eval "$as_acx_Woption=yes"
11649 else
11650   eval "$as_acx_Woption=no"
11651 fi
11652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11653
11654 fi
11655 eval ac_res=\$$as_acx_Woption
11656                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11657 $as_echo "$ac_res" >&6; }
11658   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
11659   NO_WMISSING_FIELD_INITIALIZERS="$NO_WMISSING_FIELD_INITIALIZERS${NO_WMISSING_FIELD_INITIALIZERS:+ }$real_option"
11660 fi
11661   done
11662 CFLAGS="$save_CFLAGS"
11663 ac_ext=c
11664 ac_cpp='$CPP $CPPFLAGS'
11665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11668
11669
11670
11671 ac_config_headers="$ac_config_headers config.h:config.in"
11672
11673
11674 # PR 14072
11675
11676
11677 if test -z "$target" ; then
11678     as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
11679 fi
11680
11681
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11683 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11684     # Check whether --enable-maintainer-mode was given.
11685 if test "${enable_maintainer_mode+set}" = set; then :
11686   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11687 else
11688   USE_MAINTAINER_MODE=no
11689 fi
11690
11691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11692 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11693    if test $USE_MAINTAINER_MODE = yes; then
11694   MAINTAINER_MODE_TRUE=
11695   MAINTAINER_MODE_FALSE='#'
11696 else
11697   MAINTAINER_MODE_TRUE='#'
11698   MAINTAINER_MODE_FALSE=
11699 fi
11700
11701   MAINT=$MAINTAINER_MODE_TRUE
11702
11703
11704  case ${build_alias} in
11705   "") build_noncanonical=${build} ;;
11706   *) build_noncanonical=${build_alias} ;;
11707 esac
11708
11709  case ${host_alias} in
11710   "") host_noncanonical=${build_noncanonical} ;;
11711   *) host_noncanonical=${host_alias} ;;
11712 esac
11713
11714  case ${target_alias} in
11715   "") target_noncanonical=${host_noncanonical} ;;
11716   *) target_noncanonical=${target_alias} ;;
11717 esac
11718
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
11720 $as_echo_n "checking whether to install libbfd... " >&6; }
11721   # Check whether --enable-install-libbfd was given.
11722 if test "${enable_install_libbfd+set}" = set; then :
11723   enableval=$enable_install_libbfd; install_libbfd_p=$enableval
11724 else
11725   if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11726         install_libbfd_p=yes
11727       else
11728         install_libbfd_p=no
11729       fi
11730 fi
11731
11732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
11733 $as_echo "$install_libbfd_p" >&6; }
11734    if test $install_libbfd_p = yes; then
11735   INSTALL_LIBBFD_TRUE=
11736   INSTALL_LIBBFD_FALSE='#'
11737 else
11738   INSTALL_LIBBFD_TRUE='#'
11739   INSTALL_LIBBFD_FALSE=
11740 fi
11741
11742   # Need _noncanonical variables for this.
11743
11744
11745
11746
11747   # libbfd.a is a host library containing target dependent code
11748   bfdlibdir='$(libdir)'
11749   bfdincludedir='$(includedir)'
11750   if test "${host}" != "${target}"; then
11751     bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11752     bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
11753   fi
11754
11755
11756
11757
11758
11759
11760
11761
11762 # host-specific stuff:
11763
11764 ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN it uk"
11765 # If we haven't got the data from the intl directory,
11766 # assume NLS is disabled.
11767 USE_NLS=no
11768 LIBINTL=
11769 LIBINTL_DEP=
11770 INCINTL=
11771 XGETTEXT=
11772 GMSGFMT=
11773 POSUB=
11774
11775 if test -f  ../intl/config.intl; then
11776   .  ../intl/config.intl
11777 fi
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11779 $as_echo_n "checking whether NLS is requested... " >&6; }
11780 if test x"$USE_NLS" != xyes; then
11781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11782 $as_echo "no" >&6; }
11783 else
11784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11785 $as_echo "yes" >&6; }
11786
11787 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11788
11789
11790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11791 $as_echo_n "checking for catalogs to be installed... " >&6; }
11792   # Look for .po and .gmo files in the source directory.
11793   CATALOGS=
11794   XLINGUAS=
11795   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11796     # If there aren't any .gmo files the shell will give us the
11797     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11798     # weeded out.
11799     case "$cat" in *\**)
11800       continue;;
11801     esac
11802     # The quadruple backslash is collapsed to a double backslash
11803     # by the backticks, then collapsed again by the double quotes,
11804     # leaving us with one backslash in the sed expression (right
11805     # before the dot that mustn't act as a wildcard).
11806     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11807     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11808     # The user is allowed to set LINGUAS to a list of languages to
11809     # install catalogs for.  If it's empty that means "all of them."
11810     if test "x$LINGUAS" = x; then
11811       CATALOGS="$CATALOGS $cat"
11812       XLINGUAS="$XLINGUAS $lang"
11813     else
11814       case "$LINGUAS" in *$lang*)
11815         CATALOGS="$CATALOGS $cat"
11816         XLINGUAS="$XLINGUAS $lang"
11817         ;;
11818       esac
11819     fi
11820   done
11821   LINGUAS="$XLINGUAS"
11822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11823 $as_echo "$LINGUAS" >&6; }
11824
11825
11826     DATADIRNAME=share
11827
11828   INSTOBJEXT=.mo
11829
11830   GENCAT=gencat
11831
11832   CATOBJEXT=.gmo
11833
11834 fi
11835
11836         MKINSTALLDIRS=
11837   if test -n "$ac_aux_dir"; then
11838     case "$ac_aux_dir" in
11839       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11840       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11841     esac
11842   fi
11843   if test -z "$MKINSTALLDIRS"; then
11844     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11845   fi
11846
11847
11848
11849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11850 $as_echo_n "checking whether NLS is requested... " >&6; }
11851     # Check whether --enable-nls was given.
11852 if test "${enable_nls+set}" = set; then :
11853   enableval=$enable_nls; USE_NLS=$enableval
11854 else
11855   USE_NLS=yes
11856 fi
11857
11858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11859 $as_echo "$USE_NLS" >&6; }
11860
11861
11862
11863
11864
11865
11866 # Prepare PATH_SEPARATOR.
11867 # The user is always right.
11868 if test "${PATH_SEPARATOR+set}" != set; then
11869   echo "#! /bin/sh" >conf$$.sh
11870   echo  "exit 0"   >>conf$$.sh
11871   chmod +x conf$$.sh
11872   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11873     PATH_SEPARATOR=';'
11874   else
11875     PATH_SEPARATOR=:
11876   fi
11877   rm -f conf$$.sh
11878 fi
11879
11880 # Find out how to test for executable files. Don't use a zero-byte file,
11881 # as systems may use methods other than mode bits to determine executability.
11882 cat >conf$$.file <<_ASEOF
11883 #! /bin/sh
11884 exit 0
11885 _ASEOF
11886 chmod +x conf$$.file
11887 if test -x conf$$.file >/dev/null 2>&1; then
11888   ac_executable_p="test -x"
11889 else
11890   ac_executable_p="test -f"
11891 fi
11892 rm -f conf$$.file
11893
11894 # Extract the first word of "msgfmt", so it can be a program name with args.
11895 set dummy msgfmt; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897 $as_echo_n "checking for $ac_word... " >&6; }
11898 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11899   $as_echo_n "(cached) " >&6
11900 else
11901   case "$MSGFMT" in
11902   [\\/]* | ?:[\\/]*)
11903     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11904     ;;
11905   *)
11906     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11907     for ac_dir in $PATH; do
11908       IFS="$ac_save_IFS"
11909       test -z "$ac_dir" && ac_dir=.
11910       for ac_exec_ext in '' $ac_executable_extensions; do
11911         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11912           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11913      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11914             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11915             break 2
11916           fi
11917         fi
11918       done
11919     done
11920     IFS="$ac_save_IFS"
11921   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11922     ;;
11923 esac
11924 fi
11925 MSGFMT="$ac_cv_path_MSGFMT"
11926 if test "$MSGFMT" != ":"; then
11927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11928 $as_echo "$MSGFMT" >&6; }
11929 else
11930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931 $as_echo "no" >&6; }
11932 fi
11933
11934   # Extract the first word of "gmsgfmt", so it can be a program name with args.
11935 set dummy gmsgfmt; ac_word=$2
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11937 $as_echo_n "checking for $ac_word... " >&6; }
11938 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11939   $as_echo_n "(cached) " >&6
11940 else
11941   case $GMSGFMT in
11942   [\\/]* | ?:[\\/]*)
11943   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11944   ;;
11945   *)
11946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947 for as_dir in $PATH
11948 do
11949   IFS=$as_save_IFS
11950   test -z "$as_dir" && as_dir=.
11951     for ac_exec_ext in '' $ac_executable_extensions; do
11952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11953     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11955     break 2
11956   fi
11957 done
11958   done
11959 IFS=$as_save_IFS
11960
11961   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11962   ;;
11963 esac
11964 fi
11965 GMSGFMT=$ac_cv_path_GMSGFMT
11966 if test -n "$GMSGFMT"; then
11967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11968 $as_echo "$GMSGFMT" >&6; }
11969 else
11970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971 $as_echo "no" >&6; }
11972 fi
11973
11974
11975
11976
11977 # Prepare PATH_SEPARATOR.
11978 # The user is always right.
11979 if test "${PATH_SEPARATOR+set}" != set; then
11980   echo "#! /bin/sh" >conf$$.sh
11981   echo  "exit 0"   >>conf$$.sh
11982   chmod +x conf$$.sh
11983   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11984     PATH_SEPARATOR=';'
11985   else
11986     PATH_SEPARATOR=:
11987   fi
11988   rm -f conf$$.sh
11989 fi
11990
11991 # Find out how to test for executable files. Don't use a zero-byte file,
11992 # as systems may use methods other than mode bits to determine executability.
11993 cat >conf$$.file <<_ASEOF
11994 #! /bin/sh
11995 exit 0
11996 _ASEOF
11997 chmod +x conf$$.file
11998 if test -x conf$$.file >/dev/null 2>&1; then
11999   ac_executable_p="test -x"
12000 else
12001   ac_executable_p="test -f"
12002 fi
12003 rm -f conf$$.file
12004
12005 # Extract the first word of "xgettext", so it can be a program name with args.
12006 set dummy xgettext; ac_word=$2
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008 $as_echo_n "checking for $ac_word... " >&6; }
12009 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12010   $as_echo_n "(cached) " >&6
12011 else
12012   case "$XGETTEXT" in
12013   [\\/]* | ?:[\\/]*)
12014     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12015     ;;
12016   *)
12017     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12018     for ac_dir in $PATH; do
12019       IFS="$ac_save_IFS"
12020       test -z "$ac_dir" && ac_dir=.
12021       for ac_exec_ext in '' $ac_executable_extensions; do
12022         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12023           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12024      (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
12025             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12026             break 2
12027           fi
12028         fi
12029       done
12030     done
12031     IFS="$ac_save_IFS"
12032   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12033     ;;
12034 esac
12035 fi
12036 XGETTEXT="$ac_cv_path_XGETTEXT"
12037 if test "$XGETTEXT" != ":"; then
12038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12039 $as_echo "$XGETTEXT" >&6; }
12040 else
12041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042 $as_echo "no" >&6; }
12043 fi
12044
12045     rm -f messages.po
12046
12047
12048 # Prepare PATH_SEPARATOR.
12049 # The user is always right.
12050 if test "${PATH_SEPARATOR+set}" != set; then
12051   echo "#! /bin/sh" >conf$$.sh
12052   echo  "exit 0"   >>conf$$.sh
12053   chmod +x conf$$.sh
12054   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12055     PATH_SEPARATOR=';'
12056   else
12057     PATH_SEPARATOR=:
12058   fi
12059   rm -f conf$$.sh
12060 fi
12061
12062 # Find out how to test for executable files. Don't use a zero-byte file,
12063 # as systems may use methods other than mode bits to determine executability.
12064 cat >conf$$.file <<_ASEOF
12065 #! /bin/sh
12066 exit 0
12067 _ASEOF
12068 chmod +x conf$$.file
12069 if test -x conf$$.file >/dev/null 2>&1; then
12070   ac_executable_p="test -x"
12071 else
12072   ac_executable_p="test -f"
12073 fi
12074 rm -f conf$$.file
12075
12076 # Extract the first word of "msgmerge", so it can be a program name with args.
12077 set dummy msgmerge; ac_word=$2
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12079 $as_echo_n "checking for $ac_word... " >&6; }
12080 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12081   $as_echo_n "(cached) " >&6
12082 else
12083   case "$MSGMERGE" in
12084   [\\/]* | ?:[\\/]*)
12085     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12086     ;;
12087   *)
12088     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12089     for ac_dir in $PATH; do
12090       IFS="$ac_save_IFS"
12091       test -z "$ac_dir" && ac_dir=.
12092       for ac_exec_ext in '' $ac_executable_extensions; do
12093         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12094           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12095             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12096             break 2
12097           fi
12098         fi
12099       done
12100     done
12101     IFS="$ac_save_IFS"
12102   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12103     ;;
12104 esac
12105 fi
12106 MSGMERGE="$ac_cv_path_MSGMERGE"
12107 if test "$MSGMERGE" != ":"; then
12108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12109 $as_echo "$MSGMERGE" >&6; }
12110 else
12111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12112 $as_echo "no" >&6; }
12113 fi
12114
12115
12116       if test "$GMSGFMT" != ":"; then
12117             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12118        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12119       : ;
12120     else
12121       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12122       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12123 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12124       GMSGFMT=":"
12125     fi
12126   fi
12127
12128       if test "$XGETTEXT" != ":"; then
12129             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12130        (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
12131       : ;
12132     else
12133       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12134 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12135       XGETTEXT=":"
12136     fi
12137         rm -f messages.po
12138   fi
12139
12140   ac_config_commands="$ac_config_commands default-1"
12141
12142
12143
12144 . ${srcdir}/../bfd/configure.host
12145
12146 # Put a plausible default for CC_FOR_BUILD in Makefile.
12147 if test -z "$CC_FOR_BUILD"; then
12148   if test "x$cross_compiling" = "xno"; then
12149     CC_FOR_BUILD='$(CC)'
12150   else
12151     CC_FOR_BUILD=gcc
12152   fi
12153 fi
12154
12155 # Also set EXEEXT_FOR_BUILD.
12156 if test "x$cross_compiling" = "xno"; then
12157   EXEEXT_FOR_BUILD='$(EXEEXT)'
12158 else
12159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12160 $as_echo_n "checking for build system executable suffix... " >&6; }
12161 if test "${bfd_cv_build_exeext+set}" = set; then :
12162   $as_echo_n "(cached) " >&6
12163 else
12164   rm -f conftest*
12165      echo 'int main () { return 0; }' > conftest.c
12166      bfd_cv_build_exeext=
12167      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12168      for file in conftest.*; do
12169        case $file in
12170        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12171        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12172        esac
12173      done
12174      rm -f conftest*
12175      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12176 fi
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12178 $as_echo "$bfd_cv_build_exeext" >&6; }
12179   EXEEXT_FOR_BUILD=""
12180   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12181 fi
12182
12183
12184
12185
12186
12187 for ac_header in string.h strings.h stdlib.h limits.h
12188 do :
12189   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12190 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12191 eval as_val=\$$as_ac_Header
12192    if test "x$as_val" = x""yes; then :
12193   cat >>confdefs.h <<_ACEOF
12194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12195 _ACEOF
12196
12197 fi
12198
12199 done
12200
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
12202 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
12203 if test "${gcc_cv_header_string+set}" = set; then :
12204   $as_echo_n "(cached) " >&6
12205 else
12206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h.  */
12208 #include <string.h>
12209 #include <strings.h>
12210 int
12211 main ()
12212 {
12213
12214   ;
12215   return 0;
12216 }
12217 _ACEOF
12218 if ac_fn_c_try_compile "$LINENO"; then :
12219   gcc_cv_header_string=yes
12220 else
12221   gcc_cv_header_string=no
12222 fi
12223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12224 fi
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
12226 $as_echo "$gcc_cv_header_string" >&6; }
12227 if test $gcc_cv_header_string = yes; then
12228
12229 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
12230
12231 fi
12232
12233
12234 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
12235 if test "x$ac_cv_have_decl_basename" = x""yes; then :
12236   ac_have_decl=1
12237 else
12238   ac_have_decl=0
12239 fi
12240
12241 cat >>confdefs.h <<_ACEOF
12242 #define HAVE_DECL_BASENAME $ac_have_decl
12243 _ACEOF
12244 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
12245 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
12246   ac_have_decl=1
12247 else
12248   ac_have_decl=0
12249 fi
12250
12251 cat >>confdefs.h <<_ACEOF
12252 #define HAVE_DECL_STPCPY $ac_have_decl
12253 _ACEOF
12254
12255
12256 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
12257 # since sigsetjmp might only be defined as a macro.
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12259 $as_echo_n "checking for sigsetjmp... " >&6; }
12260 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12261   $as_echo_n "(cached) " >&6
12262 else
12263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h.  */
12265
12266 #include <setjmp.h>
12267
12268 int
12269 main ()
12270 {
12271 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12272   ;
12273   return 0;
12274 }
12275 _ACEOF
12276 if ac_fn_c_try_compile "$LINENO"; then :
12277   bfd_cv_func_sigsetjmp=yes
12278 else
12279   bfd_cv_func_sigsetjmp=no
12280 fi
12281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12282 fi
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12284 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12285 if test $bfd_cv_func_sigsetjmp = yes; then
12286
12287 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12288
12289 fi
12290
12291 cgen_maint=no
12292 cgendir='$(srcdir)/../cgen'
12293
12294 # Check whether --enable-cgen-maint was given.
12295 if test "${enable_cgen_maint+set}" = set; then :
12296   enableval=$enable_cgen_maint; case "${enableval}" in
12297   yes)  cgen_maint=yes ;;
12298   no)   cgen_maint=no ;;
12299   *)
12300         # argument is cgen install directory (not implemented yet).
12301         # Having a `share' directory might be more appropriate for the .scm,
12302         # .cpu, etc. files.
12303         cgen_maint=yes
12304         cgendir=${cgen_maint}/lib/cgen
12305         ;;
12306 esac
12307 fi
12308  if test x${cgen_maint} = xyes; then
12309   CGEN_MAINT_TRUE=
12310   CGEN_MAINT_FALSE='#'
12311 else
12312   CGEN_MAINT_TRUE='#'
12313   CGEN_MAINT_FALSE=
12314 fi
12315
12316
12317
12318 using_cgen=no
12319
12320 # Check if linker supports --as-needed and --no-as-needed options
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
12322 $as_echo_n "checking linker --as-needed support... " >&6; }
12323 if test "${bfd_cv_ld_as_needed+set}" = set; then :
12324   $as_echo_n "(cached) " >&6
12325 else
12326   bfd_cv_ld_as_needed=no
12327         if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
12328                 bfd_cv_ld_as_needed=yes
12329         fi
12330
12331 fi
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
12333 $as_echo "$bfd_cv_ld_as_needed" >&6; }
12334
12335 LIBM=
12336 case $host in
12337 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
12338   # These system don't have libm, or don't need it
12339   ;;
12340 *-ncr-sysv4.3*)
12341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
12342 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
12343 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
12344   $as_echo_n "(cached) " >&6
12345 else
12346   ac_check_lib_save_LIBS=$LIBS
12347 LIBS="-lmw  $LIBS"
12348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349 /* end confdefs.h.  */
12350
12351 /* Override any GCC internal prototype to avoid an error.
12352    Use char because int might match the return type of a GCC
12353    builtin and then its argument prototype would still apply.  */
12354 #ifdef __cplusplus
12355 extern "C"
12356 #endif
12357 char _mwvalidcheckl ();
12358 int
12359 main ()
12360 {
12361 return _mwvalidcheckl ();
12362   ;
12363   return 0;
12364 }
12365 _ACEOF
12366 if ac_fn_c_try_link "$LINENO"; then :
12367   ac_cv_lib_mw__mwvalidcheckl=yes
12368 else
12369   ac_cv_lib_mw__mwvalidcheckl=no
12370 fi
12371 rm -f core conftest.err conftest.$ac_objext \
12372     conftest$ac_exeext conftest.$ac_ext
12373 LIBS=$ac_check_lib_save_LIBS
12374 fi
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12376 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
12377 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
12378   LIBM="-lmw"
12379 fi
12380
12381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12382 $as_echo_n "checking for cos in -lm... " >&6; }
12383 if test "${ac_cv_lib_m_cos+set}" = set; then :
12384   $as_echo_n "(cached) " >&6
12385 else
12386   ac_check_lib_save_LIBS=$LIBS
12387 LIBS="-lm  $LIBS"
12388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h.  */
12390
12391 /* Override any GCC internal prototype to avoid an error.
12392    Use char because int might match the return type of a GCC
12393    builtin and then its argument prototype would still apply.  */
12394 #ifdef __cplusplus
12395 extern "C"
12396 #endif
12397 char cos ();
12398 int
12399 main ()
12400 {
12401 return cos ();
12402   ;
12403   return 0;
12404 }
12405 _ACEOF
12406 if ac_fn_c_try_link "$LINENO"; then :
12407   ac_cv_lib_m_cos=yes
12408 else
12409   ac_cv_lib_m_cos=no
12410 fi
12411 rm -f core conftest.err conftest.$ac_objext \
12412     conftest$ac_exeext conftest.$ac_ext
12413 LIBS=$ac_check_lib_save_LIBS
12414 fi
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12416 $as_echo "$ac_cv_lib_m_cos" >&6; }
12417 if test "x$ac_cv_lib_m_cos" = x""yes; then :
12418   LIBM="$LIBM -lm"
12419 fi
12420
12421   ;;
12422 *)
12423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12424 $as_echo_n "checking for cos in -lm... " >&6; }
12425 if test "${ac_cv_lib_m_cos+set}" = set; then :
12426   $as_echo_n "(cached) " >&6
12427 else
12428   ac_check_lib_save_LIBS=$LIBS
12429 LIBS="-lm  $LIBS"
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h.  */
12432
12433 /* Override any GCC internal prototype to avoid an error.
12434    Use char because int might match the return type of a GCC
12435    builtin and then its argument prototype would still apply.  */
12436 #ifdef __cplusplus
12437 extern "C"
12438 #endif
12439 char cos ();
12440 int
12441 main ()
12442 {
12443 return cos ();
12444   ;
12445   return 0;
12446 }
12447 _ACEOF
12448 if ac_fn_c_try_link "$LINENO"; then :
12449   ac_cv_lib_m_cos=yes
12450 else
12451   ac_cv_lib_m_cos=no
12452 fi
12453 rm -f core conftest.err conftest.$ac_objext \
12454     conftest$ac_exeext conftest.$ac_ext
12455 LIBS=$ac_check_lib_save_LIBS
12456 fi
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12458 $as_echo "$ac_cv_lib_m_cos" >&6; }
12459 if test "x$ac_cv_lib_m_cos" = x""yes; then :
12460   LIBM="-lm"
12461 fi
12462
12463   ;;
12464 esac
12465
12466
12467
12468 #Libs for generator progs
12469 if test "x$cross_compiling" = "xno"; then
12470   BUILD_LIBS=../libiberty/libiberty.a
12471   BUILD_LIB_DEPS=$BUILD_LIBS
12472 else
12473   # if cross-compiling, assume that the system provides -liberty
12474   # and that the version is compatible with new headers.
12475   BUILD_LIBS=-liberty
12476   BUILD_LIB_DEPS=
12477 fi
12478 BUILD_LIBS="$BUILD_LIBS $LIBINTL"
12479 BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP"
12480
12481
12482
12483
12484 # Horrible hacks to build DLLs on Windows and a shared library elsewhere.
12485 SHARED_LDFLAGS=
12486 SHARED_LIBADD=
12487 SHARED_DEPENDENCIES=
12488 if test "$enable_shared" = "yes"; then
12489 # When building a shared libopcodes, link against the pic version of libiberty
12490 # so that apps that use libopcodes won't need libiberty just to satisfy any
12491 # libopcodes references.
12492 # We can't do that if a pic libiberty is unavailable since including non-pic
12493 # code would insert text relocations into libopcodes.
12494 # Note that linking against libbfd as we do here, which is itself linked
12495 # against libiberty, may not satisfy all the libopcodes libiberty references
12496 # since libbfd may not pull in the entirety of libiberty.
12497   x=`sed -n -e 's/^[    ]*PICFLAG[      ]*=[    ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12498   if test -n "$x"; then
12499     SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
12500   fi
12501
12502   case "${host}" in
12503     *-*-cygwin*)
12504       SHARED_LDFLAGS="-no-undefined"
12505       SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
12506       ;;
12507    *-*-darwin*)
12508      SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib ${SHARED_LIBADD}"
12509      SHARED_DEPENDENCIES="../bfd/libbfd.la"
12510      ;;
12511     *)
12512       case "$host_vendor" in
12513         hp)
12514           SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl ${SHARED_LIBADD}"
12515           ;;
12516         *)
12517           SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so ${SHARED_LIBADD}"
12518           ;;
12519       esac
12520       SHARED_DEPENDENCIES="../bfd/libbfd.la"
12521       ;;
12522   esac
12523
12524   if test -n "$SHARED_LIBADD"; then
12525     if test -n "$LIBM"; then
12526       if test x"$bfd_cv_ld_as_needed" = xyes; then
12527         # Link against libm only when needed.  Put -lc, -lm inside -Wl
12528         # to stop libtool reordering these options.
12529         SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
12530       else
12531         SHARED_LIBADD="$SHARED_LIBADD $LIBM"
12532       fi
12533     fi
12534   fi
12535 fi
12536
12537
12538
12539
12540 # target-specific stuff:
12541
12542 # Canonicalize the secondary target names.
12543 if test -n "$enable_targets" ; then
12544     for targ in `echo $enable_targets | sed 's/,/ /g'`
12545     do
12546         result=`$ac_config_sub $targ 2>/dev/null`
12547         if test -n "$result" ; then
12548             canon_targets="$canon_targets $result"
12549         else
12550             # Allow targets that config.sub doesn't recognize, like "all".
12551             canon_targets="$canon_targets $targ"
12552         fi
12553     done
12554 fi
12555
12556 all_targets=false
12557 selarchs=
12558 for targ in $target $canon_targets
12559 do
12560     if test "x$targ" = "xall" ; then
12561         all_targets=true
12562     else
12563         . $srcdir/../bfd/config.bfd
12564         selarchs="$selarchs $targ_archs"
12565     fi
12566 done
12567
12568 # Utility var, documents generic cgen support files.
12569
12570 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
12571
12572 # We don't do any links based on the target system, just makefile config.
12573
12574 if test x${all_targets} = xfalse ; then
12575
12576     # Target architecture .o files.
12577     ta=
12578
12579     for arch in $selarchs
12580     do
12581         ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
12582         archdefs="$archdefs -DARCH_$ad"
12583         case "$arch" in
12584         bfd_aarch64_arch)       ta="$ta aarch64-asm.lo aarch64-dis.lo aarch64-opc.lo aarch64-asm-2.lo aarch64-dis-2.lo aarch64-opc-2.lo" ;;
12585         bfd_alpha_arch)         ta="$ta alpha-dis.lo alpha-opc.lo" ;;
12586         bfd_arc_arch)           ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
12587         bfd_arm_arch)           ta="$ta arm-dis.lo" ;;
12588         bfd_avr_arch)           ta="$ta avr-dis.lo" ;;
12589         bfd_bfin_arch)          ta="$ta bfin-dis.lo" ;;
12590         bfd_cr16_arch)          ta="$ta cr16-dis.lo cr16-opc.lo" ;;
12591         bfd_cris_arch)          ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
12592         bfd_crx_arch)           ta="$ta crx-dis.lo crx-opc.lo" ;;
12593         bfd_d10v_arch)          ta="$ta d10v-dis.lo d10v-opc.lo" ;;
12594         bfd_d30v_arch)          ta="$ta d30v-dis.lo d30v-opc.lo" ;;
12595         bfd_dlx_arch)           ta="$ta dlx-dis.lo" ;;
12596         bfd_fr30_arch)          ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
12597         bfd_frv_arch)           ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
12598         bfd_ft32_arch)          ta="$ta ft32-opc.lo ft32-dis.lo" ;;
12599         bfd_moxie_arch)         ta="$ta moxie-dis.lo moxie-opc.lo" ;;
12600         bfd_h8300_arch)         ta="$ta h8300-dis.lo" ;;
12601         bfd_h8500_arch)         ta="$ta h8500-dis.lo" ;;
12602         bfd_hppa_arch)          ta="$ta hppa-dis.lo" ;;
12603         bfd_i370_arch)          ta="$ta i370-dis.lo i370-opc.lo" ;;
12604         bfd_i386_arch|bfd_iamcu_arch|bfd_l1om_arch|bfd_k1om_arch)
12605                                 ta="$ta i386-dis.lo i386-opc.lo" ;;
12606         bfd_i860_arch)          ta="$ta i860-dis.lo" ;;
12607         bfd_i960_arch)          ta="$ta i960-dis.lo" ;;
12608         bfd_ia64_arch)          ta="$ta ia64-dis.lo ia64-opc.lo" ;;
12609         bfd_ip2k_arch)          ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
12610         bfd_epiphany_arch)      ta="$ta epiphany-asm.lo epiphany-desc.lo epiphany-dis.lo epiphany-ibld.lo epiphany-opc.lo" using_cgen=yes ;;
12611         bfd_iq2000_arch)        ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
12612         bfd_lm32_arch)          ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;;
12613         bfd_m32c_arch)          ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
12614         bfd_m32r_arch)          ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
12615         bfd_m68hc11_arch)       ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12616         bfd_m68hc12_arch)       ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12617         bfd_m9s12x_arch)        ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12618         bfd_m9s12xg_arch)       ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12619         bfd_m68k_arch)          ta="$ta m68k-dis.lo m68k-opc.lo" ;;
12620         bfd_m88k_arch)          ta="$ta m88k-dis.lo" ;;
12621         bfd_mcore_arch)         ta="$ta mcore-dis.lo" ;;
12622         bfd_mep_arch)           ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
12623         bfd_metag_arch)         ta="$ta metag-dis.lo" ;;
12624         bfd_microblaze_arch)    ta="$ta microblaze-dis.lo" ;;
12625         bfd_mips_arch)          ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo micromips-opc.lo" ;;
12626         bfd_mmix_arch)          ta="$ta mmix-dis.lo mmix-opc.lo" ;;
12627         bfd_mn10200_arch)       ta="$ta m10200-dis.lo m10200-opc.lo" ;;
12628         bfd_mn10300_arch)       ta="$ta m10300-dis.lo m10300-opc.lo" ;;
12629         bfd_mt_arch)            ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
12630         bfd_msp430_arch)        ta="$ta msp430-dis.lo msp430-decode.lo" ;;
12631         bfd_nds32_arch)         ta="$ta nds32-asm.lo nds32-dis.lo" ;;
12632         bfd_nios2_arch)         ta="$ta nios2-dis.lo nios2-opc.lo" ;;
12633         bfd_ns32k_arch)         ta="$ta ns32k-dis.lo" ;;
12634         bfd_or1k_arch)          ta="$ta or1k-asm.lo or1k-desc.lo or1k-dis.lo or1k-ibld.lo or1k-opc.lo" using_cgen=yes ;;
12635         bfd_pdp11_arch)         ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
12636         bfd_pj_arch)            ta="$ta pj-dis.lo pj-opc.lo" ;;
12637         bfd_powerpc_arch)       ta="$ta ppc-dis.lo ppc-opc.lo" ;;
12638         bfd_powerpc_64_arch)    ta="$ta ppc-dis.lo ppc-opc.lo" ;;
12639         bfd_pyramid_arch)       ;;
12640         bfd_romp_arch)          ;;
12641         bfd_rs6000_arch)        ta="$ta ppc-dis.lo ppc-opc.lo" ;;
12642         bfd_rl78_arch)          ta="$ta rl78-dis.lo rl78-decode.lo";;
12643         bfd_rx_arch)            ta="$ta rx-dis.lo rx-decode.lo";;
12644         bfd_s390_arch)          ta="$ta s390-dis.lo s390-opc.lo" ;;
12645         bfd_score_arch)         ta="$ta score-dis.lo score7-dis.lo" ;;
12646         bfd_sh_arch)
12647           # We can't decide what we want just from the CPU family.
12648           # We want SH5 support unless a specific version of sh is
12649           # specified, as in sh3-elf, sh3b-linux-gnu, etc.
12650           # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
12651           for t in $target $canon_targets; do
12652             case $t in
12653               all |  sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
12654               sh-*-linux* | shl-*-linux*)
12655                                 ta="$ta sh64-dis.lo sh64-opc.lo"
12656                                 archdefs="$archdefs -DINCLUDE_SHMEDIA"
12657                                 break;;
12658             esac;
12659           done
12660                                 ta="$ta sh-dis.lo cgen-bitset.lo" ;;
12661         bfd_sparc_arch)         ta="$ta sparc-dis.lo sparc-opc.lo" ;;
12662         bfd_spu_arch)           ta="$ta spu-dis.lo spu-opc.lo" ;;
12663         bfd_tahoe_arch)         ;;
12664         bfd_tic30_arch)         ta="$ta tic30-dis.lo" ;;
12665         bfd_tic4x_arch)         ta="$ta tic4x-dis.lo" ;;
12666         bfd_tic54x_arch)        ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
12667         bfd_tic6x_arch)         ta="$ta tic6x-dis.lo" ;;
12668         bfd_tic80_arch)         ta="$ta tic80-dis.lo tic80-opc.lo" ;;
12669         bfd_tilegx_arch)        ta="$ta tilegx-dis.lo tilegx-opc.lo" ;;
12670         bfd_tilepro_arch)       ta="$ta tilepro-dis.lo tilepro-opc.lo" ;;
12671         bfd_v850_arch)          ta="$ta v850-opc.lo v850-dis.lo" ;;
12672         bfd_v850e_arch)         ta="$ta v850-opc.lo v850-dis.lo" ;;
12673         bfd_v850ea_arch)        ta="$ta v850-opc.lo v850-dis.lo" ;;
12674         bfd_v850_rh850_arch)    ta="$ta v850-opc.lo v850-dis.lo" ;;
12675         bfd_vax_arch)           ta="$ta vax-dis.lo" ;;
12676         bfd_visium_arch)        ta="$ta visium-dis.lo visium-opc.lo" ;;
12677         bfd_w65_arch)           ta="$ta w65-dis.lo" ;;
12678         bfd_we32k_arch)         ;;
12679         bfd_xc16x_arch)         ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
12680         bfd_xgate_arch)         ta="$ta xgate-dis.lo xgate-opc.lo" ;;
12681         bfd_xstormy16_arch)     ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
12682         bfd_xtensa_arch)        ta="$ta xtensa-dis.lo" ;;
12683         bfd_z80_arch)           ta="$ta z80-dis.lo" ;;
12684         bfd_z8k_arch)           ta="$ta z8k-dis.lo" ;;
12685
12686         "")                     ;;
12687         *)              as_fn_error "*** unknown target architecture $arch" "$LINENO" 5 ;;
12688         esac
12689     done
12690
12691     if test $using_cgen = yes ; then
12692         ta="$ta $cgen_files"
12693     fi
12694
12695     # Weed out duplicate .o files.
12696     f=""
12697     for i in $ta ; do
12698         case " $f " in
12699         *" $i "*) ;;
12700         *) f="$f $i" ;;
12701         esac
12702     done
12703     ta="$f"
12704
12705     # And duplicate -D flags.
12706     f=""
12707     for i in $archdefs ; do
12708         case " $f " in
12709         *" $i "*) ;;
12710         *) f="$f $i" ;;
12711         esac
12712     done
12713     archdefs="$f"
12714
12715     BFD_MACHINES="$ta"
12716
12717 else    # all_targets is true
12718     archdefs=-DARCH_all
12719     BFD_MACHINES='$(ALL_MACHINES)'
12720 fi
12721
12722
12723
12724
12725 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
12726
12727 cat >confcache <<\_ACEOF
12728 # This file is a shell script that caches the results of configure
12729 # tests run on this system so they can be shared between configure
12730 # scripts and configure runs, see configure's option --config-cache.
12731 # It is not useful on other systems.  If it contains results you don't
12732 # want to keep, you may remove or edit it.
12733 #
12734 # config.status only pays attention to the cache file if you give it
12735 # the --recheck option to rerun configure.
12736 #
12737 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12738 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12739 # following values.
12740
12741 _ACEOF
12742
12743 # The following way of writing the cache mishandles newlines in values,
12744 # but we know of no workaround that is simple, portable, and efficient.
12745 # So, we kill variables containing newlines.
12746 # Ultrix sh set writes to stderr and can't be redirected directly,
12747 # and sets the high bit in the cache file unless we assign to the vars.
12748 (
12749   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12750     eval ac_val=\$$ac_var
12751     case $ac_val in #(
12752     *${as_nl}*)
12753       case $ac_var in #(
12754       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12755 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12756       esac
12757       case $ac_var in #(
12758       _ | IFS | as_nl) ;; #(
12759       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12760       *) { eval $ac_var=; unset $ac_var;} ;;
12761       esac ;;
12762     esac
12763   done
12764
12765   (set) 2>&1 |
12766     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12767     *${as_nl}ac_space=\ *)
12768       # `set' does not quote correctly, so add quotes: double-quote
12769       # substitution turns \\\\ into \\, and sed turns \\ into \.
12770       sed -n \
12771         "s/'/'\\\\''/g;
12772           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12773       ;; #(
12774     *)
12775       # `set' quotes correctly as required by POSIX, so do not add quotes.
12776       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12777       ;;
12778     esac |
12779     sort
12780 ) |
12781   sed '
12782      /^ac_cv_env_/b end
12783      t clear
12784      :clear
12785      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12786      t end
12787      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12788      :end' >>confcache
12789 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12790   if test -w "$cache_file"; then
12791     test "x$cache_file" != "x/dev/null" &&
12792       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12793 $as_echo "$as_me: updating cache $cache_file" >&6;}
12794     cat confcache >$cache_file
12795   else
12796     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12797 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12798   fi
12799 fi
12800 rm -f confcache
12801
12802 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12803 # Let make expand exec_prefix.
12804 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12805
12806 DEFS=-DHAVE_CONFIG_H
12807
12808 ac_libobjs=
12809 ac_ltlibobjs=
12810 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12811   # 1. Remove the extension, and $U if already installed.
12812   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12813   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12814   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12815   #    will be set to the directory where LIBOBJS objects are built.
12816   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12817   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12818 done
12819 LIBOBJS=$ac_libobjs
12820
12821 LTLIBOBJS=$ac_ltlibobjs
12822
12823
12824 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12825   as_fn_error "conditional \"AMDEP\" was never defined.
12826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12827 fi
12828 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12829   as_fn_error "conditional \"am__fastdepCC\" was never defined.
12830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12831 fi
12832  if test -n "$EXEEXT"; then
12833   am__EXEEXT_TRUE=
12834   am__EXEEXT_FALSE='#'
12835 else
12836   am__EXEEXT_TRUE='#'
12837   am__EXEEXT_FALSE=
12838 fi
12839
12840 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12841   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12843 fi
12844 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12845   as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
12846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12847 fi
12848 if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
12849   as_fn_error "conditional \"CGEN_MAINT\" was never defined.
12850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12851 fi
12852
12853 : ${CONFIG_STATUS=./config.status}
12854 ac_write_fail=0
12855 ac_clean_files_save=$ac_clean_files
12856 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12858 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12859 as_write_fail=0
12860 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12861 #! $SHELL
12862 # Generated by $as_me.
12863 # Run this file to recreate the current configuration.
12864 # Compiler output produced by configure, useful for debugging
12865 # configure, is in config.log if it exists.
12866
12867 debug=false
12868 ac_cs_recheck=false
12869 ac_cs_silent=false
12870
12871 SHELL=\${CONFIG_SHELL-$SHELL}
12872 export SHELL
12873 _ASEOF
12874 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12875 ## -------------------- ##
12876 ## M4sh Initialization. ##
12877 ## -------------------- ##
12878
12879 # Be more Bourne compatible
12880 DUALCASE=1; export DUALCASE # for MKS sh
12881 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12882   emulate sh
12883   NULLCMD=:
12884   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12885   # is contrary to our usage.  Disable this feature.
12886   alias -g '${1+"$@"}'='"$@"'
12887   setopt NO_GLOB_SUBST
12888 else
12889   case `(set -o) 2>/dev/null` in #(
12890   *posix*) :
12891     set -o posix ;; #(
12892   *) :
12893      ;;
12894 esac
12895 fi
12896
12897
12898 as_nl='
12899 '
12900 export as_nl
12901 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12902 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12903 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12904 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12905 # Prefer a ksh shell builtin over an external printf program on Solaris,
12906 # but without wasting forks for bash or zsh.
12907 if test -z "$BASH_VERSION$ZSH_VERSION" \
12908     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12909   as_echo='print -r --'
12910   as_echo_n='print -rn --'
12911 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12912   as_echo='printf %s\n'
12913   as_echo_n='printf %s'
12914 else
12915   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12916     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12917     as_echo_n='/usr/ucb/echo -n'
12918   else
12919     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12920     as_echo_n_body='eval
12921       arg=$1;
12922       case $arg in #(
12923       *"$as_nl"*)
12924         expr "X$arg" : "X\\(.*\\)$as_nl";
12925         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12926       esac;
12927       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12928     '
12929     export as_echo_n_body
12930     as_echo_n='sh -c $as_echo_n_body as_echo'
12931   fi
12932   export as_echo_body
12933   as_echo='sh -c $as_echo_body as_echo'
12934 fi
12935
12936 # The user is always right.
12937 if test "${PATH_SEPARATOR+set}" != set; then
12938   PATH_SEPARATOR=:
12939   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12940     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12941       PATH_SEPARATOR=';'
12942   }
12943 fi
12944
12945
12946 # IFS
12947 # We need space, tab and new line, in precisely that order.  Quoting is
12948 # there to prevent editors from complaining about space-tab.
12949 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12950 # splitting by setting IFS to empty value.)
12951 IFS=" ""        $as_nl"
12952
12953 # Find who we are.  Look in the path if we contain no directory separator.
12954 case $0 in #((
12955   *[\\/]* ) as_myself=$0 ;;
12956   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12957 for as_dir in $PATH
12958 do
12959   IFS=$as_save_IFS
12960   test -z "$as_dir" && as_dir=.
12961     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12962   done
12963 IFS=$as_save_IFS
12964
12965      ;;
12966 esac
12967 # We did not find ourselves, most probably we were run as `sh COMMAND'
12968 # in which case we are not to be found in the path.
12969 if test "x$as_myself" = x; then
12970   as_myself=$0
12971 fi
12972 if test ! -f "$as_myself"; then
12973   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12974   exit 1
12975 fi
12976
12977 # Unset variables that we do not need and which cause bugs (e.g. in
12978 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12979 # suppresses any "Segmentation fault" message there.  '((' could
12980 # trigger a bug in pdksh 5.2.14.
12981 for as_var in BASH_ENV ENV MAIL MAILPATH
12982 do eval test x\${$as_var+set} = xset \
12983   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12984 done
12985 PS1='$ '
12986 PS2='> '
12987 PS4='+ '
12988
12989 # NLS nuisances.
12990 LC_ALL=C
12991 export LC_ALL
12992 LANGUAGE=C
12993 export LANGUAGE
12994
12995 # CDPATH.
12996 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12997
12998
12999 # as_fn_error ERROR [LINENO LOG_FD]
13000 # ---------------------------------
13001 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13002 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13003 # script with status $?, using 1 if that was 0.
13004 as_fn_error ()
13005 {
13006   as_status=$?; test $as_status -eq 0 && as_status=1
13007   if test "$3"; then
13008     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13009     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13010   fi
13011   $as_echo "$as_me: error: $1" >&2
13012   as_fn_exit $as_status
13013 } # as_fn_error
13014
13015
13016 # as_fn_set_status STATUS
13017 # -----------------------
13018 # Set $? to STATUS, without forking.
13019 as_fn_set_status ()
13020 {
13021   return $1
13022 } # as_fn_set_status
13023
13024 # as_fn_exit STATUS
13025 # -----------------
13026 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13027 as_fn_exit ()
13028 {
13029   set +e
13030   as_fn_set_status $1
13031   exit $1
13032 } # as_fn_exit
13033
13034 # as_fn_unset VAR
13035 # ---------------
13036 # Portably unset VAR.
13037 as_fn_unset ()
13038 {
13039   { eval $1=; unset $1;}
13040 }
13041 as_unset=as_fn_unset
13042 # as_fn_append VAR VALUE
13043 # ----------------------
13044 # Append the text in VALUE to the end of the definition contained in VAR. Take
13045 # advantage of any shell optimizations that allow amortized linear growth over
13046 # repeated appends, instead of the typical quadratic growth present in naive
13047 # implementations.
13048 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13049   eval 'as_fn_append ()
13050   {
13051     eval $1+=\$2
13052   }'
13053 else
13054   as_fn_append ()
13055   {
13056     eval $1=\$$1\$2
13057   }
13058 fi # as_fn_append
13059
13060 # as_fn_arith ARG...
13061 # ------------------
13062 # Perform arithmetic evaluation on the ARGs, and store the result in the
13063 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13064 # must be portable across $(()) and expr.
13065 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13066   eval 'as_fn_arith ()
13067   {
13068     as_val=$(( $* ))
13069   }'
13070 else
13071   as_fn_arith ()
13072   {
13073     as_val=`expr "$@" || test $? -eq 1`
13074   }
13075 fi # as_fn_arith
13076
13077
13078 if expr a : '\(a\)' >/dev/null 2>&1 &&
13079    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13080   as_expr=expr
13081 else
13082   as_expr=false
13083 fi
13084
13085 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13086   as_basename=basename
13087 else
13088   as_basename=false
13089 fi
13090
13091 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13092   as_dirname=dirname
13093 else
13094   as_dirname=false
13095 fi
13096
13097 as_me=`$as_basename -- "$0" ||
13098 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13099          X"$0" : 'X\(//\)$' \| \
13100          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13101 $as_echo X/"$0" |
13102     sed '/^.*\/\([^/][^/]*\)\/*$/{
13103             s//\1/
13104             q
13105           }
13106           /^X\/\(\/\/\)$/{
13107             s//\1/
13108             q
13109           }
13110           /^X\/\(\/\).*/{
13111             s//\1/
13112             q
13113           }
13114           s/.*/./; q'`
13115
13116 # Avoid depending upon Character Ranges.
13117 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13118 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13119 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13120 as_cr_digits='0123456789'
13121 as_cr_alnum=$as_cr_Letters$as_cr_digits
13122
13123 ECHO_C= ECHO_N= ECHO_T=
13124 case `echo -n x` in #(((((
13125 -n*)
13126   case `echo 'xy\c'` in
13127   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13128   xy)  ECHO_C='\c';;
13129   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13130        ECHO_T=' ';;
13131   esac;;
13132 *)
13133   ECHO_N='-n';;
13134 esac
13135
13136 rm -f conf$$ conf$$.exe conf$$.file
13137 if test -d conf$$.dir; then
13138   rm -f conf$$.dir/conf$$.file
13139 else
13140   rm -f conf$$.dir
13141   mkdir conf$$.dir 2>/dev/null
13142 fi
13143 if (echo >conf$$.file) 2>/dev/null; then
13144   if ln -s conf$$.file conf$$ 2>/dev/null; then
13145     as_ln_s='ln -s'
13146     # ... but there are two gotchas:
13147     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13148     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13149     # In both cases, we have to default to `cp -p'.
13150     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13151       as_ln_s='cp -p'
13152   elif ln conf$$.file conf$$ 2>/dev/null; then
13153     as_ln_s=ln
13154   else
13155     as_ln_s='cp -p'
13156   fi
13157 else
13158   as_ln_s='cp -p'
13159 fi
13160 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13161 rmdir conf$$.dir 2>/dev/null
13162
13163
13164 # as_fn_mkdir_p
13165 # -------------
13166 # Create "$as_dir" as a directory, including parents if necessary.
13167 as_fn_mkdir_p ()
13168 {
13169
13170   case $as_dir in #(
13171   -*) as_dir=./$as_dir;;
13172   esac
13173   test -d "$as_dir" || eval $as_mkdir_p || {
13174     as_dirs=
13175     while :; do
13176       case $as_dir in #(
13177       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13178       *) as_qdir=$as_dir;;
13179       esac
13180       as_dirs="'$as_qdir' $as_dirs"
13181       as_dir=`$as_dirname -- "$as_dir" ||
13182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13183          X"$as_dir" : 'X\(//\)[^/]' \| \
13184          X"$as_dir" : 'X\(//\)$' \| \
13185          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13186 $as_echo X"$as_dir" |
13187     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13188             s//\1/
13189             q
13190           }
13191           /^X\(\/\/\)[^/].*/{
13192             s//\1/
13193             q
13194           }
13195           /^X\(\/\/\)$/{
13196             s//\1/
13197             q
13198           }
13199           /^X\(\/\).*/{
13200             s//\1/
13201             q
13202           }
13203           s/.*/./; q'`
13204       test -d "$as_dir" && break
13205     done
13206     test -z "$as_dirs" || eval "mkdir $as_dirs"
13207   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13208
13209
13210 } # as_fn_mkdir_p
13211 if mkdir -p . 2>/dev/null; then
13212   as_mkdir_p='mkdir -p "$as_dir"'
13213 else
13214   test -d ./-p && rmdir ./-p
13215   as_mkdir_p=false
13216 fi
13217
13218 if test -x / >/dev/null 2>&1; then
13219   as_test_x='test -x'
13220 else
13221   if ls -dL / >/dev/null 2>&1; then
13222     as_ls_L_option=L
13223   else
13224     as_ls_L_option=
13225   fi
13226   as_test_x='
13227     eval sh -c '\''
13228       if test -d "$1"; then
13229         test -d "$1/.";
13230       else
13231         case $1 in #(
13232         -*)set "./$1";;
13233         esac;
13234         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13235         ???[sx]*):;;*)false;;esac;fi
13236     '\'' sh
13237   '
13238 fi
13239 as_executable_p=$as_test_x
13240
13241 # Sed expression to map a string onto a valid CPP name.
13242 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13243
13244 # Sed expression to map a string onto a valid variable name.
13245 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13246
13247
13248 exec 6>&1
13249 ## ----------------------------------- ##
13250 ## Main body of $CONFIG_STATUS script. ##
13251 ## ----------------------------------- ##
13252 _ASEOF
13253 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13254
13255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13256 # Save the log message, to keep $0 and so on meaningful, and to
13257 # report actual input values of CONFIG_FILES etc. instead of their
13258 # values after options handling.
13259 ac_log="
13260 This file was extended by opcodes $as_me 2.26.51, which was
13261 generated by GNU Autoconf 2.64.  Invocation command line was
13262
13263   CONFIG_FILES    = $CONFIG_FILES
13264   CONFIG_HEADERS  = $CONFIG_HEADERS
13265   CONFIG_LINKS    = $CONFIG_LINKS
13266   CONFIG_COMMANDS = $CONFIG_COMMANDS
13267   $ $0 $@
13268
13269 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13270 "
13271
13272 _ACEOF
13273
13274 case $ac_config_files in *"
13275 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13276 esac
13277
13278 case $ac_config_headers in *"
13279 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13280 esac
13281
13282
13283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13284 # Files that config.status was made for.
13285 config_files="$ac_config_files"
13286 config_headers="$ac_config_headers"
13287 config_commands="$ac_config_commands"
13288
13289 _ACEOF
13290
13291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13292 ac_cs_usage="\
13293 \`$as_me' instantiates files and other configuration actions
13294 from templates according to the current configuration.  Unless the files
13295 and actions are specified as TAGs, all are instantiated by default.
13296
13297 Usage: $0 [OPTION]... [TAG]...
13298
13299   -h, --help       print this help, then exit
13300   -V, --version    print version number and configuration settings, then exit
13301   -q, --quiet, --silent
13302                    do not print progress messages
13303   -d, --debug      don't remove temporary files
13304       --recheck    update $as_me by reconfiguring in the same conditions
13305       --file=FILE[:TEMPLATE]
13306                    instantiate the configuration file FILE
13307       --header=FILE[:TEMPLATE]
13308                    instantiate the configuration header FILE
13309
13310 Configuration files:
13311 $config_files
13312
13313 Configuration headers:
13314 $config_headers
13315
13316 Configuration commands:
13317 $config_commands
13318
13319 Report bugs to the package provider."
13320
13321 _ACEOF
13322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13323 ac_cs_version="\\
13324 opcodes config.status 2.26.51
13325 configured by $0, generated by GNU Autoconf 2.64,
13326   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13327
13328 Copyright (C) 2009 Free Software Foundation, Inc.
13329 This config.status script is free software; the Free Software Foundation
13330 gives unlimited permission to copy, distribute and modify it."
13331
13332 ac_pwd='$ac_pwd'
13333 srcdir='$srcdir'
13334 INSTALL='$INSTALL'
13335 MKDIR_P='$MKDIR_P'
13336 AWK='$AWK'
13337 test -n "\$AWK" || AWK=awk
13338 _ACEOF
13339
13340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13341 # The default lists apply if the user does not specify any file.
13342 ac_need_defaults=:
13343 while test $# != 0
13344 do
13345   case $1 in
13346   --*=*)
13347     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13348     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13349     ac_shift=:
13350     ;;
13351   *)
13352     ac_option=$1
13353     ac_optarg=$2
13354     ac_shift=shift
13355     ;;
13356   esac
13357
13358   case $ac_option in
13359   # Handling of the options.
13360   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13361     ac_cs_recheck=: ;;
13362   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13363     $as_echo "$ac_cs_version"; exit ;;
13364   --debug | --debu | --deb | --de | --d | -d )
13365     debug=: ;;
13366   --file | --fil | --fi | --f )
13367     $ac_shift
13368     case $ac_optarg in
13369     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13370     esac
13371     as_fn_append CONFIG_FILES " '$ac_optarg'"
13372     ac_need_defaults=false;;
13373   --header | --heade | --head | --hea )
13374     $ac_shift
13375     case $ac_optarg in
13376     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13377     esac
13378     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13379     ac_need_defaults=false;;
13380   --he | --h)
13381     # Conflict between --help and --header
13382     as_fn_error "ambiguous option: \`$1'
13383 Try \`$0 --help' for more information.";;
13384   --help | --hel | -h )
13385     $as_echo "$ac_cs_usage"; exit ;;
13386   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13387   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13388     ac_cs_silent=: ;;
13389
13390   # This is an error.
13391   -*) as_fn_error "unrecognized option: \`$1'
13392 Try \`$0 --help' for more information." ;;
13393
13394   *) as_fn_append ac_config_targets " $1"
13395      ac_need_defaults=false ;;
13396
13397   esac
13398   shift
13399 done
13400
13401 ac_configure_extra_args=
13402
13403 if $ac_cs_silent; then
13404   exec 6>/dev/null
13405   ac_configure_extra_args="$ac_configure_extra_args --silent"
13406 fi
13407
13408 _ACEOF
13409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13410 if \$ac_cs_recheck; then
13411   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13412   shift
13413   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13414   CONFIG_SHELL='$SHELL'
13415   export CONFIG_SHELL
13416   exec "\$@"
13417 fi
13418
13419 _ACEOF
13420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13421 exec 5>>config.log
13422 {
13423   echo
13424   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13425 ## Running $as_me. ##
13426 _ASBOX
13427   $as_echo "$ac_log"
13428 } >&5
13429
13430 _ACEOF
13431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13432 #
13433 # INIT-COMMANDS
13434 #
13435 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13436
13437
13438 # The HP-UX ksh and POSIX shell print the target directory to stdout
13439 # if CDPATH is set.
13440 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13441
13442 sed_quote_subst='$sed_quote_subst'
13443 double_quote_subst='$double_quote_subst'
13444 delay_variable_subst='$delay_variable_subst'
13445 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13446 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13447 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13448 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13449 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13450 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13451 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13452 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13453 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13454 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13455 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13456 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13457 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13458 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13459 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13460 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13461 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13462 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13463 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13464 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13465 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13466 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13467 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13468 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13469 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13470 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13471 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13472 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13473 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13474 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13475 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13476 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13477 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13478 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13479 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13480 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13481 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13482 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13483 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13484 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13485 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13486 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13487 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13488 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13489 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13490 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13491 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13492 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13493 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13494 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13495 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13496 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13497 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13498 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13499 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13500 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13501 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13502 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13503 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13504 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13505 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13506 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13507 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13508 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13509 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13510 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13511 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13512 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13513 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13514 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13515 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13516 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13517 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13518 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13519 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13520 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13521 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13522 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13523 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13524 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13525 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13526 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13527 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13528 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13529 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13530 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13531 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13532 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13533 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13534 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13535 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13536 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13537 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13538 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13539 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13540 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13541 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13542 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13543 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13544 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13545 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13546 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13547 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13548 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13549 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13550 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13551 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13552 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13553 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13554 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13555 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13556 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13557 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13558 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13559 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13560 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13561 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13562 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13563 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13564 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13565
13566 LTCC='$LTCC'
13567 LTCFLAGS='$LTCFLAGS'
13568 compiler='$compiler_DEFAULT'
13569
13570 # A function that is used when there is no print builtin or printf.
13571 func_fallback_echo ()
13572 {
13573   eval 'cat <<_LTECHO_EOF
13574 \$1
13575 _LTECHO_EOF'
13576 }
13577
13578 # Quote evaled strings.
13579 for var in SHELL \
13580 ECHO \
13581 SED \
13582 GREP \
13583 EGREP \
13584 FGREP \
13585 LD \
13586 NM \
13587 LN_S \
13588 lt_SP2NL \
13589 lt_NL2SP \
13590 reload_flag \
13591 OBJDUMP \
13592 deplibs_check_method \
13593 file_magic_cmd \
13594 AR \
13595 AR_FLAGS \
13596 STRIP \
13597 RANLIB \
13598 CC \
13599 CFLAGS \
13600 compiler \
13601 lt_cv_sys_global_symbol_pipe \
13602 lt_cv_sys_global_symbol_to_cdecl \
13603 lt_cv_sys_global_symbol_to_c_name_address \
13604 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13605 lt_prog_compiler_no_builtin_flag \
13606 lt_prog_compiler_wl \
13607 lt_prog_compiler_pic \
13608 lt_prog_compiler_static \
13609 lt_cv_prog_compiler_c_o \
13610 need_locks \
13611 DSYMUTIL \
13612 NMEDIT \
13613 LIPO \
13614 OTOOL \
13615 OTOOL64 \
13616 shrext_cmds \
13617 export_dynamic_flag_spec \
13618 whole_archive_flag_spec \
13619 compiler_needs_object \
13620 with_gnu_ld \
13621 allow_undefined_flag \
13622 no_undefined_flag \
13623 hardcode_libdir_flag_spec \
13624 hardcode_libdir_flag_spec_ld \
13625 hardcode_libdir_separator \
13626 fix_srcfile_path \
13627 exclude_expsyms \
13628 include_expsyms \
13629 file_list_spec \
13630 variables_saved_for_relink \
13631 libname_spec \
13632 library_names_spec \
13633 soname_spec \
13634 install_override_mode \
13635 finish_eval \
13636 old_striplib \
13637 striplib; do
13638     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13639     *[\\\\\\\`\\"\\\$]*)
13640       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13641       ;;
13642     *)
13643       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13644       ;;
13645     esac
13646 done
13647
13648 # Double-quote double-evaled strings.
13649 for var in reload_cmds \
13650 old_postinstall_cmds \
13651 old_postuninstall_cmds \
13652 old_archive_cmds \
13653 extract_expsyms_cmds \
13654 old_archive_from_new_cmds \
13655 old_archive_from_expsyms_cmds \
13656 archive_cmds \
13657 archive_expsym_cmds \
13658 module_cmds \
13659 module_expsym_cmds \
13660 export_symbols_cmds \
13661 prelink_cmds \
13662 postinstall_cmds \
13663 postuninstall_cmds \
13664 finish_cmds \
13665 sys_lib_search_path_spec \
13666 sys_lib_dlsearch_path_spec; do
13667     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13668     *[\\\\\\\`\\"\\\$]*)
13669       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13670       ;;
13671     *)
13672       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13673       ;;
13674     esac
13675 done
13676
13677 ac_aux_dir='$ac_aux_dir'
13678 xsi_shell='$xsi_shell'
13679 lt_shell_append='$lt_shell_append'
13680
13681 # See if we are running on zsh, and set the options which allow our
13682 # commands through without removal of \ escapes INIT.
13683 if test -n "\${ZSH_VERSION+set}" ; then
13684    setopt NO_GLOB_SUBST
13685 fi
13686
13687
13688     PACKAGE='$PACKAGE'
13689     VERSION='$VERSION'
13690     TIMESTAMP='$TIMESTAMP'
13691     RM='$RM'
13692     ofile='$ofile'
13693
13694
13695
13696 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13697     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13698     # from automake.
13699     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13700     # Capture the value of LINGUAS because we need it to compute CATALOGS.
13701     LINGUAS="${LINGUAS-%UNSET%}"
13702
13703
13704 _ACEOF
13705
13706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13707
13708 # Handling of arguments.
13709 for ac_config_target in $ac_config_targets
13710 do
13711   case $ac_config_target in
13712     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13713     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13714     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13715     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13716     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13717     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13718
13719   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13720   esac
13721 done
13722
13723
13724 # If the user did not use the arguments to specify the items to instantiate,
13725 # then the envvar interface is used.  Set only those that are not.
13726 # We use the long form for the default assignment because of an extremely
13727 # bizarre bug on SunOS 4.1.3.
13728 if $ac_need_defaults; then
13729   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13730   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13731   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13732 fi
13733
13734 # Have a temporary directory for convenience.  Make it in the build tree
13735 # simply because there is no reason against having it here, and in addition,
13736 # creating and moving files from /tmp can sometimes cause problems.
13737 # Hook for its removal unless debugging.
13738 # Note that there is a small window in which the directory will not be cleaned:
13739 # after its creation but before its name has been assigned to `$tmp'.
13740 $debug ||
13741 {
13742   tmp=
13743   trap 'exit_status=$?
13744   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13745 ' 0
13746   trap 'as_fn_exit 1' 1 2 13 15
13747 }
13748 # Create a (secure) tmp directory for tmp files.
13749
13750 {
13751   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13752   test -n "$tmp" && test -d "$tmp"
13753 }  ||
13754 {
13755   tmp=./conf$$-$RANDOM
13756   (umask 077 && mkdir "$tmp")
13757 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13758
13759 # Set up the scripts for CONFIG_FILES section.
13760 # No need to generate them if there are no CONFIG_FILES.
13761 # This happens for instance with `./config.status config.h'.
13762 if test -n "$CONFIG_FILES"; then
13763
13764
13765 ac_cr=`echo X | tr X '\015'`
13766 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13767 # But we know of no other shell where ac_cr would be empty at this
13768 # point, so we can use a bashism as a fallback.
13769 if test "x$ac_cr" = x; then
13770   eval ac_cr=\$\'\\r\'
13771 fi
13772 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13773 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13774   ac_cs_awk_cr='\r'
13775 else
13776   ac_cs_awk_cr=$ac_cr
13777 fi
13778
13779 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13780 _ACEOF
13781
13782
13783 {
13784   echo "cat >conf$$subs.awk <<_ACEOF" &&
13785   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13786   echo "_ACEOF"
13787 } >conf$$subs.sh ||
13788   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13789 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13790 ac_delim='%!_!# '
13791 for ac_last_try in false false false false false :; do
13792   . ./conf$$subs.sh ||
13793     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13794
13795   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13796   if test $ac_delim_n = $ac_delim_num; then
13797     break
13798   elif $ac_last_try; then
13799     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13800   else
13801     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13802   fi
13803 done
13804 rm -f conf$$subs.sh
13805
13806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13807 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13808 _ACEOF
13809 sed -n '
13810 h
13811 s/^/S["/; s/!.*/"]=/
13812 p
13813 g
13814 s/^[^!]*!//
13815 :repl
13816 t repl
13817 s/'"$ac_delim"'$//
13818 t delim
13819 :nl
13820 h
13821 s/\(.\{148\}\).*/\1/
13822 t more1
13823 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13824 p
13825 n
13826 b repl
13827 :more1
13828 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13829 p
13830 g
13831 s/.\{148\}//
13832 t nl
13833 :delim
13834 h
13835 s/\(.\{148\}\).*/\1/
13836 t more2
13837 s/["\\]/\\&/g; s/^/"/; s/$/"/
13838 p
13839 b
13840 :more2
13841 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13842 p
13843 g
13844 s/.\{148\}//
13845 t delim
13846 ' <conf$$subs.awk | sed '
13847 /^[^""]/{
13848   N
13849   s/\n//
13850 }
13851 ' >>$CONFIG_STATUS || ac_write_fail=1
13852 rm -f conf$$subs.awk
13853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13854 _ACAWK
13855 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13856   for (key in S) S_is_set[key] = 1
13857   FS = "\a"
13858
13859 }
13860 {
13861   line = $ 0
13862   nfields = split(line, field, "@")
13863   substed = 0
13864   len = length(field[1])
13865   for (i = 2; i < nfields; i++) {
13866     key = field[i]
13867     keylen = length(key)
13868     if (S_is_set[key]) {
13869       value = S[key]
13870       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13871       len += length(value) + length(field[++i])
13872       substed = 1
13873     } else
13874       len += 1 + keylen
13875   }
13876
13877   print line
13878 }
13879
13880 _ACAWK
13881 _ACEOF
13882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13883 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13884   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13885 else
13886   cat
13887 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13888   || as_fn_error "could not setup config files machinery" "$LINENO" 5
13889 _ACEOF
13890
13891 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13892 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13893 # trailing colons and then remove the whole line if VPATH becomes empty
13894 # (actually we leave an empty line to preserve line numbers).
13895 if test "x$srcdir" = x.; then
13896   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13897 s/:*\$(srcdir):*/:/
13898 s/:*\${srcdir}:*/:/
13899 s/:*@srcdir@:*/:/
13900 s/^\([^=]*=[     ]*\):*/\1/
13901 s/:*$//
13902 s/^[^=]*=[       ]*$//
13903 }'
13904 fi
13905
13906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13907 fi # test -n "$CONFIG_FILES"
13908
13909 # Set up the scripts for CONFIG_HEADERS section.
13910 # No need to generate them if there are no CONFIG_HEADERS.
13911 # This happens for instance with `./config.status Makefile'.
13912 if test -n "$CONFIG_HEADERS"; then
13913 cat >"$tmp/defines.awk" <<\_ACAWK ||
13914 BEGIN {
13915 _ACEOF
13916
13917 # Transform confdefs.h into an awk script `defines.awk', embedded as
13918 # here-document in config.status, that substitutes the proper values into
13919 # config.h.in to produce config.h.
13920
13921 # Create a delimiter string that does not exist in confdefs.h, to ease
13922 # handling of long lines.
13923 ac_delim='%!_!# '
13924 for ac_last_try in false false :; do
13925   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13926   if test -z "$ac_t"; then
13927     break
13928   elif $ac_last_try; then
13929     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13930   else
13931     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13932   fi
13933 done
13934
13935 # For the awk script, D is an array of macro values keyed by name,
13936 # likewise P contains macro parameters if any.  Preserve backslash
13937 # newline sequences.
13938
13939 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13940 sed -n '
13941 s/.\{148\}/&'"$ac_delim"'/g
13942 t rset
13943 :rset
13944 s/^[     ]*#[    ]*define[       ][      ]*/ /
13945 t def
13946 d
13947 :def
13948 s/\\$//
13949 t bsnl
13950 s/["\\]/\\&/g
13951 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13952 D["\1"]=" \3"/p
13953 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13954 d
13955 :bsnl
13956 s/["\\]/\\&/g
13957 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13958 D["\1"]=" \3\\\\\\n"\\/p
13959 t cont
13960 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13961 t cont
13962 d
13963 :cont
13964 n
13965 s/.\{148\}/&'"$ac_delim"'/g
13966 t clear
13967 :clear
13968 s/\\$//
13969 t bsnlc
13970 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13971 d
13972 :bsnlc
13973 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13974 b cont
13975 ' <confdefs.h | sed '
13976 s/'"$ac_delim"'/"\\\
13977 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13978
13979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13980   for (key in D) D_is_set[key] = 1
13981   FS = "\a"
13982 }
13983 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13984   line = \$ 0
13985   split(line, arg, " ")
13986   if (arg[1] == "#") {
13987     defundef = arg[2]
13988     mac1 = arg[3]
13989   } else {
13990     defundef = substr(arg[1], 2)
13991     mac1 = arg[2]
13992   }
13993   split(mac1, mac2, "(") #)
13994   macro = mac2[1]
13995   prefix = substr(line, 1, index(line, defundef) - 1)
13996   if (D_is_set[macro]) {
13997     # Preserve the white space surrounding the "#".
13998     print prefix "define", macro P[macro] D[macro]
13999     next
14000   } else {
14001     # Replace #undef with comments.  This is necessary, for example,
14002     # in the case of _POSIX_SOURCE, which is predefined and required
14003     # on some systems where configure will not decide to define it.
14004     if (defundef == "undef") {
14005       print "/*", prefix defundef, macro, "*/"
14006       next
14007     }
14008   }
14009 }
14010 { print }
14011 _ACAWK
14012 _ACEOF
14013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14014   as_fn_error "could not setup config headers machinery" "$LINENO" 5
14015 fi # test -n "$CONFIG_HEADERS"
14016
14017
14018 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14019 shift
14020 for ac_tag
14021 do
14022   case $ac_tag in
14023   :[FHLC]) ac_mode=$ac_tag; continue;;
14024   esac
14025   case $ac_mode$ac_tag in
14026   :[FHL]*:*);;
14027   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14028   :[FH]-) ac_tag=-:-;;
14029   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14030   esac
14031   ac_save_IFS=$IFS
14032   IFS=:
14033   set x $ac_tag
14034   IFS=$ac_save_IFS
14035   shift
14036   ac_file=$1
14037   shift
14038
14039   case $ac_mode in
14040   :L) ac_source=$1;;
14041   :[FH])
14042     ac_file_inputs=
14043     for ac_f
14044     do
14045       case $ac_f in
14046       -) ac_f="$tmp/stdin";;
14047       *) # Look for the file first in the build tree, then in the source tree
14048          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14049          # because $ac_f cannot contain `:'.
14050          test -f "$ac_f" ||
14051            case $ac_f in
14052            [\\/$]*) false;;
14053            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14054            esac ||
14055            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14056       esac
14057       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14058       as_fn_append ac_file_inputs " '$ac_f'"
14059     done
14060
14061     # Let's still pretend it is `configure' which instantiates (i.e., don't
14062     # use $as_me), people would be surprised to read:
14063     #    /* config.h.  Generated by config.status.  */
14064     configure_input='Generated from '`
14065           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14066         `' by configure.'
14067     if test x"$ac_file" != x-; then
14068       configure_input="$ac_file.  $configure_input"
14069       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14070 $as_echo "$as_me: creating $ac_file" >&6;}
14071     fi
14072     # Neutralize special characters interpreted by sed in replacement strings.
14073     case $configure_input in #(
14074     *\&* | *\|* | *\\* )
14075        ac_sed_conf_input=`$as_echo "$configure_input" |
14076        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14077     *) ac_sed_conf_input=$configure_input;;
14078     esac
14079
14080     case $ac_tag in
14081     *:-:* | *:-) cat >"$tmp/stdin" \
14082       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14083     esac
14084     ;;
14085   esac
14086
14087   ac_dir=`$as_dirname -- "$ac_file" ||
14088 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14089          X"$ac_file" : 'X\(//\)[^/]' \| \
14090          X"$ac_file" : 'X\(//\)$' \| \
14091          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14092 $as_echo X"$ac_file" |
14093     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14094             s//\1/
14095             q
14096           }
14097           /^X\(\/\/\)[^/].*/{
14098             s//\1/
14099             q
14100           }
14101           /^X\(\/\/\)$/{
14102             s//\1/
14103             q
14104           }
14105           /^X\(\/\).*/{
14106             s//\1/
14107             q
14108           }
14109           s/.*/./; q'`
14110   as_dir="$ac_dir"; as_fn_mkdir_p
14111   ac_builddir=.
14112
14113 case "$ac_dir" in
14114 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14115 *)
14116   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14117   # A ".." for each directory in $ac_dir_suffix.
14118   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14119   case $ac_top_builddir_sub in
14120   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14121   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14122   esac ;;
14123 esac
14124 ac_abs_top_builddir=$ac_pwd
14125 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14126 # for backward compatibility:
14127 ac_top_builddir=$ac_top_build_prefix
14128
14129 case $srcdir in
14130   .)  # We are building in place.
14131     ac_srcdir=.
14132     ac_top_srcdir=$ac_top_builddir_sub
14133     ac_abs_top_srcdir=$ac_pwd ;;
14134   [\\/]* | ?:[\\/]* )  # Absolute name.
14135     ac_srcdir=$srcdir$ac_dir_suffix;
14136     ac_top_srcdir=$srcdir
14137     ac_abs_top_srcdir=$srcdir ;;
14138   *) # Relative name.
14139     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14140     ac_top_srcdir=$ac_top_build_prefix$srcdir
14141     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14142 esac
14143 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14144
14145
14146   case $ac_mode in
14147   :F)
14148   #
14149   # CONFIG_FILE
14150   #
14151
14152   case $INSTALL in
14153   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14154   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14155   esac
14156   ac_MKDIR_P=$MKDIR_P
14157   case $MKDIR_P in
14158   [\\/$]* | ?:[\\/]* ) ;;
14159   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14160   esac
14161 _ACEOF
14162
14163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14164 # If the template does not know about datarootdir, expand it.
14165 # FIXME: This hack should be removed a few years after 2.60.
14166 ac_datarootdir_hack=; ac_datarootdir_seen=
14167 ac_sed_dataroot='
14168 /datarootdir/ {
14169   p
14170   q
14171 }
14172 /@datadir@/p
14173 /@docdir@/p
14174 /@infodir@/p
14175 /@localedir@/p
14176 /@mandir@/p'
14177 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14178 *datarootdir*) ac_datarootdir_seen=yes;;
14179 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14180   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14181 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14182 _ACEOF
14183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14184   ac_datarootdir_hack='
14185   s&@datadir@&$datadir&g
14186   s&@docdir@&$docdir&g
14187   s&@infodir@&$infodir&g
14188   s&@localedir@&$localedir&g
14189   s&@mandir@&$mandir&g
14190   s&\\\${datarootdir}&$datarootdir&g' ;;
14191 esac
14192 _ACEOF
14193
14194 # Neutralize VPATH when `$srcdir' = `.'.
14195 # Shell code in configure.ac might set extrasub.
14196 # FIXME: do we really want to maintain this feature?
14197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14198 ac_sed_extra="$ac_vpsub
14199 $extrasub
14200 _ACEOF
14201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14202 :t
14203 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14204 s|@configure_input@|$ac_sed_conf_input|;t t
14205 s&@top_builddir@&$ac_top_builddir_sub&;t t
14206 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14207 s&@srcdir@&$ac_srcdir&;t t
14208 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14209 s&@top_srcdir@&$ac_top_srcdir&;t t
14210 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14211 s&@builddir@&$ac_builddir&;t t
14212 s&@abs_builddir@&$ac_abs_builddir&;t t
14213 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14214 s&@INSTALL@&$ac_INSTALL&;t t
14215 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14216 $ac_datarootdir_hack
14217 "
14218 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14219   || as_fn_error "could not create $ac_file" "$LINENO" 5
14220
14221 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14222   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14223   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14224   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14225 which seems to be undefined.  Please make sure it is defined." >&5
14226 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14227 which seems to be undefined.  Please make sure it is defined." >&2;}
14228
14229   rm -f "$tmp/stdin"
14230   case $ac_file in
14231   -) cat "$tmp/out" && rm -f "$tmp/out";;
14232   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14233   esac \
14234   || as_fn_error "could not create $ac_file" "$LINENO" 5
14235  ;;
14236   :H)
14237   #
14238   # CONFIG_HEADER
14239   #
14240   if test x"$ac_file" != x-; then
14241     {
14242       $as_echo "/* $configure_input  */" \
14243       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14244     } >"$tmp/config.h" \
14245       || as_fn_error "could not create $ac_file" "$LINENO" 5
14246     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14247       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14248 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14249     else
14250       rm -f "$ac_file"
14251       mv "$tmp/config.h" "$ac_file" \
14252         || as_fn_error "could not create $ac_file" "$LINENO" 5
14253     fi
14254   else
14255     $as_echo "/* $configure_input  */" \
14256       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14257       || as_fn_error "could not create -" "$LINENO" 5
14258   fi
14259 # Compute "$ac_file"'s index in $config_headers.
14260 _am_arg="$ac_file"
14261 _am_stamp_count=1
14262 for _am_header in $config_headers :; do
14263   case $_am_header in
14264     $_am_arg | $_am_arg:* )
14265       break ;;
14266     * )
14267       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14268   esac
14269 done
14270 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14271 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14272          X"$_am_arg" : 'X\(//\)[^/]' \| \
14273          X"$_am_arg" : 'X\(//\)$' \| \
14274          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14275 $as_echo X"$_am_arg" |
14276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14277             s//\1/
14278             q
14279           }
14280           /^X\(\/\/\)[^/].*/{
14281             s//\1/
14282             q
14283           }
14284           /^X\(\/\/\)$/{
14285             s//\1/
14286             q
14287           }
14288           /^X\(\/\).*/{
14289             s//\1/
14290             q
14291           }
14292           s/.*/./; q'`/stamp-h$_am_stamp_count
14293  ;;
14294
14295   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14296 $as_echo "$as_me: executing $ac_file commands" >&6;}
14297  ;;
14298   esac
14299
14300
14301   case $ac_file$ac_mode in
14302     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14303   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14304   # are listed without --file.  Let's play safe and only enable the eval
14305   # if we detect the quoting.
14306   case $CONFIG_FILES in
14307   *\'*) eval set x "$CONFIG_FILES" ;;
14308   *)   set x $CONFIG_FILES ;;
14309   esac
14310   shift
14311   for mf
14312   do
14313     # Strip MF so we end up with the name of the file.
14314     mf=`echo "$mf" | sed -e 's/:.*$//'`
14315     # Check whether this is an Automake generated Makefile or not.
14316     # We used to match only the files named `Makefile.in', but
14317     # some people rename them; so instead we look at the file content.
14318     # Grep'ing the first line is not enough: some people post-process
14319     # each Makefile.in and add a new line on top of each file to say so.
14320     # Grep'ing the whole file is not good either: AIX grep has a line
14321     # limit of 2048, but all sed's we know have understand at least 4000.
14322     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14323       dirpart=`$as_dirname -- "$mf" ||
14324 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14325          X"$mf" : 'X\(//\)[^/]' \| \
14326          X"$mf" : 'X\(//\)$' \| \
14327          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14328 $as_echo X"$mf" |
14329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14330             s//\1/
14331             q
14332           }
14333           /^X\(\/\/\)[^/].*/{
14334             s//\1/
14335             q
14336           }
14337           /^X\(\/\/\)$/{
14338             s//\1/
14339             q
14340           }
14341           /^X\(\/\).*/{
14342             s//\1/
14343             q
14344           }
14345           s/.*/./; q'`
14346     else
14347       continue
14348     fi
14349     # Extract the definition of DEPDIR, am__include, and am__quote
14350     # from the Makefile without running `make'.
14351     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14352     test -z "$DEPDIR" && continue
14353     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14354     test -z "am__include" && continue
14355     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14356     # When using ansi2knr, U may be empty or an underscore; expand it
14357     U=`sed -n 's/^U = //p' < "$mf"`
14358     # Find all dependency output files, they are included files with
14359     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14360     # simplest approach to changing $(DEPDIR) to its actual value in the
14361     # expansion.
14362     for file in `sed -n "
14363       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14364          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14365       # Make sure the directory exists.
14366       test -f "$dirpart/$file" && continue
14367       fdir=`$as_dirname -- "$file" ||
14368 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14369          X"$file" : 'X\(//\)[^/]' \| \
14370          X"$file" : 'X\(//\)$' \| \
14371          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14372 $as_echo X"$file" |
14373     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14374             s//\1/
14375             q
14376           }
14377           /^X\(\/\/\)[^/].*/{
14378             s//\1/
14379             q
14380           }
14381           /^X\(\/\/\)$/{
14382             s//\1/
14383             q
14384           }
14385           /^X\(\/\).*/{
14386             s//\1/
14387             q
14388           }
14389           s/.*/./; q'`
14390       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14391       # echo "creating $dirpart/$file"
14392       echo '# dummy' > "$dirpart/$file"
14393     done
14394   done
14395 }
14396  ;;
14397     "libtool":C)
14398
14399     # See if we are running on zsh, and set the options which allow our
14400     # commands through without removal of \ escapes.
14401     if test -n "${ZSH_VERSION+set}" ; then
14402       setopt NO_GLOB_SUBST
14403     fi
14404
14405     cfgfile="${ofile}T"
14406     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14407     $RM "$cfgfile"
14408
14409     cat <<_LT_EOF >> "$cfgfile"
14410 #! $SHELL
14411
14412 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14413 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14414 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14415 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14416 #
14417 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14418 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14419 #   Written by Gordon Matzigkeit, 1996
14420 #
14421 #   This file is part of GNU Libtool.
14422 #
14423 # GNU Libtool is free software; you can redistribute it and/or
14424 # modify it under the terms of the GNU General Public License as
14425 # published by the Free Software Foundation; either version 2 of
14426 # the License, or (at your option) any later version.
14427 #
14428 # As a special exception to the GNU General Public License,
14429 # if you distribute this file as part of a program or library that
14430 # is built using GNU Libtool, you may include this file under the
14431 # same distribution terms that you use for the rest of that program.
14432 #
14433 # GNU Libtool is distributed in the hope that it will be useful,
14434 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14435 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14436 # GNU General Public License for more details.
14437 #
14438 # You should have received a copy of the GNU General Public License
14439 # along with GNU Libtool; see the file COPYING.  If not, a copy
14440 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14441 # obtained by writing to the Free Software Foundation, Inc.,
14442 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14443
14444
14445 # The names of the tagged configurations supported by this script.
14446 available_tags=""
14447
14448 # ### BEGIN LIBTOOL CONFIG
14449
14450 # Whether or not to build shared libraries.
14451 build_libtool_libs=$enable_shared
14452
14453 # Which release of libtool.m4 was used?
14454 macro_version=$macro_version
14455 macro_revision=$macro_revision
14456
14457 # Whether or not to build static libraries.
14458 build_old_libs=$enable_static
14459
14460 # What type of objects to build.
14461 pic_mode=$pic_mode
14462
14463 # Whether or not to optimize for fast installation.
14464 fast_install=$enable_fast_install
14465
14466 # Shell to use when invoking shell scripts.
14467 SHELL=$lt_SHELL
14468
14469 # An echo program that protects backslashes.
14470 ECHO=$lt_ECHO
14471
14472 # The host system.
14473 host_alias=$host_alias
14474 host=$host
14475 host_os=$host_os
14476
14477 # The build system.
14478 build_alias=$build_alias
14479 build=$build
14480 build_os=$build_os
14481
14482 # A sed program that does not truncate output.
14483 SED=$lt_SED
14484
14485 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14486 Xsed="\$SED -e 1s/^X//"
14487
14488 # A grep program that handles long lines.
14489 GREP=$lt_GREP
14490
14491 # An ERE matcher.
14492 EGREP=$lt_EGREP
14493
14494 # A literal string matcher.
14495 FGREP=$lt_FGREP
14496
14497 # A BSD- or MS-compatible name lister.
14498 NM=$lt_NM
14499
14500 # Whether we need soft or hard links.
14501 LN_S=$lt_LN_S
14502
14503 # What is the maximum length of a command?
14504 max_cmd_len=$max_cmd_len
14505
14506 # Object file suffix (normally "o").
14507 objext=$ac_objext
14508
14509 # Executable file suffix (normally "").
14510 exeext=$exeext
14511
14512 # whether the shell understands "unset".
14513 lt_unset=$lt_unset
14514
14515 # turn spaces into newlines.
14516 SP2NL=$lt_lt_SP2NL
14517
14518 # turn newlines into spaces.
14519 NL2SP=$lt_lt_NL2SP
14520
14521 # An object symbol dumper.
14522 OBJDUMP=$lt_OBJDUMP
14523
14524 # Method to check whether dependent libraries are shared objects.
14525 deplibs_check_method=$lt_deplibs_check_method
14526
14527 # Command to use when deplibs_check_method == "file_magic".
14528 file_magic_cmd=$lt_file_magic_cmd
14529
14530 # The archiver.
14531 AR=$lt_AR
14532 AR_FLAGS=$lt_AR_FLAGS
14533
14534 # A symbol stripping program.
14535 STRIP=$lt_STRIP
14536
14537 # Commands used to install an old-style archive.
14538 RANLIB=$lt_RANLIB
14539 old_postinstall_cmds=$lt_old_postinstall_cmds
14540 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14541
14542 # Whether to use a lock for old archive extraction.
14543 lock_old_archive_extraction=$lock_old_archive_extraction
14544
14545 # A C compiler.
14546 LTCC=$lt_CC
14547
14548 # LTCC compiler flags.
14549 LTCFLAGS=$lt_CFLAGS
14550
14551 # Take the output of nm and produce a listing of raw symbols and C names.
14552 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14553
14554 # Transform the output of nm in a proper C declaration.
14555 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14556
14557 # Transform the output of nm in a C name address pair.
14558 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14559
14560 # Transform the output of nm in a C name address pair when lib prefix is needed.
14561 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14562
14563 # The name of the directory that contains temporary libtool files.
14564 objdir=$objdir
14565
14566 # Used to examine libraries when file_magic_cmd begins with "file".
14567 MAGIC_CMD=$MAGIC_CMD
14568
14569 # Must we lock files when doing compilation?
14570 need_locks=$lt_need_locks
14571
14572 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14573 DSYMUTIL=$lt_DSYMUTIL
14574
14575 # Tool to change global to local symbols on Mac OS X.
14576 NMEDIT=$lt_NMEDIT
14577
14578 # Tool to manipulate fat objects and archives on Mac OS X.
14579 LIPO=$lt_LIPO
14580
14581 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14582 OTOOL=$lt_OTOOL
14583
14584 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14585 OTOOL64=$lt_OTOOL64
14586
14587 # Old archive suffix (normally "a").
14588 libext=$libext
14589
14590 # Shared library suffix (normally ".so").
14591 shrext_cmds=$lt_shrext_cmds
14592
14593 # The commands to extract the exported symbol list from a shared archive.
14594 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14595
14596 # Variables whose values should be saved in libtool wrapper scripts and
14597 # restored at link time.
14598 variables_saved_for_relink=$lt_variables_saved_for_relink
14599
14600 # Do we need the "lib" prefix for modules?
14601 need_lib_prefix=$need_lib_prefix
14602
14603 # Do we need a version for libraries?
14604 need_version=$need_version
14605
14606 # Library versioning type.
14607 version_type=$version_type
14608
14609 # Shared library runtime path variable.
14610 runpath_var=$runpath_var
14611
14612 # Shared library path variable.
14613 shlibpath_var=$shlibpath_var
14614
14615 # Is shlibpath searched before the hard-coded library search path?
14616 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14617
14618 # Format of library name prefix.
14619 libname_spec=$lt_libname_spec
14620
14621 # List of archive names.  First name is the real one, the rest are links.
14622 # The last name is the one that the linker finds with -lNAME
14623 library_names_spec=$lt_library_names_spec
14624
14625 # The coded name of the library, if different from the real name.
14626 soname_spec=$lt_soname_spec
14627
14628 # Permission mode override for installation of shared libraries.
14629 install_override_mode=$lt_install_override_mode
14630
14631 # Command to use after installation of a shared archive.
14632 postinstall_cmds=$lt_postinstall_cmds
14633
14634 # Command to use after uninstallation of a shared archive.
14635 postuninstall_cmds=$lt_postuninstall_cmds
14636
14637 # Commands used to finish a libtool library installation in a directory.
14638 finish_cmds=$lt_finish_cmds
14639
14640 # As "finish_cmds", except a single script fragment to be evaled but
14641 # not shown.
14642 finish_eval=$lt_finish_eval
14643
14644 # Whether we should hardcode library paths into libraries.
14645 hardcode_into_libs=$hardcode_into_libs
14646
14647 # Compile-time system search path for libraries.
14648 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14649
14650 # Run-time system search path for libraries.
14651 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14652
14653 # Whether dlopen is supported.
14654 dlopen_support=$enable_dlopen
14655
14656 # Whether dlopen of programs is supported.
14657 dlopen_self=$enable_dlopen_self
14658
14659 # Whether dlopen of statically linked programs is supported.
14660 dlopen_self_static=$enable_dlopen_self_static
14661
14662 # Commands to strip libraries.
14663 old_striplib=$lt_old_striplib
14664 striplib=$lt_striplib
14665
14666
14667 # The linker used to build libraries.
14668 LD=$lt_LD
14669
14670 # How to create reloadable object files.
14671 reload_flag=$lt_reload_flag
14672 reload_cmds=$lt_reload_cmds
14673
14674 # Commands used to build an old-style archive.
14675 old_archive_cmds=$lt_old_archive_cmds
14676
14677 # A language specific compiler.
14678 CC=$lt_compiler
14679
14680 # Is the compiler the GNU compiler?
14681 with_gcc=$GCC
14682
14683 # Compiler flag to turn off builtin functions.
14684 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14685
14686 # How to pass a linker flag through the compiler.
14687 wl=$lt_lt_prog_compiler_wl
14688
14689 # Additional compiler flags for building library objects.
14690 pic_flag=$lt_lt_prog_compiler_pic
14691
14692 # Compiler flag to prevent dynamic linking.
14693 link_static_flag=$lt_lt_prog_compiler_static
14694
14695 # Does compiler simultaneously support -c and -o options?
14696 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14697
14698 # Whether or not to add -lc for building shared libraries.
14699 build_libtool_need_lc=$archive_cmds_need_lc
14700
14701 # Whether or not to disallow shared libs when runtime libs are static.
14702 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14703
14704 # Compiler flag to allow reflexive dlopens.
14705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14706
14707 # Compiler flag to generate shared objects directly from archives.
14708 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14709
14710 # Whether the compiler copes with passing no objects directly.
14711 compiler_needs_object=$lt_compiler_needs_object
14712
14713 # Create an old-style archive from a shared archive.
14714 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14715
14716 # Create a temporary old-style archive to link instead of a shared archive.
14717 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14718
14719 # Commands used to build a shared archive.
14720 archive_cmds=$lt_archive_cmds
14721 archive_expsym_cmds=$lt_archive_expsym_cmds
14722
14723 # Commands used to build a loadable module if different from building
14724 # a shared archive.
14725 module_cmds=$lt_module_cmds
14726 module_expsym_cmds=$lt_module_expsym_cmds
14727
14728 # Whether we are building with GNU ld or not.
14729 with_gnu_ld=$lt_with_gnu_ld
14730
14731 # Flag that allows shared libraries with undefined symbols to be built.
14732 allow_undefined_flag=$lt_allow_undefined_flag
14733
14734 # Flag that enforces no undefined symbols.
14735 no_undefined_flag=$lt_no_undefined_flag
14736
14737 # Flag to hardcode \$libdir into a binary during linking.
14738 # This must work even if \$libdir does not exist
14739 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14740
14741 # If ld is used when linking, flag to hardcode \$libdir into a binary
14742 # during linking.  This must work even if \$libdir does not exist.
14743 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14744
14745 # Whether we need a single "-rpath" flag with a separated argument.
14746 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14747
14748 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14749 # DIR into the resulting binary.
14750 hardcode_direct=$hardcode_direct
14751
14752 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14753 # DIR into the resulting binary and the resulting library dependency is
14754 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14755 # library is relocated.
14756 hardcode_direct_absolute=$hardcode_direct_absolute
14757
14758 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14759 # into the resulting binary.
14760 hardcode_minus_L=$hardcode_minus_L
14761
14762 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14763 # into the resulting binary.
14764 hardcode_shlibpath_var=$hardcode_shlibpath_var
14765
14766 # Set to "yes" if building a shared library automatically hardcodes DIR
14767 # into the library and all subsequent libraries and executables linked
14768 # against it.
14769 hardcode_automatic=$hardcode_automatic
14770
14771 # Set to yes if linker adds runtime paths of dependent libraries
14772 # to runtime path list.
14773 inherit_rpath=$inherit_rpath
14774
14775 # Whether libtool must link a program against all its dependency libraries.
14776 link_all_deplibs=$link_all_deplibs
14777
14778 # Fix the shell variable \$srcfile for the compiler.
14779 fix_srcfile_path=$lt_fix_srcfile_path
14780
14781 # Set to "yes" if exported symbols are required.
14782 always_export_symbols=$always_export_symbols
14783
14784 # The commands to list exported symbols.
14785 export_symbols_cmds=$lt_export_symbols_cmds
14786
14787 # Symbols that should not be listed in the preloaded symbols.
14788 exclude_expsyms=$lt_exclude_expsyms
14789
14790 # Symbols that must always be exported.
14791 include_expsyms=$lt_include_expsyms
14792
14793 # Commands necessary for linking programs (against libraries) with templates.
14794 prelink_cmds=$lt_prelink_cmds
14795
14796 # Specify filename containing input files.
14797 file_list_spec=$lt_file_list_spec
14798
14799 # How to hardcode a shared library path into an executable.
14800 hardcode_action=$hardcode_action
14801
14802 # ### END LIBTOOL CONFIG
14803
14804 _LT_EOF
14805
14806   case $host_os in
14807   aix3*)
14808     cat <<\_LT_EOF >> "$cfgfile"
14809 # AIX sometimes has problems with the GCC collect2 program.  For some
14810 # reason, if we set the COLLECT_NAMES environment variable, the problems
14811 # vanish in a puff of smoke.
14812 if test "X${COLLECT_NAMES+set}" != Xset; then
14813   COLLECT_NAMES=
14814   export COLLECT_NAMES
14815 fi
14816 _LT_EOF
14817     ;;
14818   esac
14819
14820
14821 ltmain="$ac_aux_dir/ltmain.sh"
14822
14823
14824   # We use sed instead of cat because bash on DJGPP gets confused if
14825   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14826   # text mode, it properly converts lines to CR/LF.  This bash problem
14827   # is reportedly fixed, but why not run on old versions too?
14828   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14829     || (rm -f "$cfgfile"; exit 1)
14830
14831   case $xsi_shell in
14832   yes)
14833     cat << \_LT_EOF >> "$cfgfile"
14834
14835 # func_dirname file append nondir_replacement
14836 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14837 # otherwise set result to NONDIR_REPLACEMENT.
14838 func_dirname ()
14839 {
14840   case ${1} in
14841     */*) func_dirname_result="${1%/*}${2}" ;;
14842     *  ) func_dirname_result="${3}" ;;
14843   esac
14844 }
14845
14846 # func_basename file
14847 func_basename ()
14848 {
14849   func_basename_result="${1##*/}"
14850 }
14851
14852 # func_dirname_and_basename file append nondir_replacement
14853 # perform func_basename and func_dirname in a single function
14854 # call:
14855 #   dirname:  Compute the dirname of FILE.  If nonempty,
14856 #             add APPEND to the result, otherwise set result
14857 #             to NONDIR_REPLACEMENT.
14858 #             value returned in "$func_dirname_result"
14859 #   basename: Compute filename of FILE.
14860 #             value retuned in "$func_basename_result"
14861 # Implementation must be kept synchronized with func_dirname
14862 # and func_basename. For efficiency, we do not delegate to
14863 # those functions but instead duplicate the functionality here.
14864 func_dirname_and_basename ()
14865 {
14866   case ${1} in
14867     */*) func_dirname_result="${1%/*}${2}" ;;
14868     *  ) func_dirname_result="${3}" ;;
14869   esac
14870   func_basename_result="${1##*/}"
14871 }
14872
14873 # func_stripname prefix suffix name
14874 # strip PREFIX and SUFFIX off of NAME.
14875 # PREFIX and SUFFIX must not contain globbing or regex special
14876 # characters, hashes, percent signs, but SUFFIX may contain a leading
14877 # dot (in which case that matches only a dot).
14878 func_stripname ()
14879 {
14880   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14881   # positional parameters, so assign one to ordinary parameter first.
14882   func_stripname_result=${3}
14883   func_stripname_result=${func_stripname_result#"${1}"}
14884   func_stripname_result=${func_stripname_result%"${2}"}
14885 }
14886
14887 # func_opt_split
14888 func_opt_split ()
14889 {
14890   func_opt_split_opt=${1%%=*}
14891   func_opt_split_arg=${1#*=}
14892 }
14893
14894 # func_lo2o object
14895 func_lo2o ()
14896 {
14897   case ${1} in
14898     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14899     *)    func_lo2o_result=${1} ;;
14900   esac
14901 }
14902
14903 # func_xform libobj-or-source
14904 func_xform ()
14905 {
14906   func_xform_result=${1%.*}.lo
14907 }
14908
14909 # func_arith arithmetic-term...
14910 func_arith ()
14911 {
14912   func_arith_result=$(( $* ))
14913 }
14914
14915 # func_len string
14916 # STRING may not start with a hyphen.
14917 func_len ()
14918 {
14919   func_len_result=${#1}
14920 }
14921
14922 _LT_EOF
14923     ;;
14924   *) # Bourne compatible functions.
14925     cat << \_LT_EOF >> "$cfgfile"
14926
14927 # func_dirname file append nondir_replacement
14928 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14929 # otherwise set result to NONDIR_REPLACEMENT.
14930 func_dirname ()
14931 {
14932   # Extract subdirectory from the argument.
14933   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14934   if test "X$func_dirname_result" = "X${1}"; then
14935     func_dirname_result="${3}"
14936   else
14937     func_dirname_result="$func_dirname_result${2}"
14938   fi
14939 }
14940
14941 # func_basename file
14942 func_basename ()
14943 {
14944   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14945 }
14946
14947
14948 # func_stripname prefix suffix name
14949 # strip PREFIX and SUFFIX off of NAME.
14950 # PREFIX and SUFFIX must not contain globbing or regex special
14951 # characters, hashes, percent signs, but SUFFIX may contain a leading
14952 # dot (in which case that matches only a dot).
14953 # func_strip_suffix prefix name
14954 func_stripname ()
14955 {
14956   case ${2} in
14957     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14958     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14959   esac
14960 }
14961
14962 # sed scripts:
14963 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14964 my_sed_long_arg='1s/^-[^=]*=//'
14965
14966 # func_opt_split
14967 func_opt_split ()
14968 {
14969   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14970   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14971 }
14972
14973 # func_lo2o object
14974 func_lo2o ()
14975 {
14976   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14977 }
14978
14979 # func_xform libobj-or-source
14980 func_xform ()
14981 {
14982   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14983 }
14984
14985 # func_arith arithmetic-term...
14986 func_arith ()
14987 {
14988   func_arith_result=`expr "$@"`
14989 }
14990
14991 # func_len string
14992 # STRING may not start with a hyphen.
14993 func_len ()
14994 {
14995   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14996 }
14997
14998 _LT_EOF
14999 esac
15000
15001 case $lt_shell_append in
15002   yes)
15003     cat << \_LT_EOF >> "$cfgfile"
15004
15005 # func_append var value
15006 # Append VALUE to the end of shell variable VAR.
15007 func_append ()
15008 {
15009   eval "$1+=\$2"
15010 }
15011 _LT_EOF
15012     ;;
15013   *)
15014     cat << \_LT_EOF >> "$cfgfile"
15015
15016 # func_append var value
15017 # Append VALUE to the end of shell variable VAR.
15018 func_append ()
15019 {
15020   eval "$1=\$$1\$2"
15021 }
15022
15023 _LT_EOF
15024     ;;
15025   esac
15026
15027
15028   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15029     || (rm -f "$cfgfile"; exit 1)
15030
15031   mv -f "$cfgfile" "$ofile" ||
15032     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15033   chmod +x "$ofile"
15034
15035  ;;
15036     "default-1":C)
15037     for ac_file in $CONFIG_FILES; do
15038       # Support "outfile[:infile[:infile...]]"
15039       case "$ac_file" in
15040         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15041       esac
15042       # PO directories have a Makefile.in generated from Makefile.in.in.
15043       case "$ac_file" in */Makefile.in)
15044         # Adjust a relative srcdir.
15045         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15046         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15047         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15048         # In autoconf-2.13 it is called $ac_given_srcdir.
15049         # In autoconf-2.50 it is called $srcdir.
15050         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15051         case "$ac_given_srcdir" in
15052           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15053           /*) top_srcdir="$ac_given_srcdir" ;;
15054           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15055         esac
15056         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15057           rm -f "$ac_dir/POTFILES"
15058           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15059           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15060           POMAKEFILEDEPS="POTFILES.in"
15061           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15062           # on $ac_dir but don't depend on user-specified configuration
15063           # parameters.
15064           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15065             # The LINGUAS file contains the set of available languages.
15066             if test -n "$OBSOLETE_ALL_LINGUAS"; then
15067               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
15068             fi
15069             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15070             # Hide the ALL_LINGUAS assigment from automake.
15071             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15072             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15073           else
15074             # The set of available languages was given in configure.ac.
15075             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15076           fi
15077           case "$ac_given_srcdir" in
15078             .) srcdirpre= ;;
15079             *) srcdirpre='$(srcdir)/' ;;
15080           esac
15081           POFILES=
15082           GMOFILES=
15083           UPDATEPOFILES=
15084           DUMMYPOFILES=
15085           for lang in $ALL_LINGUAS; do
15086             POFILES="$POFILES $srcdirpre$lang.po"
15087             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15088             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15089             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15090           done
15091           # CATALOGS depends on both $ac_dir and the user's LINGUAS
15092           # environment variable.
15093           INST_LINGUAS=
15094           if test -n "$ALL_LINGUAS"; then
15095             for presentlang in $ALL_LINGUAS; do
15096               useit=no
15097               if test "%UNSET%" != "$LINGUAS"; then
15098                 desiredlanguages="$LINGUAS"
15099               else
15100                 desiredlanguages="$ALL_LINGUAS"
15101               fi
15102               for desiredlang in $desiredlanguages; do
15103                 # Use the presentlang catalog if desiredlang is
15104                 #   a. equal to presentlang, or
15105                 #   b. a variant of presentlang (because in this case,
15106                 #      presentlang can be used as a fallback for messages
15107                 #      which are not translated in the desiredlang catalog).
15108                 case "$desiredlang" in
15109                   "$presentlang"*) useit=yes;;
15110                 esac
15111               done
15112               if test $useit = yes; then
15113                 INST_LINGUAS="$INST_LINGUAS $presentlang"
15114               fi
15115             done
15116           fi
15117           CATALOGS=
15118           if test -n "$INST_LINGUAS"; then
15119             for lang in $INST_LINGUAS; do
15120               CATALOGS="$CATALOGS $lang.gmo"
15121             done
15122           fi
15123           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15124           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"
15125           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15126             if test -f "$f"; then
15127               case "$f" in
15128                 *.orig | *.bak | *~) ;;
15129                 *) cat "$f" >> "$ac_dir/Makefile" ;;
15130               esac
15131             fi
15132           done
15133         fi
15134         ;;
15135       esac
15136     done ;;
15137
15138   esac
15139 done # for ac_tag
15140
15141
15142 as_fn_exit 0
15143 _ACEOF
15144 ac_clean_files=$ac_clean_files_save
15145
15146 test $ac_write_fail = 0 ||
15147   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15148
15149
15150 # configure is writing to config.log, and then calls config.status.
15151 # config.status does its own redirection, appending to config.log.
15152 # Unfortunately, on DOS this fails, as config.log is still kept open
15153 # by configure, so config.status won't be able to write to it; its
15154 # output is simply discarded.  So we exec the FD to /dev/null,
15155 # effectively closing config.log, so it can be properly (re)opened and
15156 # appended to by config.status.  When coming back to configure, we
15157 # need to make the FD available again.
15158 if test "$no_create" != yes; then
15159   ac_cs_success=:
15160   ac_config_status_args=
15161   test "$silent" = yes &&
15162     ac_config_status_args="$ac_config_status_args --quiet"
15163   exec 5>/dev/null
15164   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15165   exec 5>>config.log
15166   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15167   # would make configure fail if this is the last instruction.
15168   $ac_cs_success || as_fn_exit $?
15169 fi
15170 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15171   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15172 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15173 fi
15174